Let tst-swscanf find its locale
[platform/upstream/glibc.git] / ChangeLog
1 2013-10-29  Andreas Schwab  <schwab@suse.de>
2
3         * stdio-common/Makefile (tst-swscanf-ENV): Define.
4
5 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6
7         * benchtests/pow-inputs: Add new inputs.
8
9         * benchtests/exp-inputs: Add new inputs.
10
11         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
12         conditional check for return value.
13         (__cos32): Likewise.
14
15 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16
17         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
18         to provide a boost for large inputs with word alignment.
19         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
20         implementation based on optimized PPC64 strcpy.
21         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
22         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
23         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
24         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
25
26 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
27
28         [BZ 2801]
29         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
30
31 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
32
33         [BZ #14876]
34         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
35         * time/tst-strptime.c (day_tests): Add testcase.
36
37 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
38
39         [BZ 14029]
40         * manual/pattern.texi: Acknowledge that fnmatch can fail.
41
42 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
43
44         [BZ #16074]
45         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
46         MAP_FAILED on error.
47
48 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
49
50         [BZ #16072]
51         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
52         heap for large requests.
53
54 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
55
56         [BZ #9954]
57         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
58         result if the result has no associated interface.
59         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
60         interface for all 127.X.Y.Z addresses.
61
62 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
63
64         * locale/iso-639.def: Add Ligurian (lij)
65
66 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
67
68         [BZ #15825]
69         * sunrpc/rpc_main.c: Document rpcgen -5.
70
71 2013-10-19  Michael Stahl  <mstahl@redhat.com>
72
73         * elf/rtld.c (do_preload): Print the reason why preloading failed.
74
75 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
76
77         [BZ #10278]
78         * posix/glob.c: Match only directories when trailing slash is present.
79         * posix/tst-gnuglob.c (my_opendir): Do not open files.
80         (main): Add testcase.
81
82 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
83
84         [BZ #15670]
85         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
86
87 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
88
89         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
90         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
91         AUTH_DES and cindex for FIPS 140-2.
92         (DES Encryption): Add cindex FIPS 46-3.
93
94         * locale/locarchive.h (struct locarhandle): Add fname.
95         * locale/programs/localedef.c (main): Pass ARGV[remaining]
96         if an optional argument was specified to --list-archive,
97         otherwise NULL.
98         * locale/programs/locarchive.c (show_archive_content): Take new
99         argument fname and pass it via ah.fname to open_archive.
100         * locale/programs/localedef.h: Update decl.
101         (open_archive): If AH->fname is non-null, open that file
102         rather than the default file name, and don't ignore ENOENT.
103         (create_archive): Set AH.fname to NULL.
104         (delete_locales_from_archive): Likewise.
105         (add_locales_to_archive): Likewise.
106         * locale/programs/locfile.c (write_all_categories): Likewise.
107
108 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
109             Aldy Hernandez  <aldyh@redhat.com>
110
111         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
112         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
113         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
114         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
115         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
116         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
117         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
118         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
119         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
120         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
121         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
122         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
123         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
124         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
125         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
126         Likewise.
127         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
128         Likewise.
129         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
130         Likewise.
131         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
132         Likewise.
133         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
134         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
135         Likewise.
136         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
137         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
138         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
139         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
140         Likewise.
141         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
142         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
143         * sysdeps/powerpc/preconfigure: Likewise.
144         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
145         Likewise.
146         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
147         Replace contents of file by #include of <fenv_libc.h>.
148         * sysdeps/powerpc/soft-fp/sfp-machine.h
149         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
150         and <sys/prctl.h>.
151         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
152         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
153         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
154         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
155         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
156         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
157         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
158         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
159         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
160         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
161         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
162         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
164         Allow copysignl PLT reference to be missing.
165
166 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
167             Joseph Myers  <joseph@codesourcery.com
168
169         [BZ #15948]
170         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
171         single character.
172         (add_to_tablewc): Assert sequence of wide characters is nonempty.
173
174 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
175
176         * elf/tst-tls-dlinfo.c: Don't include tls.h.
177         * elf/tst-tls1.c: Likewise.
178         * elf/tst-tls10.h: Likewise.
179         * elf/tst-tls14.c: Likewise.
180         * elf/tst-tls2.c: Likewise.
181         * elf/tst-tls3.c: Likewise.
182         * elf/tst-tls4.c: Likewise.
183         * elf/tst-tls5.c: Likewise.
184         * elf/tst-tls6.c: Likewise.
185         * elf/tst-tls7.c: Likewise.
186         * elf/tst-tls8.c: Likewise.
187         * elf/tst-tls9.c: Likewise.
188         * elf/tst-tlsmod1.c: Likewise.
189         * elf/tst-tlsmod13.c: Likewise.
190         * elf/tst-tlsmod13a.c: Likewise.
191         * elf/tst-tlsmod14a.c: Likewise.
192         * elf/tst-tlsmod16a.c: Likewise.
193         * elf/tst-tlsmod16b.c: Likewise.
194         * elf/tst-tlsmod2.c: Likewise.
195         * elf/tst-tlsmod3.c: Likewise.
196         * elf/tst-tlsmod4.c: Likewise.
197         * elf/tst-tlsmod5.c: Likewise.
198         * elf/tst-tlsmod6.c: Likewise.
199
200 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
201
202         [BZ #12486]
203         * malloc/malloc.c: remove checks for statistics.
204
205 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
206
207         [BZ #15277]
208         * inet/inet_net.c (inet_network): Detect additional invalid strings.
209         * inet/tst-network.c: Add testcase.
210
211 2013-10-17  Andreas Schwab  <schwab@suse.de>
212
213         [BZ #15218]
214         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
215         to determine canonical name.
216
217 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
218
219         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
220         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
221         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
222         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
223         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
224         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
225         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
226         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
227         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
228         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
229         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
230         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
231         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
232         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
233         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
234         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
235         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
236         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
237         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
238         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
239         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
240         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
241         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
242         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
243         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
244         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
245         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
246         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
247         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
248         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
249         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
250         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
251         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
252         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
253         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
254         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
255         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
256         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
257         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
258         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
259         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
260         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
261         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
262         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
263         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
264         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
265         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
266         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
267         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
268         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
269         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
270         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
271         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
272         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
273         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
274         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
275         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
276         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
277
278 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
279
280         [BZ #16041]
281         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
282         make result into a quiet NaN.
283
284 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
285
286         * soft-fp/adddf3.c: Fix horizontal whitespace.
287         * soft-fp/addsf3.c: Likewise.
288         * soft-fp/addtf3.c: Likewise.
289         * soft-fp/divdf3.c: Likewise.
290         * soft-fp/divsf3.c: Likewise.
291         * soft-fp/divtf3.c: Likewise.
292         * soft-fp/double.h: Likewise.
293         * soft-fp/eqdf2.c: Likewise.
294         * soft-fp/eqsf2.c: Likewise.
295         * soft-fp/eqtf2.c: Likewise.
296         * soft-fp/extenddftf2.c: Likewise.
297         * soft-fp/extended.h: Likewise.
298         * soft-fp/extendsfdf2.c: Likewise.
299         * soft-fp/extendsftf2.c: Likewise.
300         * soft-fp/extendxftf2.c: Likewise.
301         * soft-fp/fixdfdi.c: Likewise.
302         * soft-fp/fixdfsi.c: Likewise.
303         * soft-fp/fixdfti.c: Likewise.
304         * soft-fp/fixsfdi.c: Likewise.
305         * soft-fp/fixsfsi.c: Likewise.
306         * soft-fp/fixsfti.c: Likewise.
307         * soft-fp/fixtfdi.c: Likewise.
308         * soft-fp/fixtfsi.c: Likewise.
309         * soft-fp/fixtfti.c: Likewise.
310         * soft-fp/fixunsdfdi.c: Likewise.
311         * soft-fp/fixunsdfsi.c: Likewise.
312         * soft-fp/fixunsdfti.c: Likewise.
313         * soft-fp/fixunssfdi.c: Likewise.
314         * soft-fp/fixunssfsi.c: Likewise.
315         * soft-fp/fixunssfti.c: Likewise.
316         * soft-fp/fixunstfdi.c: Likewise.
317         * soft-fp/fixunstfsi.c: Likewise.
318         * soft-fp/fixunstfti.c: Likewise.
319         * soft-fp/floatdidf.c: Likewise.
320         * soft-fp/floatdisf.c: Likewise.
321         * soft-fp/floatditf.c: Likewise.
322         * soft-fp/floatsidf.c: Likewise.
323         * soft-fp/floatsisf.c: Likewise.
324         * soft-fp/floatsitf.c: Likewise.
325         * soft-fp/floattidf.c: Likewise.
326         * soft-fp/floattisf.c: Likewise.
327         * soft-fp/floattitf.c: Likewise.
328         * soft-fp/floatundidf.c: Likewise.
329         * soft-fp/floatundisf.c: Likewise.
330         * soft-fp/floatunditf.c: Likewise.
331         * soft-fp/floatunsidf.c: Likewise.
332         * soft-fp/floatunsisf.c: Likewise.
333         * soft-fp/floatunsitf.c: Likewise.
334         * soft-fp/floatuntidf.c: Likewise.
335         * soft-fp/floatuntisf.c: Likewise.
336         * soft-fp/floatuntitf.c: Likewise.
337         * soft-fp/fmadf4.c: Likewise.
338         * soft-fp/fmasf4.c: Likewise.
339         * soft-fp/fmatf4.c: Likewise.
340         * soft-fp/gedf2.c: Likewise.
341         * soft-fp/gesf2.c: Likewise.
342         * soft-fp/getf2.c: Likewise.
343         * soft-fp/ledf2.c: Likewise.
344         * soft-fp/lesf2.c: Likewise.
345         * soft-fp/letf2.c: Likewise.
346         * soft-fp/muldf3.c: Likewise.
347         * soft-fp/mulsf3.c: Likewise.
348         * soft-fp/multf3.c: Likewise.
349         * soft-fp/negdf2.c: Likewise.
350         * soft-fp/negsf2.c: Likewise.
351         * soft-fp/negtf2.c: Likewise.
352         * soft-fp/op-1.h: Likewise.
353         * soft-fp/op-2.h: Likewise.
354         * soft-fp/op-4.h: Likewise.
355         * soft-fp/op-8.h: Likewise.
356         * soft-fp/op-common.h: Likewise.
357         * soft-fp/quad.h: Likewise.
358         * soft-fp/single.h: Likewise.
359         * soft-fp/soft-fp.h: Likewise.
360         * soft-fp/sqrtdf2.c: Likewise.
361         * soft-fp/sqrtsf2.c: Likewise.
362         * soft-fp/sqrttf2.c: Likewise.
363         * soft-fp/subdf3.c: Likewise.
364         * soft-fp/subsf3.c: Likewise.
365         * soft-fp/subtf3.c: Likewise.
366         * soft-fp/truncdfsf2.c: Likewise.
367         * soft-fp/trunctfdf2.c: Likewise.
368         * soft-fp/trunctfsf2.c: Likewise.
369         * soft-fp/trunctfxf2.c: Likewise.
370         * soft-fp/unorddf2.c: Likewise.
371         * soft-fp/unordsf2.c: Likewise.
372         * soft-fp/unordtf2.c: Likewise.
373
374 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
375
376         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
377         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
378
379 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
380
381         * elf/dl-libc.c: Clear initfini list after freeing.
382
383 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
384
385         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
386         * soft-fp/addsf3.c: Likewise.
387         * soft-fp/addtf3.c: Likewise.
388         * soft-fp/divdf3.c: Likewise.
389         * soft-fp/divsf3.c: Likewise.
390         * soft-fp/divtf3.c: Likewise.
391         * soft-fp/double.h: Likewise.
392         * soft-fp/eqdf2.c: Likewise.
393         * soft-fp/eqsf2.c: Likewise.
394         * soft-fp/eqtf2.c: Likewise.
395         * soft-fp/extenddftf2.c: Likewise.
396         * soft-fp/extended.h: Likewise.
397         * soft-fp/extendsfdf2.c: Likewise.
398         * soft-fp/extendsftf2.c: Likewise.
399         * soft-fp/extendxftf2.c: Likewise.
400         * soft-fp/fixdfdi.c: Likewise.
401         * soft-fp/fixdfsi.c: Likewise.
402         * soft-fp/fixdfti.c: Likewise.
403         * soft-fp/fixsfdi.c: Likewise.
404         * soft-fp/fixsfsi.c: Likewise.
405         * soft-fp/fixsfti.c: Likewise.
406         * soft-fp/fixtfdi.c: Likewise.
407         * soft-fp/fixtfsi.c: Likewise.
408         * soft-fp/fixtfti.c: Likewise.
409         * soft-fp/fixunsdfdi.c: Likewise.
410         * soft-fp/fixunsdfsi.c: Likewise.
411         * soft-fp/fixunsdfti.c: Likewise.
412         * soft-fp/fixunssfdi.c: Likewise.
413         * soft-fp/fixunssfsi.c: Likewise.
414         * soft-fp/fixunssfti.c: Likewise.
415         * soft-fp/fixunstfdi.c: Likewise.
416         * soft-fp/fixunstfsi.c: Likewise.
417         * soft-fp/fixunstfti.c: Likewise.
418         * soft-fp/floatdidf.c: Likewise.
419         * soft-fp/floatdisf.c: Likewise.
420         * soft-fp/floatditf.c: Likewise.
421         * soft-fp/floatsidf.c: Likewise.
422         * soft-fp/floatsisf.c: Likewise.
423         * soft-fp/floatsitf.c: Likewise.
424         * soft-fp/floattidf.c: Likewise.
425         * soft-fp/floattisf.c: Likewise.
426         * soft-fp/floattitf.c: Likewise.
427         * soft-fp/floatundidf.c: Likewise.
428         * soft-fp/floatundisf.c: Likewise.
429         * soft-fp/floatunsidf.c: Likewise.
430         * soft-fp/floatunsisf.c: Likewise.
431         * soft-fp/floatuntidf.c: Likewise.
432         * soft-fp/floatuntisf.c: Likewise.
433         * soft-fp/floatuntitf.c: Likewise.
434         * soft-fp/fmadf4.c: Likewise.
435         * soft-fp/fmasf4.c: Likewise.
436         * soft-fp/fmatf4.c: Likewise.
437         * soft-fp/gedf2.c: Likewise.
438         * soft-fp/gesf2.c: Likewise.
439         * soft-fp/getf2.c: Likewise.
440         * soft-fp/ledf2.c: Likewise.
441         * soft-fp/lesf2.c: Likewise.
442         * soft-fp/letf2.c: Likewise.
443         * soft-fp/muldf3.c: Likewise.
444         * soft-fp/mulsf3.c: Likewise.
445         * soft-fp/multf3.c: Likewise.
446         * soft-fp/negdf2.c: Likewise.
447         * soft-fp/negsf2.c: Likewise.
448         * soft-fp/negtf2.c: Likewise.
449         * soft-fp/op-1.h: Likewise.
450         * soft-fp/op-2.h: Likewise.
451         * soft-fp/op-4.h: Likewise.
452         * soft-fp/op-8.h: Likewise.
453         * soft-fp/op-common.h: Likewise.
454         * soft-fp/quad.h: Likewise.
455         * soft-fp/single.h: Likewise.
456         * soft-fp/soft-fp.h: Likewise.
457         * soft-fp/sqrtdf2.c: Likewise.
458         * soft-fp/sqrtsf2.c: Likewise.
459         * soft-fp/sqrttf2.c: Likewise.
460         * soft-fp/subdf3.c: Likewise.
461         * soft-fp/subsf3.c: Likewise.
462         * soft-fp/subtf3.c: Likewise.
463         * soft-fp/truncdfsf2.c: Likewise.
464         * soft-fp/trunctfdf2.c: Likewise.
465         * soft-fp/trunctfsf2.c: Likewise.
466         * soft-fp/trunctfxf2.c: Likewise.
467         * soft-fp/unorddf2.c: Likewise.
468         * soft-fp/unordsf2.c: Likewise.
469         * soft-fp/unordtf2.c: Likewise.
470
471 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
472
473         [BZ #15672]
474         * misc/error.c (error_tail): Fix possible buffer overflow.
475
476 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
477
478         [BZ #13028]
479         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
480         address.
481
482 2013-10-14  P. J. McDermott  <pj@pehjota.net>
483
484         [BZ #832]
485         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
486         testing pipefail option.
487
488 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
489
490         * soft-fp/double.h: Indent preprocessor directives inside #if.
491         * soft-fp/extended.h: Likewise.
492         * soft-fp/op-2.h: Likewise.
493         * soft-fp/op-4.h: Likewise.
494         * soft-fp/op-common.h: Likewise.
495         * soft-fp/quad.h: Likewise.
496         * soft-fp/single.h: Likewise.
497         * soft-fp/soft-fp.h: Likewise.
498
499 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
500
501         * iconv/iconv_prog.c: Fix typos.
502         * stdio-common/psiginfo-data.h: Likewise.
503
504 2013-10-12   Reuben Thomas <rrt@sc3d.org>
505
506         [BZ #15764]
507         * locale/setlocale.c: Fix typo.
508
509 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
510
511         [BZ #16036]
512         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
513         signaling NaN arguments.
514         * soft-fp/unordsf2.c (__unordsf2): Likewise.
515         * soft-fp/unordtf2.c (__unordtf2): Likewise.
516
517         [BZ #14910]
518         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
519         unordered operands.
520         * soft-fp/gesf2.c (__gesf2): Likewise.
521         * soft-fp/getf2.c (__getf2): Likewise.
522         * soft-fp/ledf2.c (__ledf2): Likewise.
523         * soft-fp/lesf2.c (__lesf2): Likewise.
524         * soft-fp/letf2.c (__letf2): Likewise.
525
526         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
527         * soft-fp/eqsf2.c (__eqsf2): Likewise.
528         * soft-fp/eqtf2.c (__eqtf2): Likewise.
529         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
530         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
531         * soft-fp/fixdfti.c (__fixdfti): Likewise.
532         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
533         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
534         * soft-fp/fixsfti.c (__fixsfti): Likewise.
535         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
536         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
537         * soft-fp/fixtfti.c (__fixtfti): Likewise.
538         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
539         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
540         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
541         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
542         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
543         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
544         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
545         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
546         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
547         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
548         * soft-fp/floatdisf.c (__floatdisf): Likewise.
549         * soft-fp/floatsisf.c (__floatsisf): Likewise.
550         * soft-fp/floattidf.c (__floattidf): Likewise.
551         * soft-fp/floattisf.c (__floattisf): Likewise.
552         * soft-fp/floattitf.c (__floattitf): Likewise.
553         * soft-fp/floatundidf.c (__floatundidf): Likewise.
554         * soft-fp/floatundisf.c (__floatundisf): Likewise.
555         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
556         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
557         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
558         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
559         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
560         * soft-fp/gesf2.c (__gesf2): Likewise.
561         * soft-fp/getf2.c (__getf2): Likewise.
562         * soft-fp/ledf2.c (__ledf2): Likewise.
563         * soft-fp/lesf2.c (__lesf2): Likewise.
564         * soft-fp/letf2.c (__letf2): Likewise.
565
566         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
567         Undefine and redefine.
568         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
569         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
570         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
571         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
572         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
573         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
574         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
575         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
576         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
577         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
578         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
579         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
580         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
581         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
582         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
583
584         [BZ #16032]
585         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
586         without decrementing exponent if mantissa >= that for the
587         denominator, not >.
588         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
589         denominator, not >.  Decrement exponent in < case instead of
590         incrementing in >= case.
591         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
592         without decrementing exponent if mantissa >= that for the
593         denominator, not >.
594
595         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
596         computing saturated result for unsigned overflow.
597
598 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
599             Jeff Law  <law@redhat.com>
600
601         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
602         (atan2Mp): Add systemtap probe marker.
603         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
604         (__ieee754_log): Add systemtap probe marker.
605         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
606         (atanMp): Add systemtap probe marker.
607         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
608         (tanMp): Add systemtap probe marker.
609         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
610         (__slowexp): Add systemtap probe marker.
611         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
612         (__slowpow): Add systemtap probe marker.
613         * manual/probes.texi: Document probes.
614
615 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
616
617         [BZ #15362]
618         * libio/fileops.c (_IO_new_file_write): Return count of bytes
619         written.
620         (_IO_new_file_xsputn): Don't return EOF if nothing has been
621         written.
622         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
623         written to buffer but not flushed.
624         * libio/iofwrite_u.c:  Likewise.
625         * libio/iopadn.c:  Return bytes returned even if EOF was
626         encountered.
627         * libio/iowpadn.c:  Likewise.
628         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
629         if _IO_padn does not write the whole buffer.
630         [!COMPILE_WPRINTF] (PAD): Likewise.
631
632 2013-10-10  David S. Miller  <davem@davemloft.net>
633
634         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
635         directory block.
636
637 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
638
639         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
640         instead of FSF address.
641         * soft-fp/fixdfti.c: Likewise.
642         * soft-fp/fixsfti.c: Likewise.
643         * soft-fp/fixtfti.c: Likewise.
644         * soft-fp/fixunsdfti.c: Likewise.
645         * soft-fp/fixunssfti.c: Likewise.
646         * soft-fp/fixunstfti.c: Likewise.
647         * soft-fp/floattidf.c: Likewise.
648         * soft-fp/floattisf.c: Likewise.
649         * soft-fp/floattitf.c: Likewise.
650         * soft-fp/floatuntidf.c: Likewise.
651         * soft-fp/floatuntisf.c: Likewise.
652         * soft-fp/floatuntitf.c: Likewise.
653         * soft-fp/trunctfxf2.c: Likewise.
654
655         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
656         * soft-fp/fixdfti.c: Likewise.
657         * soft-fp/fixsfti.c: Likewise.
658         * soft-fp/fixtfti.c: Likewise.
659         * soft-fp/fixunsdfti.c: Likewise.
660         * soft-fp/fixunssfti.c: Likewise.
661         * soft-fp/fixunstfti.c: Likewise.
662         * soft-fp/floattidf.c: Likewise.
663         * soft-fp/floattisf.c: Likewise.
664         * soft-fp/floattitf.c: Likewise.
665         * soft-fp/floatuntidf.c: Likewise.
666         * soft-fp/floatuntisf.c: Likewise.
667         * soft-fp/floatuntitf.c: Likewise.
668         * soft-fp/trunctfxf2.c: Likewise.
669
670 2013-10-10  David S. Miller  <davem@davemloft.net>
671
672         * sysdeps/sparc/fpu/libm-test-ulps: Update.
673
674 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
675
676         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
677         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
678         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
679         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
680         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
681         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
682         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
683
684         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
685         for NaNs before doing comparisons on argument.
686         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
687         Likewise.
688
689 2013-10-10  Will Newton  <will.newton@linaro.org>
690
691         * malloc/hooks.c (memalign_check): Ensure the value of bytes
692         passed to _int_memalign does not overflow.
693
694 2013-10-10  Torvald Riegel  <triegel@redhat.com>
695
696         * scripts/bench.pl: Add include-sources directive.
697         * benchtests/README: Update documentation.
698
699 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
700
701         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
702         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
703         instead of FP_INIT_ROUNDMODE.
704         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
705         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
706
707         [BZ #16034]
708         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
709         copy class of input value.
710         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
711         not handle exceptions.
712         * soft-fp/negsf2.c (__negsf2): Likewise.
713         * soft-fp/negtf2.c (__negtf2): Likewise.
714         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
715
716 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
717
718         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
719         semicolon.  From Linux kernel.
720
721 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
722
723         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
724
725 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
726
727         [BZ #156]
728         * manual/socket.texi: Added statement about buffer
729         for gethostbyname2_r.
730
731 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
732
733         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
734         Use .p2align directive instead, throughout.
735         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
736         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
737         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
738         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
739         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
740         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
741         * sysdeps/x86_64/strchr.S: Likewise.
742         * sysdeps/x86_64/strrchr.S: Likewise.
743
744 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
745
746         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
747
748         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
749
750         * sysdeps/generic/math_private.h (__mpsin1): Remove
751         declaration.
752         (__mpcos1): Likewise.
753         (__mpsin): New argument __range_reduce.
754         (__mpcos): Likewise.
755         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
756         (slow): Use __mpsin and __mpcos.
757         (slow1): Likewise.
758         (slow2): Likewise.
759         (sloww): Likewise.
760         (sloww1): Likewise.
761         (sloww2): Likewise.
762         (bsloww): Likewise.
763         (bsloww1): Likewise.
764         (bsloww2): Likewise.
765         (cslow2): Likewise.
766         (csloww): Likewise.
767         (csloww1): Likewise.
768         (csloww2): Likewise.
769         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
770         range_reduce.  Merge in __mpsin1.
771         (__mpcos): Likewise.
772         (__mpsin1): Remove.
773         (__mpcos1): Likewise.
774
775 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
776
777         * locale/loadlocale.c (_nl_intern_locale_data): Use
778         LOCFILE_ALIGNED_P.
779         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
780         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
781         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
782         obstack data is appropriately aligned.
783         (obstack_int32_grow_fast): Likewise.
784         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
785         * locale/programs/locfile.c (add_locale_uint32): Likewise.
786         (add_locale_uint32_array): Likewise.
787
788 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
789
790         * benchtests/Makefile: Remove ARGLIST and RET variables.
791         ($(objpfx)bench-%.c): Pass only function name to the script.
792         * benchtests/README: Update documentation.
793         * benchtests/acos-inputs: Add new directives.
794         * benchtests/acosh-inputs: Likewise.
795         * benchtests/asin-inputs: Likewise.
796         * benchtests/asinh-inputs: Likewise.
797         * benchtests/atan-inputs: Likewise.
798         * benchtests/atanh-inputs: Likewise.
799         * benchtests/cos-inputs: Likewise.
800         * benchtests/cosh-inputs: Likewise.
801         * benchtests/exp-inputs: Likewise.
802         * benchtests/log-inputs: Likewise.
803         * benchtests/pow-inputs: Likewise.
804         * benchtests/rint-inputs: Likewise.
805         * benchtests/sin-inputs: Likewise.
806         * benchtests/sinh-inputs: Likewise.
807         * benchtests/tan-inputs: Likewise.
808         * benchtests/tanh-inputs: Likewise.
809         * scripts/bench.pl: Add support for new directives.
810
811 2013-10-07  Alan Modra  <amodra@gmail.com>
812
813         * README: Fix careless merge.
814
815 2013-10-05  Alan Modra  <amodra@gmail.com>
816
817         * NEWS: Mention powerpc64le support and bugs fixed.
818         * README: Both big-endian and little-endian powerpc64 supported.
819
820 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
821
822         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
823         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
824         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
825         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
826
827 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
828
829         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
830         match prototype.
831
832 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
833
834         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
835         Move -mhard-float appending from
836         ports/sysdeps/powerpc/powerpc32/Makefile.
837         [$(with-fp) = yes] (ASFLAGS): Likewise.
838         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
839         * sysdeps/powerpc/nofpu: Move directory from
840         ports/sysdeps/powerpc/nofpu.
841         * sysdeps/powerpc/soft-fp: Move directory from
842         ports/sysdeps/powerpc/soft-fp.
843         * sysdeps/powerpc/powerpc32/405: Move directory from
844         ports/sysdeps/powerpc/powerpc32/405.
845         * sysdeps/powerpc/powerpc32/440: Move directory from
846         ports/sysdeps/powerpc/powerpc32/440.
847         * sysdeps/powerpc/powerpc32/464: Move directory from
848         ports/sysdeps/powerpc/powerpc32/464.
849         * sysdeps/powerpc/powerpc32/476: Move directory from
850         ports/sysdeps/powerpc/powerpc32/476.
851         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
852         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
853         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
854         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
855         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
856         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
858         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
860         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
861         * README: Update for powerpc-*-linux-gnu software floating point
862         support in libc.
863
864         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
865         case to powerpc/powerpc32*.
866         * sysdeps/unix/sysv/linux/configure: Regenerated.
867
868         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
869         (_FPU_MASK_OM): Define as 0x04.
870         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
871         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
872         0x00c10080.
873         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
874         0x0000003c.
875         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
876
877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
878         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
879         getcontext_e500.
880         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
881         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
882         setcontext_e500.
883         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
884         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
885         and setcontext_e500.
886
887 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
888
889         * locale/iso-3166.def: Update iso-1366.def and related occurrences
890
891 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
892
893         * manual/threads.texi (Default Thread Attributes): Fix typo.
894
895 2013-10-04  Will Newton  <will.newton@linaro.org>
896
897         * malloc/Makefile: Add tst-memalign.
898         * malloc/tst-memalign.c: New file.
899
900         * malloc/tst-posix_memalign.c: Add comments.
901         (do_test): Add comments and call free on all potentially
902         allocated pointers. Add space after cast.
903
904         * malloc/tst-pvalloc.c: Add comments.
905         (do_test): Add comments and call free on all potentially
906         allocated pointers. Remove duplicate check for NULL pointer.
907         Add space after cast.
908
909         * malloc/tst-valloc.c: Add comments.
910         (do_test): Add comments and call free on all potentially
911         allocated pointers. Remove duplicate check for NULL pointer.
912         Add space after cast.
913
914 2013-10-04  Alan Modra  <amodra@gmail.com>
915
916         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
917         Use stdint types in rather than __attribute__((mode())).
918         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
919
920 2013-10-04  Alan Modra  <amodra@gmail.com>
921
922         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
923         Correct handling of unaligned relocs for little-endian.
924         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
925
926 2013-10-04  Alan Modra  <amodra@gmail.com>
927
928         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
929         * configure: Regenerate.
930         * nptl/shlib-versions: Powerpc*le starts at 2.18.
931         * shlib-versions: Likewise.
932
933 2013-10-04  Alan Modra  <amodra@gmail.com>
934
935         * string/tester.c (test_memrchr): Increment reported test cycle.
936
937 2013-10-04  Alan Modra  <amodra@gmail.com>
938
939         * string/test-memcpy.c (do_one_test): When reporting errors, print
940         string address and don't overrun end of string.
941
942 2013-10-04  Alan Modra  <amodra@gmail.com>
943
944         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
945         insrdi.  Make better use of reg selection to speed exit slightly.
946         Schedule entry path a little better.  Remove useless "are we done"
947         checks on entry to main loop.  Handle wrapping around zero address.
948         Correct main loop count.  Handle single left-over word from main
949         loop inline rather than by using loop_small.  Remove extra word
950         case in loop_small caused by wrong loop count.  Add little-endian
951         support.
952         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
953         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
954         cache hint.
955         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
956         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
957         support.  Avoid rlwimi.
958         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
959
960 2013-10-04  Alan Modra  <amodra@gmail.com>
961
962         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
963         insrdi.  Formatting.
964         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
965         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
966         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
967         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
968         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
969         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
970
971 2013-10-04  Alan Modra  <amodra@gmail.com>
972
973         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
974         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
975         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
976         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
977         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
978         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
979         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
980         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
981         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
982         use of regs.  Use power7 mtocrf.  Tidy function tails.
983
984 2013-10-04  Alan Modra  <amodra@gmail.com>
985
986         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
987         Formatting.  Consistently use rXXX register defines or rN defines.
988         Use early exit labels that avoid restoring unused non-volatile regs.
989         Make cr field use more consistent with rWORDn compares.  Rename
990         regs used as shift registers for unaligned loop, using rN defines
991         for short lifetime/multiple use regs.
992         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
993         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
994         addi 1,1,64 to pop stack frame.  Simplify return value code.
995         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
996
997 2013-10-04  Alan Modra  <amodra@gmail.com>
998
999         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
1000         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
1001         rather than rlwimi.
1002         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
1003         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
1004         little-endian support.  Correct typos.
1005         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
1006         rather than rlwimi.
1007         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
1008         in loop and entry code to keep "and." results.
1009         (strchr): Add little-endian support.  Comment.  Move cntlzd
1010         earlier in tail.
1011         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
1012
1013 2013-10-04  Alan Modra  <amodra@gmail.com>
1014
1015         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
1016         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
1017         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
1018         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
1019
1020 2013-10-04  Alan Modra  <amodra@gmail.com>
1021
1022         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
1023         (rTMP): Define as r11.
1024         (strcmp): Add little-endian support.  Optimise tail.
1025         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
1026         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
1027         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
1028         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
1029         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
1030         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
1031         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
1032
1033 2013-10-04  Alan Modra  <amodra@gmail.com>
1034
1035         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
1036         little-endian support.  Remove unnecessary "are we done" tests.
1037         Handle "s" wrapping around zero and extremely large "size".
1038         Correct main loop count.  Handle single left-over word from main
1039         loop inline rather than by using small_loop.  Correct comments.
1040         Delete "zero" tail, use "end_max" instead.
1041         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
1042
1043 2013-10-04  Alan Modra  <amodra@gmail.com>
1044
1045         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
1046         support.  Don't branch over align.
1047         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
1048         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
1049         support.  Rearrange tmp reg use to suit.  Comment.
1050         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
1051
1052 2013-10-04  Alan Modra  <amodra@gmail.com>
1053
1054         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
1055
1056 2013-10-04  Alan Modra  <amodra@gmail.com>
1057
1058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
1059         conditional form of branch and link when obtaining pc.
1060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
1061
1062 2013-10-04  Alan Modra  <amodra@gmail.com>
1063
1064         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
1065         HIWORD/LOWORD.
1066         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
1067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
1068
1069 2013-10-04  Alan Modra  <amodra@gmail.com>
1070
1071         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
1072         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
1073         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
1074         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
1075         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
1076         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
1077         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
1078         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
1079         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
1080         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
1081
1082 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
1083             Alistair Popple <alistair@ozlabs.au.ibm.com>
1084             Alan Modra <amodra@gmail.com>
1085
1086         [BZ #15723]
1087         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
1088         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
1089         _dl_hwcap access for little-endian.
1090         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
1091         destroy vmx regs when saving unaligned.
1092         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
1093         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
1094         destroy vmx regs when saving unaligned.
1095
1096 2013-10-04  Alan Modra  <amodra@gmail.com>
1097
1098         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
1099         Don't use a union to pack hi/low value.
1100
1101 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
1102
1103         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
1104         for little-endian.
1105         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
1106         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
1107         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
1108         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
1109         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
1110
1111 2013-10-04  Alan Modra  <amodra@gmail.com>
1112
1113         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
1114         constants to usual value for .cst8 section, and remove redundant
1115         high address load.
1116         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
1117         constant for 0x1p52.  Load little-endian words of double from
1118         correct stack offsets.
1119
1120 2013-10-04  Alan Modra  <amodra@gmail.com>
1121
1122         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
1123         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
1124         words of double from correct stack offsets.
1125         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
1126         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
1127         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
1128         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
1129         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
1130         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
1131         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
1132         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
1133         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
1134         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
1135         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
1136         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
1137         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
1138         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
1139         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
1140         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
1141         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
1142
1143 2013-10-04  Alan Modra  <amodra@gmail.com>
1144
1145         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
1146         64-bit int/double union.
1147         (_FPU_SETCW): Likewise.
1148         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1149         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
1150
1151 2013-10-04  Alan Modra  <amodra@gmail.com>
1152
1153         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
1154         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
1155
1156 2013-10-04  Alan Modra  <amodra@gmail.com>
1157
1158         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
1159         use vector int constants.
1160         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
1161
1162 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
1163
1164         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
1165         array with long long.
1166         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
1167         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
1168         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
1169         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
1170         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
1171         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
1172         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
1173         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
1174         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
1175         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
1176         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
1177         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
1178         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
1179
1180 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
1181
1182         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
1183         (__signbit): Likewise.  Correct for little-endian.
1184         (__signbitl): Call __signbit.
1185         (lrint): Correct for little-endian.
1186         (lrintf): Call lrint.
1187
1188 2013-10-04  Alan Modra  <amodra@gmail.com>
1189
1190         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
1191         union 32-bit int array member with 64-bit int array.
1192         (t515, tm256): Double rather than long double.
1193         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
1194
1195 2013-10-04  Alan Modra  <amodra@gmail.com>
1196
1197         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
1198         Delete.
1199         (IEEE854_LONG_DOUBLE_BIAS): Delete.
1200         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
1201         version of math_ldbl.h.
1202
1203 2013-10-04  Alan Modra  <amodra@gmail.com>
1204
1205         [BZ #15734], [BZ #15735]
1206         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
1207         all uses of ieee875 long double macros and unions.  Simplify test
1208         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
1209         ldbl_extract_mantissa value for ix,iy exponents.  Properly
1210         normalize after ldbl_extract_mantissa, and don't add hidden bit
1211         already handled.  Don't treat low word of ieee854 mantissa like
1212         low word of IBM long double and mask off bit when testing for
1213         zero.
1214         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
1215         all uses of ieee875 long double macros and unions.  Simplify tests
1216         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
1217         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
1218         two1022, instead use their values.  Recognise that tests for large
1219         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
1220         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
1221         Rewrite all uses of ieee875 long double macros and unions.  Simplify
1222         test for 0.0L and nan.  Correct negation.
1223         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
1224         ieee875 long double macros and unions.  Correct output for large
1225         magnitude x.  Correct absolute value calculation.
1226         (__erfcl): Likewise.
1227         * math/libm-test.inc: Add tests for errors discovered in IBM long
1228         double versions of fmodl, remainderl, erfl and erfcl.
1229
1230 2013-10-04  Alan Modra  <amodra@gmail.com>
1231
1232         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
1233         all uses of ieee854 long double macros and unions.  Simplify tests
1234         for long doubles that are fully specified by the high double.
1235         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
1236         Likewise.
1237         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
1238         Remove dead code too.
1239         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1240         (__ieee754_ynl): Likewise.
1241         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
1242         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
1243         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
1244         Remove dead code too.
1245         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
1246         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
1247         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
1248         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
1249         Simplify.
1250         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
1251         Simplify.
1252         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
1253         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
1254         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
1255         Comment on variable precision.
1256         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
1257         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
1258         Likewise.
1259         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
1260         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
1261         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
1262         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
1263         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
1264
1265 2013-10-04  Alan Modra  <amodra@gmail.com>
1266
1267         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
1268         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
1269         all uses of ieee854 long double macros and unions.
1270         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
1271         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
1272         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
1273         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
1274         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
1275         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
1276         Likewise.
1277         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
1278         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
1279         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
1280         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
1281         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
1282         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
1283         Simplify sign and nan test too.
1284         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
1285         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
1286         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
1287         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
1288         Likewise.
1289         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
1290         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
1291         Likewise.
1292         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
1293         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
1294         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
1295         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
1296         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
1297         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
1298
1299 2013-10-04  Alan Modra  <amodra@gmail.com>
1300
1301         * stdio-common/printf_size.c (__printf_size): Don't use
1302         union ieee854_long_double in fpnum union.
1303         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
1304         signbit macro to retrieve sign from long double.
1305         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
1306         retrieve sign from long double.
1307         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
1308         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
1309         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
1310         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
1311         * math/test-misc.c (main): Don't use union ieee854_long_double.
1312
1313 2013-10-04  Alan Modra  <amodra@gmail.com>
1314
1315         [BZ #15680]
1316         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
1317         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
1318         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
1319         calculation.  Remove unnecessary test for denormal exponent.
1320         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
1321         Correct handling of denormals.  Avoid undefined shift behaviour.
1322         Correct normalisation of low mantissa when low double is denormal.
1323         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
1324         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
1325         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
1326         Correct normalisation of low mantissa.  Test for overflow of high
1327         mantissa and normalise.
1328         (ldbl_nearbyint): Use more readable constant for two52.
1329         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
1330         (__mpn_construct_long_double): Fix test for overflow of high
1331         mantissa and correct normalisation.  Avoid undefined shift.
1332
1333 2013-10-04  Alan Modra  <amodra@gmail.com>
1334
1335         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
1336         (union ibm_extended_long_double): Define as an array of ieee754_double.
1337         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
1338         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
1339         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
1340         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
1341         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
1342         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
1343         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
1344         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
1345         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
1346         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
1347         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1348
1349 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
1350
1351         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
1352         page size instead of calling getpagesize.
1353
1354         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
1355         (LOCFILE_ALIGN_MASK): Likewise.
1356         (LOCFILE_ALIGN_UP): Likewise.
1357         (LOCFILE_ALIGNED_P): Likewise.
1358         * locale/programs/ld-collate.c (collate_output): Use the new
1359         macros instead of __alignof__ (int32_t).
1360         * locale/weight.h (findidx): Likewise.
1361
1362 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
1363
1364         [BZ #431]
1365         * manual/string.texi: Fix strncat and wcsncat.
1366
1367 2013-10-03  Brooks Moses  <bmoses@google.com>
1368
1369         [BZ #15915]
1370         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
1371         * Makerules: ...here, and adjust associated comments.
1372
1373 2013-10-02  Will Newton  <will.newton@linaro.org>
1374
1375         * malloc/Makefile: Add tst-pvalloc.
1376         * malloc/tst-pvalloc.c: New file.
1377
1378 2013-10-02  Will Newton  <will.newton@linaro.org>
1379
1380         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
1381         improve test coverage.
1382
1383 2013-10-02  Will Newton  <will.newton@linaro.org>
1384
1385         * malloc/Makefile: Add tst-posix_memalign.
1386         * malloc/tst-posix_memalign.c: New file.
1387
1388 2013-10-01  Eric Blake  <eblake@redhat.com>
1389
1390         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
1391         Use __THROWNL rather than __THROW on static functions.
1392
1393 2013-09-30  Petr Machata  <pmachata@redhat.com>
1394
1395         * elf/elf.h (R_AARCH64_ABS16): New macro.
1396         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
1397         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
1398         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
1399         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
1400         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
1401         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
1402         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
1403         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
1404         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
1405         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
1406         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
1407         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
1408         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
1409         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
1410         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
1411         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
1412         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
1413         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
1414         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
1415         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
1416         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
1417         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
1418         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
1419         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
1420         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
1421         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
1422         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
1423         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
1424         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
1425         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
1426         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
1427         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
1428         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
1429         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
1430         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
1431         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
1432         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
1433         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
1434         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
1435         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
1436         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
1437         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
1438         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
1439         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
1440         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
1441         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
1442         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
1443         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
1444         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
1445         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
1446         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
1447         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
1448         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
1449         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
1450         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
1451         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
1452         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
1453         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
1454         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
1455         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
1456         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
1457         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
1458         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
1459         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
1460         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
1461         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
1462         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
1463         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
1464         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
1465         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
1466         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
1467         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
1468         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
1469         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
1470         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
1471         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
1472         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
1473         (R_AARCH64_TLSDESC_LDR): Likewise.
1474         (R_AARCH64_TLSDESC_ADD): Likewise.
1475         (R_AARCH64_TLSDESC_CALL): Likewise.
1476
1477 2013-09-30  Andreas Schwab  <schwab@suse.de>
1478
1479         [BZ #15048]
1480         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
1481         the nss database lookup.
1482         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1483         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1484
1485 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
1486
1487         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
1488
1489 2013-09-28  P. J. McDermott  <pj@pehjota.net>
1490
1491         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
1492         ${Bash-specific parameter/pattern/string} parameter expansion.
1493         * sysdeps/unix/make-syscalls.sh: Likewise.
1494
1495 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1496
1497         * sysdeps/sh/stackguard-macros.h: New file.
1498
1499 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
1500
1501         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
1502         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
1503         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
1504         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
1505         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1506         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
1507
1508 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1509
1510         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
1511         Fix thread ID register.
1512
1513 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
1514
1515         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
1516         [POSIX || UNIX98]: Require rather than permitting all symbols from
1517         <time.h>.
1518         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
1519         element of struct sched_param.
1520         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
1521         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
1522         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
1523         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
1524         constant.
1525
1526 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
1527
1528         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
1529         argument calculation.
1530
1531 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
1532
1533         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
1534         Expect macro.
1535         [POSIX] (pthread_attr_t): Do not require type.
1536         [POSIX] (pthread_cond_t): Likewise.
1537         [POSIX] (pthread_condattr_t): Likewise.
1538         [POSIX] (pthread_key_t): Likewise.
1539         [POSIX] (pthread_mutex_t): Likewise.
1540         [POSIX] (pthread_mutexattr_t): Likewise.
1541         [POSIX] (pthread_once_t): Likewise.
1542         [POSIX] (pthread_t): Likewise.
1543         [POSIX-based standards] (pthread_atfork): Expect function.
1544
1545 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
1546             Richard Sandiford  <richard@codesourcery.com>
1547
1548         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
1549         (swap_endianness_p): New extern variable.
1550         (set_big_endian): New inline function.
1551         (maybe_swap_uint32): Likewise.
1552         (maybe_swap_uint32_array): Likewise.
1553         (maybe_swap_uint32_obstack): Likewise.
1554         * locale/programs/locfile.c: Include <stdbool.h>.
1555         (swap_endianness_p): New variable.
1556         (add_locale_uint32): Call maybe_swap_uint32.
1557         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
1558         (write_locale_data): Call maybe_swap_uint32_array.
1559         * locale/programs/ld-collate.c (obstack_int32_grow): Call
1560         maybe_swap_uint32.
1561         (obstack_int32_grow_fast): Likewise.
1562         (output_weightwc): Call maybe_swap_uint32_obstack.
1563         (collate_output): Likewise.
1564         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
1565         (OPT_LITTLE_ENDIAN): Likewise.
1566         (options): Add --little-endian and --big-endian options.
1567         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
1568         * locale/programs/locarchive.c: Include "locfile.h".
1569         (GET): New macro.
1570         (SET): Likewise.
1571         (INC): Likewise.
1572         (create_archive): Use the new macros to access fields of
1573         structures directly mapped from or written to locale archives.
1574         (oldlocrecentcmp): Likewise.
1575         (enlarge_archive): Likewise.
1576         (insert_name): Likewise.
1577         (add_alias): Likewise.
1578         (add_locale): Likewise.
1579         (delete_locales_from_archive): Likewise.
1580         (show_archive_content): Likewise.
1581         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
1582         locale data.
1583
1584 2013-09-24  Roland McGrath  <roland@hack.frob.com>
1585
1586         * manual/freemanuals.texi: Updated from (newly) canonical copy at
1587         http://www.gnu.org/doc/freemanuals.texi.
1588         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
1589
1590 2013-09-24  Will Newton  <will.newton@linaro.org>
1591
1592         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
1593         macro.
1594
1595 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
1596
1597         * locale/hashval.h (compute_hashval): Interpret bytes of key as
1598         unsigned char.
1599
1600 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
1601
1602         * manual/threads.texi (POSIX Threads): Fix a typo.
1603
1604 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
1605
1606         [BZ #14547]
1607         * string/tst-strcoll-overflow.c: New test case.
1608         * string/Makefile (xtests): Add tst-strcoll-overflow.
1609         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
1610         cache if string sizes may cause integer overflow.
1611
1612         [BZ #14547]
1613         * string/strcoll_l.c (coll_seq): New members rule, idx,
1614         save_idx and back_us.
1615         (get_next_seq_nocache): New function.
1616         (do_compare_nocache): New function.
1617         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
1618         when malloc fails.
1619
1620 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
1621
1622         [BZ #15754]
1623         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
1624         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
1625         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
1626
1627         [BZ #15754]
1628         * elf/Makefile (tests): Add tst-ptrguard1.
1629         (tests-static): Add tst-ptrguard1-static.
1630         (tst-ptrguard1-ARGS): Define.
1631         (tst-ptrguard1-static-ARGS): Define.
1632         * elf/tst-ptrguard1.c: New file.
1633         * elf/tst-ptrguard1-static.c: New file.
1634         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
1635         * sysdeps/i386/stackguard-macros.h: Likewise.
1636         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
1637         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
1638         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
1639         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
1640         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
1641         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
1642
1643 2013-09-23  Hector Marco  <hecmargi@upv.es>
1644             Ismael Ripoll  <iripoll@disca.upv.es>
1645             Carlos O'Donell  <carlos@redhat.com>
1646
1647         [BZ #15754]
1648         * sysdeps/generic/stackguard-macros.h: Define
1649         __pointer_chk_guard_local and POINTER_CHK_GUARD.
1650         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
1651         Define __pointer_chk_guard_local.
1652         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
1653         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
1654
1655 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
1656
1657         [BZ #15859]
1658         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
1659
1660 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1661
1662         * include/string.h (__ffs): Declare as hidden.
1663         * string/ffs.c (__ffs): Define as hidden.
1664         * sysdeps/i386/ffs.c (__ffs): Likewise.
1665         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
1666         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
1667         * sysdeps/s390/ffs.c (__ffs): Likewise.
1668         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
1669
1670 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
1671
1672         * NEWS: Mention malloc probes.
1673
1674         * malloc/arena.c (new_heap): New memory_heap_new probe.
1675         (grow_heap): New memory_heap_more probe.
1676         (shrink_heap): New memory_heap_less probe.
1677         (heap_trim): New memory_heap_free probe.
1678         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
1679         (systrim): New memory_sbrk_less probe.
1680         * manual/probes.texi: Document them.
1681
1682         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
1683         * manual/probes.texi: Document it.
1684
1685         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
1686         (__libc_realloc): Add memory_realloc_retry probe.
1687         (__libc_memalign): Add memory_memalign_retry probe.
1688         (__libc_valloc): Add memory_valloc_retry probe.
1689         (__libc_pvalloc): Add memory_pvalloc_retry probe.
1690         (__libc_calloc): Add memory_calloc_retry probe.
1691         * manual/probes.texi: Document them.
1692
1693         * malloc/arena.c (get_free_list): Add probe
1694         memory_arena_reuse_free_list.
1695         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
1696         and memory_arena_reuse.
1697         (arena_get2) [!PER_THREAD]: Likewise.
1698         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
1699         memory_arena_reuse_realloc.
1700         * manual/probes.texi: Document them.
1701
1702         * malloc/malloc.c (__libc_free): Add
1703         memory_mallopt_free_dyn_thresholds probe.
1704         (__libc_mallopt): Add multiple memory_mallopt probes.
1705         * manual/probes.texi: Document them.
1706
1707         * malloc/malloc.c: Include stap-probe.h.
1708         (__libc_mallopt): Add memory_mallopt probe.
1709         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
1710         * manual/probes.texi: New.
1711         * manual/Makefile (chapters): Add probes.
1712         * manual/threads.texi: Set next node.
1713
1714 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
1715
1716         [BZ #15963, #13985]
1717         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
1718         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
1719         Add `Chinese' to `nan' entry name.
1720
1721 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1722
1723         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
1724         (POLYNOMIAL): Likewise.
1725         (TAYLOR_SINCOS): Likewise.
1726         (TAYLOR_SLOW): Likewise.
1727         (__sin): Use TAYLOR_SINCOS.
1728         (__cos): Likewise.
1729         (slow): Use TAYLOR_SLOW.
1730         (sloww): Likewise.
1731         (bsloww): Likewise.
1732         (csloww): Likewise.
1733
1734 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
1735
1736         * stdlib/strtod_l.c: Fix buffer overrun.
1737
1738 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1739
1740         * benchtests/Makefile (bench): Add sincos.
1741         * benchtests/bench-sincos.c: New file.
1742
1743         * math/libm-test.inc (cos_test_data): New test inputs.
1744         (sin_test_data): Likewise.
1745
1746         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
1747         macro.
1748         (__sin): Use it.
1749         (__cos): Likewise.
1750         (slow1): Likewise.
1751         (slow2): Likewise.
1752         (sloww1): Likewise.
1753         (sloww2): Likewise.
1754         (bsloww1): Likewise.
1755         (bsloww2): Likewise.
1756         (cslow2): Likewise.
1757         (csloww1): Likewise.
1758         (csloww2): Likewise.
1759
1760         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
1761         function.
1762         (__sin): Use it.
1763         (__cos): Likewise.
1764
1765         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
1766         gotos.
1767         (__cos): Likewise.
1768
1769 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
1770
1771         * config.h.in (HAVE_MIPS_NAN2008): New macro.
1772         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
1773         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
1774         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
1775         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
1776         * elf/cache.c (print_entry): Handle the new cache flags.
1777
1778 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
1779             Aldy Hernandez  <aldyh@redhat.com>
1780
1781         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
1782         Change condition to [_SOFT_FLOAT].
1783         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
1784         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
1785         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
1786         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
1787         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
1788         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
1789         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
1790         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
1791         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
1792         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
1793         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
1794         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
1795         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
1796         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
1797         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
1798         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
1799         declaration.
1800
1801 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
1802
1803         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
1804         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
1805         (__longjmp): Use LOAD_GP to load saved GPRs.
1806         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
1807         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
1808         (__sigsetjmp): Use SAVE_GP to save GPRs.
1809
1810         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
1811         Do not append -msoft-float.
1812         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
1813
1814 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1815
1816         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
1817
1818 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
1819
1820         [BZ #15966]
1821         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
1822         (_FPU_GETCW): Use initial "__" on variable and field names but not
1823         on macro parameter name.
1824         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
1825         parentheses around reference to macro parameter.
1826
1827 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
1828
1829         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
1830         prototype.
1831         (ctype_startup): Use uint32_t in cast and sizeof for
1832         ctype->charnames.
1833
1834 2013-09-11  Jia Liu  <proljc@gmail.com>
1835
1836         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
1837         __daddr_t_defined.
1838         [__FreeBSD__]: Likewise.
1839
1840 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
1841
1842         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1843         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
1844         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
1845         (strchr): Remove __strchr_sse42 ifunc selection.
1846         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
1847         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
1848
1849 2013-09-11  Will Newton  <will.newton@linaro.org>
1850
1851         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
1852         parameter to RES. Remove hardcoded 1000 value.
1853         * benchtests/bench-skeleton.c (main): Pass RES parameter
1854         to TIMING_INIT and multiply result by 1000.
1855
1856 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1857
1858         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1859
1860 2013-09-11  Andreas Schwab  <schwab@suse.de>
1861
1862         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
1863         if not defined.
1864         (O_TMPFILE) [__USE_GNU]: Define.
1865         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
1866         Define.
1867
1868 2013-09-11  Will Newton  <will.newton@linaro.org>
1869
1870         [BZ #15857]
1871         * malloc/malloc.c (__libc_memalign): Check the value of bytes
1872         does not overflow.
1873
1874 2013-09-11  Will Newton  <will.newton@linaro.org>
1875
1876         [BZ #15856]
1877         * malloc/malloc.c (__libc_valloc): Check the value of bytes
1878         does not overflow.
1879
1880 2013-09-11  Will Newton  <will.newton@linaro.org>
1881
1882         [BZ #15855]
1883         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
1884         does not overflow.
1885
1886 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
1887
1888         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
1889         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
1890         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
1891         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
1892         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
1893
1894 2013-09-10  Allan McRae  <allan@archlinux.org>
1895
1896         [BZ #15748]
1897         * manual/arith.texi (Parsing of Floats): Clarify
1898         cross-reference.
1899
1900         [BZ #15849]
1901         * manual/install.texi (Running make install): Mention
1902         --enable-pt-chown.
1903         * INSTALL: Regenerated.
1904
1905 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
1906
1907         * csu/init-first.c (_init): Remove the !SHARED condition around
1908         FPU control word initialization.
1909         * elf/dl-support.c (_dl_fpu_control): New variable.
1910         (_dl_aux_init) <AT_FPUCW>: Initialize it.
1911         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
1912         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
1913         * math/test-fpucw-static.c: New file.
1914         * math/test-fpucw-ieee.c: New file.
1915         * math/test-fpucw-ieee-static.c: New file.
1916         * math/Makefile (tests): Add `test-fpucw-ieee' and
1917         `$(tests-static)'.
1918         (tests-static): New variable.
1919         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
1920         dependency to...
1921         [($(build-shared),yes)]
1922         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
1923         ... this.
1924         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
1925         New dependency.
1926
1927 2013-09-09  Allan McRae  <allan@archlinux.org>
1928
1929         [BZ #15939]
1930         * manual/string.texi (Collation Functions): Fix typo in
1931         strcoll example.
1932         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
1933
1934         [BZ #15893]
1935         * stdlib/isomac.c (get_null_defines): Fix memory leak.
1936
1937         [BZ #15892]
1938         * libio/memstream.c (open_memstream): Fix memory leak.
1939         * libio/wmemstream.c (open_wmemstream): Likewise.
1940
1941         [BZ #15895]
1942         * nscd/netgroupcache.c: Fix nesting of ifdefs.
1943
1944 2013-09-09  Will Newton  <will.newton@linaro.org>
1945
1946         * malloc/Makefile: Add tst-realloc to tests.
1947         * malloc/tst-realloc.c: New file.
1948
1949 2013-09-09  Allan McRae  <allan@archlinux.org>
1950
1951         [BZ #15844]
1952         * COPYING: Update from GNU website to fix FSF address.
1953         * COPYING.LIB: Likewise.
1954
1955 2013-09-06  David S. Miller  <davem@davemloft.net>
1956
1957         * po/zh_TW.po: Update Chinese (traditional) translation from
1958         translation project.
1959
1960 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
1961             Joseph Myers  <joseph@codesourcery.com>
1962
1963         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
1964         "localeinfo.h".
1965         (obstack_chunk_alloc): New macro.
1966         (obstack_chunk_free): Likewise.
1967         (record_offset): New function.
1968         (init_locale_data): Likewise.
1969         (align_locale_data): Likewise.
1970         (add_locale_empty): Likewise.
1971         (add_locale_raw_data): Likewise.
1972         (add_locale_raw_obstack): Likewise.
1973         (add_locale_string): Likewise.
1974         (add_locale_wstring): Likewise.
1975         (add_locale_uint32): Likewise.
1976         (add_locale_uint32_array): Likewise.
1977         (add_locale_char): Likewise.
1978         (start_locale_structure): Likewise.
1979         (end_locale_structure): Likewise.
1980         (start_locale_prelude): Likewise.
1981         (end_locale_prelude): Likewise.
1982         (write_locale_data): Take locale_file structure rather than an
1983         iovec.
1984         * locale/programs/locfile.h: Include "obstack.h".
1985         (struct locale_file): Change to store locale file contents instead
1986         of header.
1987         (init_locale_data): New prototype.
1988         (align_locale_data): Likewise.
1989         (add_locale_empty): Likewise.
1990         (add_locale_raw_data): Likewise.
1991         (add_locale_raw_obstack): Likewise.
1992         (add_locale_string): Likewise.
1993         (add_locale_wstring): Likewise.
1994         (add_locale_uint32): Likewise.
1995         (add_locale_uint32_array): Likewise.
1996         (add_locale_char): Likewise.
1997         (start_locale_structure): Likewise.
1998         (end_locale_structure): Likewise.
1999         (start_locale_prelude): Likewise.
2000         (end_locale_prelude): Likewise.
2001         (write_locale_data): Update prototype.
2002         * locale/programs/3level.h (struct TABLE): Remove result field.
2003         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
2004         Use new locale_file interface.
2005         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
2006         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
2007         * locale/programs/ld-address.c (address_output): Use new
2008         locale_file interface.
2009         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
2010         NO_ADD_LOCALE.
2011         (collate_finish): Don't call collseq_table_finalize.
2012         (collate_output): Use new locale_file interface.
2013         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
2014         in file.
2015         (NO_FINALIZE): Change to NO_ADD_LOCALE.
2016         (TABLE): Move defines earlier in file.
2017         (ELEMENT): Likewise.
2018         (DEFAULT): Likewise.
2019         (wctrans_table_add): Move macro and inline function earlier in
2020         file.
2021         (struct wctype_table): Move type earlier in file.
2022         (add_locale_wctype_table): New static prototype.
2023         (struct locale_ctype_t): Use logical types instead of struct iovec
2024         pointers for members.
2025         (ctype_output): Use new locale_file interface.
2026         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
2027         new locale_file interface.
2028         (allocate_arrays): Update for use of new locale_file interface.
2029         * locale/programs/ld-identification.c (identification_output): Use
2030         new locale_file interface.
2031         * locale/programs/ld-measurement.c (measurement_output): Likewise.
2032         * locale/programs/ld-messages.c (messages_output): Likewise.
2033         * locale/programs/ld-monetary.c (monetary_output): Likewise.
2034         * locale/programs/ld-name.c (name_output): Likewise.
2035         * locale/programs/ld-numeric.c (numeric_output): Likewise.
2036         * locale/programs/ld-paper.c (paper_output): Likewise.
2037         * locale/programs/ld-telephone.c (telephone_output): Likewise.
2038         * locale/programs/ld-time.c (time_output): Likewise.
2039
2040 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2041
2042         * benchtests/Makefile: Add memrchr benchmark.
2043         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
2044         benchmark as memrchr.
2045         * benchtests/bench-memrchr-ifunc.c: New file.
2046         * benchtests/bench-memrchr.c: New file.
2047
2048 2013-09-06   Will Newton  <will.newton@linaro.org>
2049
2050         * benchtests/Makefile (string-bench): Add memcpy.
2051
2052 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
2053             Cong Wang  <amwang@redhat.com>
2054
2055         * sysdeps/unix/sysv/linux/bits/in.h
2056         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
2057         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
2058         before __USE_KERNEL_IPV6_DEFS uses.
2059         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
2060         IPPROTO_BEETPH.
2061         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
2062         sockaddr_in6, or ipv6_mreq.
2063
2064 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2065
2066         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
2067         memory access for final bytes in some large inputs.
2068         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
2069
2070 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2071
2072         * string/test-memrchr.c: New file.
2073         * string/test-memrchr-ifunc.c: New file.
2074         * string/Makefile: Add new memrchr testcase.
2075
2076 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
2077
2078         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
2079         fanotify_init returns EPERM.
2080
2081 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
2082
2083         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
2084         errors.
2085         (top level): Treat second token from macro or constant entries for
2086         allowed headers as allowed.
2087         * include/complex.h: Condition internal declarations on
2088         [!_ISOMAC].
2089         * include/fenv.h: Condition include of <stdbool.h> and internal
2090         declarations on [!_ISOMAC].
2091
2092 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
2093
2094         [BZ #15923]
2095         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
2096
2097 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
2098
2099         * configure.in (--enable-versioning): Remove configure option.
2100         (libc_cv_asm_symver_directive): Remove configure test.
2101         (libc_cv_ld_version_script_option): Likewise.
2102         (VERSIONING): Remove variable and AC_SUBST.
2103         (DO_VERSIONING): Remove AC_DEFINE.
2104         * configure: Regenerated.
2105         * config.h.in (DO_VERSIONING): Remove macro.
2106         * Makerules [$(versioning) = yes]: Change conditionals to
2107         [$(build-shared) = yes].
2108         * config.make.in (versioning): Remove variable.
2109         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
2110         [$(build-shared) = yes].
2111         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
2112         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
2113         * elf/Makefile [$(versioning) = yes]: Change conditionals to
2114         [$(build-shared) = yes].
2115         * extra-lib.mk [$(versioning) = yes]: Likewise.
2116         * hurd/Makefile [$(versioning) = yes]: Likewise.
2117         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
2118         [SHARED].
2119         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
2120         [SHARED].
2121         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
2122         [SHARED && !NO_HIDDEN].
2123         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
2124         [SHARED].
2125         [SHARED && DO_VERSIONING]: Likewise..
2126         * libio/Makefile [$(versioning) = yes]: Change conditionals to
2127         [$(build-shared) = yes].
2128         * manual/install.texi (--disable-versioning): Remove
2129         documentation.
2130         * INSTALL: Regenerated.
2131         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
2132         to [SHARED].
2133         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
2134         [$(build-shared) = yes].
2135         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
2136         * sysdeps/i386/i686/multiarch/strstr-c.c
2137         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
2138         [SHARED && !NO_HIDDEN].
2139         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
2140         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
2141         * sysdeps/powerpc/powerpc32/dl-machine.c
2142         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
2143         * sysdeps/powerpc/powerpc32/sysdep.h
2144         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
2145         to [SHARED && PIC && !NO_HIDDEN].
2146         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
2147         conditional to [SHARED].
2148
2149 2013-09-04   Will Newton  <will.newton@linaro.org>
2150
2151         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
2152         * benchtests/bench-string.h: Include bench-timing.h instead
2153         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
2154         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
2155         call to HP_TIMING_DIFF_INIT.
2156         * benchtests/bench-memccpy.c: Use bench-timing.h macros
2157         instead of hp-timing.h macros.
2158         * benchtests/bench-memchr.c: Likewise.
2159         * benchtests/bench-memcmp.c: Likewise.
2160         * benchtests/bench-memcpy.c: Likewise.
2161         * benchtests/bench-memmem.c: Likewise.
2162         * benchtests/bench-memmove.c: Likewise.
2163         * benchtests/bench-memset.c: Likewise.
2164         * benchtests/bench-rawmemchr.c: Likewise.
2165         * benchtests/bench-strcasecmp.c: Likewise.
2166         * benchtests/bench-strcasestr.c: Likewise.
2167         * benchtests/bench-strcat.c: Likewise.
2168         * benchtests/bench-strchr.c: Likewise.
2169         * benchtests/bench-strcmp.c: Likewise.
2170         * benchtests/bench-strcpy.c: Likewise.
2171         * benchtests/bench-strcpy_chk.c: Likewise.
2172         * benchtests/bench-strlen.c: Likewise.
2173         * benchtests/bench-strncasecmp.c: Likewise.
2174         * benchtests/bench-strncat.c: Likewise.
2175         * benchtests/bench-strncmp.c: Likewise.
2176         * benchtests/bench-strncpy.c: Likewise.
2177         * benchtests/bench-strnlen.c: Likewise.
2178         * benchtests/bench-strpbrk.c: Likewise.
2179         * benchtests/bench-strrchr.c: Likewise.
2180         * benchtests/bench-strspn.c: Likewise.
2181         * benchtests/bench-strstr.c: Likewise.
2182
2183 2013-09-04  Will Newton  <will.newton@linaro.org>
2184
2185         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
2186
2187 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
2188
2189         [BZ #15427]
2190         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
2191         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
2192         * math/libm-test.inc (lgamma_test_data): Add more tests.
2193         * sysdeps/i386/fpu/libm-test-ulps: Update.
2194         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2195
2196 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
2197
2198         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
2199         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2200         Add ifunc.
2201         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
2202         Add strcmp-sse2-unaligned
2203         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
2204
2205 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
2206
2207         * Versions.def (libc): Add GLIBC_2.19.
2208
2209 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
2210
2211         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
2212         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
2213
2214 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
2215
2216         [BZ #14155]
2217         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
2218         intermediate calculations in recurrence.
2219         (__ieee754_ynf): Likewise.
2220         * math/libm-test.inc (jn_test_data): Do not allow spurious
2221         underflow exception.  Add more tests.
2222         (yn_test_data): Add more tests.
2223         * sysdeps/i386/fpu/libm-test-ulps: Update.
2224         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2225
2226 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
2227
2228         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
2229
2230 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
2231
2232         * csu/init-first.c: Fix then/than typos.
2233         * locale/programs/ld-collate.c: Likewise.
2234         * locale/programs/linereader.h: Likewise.
2235         * manual/charset.texi: Likewise.
2236         * manual/filesys.texi: Likewise.
2237         * manual/stdio.texi: Likewise.
2238         * manual/string.texi: Likewise.
2239         * stdlib/fmtmsg.c: Likewise.
2240         * sysdeps/i386/stpncpy.S: Likewise.
2241         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
2242         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
2243         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
2244         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
2245
2246 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
2247
2248         * elf/dl-open.c: Fix typos.
2249         * iconvdata/gbbig5.c: Likewise.
2250         * iconvdata/iso-2022-jp.c: Likewise.
2251         * iconv/gconv_int.h: Likewise.
2252         * iconv/loop.c: Likewise.
2253         * nis/rpcsvc/nis.h: Likewise.
2254         * resolv/ns_name.c: Likewise.
2255         * stdio-common/vfscanf.c: Likewise.
2256         * streams/stropts.h: Likewise.
2257         * sunrpc/rpc_thread.c: Likewise.
2258         * sysdeps/i386/strpbrk.S: Likewise.
2259         * sysdeps/ieee754/k_standard.c: Likewise.
2260         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
2261         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
2262         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2263         * sysdeps/mach/hurd/profil.c: Likewise.
2264         * sysdeps/s390/dl-procinfo.h: Likewise.
2265         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
2266         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
2267         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
2268         * sysdeps/x86_64/dl-trampoline.S: Likewise.
2269         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
2270
2271 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
2272
2273         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
2274         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
2275
2276 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
2277
2278         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
2279         aix specific files.
2280         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
2281         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
2282         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
2283         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
2284         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
2285         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
2286         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
2287         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
2288
2289 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
2290             Roland McGrath  <roland@hack.frob.com>
2291
2292         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
2293         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
2294
2295 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2296
2297         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
2298         __executable_start symbol instead of _start.
2299
2300 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
2301
2302         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
2303         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
2304         Move macros to...
2305         * sysdeps/gnu/ldsodefs.h: ... this new file.
2306
2307         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
2308         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
2309         instead of ELFOSABI_LINUX.
2310
2311         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
2312         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
2313         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
2314         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
2315         Likewise.
2316         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
2317         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
2318         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
2319         Likewise.
2320         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
2321         (ibm_extended_long_double): Add ieee_nan member.
2322         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
2323         (do_test): New function.
2324
2325         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
2326         TEST_TRUNC.
2327         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
2328         functions, renamed from truncdfsf_test, trunctfsf_test,
2329         trunctfdf_test.
2330         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
2331         functions.
2332         (do_test): Run all these.
2333
2334 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
2335
2336         * argp/argp-help.c: Fix typos.
2337         * argp/argp-parse.c: Likewise.
2338         * debug/backtracesyms.c: Likewise.
2339         * elf/elf.h: Likewise.
2340         * malloc/malloc.c: Likewise.
2341         * nis/nis_print.c: Likewise.
2342         * resolv/res_comp.c: Likewise.
2343         * stdlib/stdlib.h: Likewise.
2344         * sunrpc/clnt_tcp.c: Likewise.
2345         * sunrpc/clnt_udp.c: Likewise.
2346         * sunrpc/clnt_unix.c: Likewise.
2347         * sysdeps/unix/bsd/ptsname.c: Likewise.
2348         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
2349         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
2350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
2351         Likewise.
2352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2353         Likewise.
2354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2355         Likewise.
2356         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
2357
2358 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2359
2360         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
2361         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
2362
2363 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
2364
2365         [BZ #15897]
2366         * dlfcn/Makefile (tests): Add bug-dl-leaf.
2367         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
2368         ($(objpfx)bug-dl-leaf): New rule.
2369         ($(objpfx)bug-dl-leaf.so): Likewise.
2370         ($(objpfx)bug-dl-leaf.out): Likewise.
2371         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
2372         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
2373         * dlfcn/bug-dl-leaf.c: New test.
2374         * dlfcn/bug-dl-leaf-lib.c: Likewise.
2375         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
2376         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
2377         (dlclose): Likewise.
2378         (dlmopen): Likewise.
2379
2380 2013-08-27  Roland McGrath  <roland@hack.frob.com>
2381
2382         * include/netdb.h [!_ISOMAC]:
2383         Don't include <tls.h>.
2384         (h_errno, __libc_h_errno): Move declaration and macros out of
2385         [_LIBC_REENTRANT].
2386
2387         * include/resolv.h [_RESOLV_H_]:
2388         Don't include <tls.h>.
2389         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
2390         * resolv/res_libc.c: Don't include <tls.h>.
2391         (_res): Use __attribute__ ((nocommon)) in place of
2392         __attribute__ ((section (".bss"))).
2393
2394         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
2395         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
2396
2397         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
2398
2399         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
2400         only under [SIOCGIFCONF && SIOCGIFNETMASK].
2401
2402         * resolv/res_mkquery.c: Include <sys/time.h>.
2403
2404         * inet/ifreq.c: Moved to ...
2405         * sysdeps/unix/ifreq.c: ... here.
2406         * inet/ifreq.c: New file, true stub version.
2407
2408         * socket/sa_len.c: New file.
2409         * socket/Makefile (aux): Add it.
2410         * sysdeps/unix/sysv/linux/Makefile
2411         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
2412         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
2413         and #include <socket/sa_len.c>.
2414         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
2415         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
2416
2417         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
2418         * bits/socket.h: ... here.
2419
2420         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
2421         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
2422         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
2423
2424 2013-08-27  Andreas Schwab  <schwab@suse.de>
2425
2426         [BZ #15736]
2427         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
2428         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
2429         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
2430         * string/test-strcasecmp.c (test_main): Run tests in several
2431         locales.
2432         * string/test-strncasecmp.c (test_main): Likewise.
2433
2434         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
2435         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
2436         to __strcasecmp_nonascii and __strncasecmp_nonascii.
2437         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
2438         (__strncasecmp_ssse3) [PIC]: Likewise.
2439
2440 2013-08-26  Roland McGrath  <roland@hack.frob.com>
2441
2442         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
2443
2444         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
2445         instead of explicitly declaring xdecrypt.
2446         * nis/nss_nis/nis-publickey.c: Likewise.
2447
2448 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2449
2450         [BZ #15890]
2451         * nscd/aicache.c: Include res_hconf.h.
2452         (addhstaiX): Initialize res_hconf.
2453
2454 2013-08-26  Andreas Schwab  <schwab@suse.de>
2455
2456         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
2457         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
2458
2459 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2460
2461         * nscd/aicache.c (addhstaiX): Fix indentation.
2462
2463 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
2464
2465         * configure.ac: Quote $build_pt_chown test.
2466         * configure: Regenerated.
2467
2468 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
2469
2470         [BZ #15532]
2471         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
2472         * math/s_cexpf.c (__cexpf): Likewise.
2473         * math/s_cexpl.c (__cexpl): Likewise.
2474         * math/libm-test.inc (cexp_test_data): Correct expected return
2475         value for NaN + i0.  Add another test.
2476
2477 2013-08-22  David S. Miller  <davem@davemloft.net>
2478
2479         * po/ca.po: Update Catalan translation from translation project.
2480         * po/uk.po: Add Ukrainian translations from translation project.
2481
2482 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
2483
2484         [BZ #15797]
2485         * math/s_fdim.c (__fdim): Check for infinite arguments if result
2486         is infinite, not alongside NaN test.
2487         * math/s_fdimf.c (__fdimf): Likewise.
2488         * math/s_fdiml.c (__fdiml): Likewise.
2489         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
2490         errno is unchanged.
2491
2492 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
2493
2494         * argp/argp-help.c: Fix typos.
2495         * crypt/speeds.c: Likewise.
2496         * csu/check_fds.c: Likewise.
2497         * elf/dl-load.c: Likewise.
2498         * elf/dl-open.c: Likewise.
2499         * elf/reldep3.c: Likewise.
2500         * elf/reldep.c: Likewise.
2501         * elf/sprof.c: Likewise.
2502         * iconv/iconv_charmap.c: Likewise.
2503         * iconv/skeleton.c: Likewise.
2504         * iconv/strtab.c: Likewise.
2505         * io/lockf64.c: Likewise.
2506         * libio/libioP.h: Likewise.
2507         * resolv/gai_notify.c: Likewise.
2508         * resolv/ns_name.c: Likewise.
2509         * resolv/ns_samedomain.c: Likewise.
2510         * resolv/res_send.c: Likewise.
2511         * stdlib/random.c: Likewise.
2512         * sunrpc/rpc/xdr.h: Likewise.
2513         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
2514         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
2515         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
2516         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
2517         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
2518         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
2519         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
2520         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
2521         * sysdeps/mach/hurd/check_fds.c: Likewise.
2522         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
2523         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
2524         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
2525         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
2526         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
2527         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
2528         * sysdeps/pthread/aio_notify.c: Likewise.
2529         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
2530         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
2531         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
2532         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
2533         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
2534
2535 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2536
2537         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
2538         version if bit_Slow_SSE4_2 is set.
2539         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2540         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2541
2542 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2543
2544         [BZ #15867]
2545         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
2546         trampoline stack frame information.
2547         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
2548         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
2549         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
2550         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
2551         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
2552         * sysdeps/unix/sysv/linux/powerpc/init-first.c
2553         (_libc_vdso_platform_setup): Initialize the signal trampolines.
2554         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
2555         sa_flags value.
2556         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
2557         interrupting a syscall and set with option SA_SIGINFO.
2558
2559 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
2560
2561         [BZ #15531]
2562         * math/s_cproj.c (__cproj): Only return an infinity if one part of
2563         argument is infinite.
2564         * math/s_cprojf.c (__cprojf): Likewise.
2565         * math/s_cprojl.c (__cprojl): Likewise.
2566         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
2567         * math/libm-test.inc (cproj_test_data): Add more tests.
2568
2569         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
2570
2571         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
2572         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
2573         size.  Use __ffs to determine corresponding shift.
2574
2575 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
2576             Roland McGrath  <roland@hack.frob.com>
2577
2578         * Makefile (INSTALL): Remove trailing blank lines from output of
2579         makeinfo.
2580
2581 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2582
2583         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
2584         Align 32 bit compat elf_greg to 8 bytes.
2585
2586 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2587
2588         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
2589
2590 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2591
2592         * string/strcoll_l.c (coll_seq): New structure.
2593         (get_next_seq_cached): New function.
2594         (get_next_seq): New function.
2595         (do_compare): New function.
2596         (STRCOLL): Use GNU style definition.  Simplify implementation
2597         by using get_next_seq, get_next_seq_cached and do_compare.
2598
2599 2013-08-16  Florian Weimer  <fweimer@redhat.com>
2600
2601         [BZ #14699]
2602         CVE-2013-4237
2603         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
2604         member.
2605         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
2606         member.
2607         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
2608         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
2609         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
2610         conditional.
2611         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
2612         GETDENTS_64BIT_ALIGNED.
2613         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2614         * manual/filesys.texi (Reading/Closing Directory): Document
2615         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
2616         strongly.
2617         * manual/conf.texi (Limits for Files): Add portability note to
2618         NAME_MAX, PATH_MAX.
2619         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
2620
2621 2013-08-13  Andreas Schwab  <schwab@suse.de>
2622
2623         [BZ #15749]
2624         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
2625         of fabs.
2626         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
2627         LDBL_MAX_EXP >= 16384]: Add tests for it.
2628
2629 2013-08-12  David S. Miller  <davem@davemloft.net>
2630
2631         * version.h (RELEASE): Set to "development".
2632         (VERSION): Set to "2.18.90".
2633         * NEWS: Add 2.19 section.
2634
2635 2013-08-03  David S. Miller  <davem@davemloft.net>
2636
2637         * po/ko.po: Update Korean translation from translation project.
2638
2639 2013-08-01  David S. Miller  <davem@davemloft.net>
2640
2641         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
2642         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
2643         Bilka.
2644
2645 2013-07-30  David S. Miller  <davem@davemloft.net>
2646
2647         * po/fr.po: Update French translation from translation project.
2648
2649 2013-07-28  David S. Miller  <davem@davemloft.net>
2650
2651         * po/cs.po: Update Czech translation from translation project.
2652
2653         * po/sv.po: Update Swedish translation from translation project.
2654
2655 2013-07-27  David S. Miller  <davem@davemloft.net>
2656
2657         * po/eo.po: Update Esperanto translation from translation project.
2658
2659         * po/vi.po: Update Vietnamese translation from translation project.
2660
2661         * po/de.po: Update German translation from translation project.
2662
2663 2013-07-26  David S. Miller  <davem@davemloft.net>
2664
2665         * po/bg.po: Update Bulgarian translation from translation project.
2666
2667         * po/nl.po: Update Dutch translation from translation project.
2668         * po/pl.po: Update Polish translation from translation project.
2669         * po/ru.po: Update Russian translation from translation project.
2670
2671 2013-07-24  David S. Miller  <davem@davemloft.net>
2672
2673         * po/libc.pot: Update.
2674
2675 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2676
2677         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
2678         variable page size.
2679         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
2680         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
2681         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
2682
2683 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2684
2685         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
2686
2687 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2688             Andreas Schwab  <schwab@suse.de>
2689             Roland McGrath  <roland@hack.frob.com>
2690             Joseph Myers  <joseph@codesourcery.com>
2691             Carlos O'Donell  <carlos@redhat.com>
2692
2693         [BZ #15755]
2694         * config.h.in: Define HAVE_PT_CHOWN.
2695         * config.make.in (build-pt-chown): New variable.
2696         * configure.in (--enable-pt_chown): New configure option.
2697         * configure: Regenerate.
2698         * login/Makefile: Include Makeconfig.  Build pt_chown only if
2699         build-pt-chown is enabled.
2700         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
2701         pt_chown to fix pty ownership.
2702         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
2703         CLOSE_ALL_FDS.
2704         * manual/install.texi (Configuring and compiling): Mention
2705         --enable-pt_chown. Add @findex for grantpt.
2706         * INSTALL: Regenerate.
2707
2708 2013-07-20  David S. Miller  <davem@davemloft.net>
2709
2710         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
2711         difference between 32-bit and 64-bit.
2712
2713 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
2714
2715         [BZ #15711]
2716         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
2717         Avoid system header dependency with -ffreestanding.
2718         ($(objpfx)bits/syscall%d): Likewise.
2719
2720 2013-07-13  David S. Miller  <davem@davemloft.net>
2721
2722         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
2723         underflows from atanl/atan2l due to bug 15319.
2724         (casinh_test_data): Likewise.
2725
2726 2013-07-07  David S. Miller  <davem@davemloft.net>
2727
2728         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
2729
2730 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
2731
2732         * sysdeps/i386/fpu/libm-test-ulps: Update.
2733         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2734
2735 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2736
2737         * configure.in (--enable-lock-elision): Fix message text.
2738         * INSTALL: Regenerate.
2739         * configure: Regenerate.
2740
2741 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2742
2743         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2744
2745 2013-07-03  Andreas Jaeger  <aj@suse.de>
2746
2747         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
2748         define.
2749         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
2750         (ptrace_peeksiginfo_args): Add.
2751         (__ptrace_peeksiginfo_flags): Add.
2752         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2753         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2754         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2755
2756 2013-07-03  Allan McRae  <allan@archlinux.org>
2757
2758         * sysdeps/i386/fpu/libm-test-ulps: Update.
2759
2760 2013-07-02  David S. Miller  <davem@davemloft.net>
2761
2762         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2763
2764 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
2765
2766         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2767
2768 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
2769
2770         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2771         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2772
2773 2013-07-02  Andi Kleen <ak@linux.intel.com>
2774
2775         * config.h.in (ENABLE_LOCK_ELISION): Add.
2776         * configure.in (--enable-lock-elision): Add option.
2777         * manual/install.texi: Document --enable lock elision.
2778         * configure: Regenerate
2779         * INSTALL: Regenerate.
2780
2781 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2782
2783         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
2784         SSE4.2 strcasecmp for libc.a.
2785         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
2786
2787 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
2788
2789         [BZ #13304]
2790         * soft-fp/op-common.h (_FP_FMA): New macro.
2791         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
2792         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
2793         (_FP_MUL_MEAT_1_imm): ... here.
2794         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
2795         (_FP_MUL_MEAT_1_wide): ... here.
2796         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
2797         (_FP_MUL_MEAT_1_hard): ... here.
2798         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
2799         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
2800         (_FP_MUL_MEAT_2_wide): ... here.
2801         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
2802         (_FP_MUL_MEAT_2_wide_3mul): ... here.
2803         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
2804         (_FP_MUL_MEAT_2_gmp): ... here.
2805         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
2806         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
2807         (_FP_MUL_MEAT_4_wide): ... here.
2808         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
2809         (_FP_MUL_MEAT_4_gmp): ... here.
2810         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
2811         (_FP_WFRACBITS_DW_S): Likewise.
2812         (_FP_WFRACXBITS_DW_S): Likewise.
2813         (_FP_HIGHBIT_DW_S): Likewise.
2814         (FP_FMA_S): Likewise.
2815         (_FP_FRAC_HIGH_DW_S): Likewise.
2816         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
2817         (_FP_WFRACBITS_DW_D): Likewise.
2818         (_FP_WFRACXBITS_DW_D): Likewise.
2819         (_FP_HIGHBIT_DW_D): Likewise.
2820         (FP_FMA_D): Likewise.
2821         (_FP_FRAC_HIGH_DW_D): Likewise.
2822         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
2823         (_FP_WFRACBITS_DW_E): Likewise.
2824         (_FP_WFRACXBITS_DW_E): Likewise.
2825         (_FP_HIGHBIT_DW_E): Likewise.
2826         (FP_FMA_E): Likewise.
2827         (_FP_FRAC_HIGH_DW_E): Likewise.
2828         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
2829         (_FP_WFRACBITS_DW_Q): Likewise.
2830         (_FP_WFRACXBITS_DW_Q): Likewise.
2831         (_FP_HIGHBIT_DW_Q): Likewise.
2832         (FP_FMA_Q): Likewise.
2833         (_FP_FRAC_HIGH_DW_Q): Likewise.
2834         * soft-fp/fmasf4.c: New file.
2835         * soft-fp/fmadf4.c: Likewise.
2836         * soft-fp/fmatf4.c: Likewise.
2837
2838 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2839
2840         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
2841         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
2842         Silvermont.
2843         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
2844         macro.
2845         (index_Slow_SSE4_2): Likewise.
2846         (index_Prefer_PMINUB_for_stringop): Likewise.
2847         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
2848         bit_Slow_SSE4_2 is set.
2849         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2850         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2851
2852 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2853
2854         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
2855         rtld_global._dl_hwcap2.
2856         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
2857         POWER8.
2858         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
2859         POWER8 feature descriptions defined in _dl_hwcap2.
2860         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
2861         string handling for POWER8 feature bits.
2862         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
2863         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
2864         _dl_powerpc_cap_flags.
2865         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
2866         * sysdeps/powerpc/rtld-global-offsets.sym
2867         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
2868         _dl_hwcap2 in the rtld_global_ro structure.
2869
2870 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2871
2872         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
2873         hardware capabilities in support of AT_HWCAP2.
2874         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
2875         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
2876         GLRO(dl_hwcap2).
2877         (_dl_show_auxv): Add support for calling _dl_procinfo to display
2878         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
2879         explicitly the unknown a_type display mechanism is used.
2880         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
2881         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
2882         struct member.
2883         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
2884         to macro prototype for AT_HWCAP2 support.
2885         * sysdeps/i386/dl-procinfo.h: Likewise.
2886         * sysdeps/s390/dl-procinfo.h: Likewise.
2887         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
2888         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
2889         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
2890         return -1 for unknown a_type display fallback.
2891         * sysdeps/sparc/dl-procinfo.h: Likewise.
2892         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
2893         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
2894
2895 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
2896
2897         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
2898         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
2899
2900 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
2901
2902         [BZ #12492]
2903         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
2904         mprotect making __stack_prot writable.
2905
2906 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
2907             Joseph Myers  <joseph@codesourcery.com>
2908
2909         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
2910         as being properly aligned.
2911
2912 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
2913
2914         * dlfcn/modstatic5.c: New file.
2915         * dlfcn/tststatic5.c: New file.
2916         * dlfcn/Makefile (tests): Add tststatic5.
2917         (tests-static): Likewise.
2918         (modules-names): Add modstatic5.
2919         (tststatic5-ENV): New variable.
2920         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
2921
2922         [BZ #15022]
2923         * elf/dl-support.c (_dl_main_map): New variable.
2924         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
2925         (_dl_nns, _dl_load_adds): Set to 1.
2926         (_dl_initial_searchlist): Refer to _dl_main_map.
2927         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
2928         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
2929         call to _dl_get_origin.
2930         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
2931         around call_map.
2932         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
2933         * dlfcn/modstatic3.c: New file.
2934         * dlfcn/tststatic3.c: New file.
2935         * dlfcn/tststatic4.c: New file.
2936         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
2937         (tests-static): Likewise.
2938         (modules-names): Add modstatic3.
2939         (tststatic3-ENV, tststatic4-ENV): New variables.
2940         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
2941         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
2942
2943 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
2944
2945         * configure.in (CC): Require GCC version 4.4 or later.
2946         * configure: Regenerated.
2947         * manual/install.texi (Tools for Compilation): Update GCC version
2948         requirement.
2949         * INSTALL: Regenerated.
2950
2951 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2952
2953         [BZ #15674]
2954         * string/test-memcmp.c (check2): New.
2955         (main): Call check2.
2956
2957         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
2958
2959 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
2960
2961         [BZ #15022]
2962         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
2963         over to...
2964         (dl_open_worker) [!SHARED]: ... here.
2965
2966 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2967
2968         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
2969
2970 2013-06-25  Richard Henderson  <rth@redhat.com>
2971
2972         * locale/programs/locarchive.c: Include <libc-internal.h>
2973
2974 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
2975
2976         * manual/texinfo.tex: Update to version 2013-06-21.17, with
2977         trailing whitespace removed.
2978
2979 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
2980
2981         [BZ #10283]
2982         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
2983         * locale/programs/locarchive.c: Include libc-mmap.h.
2984         (prepare_address_space): Take two new outputs (the mmap base and len).
2985         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
2986         values.
2987         (create_archive): Declare new mmap base and len values for
2988         prepare_address_space, and store the result in ah.
2989         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
2990         (enlarge_archive): If ah->mmap_base is not NULL, use that and
2991         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
2992         Declare new mmap base and len values for
2993         prepare_address_space, and store the result in new_ah.
2994         (open_archive): Declare new mmap base and len values for
2995         prepare_address_space, and store the result in ah.
2996         (close_archive): If ah->mmap_base is not NULL, use that and
2997         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
2998         * sysdeps/generic/libc-mmap.h: New file.
2999
3000 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
3001
3002         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
3003         (ALIGN_UP): Likewise.
3004         (PTR_ALIGN_DOWN): Likewise.
3005         (PTR_ALIGN_UP): Likewise.
3006
3007 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3008
3009         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
3010         entry mapped to PPC_PLATFORM_POWER8.
3011         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
3012         POWER8.
3013         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
3014         (_dl_string_platform): Add case for exporting platform position for
3015         POWER8.
3016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
3017         search path to sysdeps/powerpc/powerpc32/power8 directory.
3018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
3019         search path to sysdeps/powerpc/powerpc64/power8 directory.
3020         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
3021         power7 directories.
3022         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
3023         power7 directories.
3024
3025 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
3026
3027         * INSTALL: Regenerate.
3028
3029         * nscd/connections.c (nscd_init): Fix comment.
3030
3031 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
3032
3033         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
3034
3035         [BZ #15667]
3036         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
3037         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
3038
3039 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
3040
3041         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
3042         DL_DST_REQ_STATIC.
3043         (DL_DST_REQ_STATIC): Remove macro.
3044
3045 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
3046
3047         [BZ #7006]
3048         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
3049         with a shift of 0 bits.
3050
3051 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
3052
3053         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
3054         $(tststatic-ENV).
3055
3056 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3057
3058         [BZ #15655]
3059         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
3060
3061 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3062
3063         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
3064         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
3065         accepts -fno-tree-loop-distribute-patterns.
3066         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
3067         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
3068         recursive call.
3069         * string/memset.c (memset): Likewise.
3070         * string/test-memmove.c (simple_memmove): Disable loop transformation
3071         to library calls.
3072         * string/test-memset.c (simple_memset): Likewise.
3073         * benchtests/bench-memmove.c (simple_memmove): Likewise.
3074         * benchtests/bench-memset.c (simple_memset): Likewise.
3075         * configure: Regenerated.
3076
3077 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
3078
3079         * math/test-misc.c (main): Ignore fesetround failure when failures
3080         of subsequent rounding tests would be ignored.
3081
3082         [BZ #15654]
3083         * math/fedisblxcpt.c (fedisableexcept): Return 0.
3084         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
3085         * math/fegetenv.c (__fegetenv): Return 0.
3086         * math/fegetexcept.c (fegetexcept): Return 0.
3087         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
3088         FE_TONEAREST.
3089         * math/feholdexcpt.c (feholdexcept): Return 0.
3090         * math/fesetenv.c (__fesetenv): Return 0.
3091         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
3092         argument FE_TONEAREST.
3093         * math/feupdateenv.c (__feupdateenv): Return 0.
3094         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
3095
3096 2013-06-18  Roland McGrath  <roland@hack.frob.com>
3097
3098         * elf/rtld-Rules (rtld-compile-command.S): New variable.
3099         (rtld-compile-command.s, rtld-compile-command.c): New variables.
3100         ($(objpfx)rtld-%.os rules): Use them.
3101
3102 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3103
3104         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
3105         fields.
3106
3107 2013-06-17  Roland McGrath  <roland@hack.frob.com>
3108
3109         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
3110         length of target pattern, then descending length of dependency pattern.
3111         * configure.in (AWK): Require gawk 3.1.2 or newer.
3112         * manual/install.texi (Tools for Compilation): Say that we do.
3113         * configure: Regenerated.
3114
3115         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
3116         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
3117         * scripts/sysd-rules.awk: ... this new script.
3118         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
3119         than a glob-style pattern.
3120
3121 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
3122
3123         * math/test-misc.c (main): Do not treat incorrectly rounded
3124         conversions as failure unless ROUNDING_TESTS passes.
3125
3126 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
3127
3128         [BZ #15631]
3129         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
3130         restore exception state around main square root computation, then
3131         check for inexactness explicitly.
3132
3133         * math/libm-test.inc (fma_test_data): Add another test.
3134
3135 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3136
3137         * manual/threads.texi (Non-POSIX Extensions): New document
3138         node.  Document pthread_getattr_default_np and
3139         pthread_setattr_default_np.
3140
3141         * Versions.def (libpthread): Add GLIBC_2.18.
3142         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
3143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
3144         Likewise.
3145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
3146         Likewise.
3147         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3148         Likewise.
3149         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3150         Likewise.
3151         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
3152         Likewise.
3153         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
3154         Likewise.
3155         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
3156         Likewise.
3157         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
3158         Likewise.
3159         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
3160         Likewise.
3161
3162 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
3163
3164         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3165         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
3166
3167 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
3168             H.J. Lu  <hjl.tools@gmail.com>
3169
3170         [BZ #15627]
3171         * sysdeps/x86_64/rtld-memset.c: Remove file.
3172         * sysdeps/x86_64/rtld-memset.S: New file.
3173
3174 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
3175
3176         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
3177         (test_in_one_mode): Take arguments for whether the rounding mode
3178         is supported for each floating-point type.
3179         (do_test): Pass new arguments to test_in_one_mode using
3180         ROUNDING_TESTS.
3181
3182 2013-06-13  Roland McGrath  <roland@hack.frob.com>
3183
3184         * posix/tst-waitid.c (do_test): Distinguish different instances of
3185         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
3186         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
3187         before entering the kernel for waitpid.
3188
3189 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3190
3191         * NEWS: Fix note on clock function precision.  Text by Roland
3192         McGrath.
3193
3194 2013-06-13  Roland McGrath  <roland@hack.frob.com>
3195
3196         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
3197         it into place only when and if the sanity check passes.
3198
3199 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
3200
3201         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
3202         output for whether conversion result is exact.  Take argument
3203         indicating whether type is IBM long double.
3204         (round_for_all): Change need_exact field to ibm_ld.
3205         * stdlib/tst-strtod-round.c (struct exactness): New type.
3206         (struct test): Change bool ld_ok field to struct exactness exact.
3207         (TEST): Update all definitions for change to field.
3208         (tests): Regenerate array contents.
3209         (test_in_one_mode): Take pointer to new field instead of old ld_ok
3210         field value.  Check for IBM long double here.
3211         (do_test): Update calls to test_in_one_mode.
3212
3213 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3214
3215         [BZ #12515]
3216         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
3217         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
3218
3219 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3220
3221         [BZ #15605]
3222         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
3223         generated by the compiler on loop optimizations.
3224         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
3225         general definitions.
3226
3227 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
3228
3229         * math/bug-nextafter.c: Include <math-tests.h>.
3230         (main): Only test for exceptions if EXCEPTION_TESTS is true for
3231         the relevant type.
3232         * math/bug-nexttoward.c: Include <math-tests.h>.
3233         (main): Only test for exceptions if EXCEPTION_TESTS is true for
3234         the relevant type.
3235         * math/test-misc.c: Include <math-tests.h>.
3236         (main): Only test for exceptions if EXCEPTION_TESTS is true for
3237         the relevant type.
3238
3239 2013-06-12  Andreas Jaeger  <aj@suse.de>
3240
3241         * po/ia.po: Update Interlingua translation from translation
3242         project.
3243
3244 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
3245
3246         * include/fenv.h: Include stdbool.h.
3247         (struct rm_ctx): New structure.
3248         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
3249         Define macro.
3250         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
3251         (SET_RESTORE_ROUNDF): Likewise.
3252         (SET_RESTORE_ROUNDL): Likewise.
3253         (SET_RESTORE_ROUND_NOEX): Likewise.
3254         (SET_RESTORE_ROUND_NOEXF): Likewise.
3255         (SET_RESTORE_ROUND_NOEXL): Likewise.
3256         (SET_RESTORE_ROUND_53BIT): Likewise.
3257         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
3258         (libc_feresetround_noexf_ctx): Likewise.
3259         (libc_feresetround_noexl_ctx): Likewise.
3260         (libc_feholdsetround_53bit_ctx): Likewise.
3261         (libc_feresetround_53bit_ctx): Likewise.
3262         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
3263         (libc_feholdexcept_setround_sse_ctx): New function.
3264         (libc_fesetenv_sse_ctx): Likewise.
3265         (libc_feupdateenv_sse_ctx): Likewise.
3266         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
3267         (libc_feholdexcept_setround_387_ctx): Likewise.
3268         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
3269         (libc_feholdsetround_387_prec_ctx): Likewise.
3270         (libc_feholdsetround_387_ctx): Likewise.
3271         (libc_feholdsetround_387_53bit_ctx): Likewise.
3272         (libc_feholdsetround_sse_ctx): Likewise.
3273         (libc_feresetround_sse_ctx): Likewise.
3274         (libc_feresetround_387_ctx): Likewise.
3275         (libc_feupdateenv_387_ctx): Likewise.
3276         (libc_feholdexcept_setroundf_ctx): Define macro.
3277         (libc_fesetenvf_ctx): Likewise.
3278         (libc_feupdateenvf_ctx): Likewise.
3279         (libc_feholdsetroundf_ctx): Likewise.
3280         (libc_feresetroundf_ctx): Likewise.
3281         (libc_feholdexcept_setround_ctx): Likewise.
3282         (libc_fesetenv_ctx): Likewise.
3283         (libc_feupdateenv_ctx): Likewise.
3284         (libc_feholdsetround_ctx): Likewise.
3285         (libc_feresetround_ctx): Likewise.
3286         (libc_feholdexcept_setroundl_ctx): Likewise.
3287         (libc_feupdateenvl_ctx): Likewise.
3288         (libc_feholdsetroundl_ctx): Likewise.
3289         (libc_feresetroundl_ctx): Likewise.
3290         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
3291         (libc_feresetround_53bit_ctx): Likewise.
3292
3293 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3294
3295         * locale/iso-639.def: Convert to UTF-8.
3296
3297 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
3298
3299         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
3300         (EXCEPTION_TESTS_double): Likewise.
3301         (EXCEPTION_TESTS_long_double): Likewise.
3302         (EXCEPTION_TESTS): Likewise.
3303         * math/libm-test.inc (test_exceptions): Only test exceptions if
3304         EXCEPTION_TESTS (FLOAT).
3305
3306 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3307
3308         * benchtests/Makefile (string-bench): Add strcpy_chk and
3309         stpcpy_chk.
3310         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
3311         * benchtests/bench-stpcpy_chk.c: New file.
3312         * benchtests/bench-strcpy_chk-ifunc.c: New file.
3313         * benchtests/bench-strcpy_chk.c: New file.
3314         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
3315         code.
3316         (do_test): Likewise.
3317
3318 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3319
3320         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
3321         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
3322         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
3323         with tabs where appropriate.
3324         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
3325         dl-procinfo.h.
3326         [PPC_PLATFORM_PPC440]: Likewise.
3327         [PPC_PLATFORM_PPC464]: Likewise.
3328         [PPC_PLATFORM_PPC476]: Likewise.
3329         (_dl_string_platform): Add support for detecting ppc405, ppc440,
3330         ppc464, and ppc476 platform strings merging from ports/
3331         dl-procinfo.h.
3332
3333 2013-06-11  Andreas Schwab  <schwab@suse.de>
3334
3335         [BZ #14991]
3336         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
3337         (from_ucs4_idx): Regenerate.
3338         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
3339         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
3340         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
3341         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
3342         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
3343         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
3344         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
3345         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
3346         from FROM_LOOP and TO_LOOP specific macros.
3347         (BODY): Handle combining characters.
3348         * iconvdata/BIG5HKSCS.irreversible: Update.
3349         * iconvdata/BIG5HKSCS.precomposed: New file.
3350         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
3351         characters.
3352         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
3353
3354 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3355
3356         * include/sys/time.h: Fix indentation and add copyright header.
3357
3358         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
3359         (do_test): Likewise.
3360         * string/test-memchr.c (do_one_test): Likewise.
3361         (do_test): Likewise.
3362         * string/test-memcmp.c (do_one_test): Likewise.
3363         (do_test): Likewise.
3364         * string/test-memcpy.c (do_one_test): Likewise.
3365         (do_test): Likewise.
3366         * string/test-memmem.c (do_one_test): Likewise.
3367         (do_test): Likewise.
3368         (do_random_tests): Likewise.
3369         * string/test-memmove.c (do_one_test): Likewise.
3370         (do_test): Likewise.
3371         * string/test-memset.c (do_one_test): Likewise.
3372         (do_test): Likewise.
3373         * string/test-rawmemchr.c (do_one_test): Likewise.
3374         (do_test): Likewise.
3375         * string/test-strcasecmp.c (do_one_test): Likewise.
3376         (do_test): Likewise.
3377         * string/test-strcasestr.c (do_one_test): Likewise.
3378         (do_test): Likewise.
3379         * string/test-strcat.c (do_one_test): Likewise.
3380         (do_test): Likewise.
3381         * string/test-strchr.c (do_one_test): Likewise.
3382         (do_test): Likewise.
3383         * string/test-strcmp.c (do_one_test): Likewise.
3384         (do_test): Likewise.
3385         * string/test-strcpy.c (do_one_test): Likewise.
3386         (do_test): Likewise.
3387         * string/test-string.h: Likewise.
3388         (test_init): Likewise.
3389         * string/test-strlen.c (do_one_test): Likewise.
3390         (do_test): Likewise.
3391         * string/test-strncasecmp.c (do_one_test): Likewise.
3392         (do_test): Likewise.
3393         * string/test-strncat.c (do_one_test): Likewise.
3394         (do_test): Likewise.
3395         * string/test-strncmp.c (do_one_test): Likewise.
3396         (do_test_limit): Likewise.
3397         (do_test): Likewise.
3398         * string/test-strncpy.c (do_one_test): Likewise.
3399         (do_test): Likewise.
3400         * string/test-strnlen.c (do_one_test): Likewise.
3401         (do_test): Likewise.
3402         * string/test-strpbrk.c (do_one_test): Likewise.
3403         (do_test): Likewise.
3404         * string/test-strrchr.c (do_one_test): Likewise.
3405         (do_test): Likewise.
3406         * string/test-strspn.c (do_one_test): Likewise.
3407         (do_test): Likewise.
3408         * string/test-strstr.c (do_one_test): Likewise.
3409         (do_test): Likewise.
3410
3411         * benchtests/Makefile (string-bench): Add string benchmarks.
3412         * benchtests/bench-bcopy-ifunc.c: New file.
3413         * benchtests/bench-bcopy.c: New file.
3414         * benchtests/bench-bzero-ifunc.c: New file.
3415         * benchtests/bench-bzero.c: New file.
3416         * benchtests/bench-memccpy-ifunc.c: New file.
3417         * benchtests/bench-memccpy.c: New file.
3418         * benchtests/bench-memchr-ifunc.c: New file.
3419         * benchtests/bench-memchr.c: New file.
3420         * benchtests/bench-memcmp-ifunc.c: New file.
3421         * benchtests/bench-memcmp.c: New file.
3422         * benchtests/bench-memmem-ifunc.c: New file.
3423         * benchtests/bench-memmem.c: New file.
3424         * benchtests/bench-memmove-ifunc.c: New file.
3425         * benchtests/bench-memmove.c: New file.
3426         * benchtests/bench-mempcpy-ifunc.c: New file.
3427         * benchtests/bench-mempcpy.c: New file.
3428         * benchtests/bench-memset-ifunc.c: New file.
3429         * benchtests/bench-memset.c: New file.
3430         * benchtests/bench-rawmemchr-ifunc.c: New file.
3431         * benchtests/bench-rawmemchr.c: New file.
3432         * benchtests/bench-stpcpy-ifunc.c: New file.
3433         * benchtests/bench-stpcpy.c: New file.
3434         * benchtests/bench-stpncpy-ifunc.c: New file.
3435         * benchtests/bench-stpncpy.c: New file.
3436         * benchtests/bench-strcasecmp-ifunc.c: New file.
3437         * benchtests/bench-strcasecmp.c: New file.
3438         * benchtests/bench-strcasestr-ifunc.c: New file.
3439         * benchtests/bench-strcasestr.c: New file.
3440         * benchtests/bench-strcat-ifunc.c: New file.
3441         * benchtests/bench-strcat.c: New file.
3442         * benchtests/bench-strchr-ifunc.c: New file.
3443         * benchtests/bench-strchr.c: New file.
3444         * benchtests/bench-strchrnul-ifunc.c: New file.
3445         * benchtests/bench-strchrnul.c: New file.
3446         * benchtests/bench-strcmp-ifunc.c: New file.
3447         * benchtests/bench-strcmp.c: New file.
3448         * benchtests/bench-strcpy-ifunc.c: New file.
3449         * benchtests/bench-strcpy.c: New file.
3450         * benchtests/bench-strcspn-ifunc.c: New file.
3451         * benchtests/bench-strcspn.c: New file.
3452         * benchtests/bench-strlen-ifunc.c: New file.
3453         * benchtests/bench-strlen.c: New file.
3454         * benchtests/bench-strncasecmp-ifunc.c: New file.
3455         * benchtests/bench-strncasecmp.c: New file.
3456         * benchtests/bench-strncat-ifunc.c: New file.
3457         * benchtests/bench-strncat.c: New file.
3458         * benchtests/bench-strncmp-ifunc.c: New file.
3459         * benchtests/bench-strncmp.c: New file.
3460         * benchtests/bench-strncpy-ifunc.c: New file.
3461         * benchtests/bench-strncpy.c: New file.
3462         * benchtests/bench-strnlen-ifunc.c: New file.
3463         * benchtests/bench-strnlen.c: New file.
3464         * benchtests/bench-strpbrk-ifunc.c: New file.
3465         * benchtests/bench-strpbrk.c: New file.
3466         * benchtests/bench-strrchr-ifunc.c: New file.
3467         * benchtests/bench-strrchr.c: New file.
3468         * benchtests/bench-strspn-ifunc.c: New file.
3469         * benchtests/bench-strspn.c: New file.
3470         * benchtests/bench-strstr-ifunc.c: New file.
3471         * benchtests/bench-strstr.c: New file.
3472
3473         * benchtests/Makefile: Disable parallel execution of targets.
3474         (string-bench): Add memcpy.
3475         (benchset): New variable to store a list of benchmark sets.
3476         (bench-func): Renamed from bench.
3477         (bench-set): New target.
3478         (bench): Depend on bench-func and bench-set.
3479         * benchtests/README: Add section on benchmark sets.
3480         * benchtests/bench-memcpy-ifunc.c: New file.
3481         * benchtests/bench-memcpy.c: New file.
3482         * benchtests/bench-string.h: New file.
3483
3484 2013-06-11  Andreas Schwab  <schwab@suse.de>
3485
3486         [BZ #15577]
3487         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
3488         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
3489         values in the triple.
3490         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
3491         terminator in the group key.
3492
3493 2013-06-11  Andreas Jaeger  <aj@suse.de>
3494
3495         * po/zh_TW.po: Update Chinese (traditional) translation from
3496         translation project.
3497
3498 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3499
3500         * include/time.h (__clock_gettime): Add libc_hidden_proto.
3501         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
3502         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
3503         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3504         (clock_getcpuclockid): Likewise.
3505         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
3506         Add weak_alias and libc_hidden_def.
3507         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
3508         * rt/clock_gettime.c (clock_gettime): Rename to
3509         __clock_gettime.  Add weak_alias and libc_hidden_def.
3510         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
3511         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
3512         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
3513         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
3514         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
3515         Likewise.
3516         * rt/clock_settime.c (clock_settime): Rename to
3517         __clock_settime.  Add weak_alias and libc_hidden_def.
3518         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
3519
3520 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
3521
3522         * mach/err_boot.sub: Remove trailing whitespace.
3523         * mach/err_ipc.sub: Likewise.
3524         * mach/err_mach.sub: Likewise.
3525
3526         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
3527         (ROUNDING_TESTS_double): Likewise.
3528         (ROUNDING_TESTS_long_double): Likewise.
3529         (ROUNDING_TESTS): Likewise.
3530         * math/libm-test.inc: Include <math-tests.h>.
3531         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
3532         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
3533         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
3534         (IF_ROUND_INIT_FE_UPWARD): Likewise.
3535
3536 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3537
3538         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
3539         of assigning.
3540
3541 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
3542
3543         * sysdeps/gnu/errlist.awk: Do not generate space at end of
3544         otherwise empty TRANS lines.
3545         * sysdeps/gnu/errlist.c: Regenerated.
3546
3547         * catgets/gencat.c (error_print): Use (void) in function
3548         definition.
3549         * crypt/crypt_util.c (__init_des): Likewise.
3550         * crypt/speeds.c (Stop): Likewise.
3551         (main): Likewise.
3552         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
3553         * inet/ruserpass.c (token): Likewise.
3554         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
3555         * intl/localealias.c (extend_alias_table): Likewise.
3556         * intl/plural-exp.c (init_germanic_plural): Likewise.
3557         * libio/fcloseall.c (__fcloseall): Likewise.
3558         * libio/genops.c (_IO_flush_all): Likewise.
3559         (_IO_flush_all_linebuffered): Likewise.
3560         (_IO_cleanup): Likewise.
3561         (_IO_iter_begin): Likewise.
3562         (_IO_iter_end): Likewise.
3563         (_IO_list_lock): Likewise.
3564         (_IO_list_unlock): Likewise.
3565         (_IO_list_resetlock): Likewise.
3566         * libio/getchar.c (getchar): Likewise.
3567         * libio/getchar_u.c (getchar_unlocked): Likewise.
3568         * libio/getwchar.c (getwchar): Likewise.
3569         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3570         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
3571         * login/getpt.c (__getpt): Likewise.
3572         * login/tst-utmp.c (main): Likewise.
3573         * malloc/hooks.c (__malloc_check_init): Likewise.
3574         * malloc/malloc.c (__malloc_stats): Likewise.
3575         * malloc/mtrace.c (tr_break): Likewise.
3576         (mtrace): Likewise.
3577         (muntrace): Likewise.
3578         * misc/fstab.c (endfsent): Likewise.
3579         * misc/getclktck.c (__getclktck): Likewise.
3580         * misc/getdtsz.c (__getdtablesize): Likewise.
3581         * misc/gethostid.c (gethostid): Likewise.
3582         * misc/getpagesize.c (__getpagesize): Likewise.
3583         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
3584         (__get_nprocs): Likewise.
3585         (__get_phys_pages): Likewise.
3586         (__get_avphys_pages): Likewise.
3587         * misc/getttyent.c (getttyent): Likewise.
3588         (setttyent): Likewise.
3589         (endttyent): Likewise.
3590         * misc/getusershell.c (getusershell): Likewise.
3591         (endusershell): Likewise.
3592         (setusershell): Likewise.
3593         (initshells): Likewise.
3594         * misc/hsearch.c (__hdestroy): Likewise.
3595         * misc/sync.c (sync): Likewise.
3596         * misc/syslog.c (closelog_internal): Likewise.
3597         (closelog): Likewise.
3598         * misc/ttyslot.c (ttyslot): Likewise.
3599         * misc/vhangup.c (vhangup): Likewise.
3600         * posix/fork.c (__fork): Likewise.
3601         * posix/getegid.c (__getegid): Likewise.
3602         * posix/geteuid.c (__geteuid): Likewise.
3603         * posix/getgid.c (__getgid): Likewise.
3604         * posix/getpid.c (__getpid): Likewise.
3605         * posix/getppid.c (__getppid): Likewise.
3606         * posix/getuid.c (__getuid): Likewise.
3607         * posix/pause.c (pause): Likewise.
3608         * posix/setpgrp.c (setpgrp): Likewise.
3609         * posix/setsid.c (__setsid): Likewise.
3610         * posix/test-vfork.c (noop): Likewise.
3611         * resolv/gethnamaddr.c (_endhtent): Likewise.
3612         (_gethtent): Likewise.
3613         (ht_endhostent): Likewise.
3614         (gethostent): Likewise.
3615         (dns_service): Likewise.
3616         * stdlib/drand48.c (drand48): Likewise.
3617         * stdlib/lrand48.c (lrand48): Likewise.
3618         * stdlib/mrand48.c (mrand48): Likewise.
3619         * stdlib/rand.c (rand): Likewise.
3620         * stdlib/random.c (__random): Likewise.
3621         * stdlib/setenv.c (clearenv): Likewise.
3622         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
3623         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
3624         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
3625         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
3626         (__get_nprocs): Likewise.
3627         (__get_phys_pages): Likewise.
3628         (__get_avphys_pages): Likewise.
3629         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
3630         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
3631         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
3632         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
3633         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
3634         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
3635         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
3636         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
3637         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
3638         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
3639         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
3640         * sysdeps/mach/hurd/sync.c (sync): Likewise.
3641         * sysdeps/posix/clock.c (clock): Likewise.
3642         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
3643         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
3644         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
3645         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
3646         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
3647         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
3648         (__get_nprocs_conf): Likewise.
3649         (__get_phys_pages): Likewise.
3650         (__get_avphys_pages): Likewise.
3651         * time/clock.c (clock): Likewise.
3652         * time/tzset.c (__tzname_max): Likewise.
3653
3654 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
3655
3656         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
3657         (__bswap_32): Do not use "register".
3658         * crypt/crypt.c (_ufc_doit_r): Likewise.
3659         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
3660         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
3661         * gmon/gmon.c (__monstartup): Likewise.
3662         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
3663         * hurd/hurdmalloc.c (more_memory): Likewise.
3664         (malloc): Likewise.
3665         (free): Likewise.
3666         (realloc): Likewise.
3667         (malloc_fork_prepare): Likewise.
3668         (malloc_fork_parent): Likewise.
3669         (malloc_fork_child): Likewise.
3670         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
3671         (_svcauth_des): Likewise.
3672         * inet/inet_lnaof.c (inet_lnaof): Likewise.
3673         * inet/inet_net.c (inet_network): Likewise.
3674         * inet/inet_netof.c (inet_netof): Likewise.
3675         * inet/rcmd.c (__validuser2_sa): Likewise.
3676         * io/fts.c (fts_open): Likewise.
3677         (fts_load): Likewise.
3678         (fts_close): Likewise.
3679         (fts_read): Likewise.
3680         (fts_children): Likewise.
3681         (fts_build): Likewise.
3682         (fts_stat): Likewise.
3683         (fts_sort): Likewise.
3684         (fts_alloc): Likewise.
3685         (fts_lfree): Likewise.
3686         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
3687         (_IO_file_xsgetn): Likewise.
3688         (_IO_file_xsgetn_mmap): Likewise.
3689         * libio/iofopncook.c (_IO_cookie_read): Likewise.
3690         (_IO_cookie_write): Likewise.
3691         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
3692         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
3693         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
3694         * malloc/obstack.c (_obstack_begin): Likewise.
3695         (_obstack_begin_1): Likewise.
3696         (_obstack_newchunk): Likewise.
3697         (_obstack_allocated_p): Likewise.
3698         (obstack_free): Likewise.
3699         (_obstack_memory_used): Likewise.
3700         * misc/getttyent.c (getttynam): Likewise.
3701         (getttyent): Likewise.
3702         (skip): Likewise.
3703         (value): Likewise.
3704         * misc/getusershell.c (initshells): Likewise.
3705         * misc/syslog.c (__vsyslog_chk): Likewise.
3706         * misc/ttyslot.c (ttyslot): Likewise.
3707         * nis/nis_hash.c (__nis_hash): Likewise.
3708         * posix/fnmatch_loop.c (FCT): Likewise.
3709         * posix/getconf.c (print_all): Likewise.
3710         (main): Likewise.
3711         * posix/getopt.c (exchange): Likewise.
3712         * posix/glob.c (globfree): Likewise.
3713         (prefix_array): Likewise.
3714         (__glob_pattern_type): Likewise.
3715         * resolv/arpa/nameser.h (NS_GET16): Likewise.
3716         (NS_GET32): Likewise.
3717         (NS_PUT16): Likewise.
3718         (NS_PUT32): Likewise.
3719         * resolv/gethnamaddr.c (getanswer): Likewise.
3720         (gethostbyname2): Likewise.
3721         (gethostbyaddr): Likewise.
3722         (_gethtent): Likewise.
3723         (_gethtbyname2): Likewise.
3724         (_gethtbyaddr): Likewise.
3725         * resolv/ns_print.c (dst_s_get_int16): Likewise.
3726         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
3727         * resolv/res_init.c (__res_vinit): Likewise.
3728         (net_mask): Likewise.
3729         * resolv/res_mkquery.c (outchar): Likewise.
3730         (PRINT): Likewise.
3731         * stdio-common/printf_fp.c (outchar): Likewise.
3732         (PRINT): Likewise.
3733         * stdio-common/printf_fphex.c (outchar): Likewise.
3734         (PRINT): Likewise.
3735         * stdio-common/printf_size.c (outchar): Likewise.
3736         (PRINT): Likewise.
3737         * stdio-common/test_rdwr.c (main): Likewise.
3738         * stdio-common/tfformat.c (matches): Likewise.
3739         * stdio-common/vfprintf.c (outchar): Likewise.
3740         (printf_unknown): Likewise.
3741         (buffered_vfprintf): Likewise.
3742         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
3743         * stdio-common/xbug.c (AppendToBuffer): Likewise.
3744         (ReadFile): Likewise.
3745         * stdlib/qsort.c (SWAP): Likewise.
3746         (_quicksort): Likewise.
3747         * stdlib/setenv.c (__add_to_environ): Likewise.
3748         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
3749         * stdlib/strtol_l.c (__strtol_l): Likewise.
3750         * stdlib/tst-strtod.c (main): Likewise.
3751         * stdlib/tst-strtol.c (main): Likewise.
3752         * stdlib/tst-strtoll.c (main): Likewise.
3753         * string/bits/string2.h (__strcmp_cc): Likewise.
3754         (__strcmp_cg): Likewise.
3755         (__strcspn_c1): Likewise.
3756         (__strcspn_c2): Likewise.
3757         (__strcspn_c3): Likewise.
3758         (__strspn_c1): Likewise.
3759         (__strspn_c2): Likewise.
3760         (__strspn_c3): Likewise.
3761         (__strsep_1c): Likewise.
3762         (__strsep_2c): Likewise.
3763         (__strsep_3c): Likewise.
3764         * string/memccpy.c (__memccpy): Likewise.
3765         * string/stpcpy.c (__stpcpy): Likewise.
3766         * string/strcmp.c (strcmp): Likewise.
3767         * string/strrchr.c (strrchr): Likewise.
3768         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
3769         Likewise.
3770         * sysdeps/mach/hurd/getcwd.c
3771         (_hurd_canonicalize_directory_name_internal): Likewise.
3772         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
3773         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
3774         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
3775         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
3776         Likewise, in both definitions.
3777         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
3778         definitions.
3779         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
3780         64] (__bswap_64): Likewise.
3781         * time/test_time.c (main): Likewise.
3782         * time/tzfile.c (__tzfile_read): Likewise.
3783         (__tzfile_compute): Likewise.
3784         * time/tzset.c (__tzset_parse_tz): Likewise.
3785         (tzset_internal): Likewise.
3786         (compute_change): Likewise.
3787         * wcsmbs/wcscat.c (__wcscat): Likewise.
3788         * wcsmbs/wcschr.c (wcschr): Likewise.
3789         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
3790         * wcsmbs/wcscspn.c (wcscspn): Likewise.
3791         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3792         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
3793         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3794         * wcsmbs/wcsstr.c (wcsstr): Likewise.
3795         * wcsmbs/wmemchr.c (wmemchr): Likewise.
3796         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
3797         * wcsmbs/wmemset.c (wmemset): Likewise.
3798
3799 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
3800
3801         * scripts/config.guess: Update to version 2013-05-16.
3802         * scripts/config.sub: Update to version 2013-04-24.
3803         * scripts/install-sh: Update to version 2011-11-20.07.
3804         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
3805         * scripts/move-if-change: Update to version 2012-01-06 07:23.
3806
3807 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
3808
3809         * debug/fgetws_u_chk.c: Fix leading whitespaces.
3810         * elf/sln.c: Likewise.
3811         * hurd/hurd/ioctl.h: Likewise.
3812         * hurd/hurdmalloc.c: Likewise.
3813         * hurd/xattr.c: Likewise.
3814         * include/shlib-compat.h: Likewise.
3815         * inet/ruserpass.c: Likewise.
3816         * libio/iofgets_u.c: Likewise.
3817         * libio/iofgetws_u.c: Likewise.
3818         * locale/programs/ld-identification.c: Likewise.
3819         * locale/programs/ld-time.c: Likewise.
3820         * mach/msg-destroy.c: Likewise.
3821         * nss/nss_files/files-netgrp.c: Likewise.
3822         * resolv/res_data.c: Likewise.
3823         * soft-fp/op-1.h: Likewise.
3824         * soft-fp/op-2.h: Likewise.
3825         * soft-fp/op-4.h: Likewise.
3826         * soft-fp/op-common.h: Likewise.
3827         * stdio-common/printf_fphex.c: Likewise.
3828         * stdlib/strtod_l.c: Likewise.
3829         * sunrpc/rpc/clnt.h: Likewise.
3830         * sysdeps/generic/framestate.c: Likewise.
3831         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3832         * sysdeps/i386/bsd-setjmp.S: Likewise.
3833         * sysdeps/i386/__longjmp.S: Likewise.
3834         * sysdeps/i386/setjmp.S: Likewise.
3835         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3836         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
3837         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3838         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
3839         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
3840         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
3841         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
3842         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
3843         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
3844         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
3845         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
3846         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3847         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3848         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3849         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3850         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
3851         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
3852         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
3853         * sysdeps/ieee754/support.c: Likewise.
3854         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
3855         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
3856         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
3857         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
3858         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
3859         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
3860         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
3861         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
3862         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
3863         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
3864         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
3865         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
3866         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
3867         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
3868         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
3869         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
3870         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
3871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
3872
3873 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
3874
3875         * posix/transbug.c: Remove executable mode.
3876
3877 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
3878
3879         * crypt/speeds.c: Remove trailing whitespace.
3880         * dlfcn/default.c: Likewise.
3881         * elf/ifuncdep2.c: Likewise.
3882         * elf/ifuncmain1.c: Likewise.
3883         * elf/ifuncmain1vis.c: Likewise.
3884         * elf/testobj.h: Likewise.
3885         * elf/tst-stackguard1.c: Likewise.
3886         * gmon/sys/gmon.h: Likewise.
3887         * hurd/hurdmsg.c: Likewise.
3888         * hurd/new-fd.c: Likewise.
3889         * hurd/ports-get.c: Likewise.
3890         * iconvdata/ibm1008_420.c: Likewise.
3891         * inet/tst-getni1.c: Likewise.
3892         * inet/tst-getni2.c: Likewise.
3893         * libio/ioungetc.c: Likewise.
3894         * libio/wfiledoalloc.c: Likewise.
3895         * manual/libm-err-tab.pl: Likewise.
3896         * math/w_dremf.c: Likewise.
3897         * misc/ftruncate.c: Likewise.
3898         * posix/bug-glob2.c: Likewise.
3899         * posix/tst-pcre.c: Likewise.
3900         * posix/wait4.c: Likewise.
3901         * resolv/README: Likewise.
3902         * resolv/res_debug.h: Likewise.
3903         * resolv/tst-inet_ntop.c: Likewise.
3904         * setjmp/bug269-setjmp.c: Likewise.
3905         * soft-fp/extended.h: Likewise.
3906         * soft-fp/op-1.h: Likewise.
3907         * soft-fp/op-2.h: Likewise.
3908         * soft-fp/op-4.h: Likewise.
3909         * soft-fp/op-8.h: Likewise.
3910         * soft-fp/testit.c: Likewise.
3911         * stdio-common/bug16.c: Likewise.
3912         * stdlib/random.c: Likewise.
3913         * sunrpc/rpcsvc/rquota.x: Likewise.
3914         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
3915         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
3916         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3917         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
3918         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
3919         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
3920         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
3921         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
3922         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
3923         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
3924         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
3925         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
3926         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
3927         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
3928         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
3929         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
3930         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
3931         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
3932         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
3933         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
3934         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
3935         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
3936         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
3937         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
3938         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
3939         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
3940         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
3941         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
3942         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
3943         * sysdeps/ieee754/s_lib_version.c: Likewise.
3944         * sysdeps/mach/hurd/check_fds.c: Likewise.
3945         * sysdeps/mach/hurd/getsockname.c: Likewise.
3946         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
3947         * sysdeps/mach/hurd/recvfrom.c: Likewise.
3948         * sysdeps/powerpc/bits/link.h: Likewise.
3949         * sysdeps/powerpc/dl-procinfo.c: Likewise.
3950         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
3951         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
3952         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
3953         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
3954         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
3955         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
3956         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
3957         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
3958         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
3959         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
3960         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
3961         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
3962         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
3963         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
3964         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
3965         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
3966         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
3967         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
3968         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
3969         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
3970         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
3971         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
3972         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
3973         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
3974         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
3975         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
3976         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
3977         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
3978         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
3979         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
3980         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
3981         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
3982         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3983         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
3984         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
3985         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
3986         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
3987         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
3988         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
3989         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
3990         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
3991         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
3992         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
3993         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
3994         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
3995         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
3996         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
3997         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
3998         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
3999         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
4000         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
4001         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
4002         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
4003         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
4004         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
4005         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
4006         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
4007         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
4008         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
4009         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
4010         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
4011         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
4012         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
4013         * sysdeps/powerpc/sysdep.h: Likewise.
4014         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4015         * sysdeps/s390/s390-64/sub_n.S: Likewise.
4016         * sysdeps/sh/dl-trampoline.S: Likewise.
4017         * sysdeps/sh/memset.S: Likewise.
4018         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
4019         * sysdeps/sh/strlen.S: Likewise.
4020         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
4021         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
4022         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
4023         * sysdeps/sparc/sparc32/rem.S: Likewise.
4024         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
4025         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
4026         * sysdeps/sparc/sparc32/strchr.S: Likewise.
4027         * sysdeps/sparc/sparc32/udiv.S: Likewise.
4028         * sysdeps/sparc/sparc32/urem.S: Likewise.
4029         * sysdeps/sparc/sparc64/add_n.S: Likewise.
4030         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
4031         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
4032         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
4033         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
4034         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
4035         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
4036         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
4037         * sysdeps/unix/bsd/times.c: Likewise.
4038         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
4039         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
4040         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
4041         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
4042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
4043         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
4044         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
4045         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
4046         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
4047         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
4048         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
4049         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
4050         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
4051         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
4052         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
4053         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4054         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
4055         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
4056         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
4057         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
4058         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
4059         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
4060         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
4061         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
4062         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
4063         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
4064         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
4065         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
4066         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
4067         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
4068         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
4069         * sysdeps/x86_64/strcspn.S: Likewise.
4070
4071 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4072
4073         * locale/C-translit.h: Revert #include <stdint.h> because this is a
4074         generated file.  Regenerate properly from gen-translit.pl.
4075         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
4076         locale/C-translit.h.
4077
4078 2013-06-05  Andreas Schwab  <schwab@suse.de>
4079
4080         [BZ #15100]
4081         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
4082         week as 6 instead of -1.
4083         * time/tst-strptime.c (day_tests): Add test case.
4084
4085 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4086
4087         * sysdeps/generic/math_private.h
4088         (libc_feholdexcept_setround_53bit): Replace with
4089         libc_feholdsetround_53bit.
4090         (libc_feupdateenv_53bit): Replace with
4091         libc_feresetround_53bit.
4092         (SET_RESTORE_ROUND_53BIT): Adjust.
4093
4094 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
4095
4096         * string/test-strchrnul.c: Add copyright header.
4097
4098         * posix/tst-getaddrinfo4.c: Increase test timeout.
4099
4100 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
4101
4102         [BZ #15536]
4103         * math/libm-test.inc (MAX_EXP): Remove
4104         (MIN_EXP): Define.
4105         (ulp): Use MIN_EXP - MANT_DIG.
4106         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
4107
4108 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
4109
4110         * po/be.po: Revert last change.
4111         * po/zh_CN.po: Likewise.
4112         * po/header.pot: Likewise.
4113
4114 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
4115
4116         * Makefile ($(common-objpfx)linkobj/libc.so): Define
4117         link-libc-deps to empty as target-specific variable.
4118         * Makerules (link-libc-args): New variable.
4119         (libc-for-link): Likewise.
4120         (link-libc-deps): Likewise.
4121         (lib%.so): Depend on $(link-libc-deps).  Link with
4122         $(link-libc-args).
4123         (build-module): Link with $(link-libc-args).
4124         (build-module-asneeded): Likewise.
4125         (build-module-helper-objlist): Filter out $(link-libc-deps) from
4126         list of objects.
4127         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
4128         target-specific variable.
4129         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
4130         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
4131         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
4132         libc.
4133         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
4134         libc and ld.so.
4135         ($(objpfx)libpcprofile.so): Likewise.
4136         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
4137         libc_nonshared.a.
4138         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
4139         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
4140         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
4141         $(link-libc-deps).
4142         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
4143         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
4144         * login/Makefile ($(objpfx)libutil.so): Likewise.
4145         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
4146         * math/Makefile ($(objpfx)libm.so): Likewise.
4147         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
4148         $(objpfx)libnsl.so): Define libc-for-link as target-specific
4149         variable instead of depending directly on libc.
4150         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
4151         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
4152         $(link-libc-deps).
4153         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
4154         libc.
4155         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
4156         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
4157         ($(objpfx)libanl.so): Likewise.
4158         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
4159         ld.so.
4160         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
4161         $(link-libc-deps).
4162         * sysdeps/i386/fpu/Makefile: Remove file.
4163         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
4164         ($(objpfx)libm.so): Remove dependency on ld.so.
4165
4166 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
4167
4168         [BZ # 15553]
4169         * nis/yp_xdr.c (XDRMAXNAME): Define.
4170         (XDRMAXRECORD): Define.
4171         (xdr_domainname): Use XDRMAXNAME.
4172         (xdr_mapname): Likewise.
4173         (xdr_peername): Likewise.
4174         (xdr_keydat): Use XDRMAXRECORD.
4175         (xdr_valdat): Likewise.
4176
4177 2013-05-30  Jeff Law  <law@redhat.com>
4178
4179         [BZ #14256]
4180         * manual/errno.texi (ESTALE): Update to account for more than
4181         just NFS file systems.
4182         * sysdeps/gnu/errlist.c: Regenerated.
4183
4184 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
4185
4186         [BZ #15465]
4187         * elf/Makefile (tests): Add tst-null-argv.
4188         (modules-names):  Add tst-null-argv-lib.
4189         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
4190         (tst-null-argv-ENV): Set environment for tst-null-argv.
4191         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
4192         (RTLD_PROGNAME): New macro.
4193         * elf/tst-null-argv.c: New test case.
4194         * elf/tst-null-argv-lib.c: Library for test case.
4195         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
4196         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4197         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
4198         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
4199         * elf/dl-init.c (call_init): Likewise.
4200         (_dl_init): Likewise.
4201         * elf/dl-load.c (print_search_path): Likewise.
4202         (_dl_map_object): Likewise.
4203         * elf/dl-lookup.c (do_lookup_x): Likewise.
4204         (add_dependency): Likewise.
4205         (_dl_lookup_symbol_x): Likewise.
4206         (_dl_debug_bindings): Likewise.
4207         * elf/dl-open.c (_dl_show_scope): Likewise.
4208         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
4209         * elf/dl-version.c (match_symbol): Likewise.
4210         (_dl_check_map_versions): Likewise.
4211         * elf/rtld.c (dl_main): Likewise.
4212         (print_unresolved): Use RTLD_PROGNAME.
4213         (print_missing_version): Likewise.
4214         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
4215         (elf_machine_rela): Likewise.
4216         * sysdeps/powerpc/powerpc32/dl-machine.c
4217         (__process_machine_rela): Likewise.
4218         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
4219         Likewise.
4220         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
4221         Likewise.
4222         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
4223         Likewise.
4224         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4225         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
4226         Likewise.
4227         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
4228         Likewise.
4229         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
4230
4231 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
4232
4233         * po/be.po: Add descriptive title.
4234         * po/zh_CN.po: Likewise.
4235         * po/header.pot: Likewise.
4236
4237 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
4238
4239         * locale/programs/locarchive.c (create_archive): Inlucde fname in
4240         error message.
4241         (enlarge_archive): Likewise.
4242
4243 2013-05-28  Ben North  <ben@redfrontdoor.org>
4244
4245         * manual/arith.texi (frexp): It is the magnitude of the return
4246         value which lies in [0.5, 1), not the return value itself.
4247
4248 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4249
4250         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4251
4252 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
4253
4254         * stdio-common/bug26.c (main): Correct fscanf template.
4255
4256         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
4257         declare _dl_skip_args.
4258
4259         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
4260         Don't declare.
4261
4262         * manual/platform.texi: Add missing @end deftypefun.
4263
4264 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
4265
4266         [BZ #15529]
4267         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
4268         bit of mantissa of 2^16382.
4269         * math/libm-test.inc (hypot_test_data): Add more tests.
4270
4271         * math/libm-test.inc: Add drem and pow10 to list of tested
4272         functions.
4273         (pow10_test): New function.
4274         (drem_test): Likewise.
4275         (drem_test_tonearest): Likewise.
4276         (drem_test_towardzero): Likewise.
4277         (drem_test_downward): Likewise.
4278         (drem_test_upward): Likewise.
4279         (main): Call the new functions.
4280
4281         * math/libm-test.inc (finite_test_data): Remove.
4282         (finite_test): Run tests from isfinite_test_data.
4283         (gamma_test_data): Remove.
4284         (gamma_test): Run tests from lgamma_test_data.
4285         * sysdeps/i386/fpu/libm-test-ulps: Update.
4286         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4287
4288 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4289
4290         * manual/platform.texi: Add PowerPC PPR function set documentation.
4291         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
4292         implementation.
4293
4294 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
4295
4296         * math/libm-test.inc (MAX_EXP): Define.
4297         (ULPDIFF): Define.
4298         (ulp): New function.
4299         (check_float_internal): Use ULPDIFF.
4300         (cpow_test): Disable failing test.
4301         (check_ulp): Test ulp() implemetnation.
4302         (main): Call check_ulp before starting tests.
4303
4304 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
4305
4306         * math/gen-libm-test.pl (generate_testfile): Do not handle
4307         START_DATA and END_DATA.
4308         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
4309         END_DATA.
4310         (acos_tonearest_test_data): Likewise.
4311         (acos_towardzero_test_data): Likewise.
4312         (acos_downward_test_data): Likewise.
4313         (acos_upward_test_data): Likewise.
4314         (acosh_test_data): Likewise.
4315         (asin_test_data): Likewise.
4316         (asin_tonearest_test_data): Likewise.
4317         (asin_towardzero_test_data): Likewise.
4318         (asin_downward_test_data): Likewise.
4319         (asin_upward_test_data): Likewise.
4320         (asinh_test_data): Likewise.
4321         (atan_test_data): Likewise.
4322         (atanh_test_data): Likewise.
4323         (atan2_test_data): Likewise.
4324         (cabs_test_data): Likewise.
4325         (cacos_test_data): Likewise.
4326         (cacosh_test_data): Likewise.
4327         (carg_test_data): Likewise.
4328         (casin_test_data): Likewise.
4329         (casinh_test_data): Likewise.
4330         (catan_test_data): Likewise.
4331         (catanh_test_data): Likewise.
4332         (cbrt_test_data): Likewise.
4333         (ccos_test_data): Likewise.
4334         (ccosh_test_data): Likewise.
4335         (ceil_test_data): Likewise.
4336         (cexp_test_data): Likewise.
4337         (cimag_test_data): Likewise.
4338         (clog_test_data): Likewise.
4339         (clog10_test_data): Likewise.
4340         (conj_test_data): Likewise.
4341         (copysign_test_data): Likewise.
4342         (cos_test_data): Likewise.
4343         (cos_tonearest_test_data): Likewise.
4344         (cos_towardzero_test_data): Likewise.
4345         (cos_downward_test_data): Likewise.
4346         (cos_upward_test_data): Likewise.
4347         (cosh_test_data): Likewise.
4348         (cosh_tonearest_test_data): Likewise.
4349         (cosh_towardzero_test_data): Likewise.
4350         (cosh_downward_test_data): Likewise.
4351         (cosh_upward_test_data): Likewise.
4352         (cpow_test_data): Likewise.
4353         (cproj_test_data): Likewise.
4354         (creal_test_data): Likewise.
4355         (csin_test_data): Likewise.
4356         (csinh_test_data): Likewise.
4357         (csqrt_test_data): Likewise.
4358         (ctan_test_data): Likewise.
4359         (ctan_tonearest_test_data): Likewise.
4360         (ctan_towardzero_test_data): Likewise.
4361         (ctan_downward_test_data): Likewise.
4362         (ctan_upward_test_data): Likewise.
4363         (ctanh_test_data): Likewise.
4364         (ctanh_tonearest_test_data): Likewise.
4365         (ctanh_towardzero_test_data): Likewise.
4366         (ctanh_downward_test_data): Likewise.
4367         (ctanh_upward_test_data): Likewise.
4368         (erf_test_data): Likewise.
4369         (erfc_test_data): Likewise.
4370         (exp_test_data): Likewise.
4371         (exp_tonearest_test_data): Likewise.
4372         (exp_towardzero_test_data): Likewise.
4373         (exp_downward_test_data): Likewise.
4374         (exp_upward_test_data): Likewise.
4375         (exp10_test_data): Likewise.
4376         (exp2_test_data): Likewise.
4377         (expm1_test_data): Likewise.
4378         (fabs_test_data): Likewise.
4379         (fdim_test_data): Likewise.
4380         (finite_test_data): Likewise.
4381         (floor_test_data): Likewise.
4382         (fma_test_data): Likewise.
4383         (fma_towardzero_test_data): Likewise.
4384         (fma_downward_test_data): Likewise.
4385         (fma_upward_test_data): Likewise.
4386         (fmax_test_data): Likewise.
4387         (fmin_test_data): Likewise.
4388         (fmod_test_data): Likewise.
4389         (fpclassify_test_data): Likewise.
4390         (frexp_test_data): Likewise.
4391         (gamma_test_data): Likewise.
4392         (hypot_test_data): Likewise.
4393         (ilogb_test_data): Likewise.
4394         (isfinite_test_data): Likewise.
4395         (isgreater_test_data): Likewise.
4396         (isgreaterequal_test_data): Likewise.
4397         (isinf_test_data): Likewise.
4398         (isless_test_data): Likewise.
4399         (islessequal_test_data): Likewise.
4400         (islessgreater_test_data): Likewise.
4401         (isnan_test_data): Likewise.
4402         (isnormal_test_data): Likewise.
4403         (issignaling_test_data): Likewise.
4404         (isunordered_test_data): Likewise.
4405         (j0_test_data): Likewise.
4406         (j1_test_data): Likewise.
4407         (jn_test_data): Likewise.
4408         (ldexp_test_data): Likewise.
4409         (lgamma_test_data): Likewise.
4410         (lrint_test_data): Likewise.
4411         (lrint_tonearest_test_data): Likewise.
4412         (lrint_towardzero_test_data): Likewise.
4413         (lrint_downward_test_data): Likewise.
4414         (lrint_upward_test_data): Likewise.
4415         (llrint_test_data): Likewise.
4416         (llrint_tonearest_test_data): Likewise.
4417         (llrint_towardzero_test_data): Likewise.
4418         (llrint_downward_test_data): Likewise.
4419         (llrint_upward_test_data): Likewise.
4420         (log_test_data): Likewise.
4421         (log10_test_data): Likewise.
4422         (log1p_test_data): Likewise.
4423         (log2_test_data): Likewise.
4424         (logb_test_data): Likewise.
4425         (logb_downward_test_data): Likewise.
4426         (lround_test_data): Likewise.
4427         (llround_test_data): Likewise.
4428         (modf_test_data): Likewise.
4429         (nearbyint_test_data): Likewise.
4430         (nextafter_test_data): Likewise.
4431         (nexttoward_test_data): Likewise.
4432         (pow_test_data): Likewise.
4433         (pow_tonearest_test_data): Likewise.
4434         (pow_towardzero_test_data): Likewise.
4435         (pow_downward_test_data): Likewise.
4436         (pow_upward_test_data): Likewise.
4437         (remainder_test_data): Likewise.
4438         (remainder_tonearest_test_data): Likewise.
4439         (remainder_towardzero_test_data): Likewise.
4440         (remainder_downward_test_data): Likewise.
4441         (remainder_upward_test_data): Likewise.
4442         (remquo_test_data): Likewise.
4443         (rint_test_data): Likewise.
4444         (rint_tonearest_test_data): Likewise.
4445         (rint_towardzero_test_data): Likewise.
4446         (rint_downward_test_data): Likewise.
4447         (rint_upward_test_data): Likewise.
4448         (round_test_data): Likewise.
4449         (scalb_test_data): Likewise.
4450         (scalbn_test_data): Likewise.
4451         (scalbln_test_data): Likewise.
4452         (signbit_test_data): Likewise.
4453         (sin_test_data): Likewise.
4454         (sin_tonearest_test_data): Likewise.
4455         (sin_towardzero_test_data): Likewise.
4456         (sin_downward_test_data): Likewise.
4457         (sin_upward_test_data): Likewise.
4458         (sincos_test_data): Likewise.
4459         (sinh_test_data): Likewise.
4460         (sinh_tonearest_test_data): Likewise.
4461         (sinh_towardzero_test_data): Likewise.
4462         (sinh_downward_test_data): Likewise.
4463         (sinh_upward_test_data): Likewise.
4464         (sqrt_test_data): Likewise.
4465         (tan_test_data): Likewise.
4466         (tan_tonearest_test_data): Likewise.
4467         (tan_towardzero_test_data): Likewise.
4468         (tan_downward_test_data): Likewise.
4469         (tan_upward_test_data): Likewise.
4470         (tanh_test_data): Likewise.
4471         (tgamma_test_data): Likewise.
4472         (trunc_test_data): Likewise.
4473         (y0_test_data): Likewise.
4474         (y1_test_data): Likewise.
4475         (yn_test_data): Likewise.
4476         (significand_test_data): Likewise.
4477
4478         * math/gen-libm-test.pl (@functions): Remove variable.
4479         (generate_testfile): Don't handle START and END lines.
4480         * math/libm-test.inc (START): New macro.
4481         (END): Likewise.
4482         (END_COMPLEX): Likewise.
4483         (acos_test): Use END macro without arguments.
4484         (acos_test_tonearest): Likewise.
4485         (acos_test_towardzero): Likewise.
4486         (acos_test_downward): Likewise.
4487         (acos_test_upward): Likewise.
4488         (acosh_test): Likewise.
4489         (asin_test): Likewise.
4490         (asin_test_tonearest): Likewise.
4491         (asin_test_towardzero): Likewise.
4492         (asin_test_downward): Likewise.
4493         (asin_test_upward): Likewise.
4494         (asinh_test): Likewise.
4495         (atan_test): Likewise.
4496         (atanh_test): Likewise.
4497         (atan2_test): Likewise.
4498         (cabs_test): Likewise.
4499         (cacos_test): Use END_COMPLEX macro without arguments.
4500         (cacosh_test): Likewise.
4501         (carg_test): Use END macro without arguments.
4502         (casin_test): Use END_COMPLEX macro without arguments.
4503         (casinh_test): Likewise.
4504         (catan_test): Likewise.
4505         (catanh_test): Likewise.
4506         (cbrt_test): Use END macro without arguments.
4507         (ccos_test): Use END_COMPLEX macro without arguments.
4508         (ccosh_test): Likewise.
4509         (ceil_test): Use END macro without arguments.
4510         (cexp_test): Use END_COMPLEX macro without arguments.
4511         (cimag_test): Use END macro without arguments.
4512         (clog_test): Use END_COMPLEX macro without arguments.
4513         (clog10_test): Likewise.
4514         (conj_test): Likewise.
4515         (copysign_test): Use END macro without arguments.
4516         (cos_test): Likewise.
4517         (cos_test_tonearest): Likewise.
4518         (cos_test_towardzero): Likewise.
4519         (cos_test_downward): Likewise.
4520         (cos_test_upward): Likewise.
4521         (cosh_test): Likewise.
4522         (cosh_test_tonearest): Likewise.
4523         (cosh_test_towardzero): Likewise.
4524         (cosh_test_downward): Likewise.
4525         (cosh_test_upward): Likewise.
4526         (cpow_test): Use END_COMPLEX macro without arguments.
4527         (cproj_test): Likewise.
4528         (creal_test): Use END macro without arguments.
4529         (csin_test): Use END_COMPLEX macro without arguments.
4530         (csinh_test): Likewise.
4531         (csqrt_test): Likewise.
4532         (ctan_test): Likewise.
4533         (ctan_test_tonearest): Likewise.
4534         (ctan_test_towardzero): Likewise.
4535         (ctan_test_downward): Likewise.
4536         (ctan_test_upward): Likewise.
4537         (ctanh_test): Likewise.
4538         (ctanh_test_tonearest): Likewise.
4539         (ctanh_test_towardzero): Likewise.
4540         (ctanh_test_downward): Likewise.
4541         (ctanh_test_upward): Likewise.
4542         (erf_test): Use END macro without arguments.
4543         (erfc_test): Likewise.
4544         (exp_test): Likewise.
4545         (exp_test_tonearest): Likewise.
4546         (exp_test_towardzero): Likewise.
4547         (exp_test_downward): Likewise.
4548         (exp_test_upward): Likewise.
4549         (exp10_test): Likewise.
4550         (exp2_test): Likewise.
4551         (expm1_test): Likewise.
4552         (fabs_test): Likewise.
4553         (fdim_test): Likewise.
4554         (finite_test): Likewise.
4555         (floor_test): Likewise.
4556         (fma_test): Likewise.
4557         (fma_test_towardzero): Likewise.
4558         (fma_test_downward): Likewise.
4559         (fma_test_upward): Likewise.
4560         (fmax_test): Likewise.
4561         (fmin_test): Likewise.
4562         (fmod_test): Likewise.
4563         (fpclassify_test): Likewise.
4564         (frexp_test): Likewise.
4565         (gamma_test): Likewise.
4566         (hypot_test): Likewise.
4567         (ilogb_test): Likewise.
4568         (isfinite_test): Likewise.
4569         (isgreater_test): Likewise.
4570         (isgreaterequal_test): Likewise.
4571         (isinf_test): Likewise.
4572         (isless_test): Likewise.
4573         (islessequal_test): Likewise.
4574         (islessgreater_test): Likewise.
4575         (isnan_test): Likewise.
4576         (isnormal_test): Likewise.
4577         (issignaling_test): Likewise.
4578         (isunordered_test): Likewise.
4579         (j0_test): Likewise.
4580         (j1_test): Likewise.
4581         (jn_test): Likewise.
4582         (ldexp_test): Likewise.
4583         (lgamma_test): Likewise.
4584         (lrint_test): Likewise.
4585         (lrint_test_tonearest): Likewise.
4586         (lrint_test_towardzero): Likewise.
4587         (lrint_test_downward): Likewise.
4588         (lrint_test_upward): Likewise.
4589         (llrint_test): Likewise.
4590         (llrint_test_tonearest): Likewise.
4591         (llrint_test_towardzero): Likewise.
4592         (llrint_test_downward): Likewise.
4593         (llrint_test_upward): Likewise.
4594         (log_test): Likewise.
4595         (log10_test): Likewise.
4596         (log1p_test): Likewise.
4597         (log2_test): Likewise.
4598         (logb_test): Likewise.
4599         (logb_test_downward): Likewise.
4600         (lround_test): Likewise.
4601         (llround_test): Likewise.
4602         (modf_test): Likewise.
4603         (nearbyint_test): Likewise.
4604         (nextafter_test): Likewise.
4605         (nexttoward_test): Likewise.
4606         (pow_test): Likewise.
4607         (pow_test_tonearest): Likewise.
4608         (pow_test_towardzero): Likewise.
4609         (pow_test_downward): Likewise.
4610         (pow_test_upward): Likewise.
4611         (remainder_test): Likewise.
4612         (remainder_test_tonearest): Likewise.
4613         (remainder_test_towardzero): Likewise.
4614         (remainder_test_downward): Likewise.
4615         (remainder_test_upward): Likewise.
4616         (remquo_test): Likewise.
4617         (rint_test): Likewise.
4618         (rint_test_tonearest): Likewise.
4619         (rint_test_towardzero): Likewise.
4620         (rint_test_downward): Likewise.
4621         (rint_test_upward): Likewise.
4622         (round_test): Likewise.
4623         (scalb_test): Likewise.
4624         (scalbn_test): Likewise.
4625         (scalbln_test): Likewise.
4626         (signbit_test): Likewise.
4627         (sin_test): Likewise.
4628         (sin_test_tonearest): Likewise.
4629         (sin_test_towardzero): Likewise.
4630         (sin_test_downward): Likewise.
4631         (sin_test_upward): Likewise.
4632         (sincos_test): Likewise.
4633         (sinh_test): Likewise.
4634         (sinh_test_tonearest): Likewise.
4635         (sinh_test_towardzero): Likewise.
4636         (sinh_test_downward): Likewise.
4637         (sinh_test_upward): Likewise.
4638         (sqrt_test): Likewise.
4639         (tan_test): Likewise.
4640         (tan_test_tonearest): Likewise.
4641         (tan_test_towardzero): Likewise.
4642         (tan_test_downward): Likewise.
4643         (tan_test_upward): Likewise.
4644         (tanh_test): Likewise.
4645         (tgamma_test): Likewise.
4646         (trunc_test): Likewise.
4647         (y0_test): Likewise.
4648         (y1_test): Likewise.
4649         (yn_test): Likewise.
4650         (significand_test): Likewise.
4651
4652 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
4653
4654         [BZ #15381]
4655         * libio/genops.c (_IO_no_init): Initialize wide struct info.
4656
4657 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4658
4659         [BZ #14894]
4660         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
4661         __ppc_mdoio and __ppc_mdoom.
4662         * manual/platform.texi: Document new functions __ppc_yield,
4663         __ppc_mdoio and __ppc_mdoom.
4664
4665 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
4666
4667         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
4668         (main): Mention "tls" pseudo-hwcap is legacy.
4669         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
4670
4671 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
4672
4673         * math/gen-libm-test.pl (parse_args): Output only string of
4674         arguments as text for test name, not full call or descriptions of
4675         tests for extra outputs.
4676         (generate_testfile): Do not pass function name to parse_args.
4677         Generate this_func variable from START.
4678         * math/libm-test.inc (struct test_f_f_data): Rename test_name
4679         field to arg_str.
4680         (struct test_ff_f_data): Likewise.
4681         (test_ff_f_data_nexttoward): Likewise.
4682         (struct test_fi_f_data): Likewise.
4683         (struct test_fl_f_data): Likewise.
4684         (struct test_if_f_data): Likewise.
4685         (struct test_fff_f_data): Likewise.
4686         (struct test_c_f_data): Likewise.
4687         (struct test_f_f1_data): Likewise.  Remove field extra_name.
4688         (struct test_fF_f1_data): Likewise.
4689         (struct test_ffI_f1_data): Likewise.
4690         (struct test_c_c_data): Rename test_name field to arg_str.
4691         (struct test_cc_c_data): Likewise.
4692         (struct test_f_i_data): Likewise.
4693         (struct test_ff_i_data): Likewise.
4694         (struct test_f_l_data): Likewise.
4695         (struct test_f_L_data): Likewise.
4696         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
4697         and extra2_name.
4698         (COMMON_TEST_SETUP): New macro.
4699         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
4700         (COMMON_TEST_CLEANUP): Likewise.
4701         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
4702         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
4703         macros.
4704         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
4705         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
4706         macros.
4707         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
4708         (RUN_TEST_fff_f): Take argument string.  Call new setup and
4709         cleanup macros.
4710         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
4711         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
4712         macros.
4713         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
4714         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
4715         macros.
4716         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
4717         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
4718         cleanup macros.
4719         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
4720         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
4721         cleanup macros.
4722         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
4723         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
4724         cleanup macros.
4725         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
4726         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
4727         macros.
4728         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
4729         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
4730         macros.
4731         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
4732         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
4733         macros.
4734         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
4735         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
4736         cleanup macros.
4737         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
4738         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
4739         cleanup macros.
4740         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
4741         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
4742         macros.
4743         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
4744         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
4745         cleanup macros.
4746         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
4747         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
4748         macros.
4749         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
4750         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
4751         macros.
4752         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
4753         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
4754         cleanup macros.
4755         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
4756
4757 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4758
4759         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
4760         to _sifields.sigfault.
4761         (si_addr_lsb): Define new macro.
4762         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
4763         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4764         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
4765
4766 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
4767
4768         [BZ #15441]
4769         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
4770         returns -1.
4771         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
4772         null return -1.
4773         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
4774         loading the domain.
4775
4776 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
4777
4778         * math/gen-libm-test.pl (parse_args): Do not include expected
4779         result in test name.
4780         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
4781         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4782         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4783         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
4784         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4785         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4786
4787 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4788
4789         * benchtests/Makefile: Sort function entries.
4790
4791         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
4792         tanh, asinh, acosh, atanh.
4793         * benchtests/acos-inputs: New file.
4794         * benchtests/acosh-inputs: New file.
4795         * benchtests/asin-inputs: New file.
4796         * benchtests/asinh-inputs: New file.
4797         * benchtests/atanh-inputs: New file.
4798         * benchtests/cosh-inputs: New file.
4799         * benchtests/log-inputs: New file.
4800         * benchtests/sinh-inputs: New file.
4801         * benchtests/tanh-inputs: New file.
4802
4803 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
4804
4805         [BZ #15339]
4806         * posix/tst-getaddrinfo4.c: New test.
4807         * posix/Makefile (tests): Add it.
4808
4809 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4810
4811         [BZ #15339]
4812         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
4813         when no services were used.
4814         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
4815         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
4816
4817 2013-05-21  Andreas Schwab  <schwab@suse.de>
4818
4819         [BZ #15014]
4820         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
4821         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
4822         successful.
4823         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
4824         redundant variable declarations and reallocation of buffer when
4825         parsing as IPv6 address.  Always set NSS status when called from
4826         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
4827         buffer too small.  Correct computation of needed size.
4828         * nss/Makefile (tests): Add test-digits-dots.
4829         * nss/test-digits-dots.c: New test.
4830
4831 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4832
4833         * benchtests/Makefile: Remove instructions for adding
4834         benchmark tests.
4835         * benchtests/README: New file to explain how to execute and
4836         enhance the benchmark tests.
4837
4838 2013-05-21  Andreas Schwab  <schwab@suse.de>
4839
4840         [BZ #15493]
4841         * setjmp/Makefile (tests): Add tst-sigsetjmp.
4842         * setjmp/tst-sigsetjmp.c: New test.
4843
4844 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
4845
4846         * sysdeps/x86_64/memset.S (memset): New implementation.
4847         (__bzero): Likewise.
4848         (__memset_tail): New function.
4849
4850 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
4851
4852         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
4853         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
4854         __memcpy_sse2_unaligned ifunc selection.
4855         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
4856         Add memcpy-sse2-unaligned.S.
4857         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
4858         Add: __memcpy_sse2_unaligned.
4859
4860 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
4861
4862         [BZ #15490]
4863         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4864         math_force_eval before restoring floating-point envrionment.
4865         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
4866         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
4867         Likewise.
4868         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
4869         <math_private.h>.
4870         (__nearbyintl): Use math_force_eval before restoring
4871         floating-point environment.
4872         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
4873
4874         * math/gen-libm-test.pl (special_functions): Remove.
4875         (parse_args): Don't handle TEST_extra.  Handle functions with no
4876         return value.
4877         * math/libm-test.inc (struct test_sincos_data): Replace with
4878         struct test_fFF_11_data.
4879         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
4880         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
4881         (sincos_test_data): Change element type to struct
4882         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
4883         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
4884         RUN_TEST_LOOP_sincos.
4885         * math/README.libm-test: Don't mention special handling of
4886         individual functions.
4887         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
4888         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4889         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4890         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
4891         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4892         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4893
4894         * math/gen-libm-test.pl (get_variable): Remove function.
4895         (parse_args): Don't show pointer parameters to call in test
4896         names.  Use "extra output N" in test names for extra outputs
4897         rather than naming variables.
4898
4899 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
4900
4901         [BZ #15488]
4902         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
4903         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
4904         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
4905         double tests.
4906         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
4907         disable.
4908         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
4909         check_long_double.
4910
4911         * math/gen-libm-test.pl (@tests): Remove variable.
4912         ($count): Likewise.
4913         (new_test): Remove function.
4914         (show_exceptions): New function.
4915         (special_functions): Use show_exceptions instead of new_test.
4916         (parse_args): Likewise.
4917         (generate_testfile): Pass only function name in generated call to
4918         print_max_error or print_complex_max_error.
4919         (get_ulps): Do not handle complex tests specially.
4920         (output_test): Rename to ...
4921         (get_all_ulps_for_test): ... this.  Return a string rather than
4922         printing to a file.  Require ulps to be present.
4923         (output_ulps): Generate arrays rather than #defines.
4924         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
4925         (struct ulp_data): New type.
4926         (BUILD_COMPLEX_ULP): Remove macro.
4927         (compare_ulp_data): New function.
4928         (find_ulps): Likewise.
4929         (find_test_ulps): Likewise.
4930         (find_function_ulps): Likewise.
4931         (find_complex_function_ulps): Likewise.
4932         (print_max_error): Determine allowed ulps using
4933         find_function_ulps.
4934         (print_complex_max_error): Determine allowed ulps using
4935         find_complex_function_ulps.
4936         (check_float_internal): Determine max ulps using find_test_ulps.
4937         (check_float): Do not take max_ulp parameter.  Update call to
4938         check_float_internal.
4939         (check_complex): Likewise.
4940         (check_int): Do not take max_ulp parameter.
4941         (check_long): Likewise.
4942         (check_bool): Likewise.
4943         (check_longlong): Likewise.
4944         (struct test_f_f_data): Remove max_ulp field.
4945         (struct test_ff_f_data): Likewise.
4946         (struct test_ff_f_data_nexttoward): Likewise.
4947         (struct test_fi_f_data): Likewise.
4948         (struct test_fl_f_data): Likewise.
4949         (struct test_if_f_data): Likewise.
4950         (struct test_fff_f_data): Likewise.
4951         (struct test_c_f_data): Likewise.
4952         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
4953         (struct test_fF_f1_data): Likewise.
4954         (struct test_ffI_f1_data): Likewise.
4955         (struct test_c_c_data): Remove max_ulp field.
4956         (struct test_cc_c_data): Likewise.
4957         (struct test_f_i_data): Likewise.
4958         (struct test_ff_i_data): Likewise.
4959         (struct test_f_l_data): Likewise.
4960         (struct test_f_L_data): Likewise.
4961         (struct test_sincos_data): Likewise.
4962         (RUN_TEST_f_f): Do not handle ulps.
4963         (RUN_TEST_LOOP_f_f): Likewise.
4964         (RUN_TEST_2_f): Likewise.
4965         (RUN_TEST_LOOP_2_f): Likewise.
4966         (RUN_TEST_fff_f): Likewise.
4967         (RUN_TEST_LOOP_fff_f): Likewise.
4968         (RUN_TEST_c_f): Likewise.
4969         (RUN_TEST_LOOP_c_f): Likewise.
4970         (RUN_TEST_f_f1): Likewise.
4971         (RUN_TEST_LOOP_f_f1): Likewise.
4972         (RUN_TEST_fF_f1): Likewise.
4973         (RUN_TEST_LOOP_fF_f1): Likewise.
4974         (RUN_TEST_fI_f1): Likewise.
4975         (RUN_TEST_LOOP_fI_f1): Likewise.
4976         (RUN_TEST_ffI_f1): Likewise.
4977         (RUN_TEST_LOOP_ffI_f1): Likewise.
4978         (RUN_TEST_c_c): Likewise.
4979         (RUN_TEST_LOOP_c_c): Likewise.
4980         (RUN_TEST_cc_c): Likewise.
4981         (RUN_TEST_LOOP_cc_c): Likewise.
4982         (RUN_TEST_f_i): Likewise.
4983         (RUN_TEST_LOOP_f_i): Likewise.
4984         (RUN_TEST_f_i_tg): Likewise.
4985         (RUN_TEST_LOOP_f_i_tg): Likewise.
4986         (RUN_TEST_ff_i_tg): Likewise.
4987         (RUN_TEST_LOOP_ff_i_tg): Likewise.
4988         (RUN_TEST_f_b): Likewise.
4989         (RUN_TEST_LOOP_f_b): Likewise.
4990         (RUN_TEST_f_b_tg): Likewise.
4991         (RUN_TEST_LOOP_f_b_tg): Likewise.
4992         (RUN_TEST_f_l): Likewise.
4993         (RUN_TEST_LOOP_f_l): Likewise.
4994         (RUN_TEST_f_L): Likewise.
4995         (RUN_TEST_LOOP_f_L): Likewise.
4996         (RUN_TEST_sincos): Likewise.
4997         (RUN_TEST_LOOP_sincos): Likewise.
4998
4999 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
5000
5001         [BZ #15480]
5002         [BZ #15485]
5003         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
5004         main case of finite arguments, set rounding mode to FE_TONEAREST
5005         and discard exceptions.
5006         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
5007         exceptions.
5008         (remainder_tonearest_test_data): New variable.
5009         (remainder_test_tonearest): New function.
5010         (remainder_towardzero_test_data): New variable.
5011         (remainder_test_towardzero): New function.
5012         (remainder_downward_test_data): New variable.
5013         (remainder_test_downward): New function.
5014         (remainder_upward_test_data): New variable.
5015         (remainder_test_upward): New function.
5016         (main): Call the new test functions.
5017
5018         * math/libm-test.inc (struct test_f_f1_data): Remove field
5019         extra_init.
5020         (struct test_fF_f1_data): Likewise.
5021         (struct test_ffI_f1_data): Likewise.
5022         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
5023         based on value of EXTRA_EXPECTED.
5024         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
5025         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
5026         EXTRA_VAR based on value of EXTRA_EXPECTED.
5027         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
5028         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
5029         EXTRA_VAR based on value of EXTRA_EXPECTED.
5030         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
5031         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
5032         EXTRA_VAR based on value of EXTRA_EXPECTED.
5033         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
5034         * math/gen-libm-test.pl (parse_args): Don't output initializers
5035         for extra output values.
5036
5037         * math/libm-test.inc (check_int): Expect result to be exactly
5038         equal to expected value and do not handle ulps.
5039         (check_long): Likewise.
5040         (check_longlong): Likewise.
5041
5042         * math/libm-test.inc (ceil_test_data): Test for "inexact"
5043         exceptions.
5044         (cimag_test_data): Likewise.
5045         (conj_test_data): Likewise.
5046         (copysign_test_data): Likewise.
5047         (cproj_test_data): Likewise.
5048         (creal_test_data): Likewise.
5049         (fabs_test_data): Likewise.
5050         (fdim_test_data): Likewise.
5051         (finite_test_data): Likewise.
5052         (floor_test_data): Likewise.
5053         (fmax_test_data): Likewise.
5054         (fmin_test_data): Likewise.
5055         (fmod_test_data): Likewise.
5056         (fpclassify_test_data): Likewise.
5057         (frexp_test_data): Likewise.
5058         (ilogb_test_data): Likewise.
5059         (isfinite_test_data): Likewise.
5060         (isgreater_test_data): Likewise.
5061         (isgreaterequal_test_data): Likewise.
5062         (isinf_test_data): Likewise.
5063         (isless_test_data): Likewise.
5064         (islessequal_test_data): Likewise.
5065         (islessgreater_test_data): Likewise.
5066         (isnan_test_data): Likewise.
5067         (isnormal_test_data): Likewise.
5068         (issignaling_test_data): Likewise.
5069         (isunordered_test_data): Likewise.
5070         (ldexp_test_data): Likewise.
5071         (lrint_test_data): Likewise.
5072         (lrint_test_data) [TEST_FLOAT]: Disable one test.
5073         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
5074         (lrint_tonearest_test_data): Test for "inexact" exceptions.
5075         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
5076         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
5077         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
5078         test input.
5079         (lrint_towardzero_test_data): Test for "inexact" exceptions.
5080         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
5081         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
5082         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
5083         that test input.
5084         (lrint_downward_test_data): Test for "inexact" exceptions.
5085         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
5086         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
5087         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
5088         test input.
5089         (lrint_upward_test_data): Test for "inexact" exceptions.
5090         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
5091         test input.
5092         (llrint_test_data): Test for "inexact" exceptions.
5093         (llrint_test_data) [TEST_FLOAT]: Disable one test.
5094         (llrint_tonearest_test_data): Test for "inexact" exceptions.
5095         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
5096         (llrint_towardzero_test_data): Test for "inexact" exceptions.
5097         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
5098         (llrint_downward_test_data): Test for "inexact" exceptions.
5099         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
5100         (llrint_upward_test_data): Test for "inexact" exceptions.
5101         (logb_test_data): Likewise.
5102         (logb_downward_test_data): Likewise.
5103         (nextafter_test_data): Likewise.
5104         (nexttoward_test_data): Likewise.
5105         (remainder_test_data): Likewise.
5106         (remquo_test_data): Likewise.
5107         (scalbn_test_data): Likewise.
5108         (scalbln_test_data): Likewise.
5109         (signbit_test_data): Likewise.
5110         (sqrt_test_data): Likewise.
5111         (significand_test_data): Likewise.
5112
5113 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
5114
5115         [BZ #15424]
5116         * benchtests/bench-modf.c (struct args): Mark arg0 as
5117         volatile.
5118         * scripts/bench.pl: Mark members of struct args as volatile.
5119
5120 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5121
5122         [BZ # 15497]
5123         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
5124         negative infinity on POWER6 or lower.
5125         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
5126
5127 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5128
5129         [BZ #15442]
5130         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
5131         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
5132         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
5133         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
5134         (_FP_SETQNAN): New macro.
5135         (_FP_SETQNAN_SEMIRAW): Likewise.
5136         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
5137         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
5138         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
5139         (FP_EXTEND): Use _FP_FRAC_SNANP.
5140         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
5141         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
5142         into account.
5143         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
5144         New macro.
5145         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
5146         Likewise.
5147
5148 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
5149
5150         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
5151         with DIVIDE_BY_ZERO_EXCEPTION.
5152         (gamma_test_data): Likewise.
5153         (lgamma_test_data): Likewise.
5154         (log_test_data): Likewise.
5155         (log10_test_data): Likewise.
5156         (log2_test_data): Likewise.
5157         (tgamma_test_data): Likewise.
5158
5159         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
5160         (acos_test_tonearest): Likewise.
5161         (acos_test_towardzero): Likewise.
5162         (acos_test_downward): Likewise.
5163         (acos_test_upward): Likewise.
5164         (acosh_test): Likewise.
5165         (asin_test): Likewise.
5166         (asin_test_tonearest): Likewise.
5167         (asin_test_towardzero): Likewise.
5168         (asin_test_downward): Likewise.
5169         (asin_test_upward): Likewise.
5170         (asinh_test): Likewise.
5171         (atan_test): Likewise.
5172         (atanh_test): Likewise.
5173         (atan2_test): Likewise.
5174         (cabs_test): Likewise.
5175         (cacos_test): Likewise.
5176         (cacosh_test): Likewise.
5177         (casin_test): Likewise.
5178         (casinh_test): Likewise.
5179         (catan_test): Likewise.
5180         (catanh_test): Likewise.
5181         (cbrt_test): Likewise.
5182         (ccos_test): Likewise.
5183         (ccosh_test): Likewise.
5184         (cexp_test): Likewise.
5185         (clog_test): Likewise.
5186         (clog10_test): Likewise.
5187         (cos_test): Likewise.
5188         (cos_test_tonearest): Likewise.
5189         (cos_test_towardzero): Likewise.
5190         (cos_test_downward): Likewise.
5191         (cos_test_upward): Likewise.
5192         (cosh_test): Likewise.
5193         (cosh_test_tonearest): Likewise.
5194         (cosh_test_towardzero): Likewise.
5195         (cosh_test_downward): Likewise.
5196         (cosh_test_upward): Likewise.
5197         (cpow_test): Likewise.
5198         (csin_test): Likewise.
5199         (csinh_test): Likewise.
5200         (csqrt_test): Likewise.
5201         (ctan_test): Likewise.
5202         (ctan_test_tonearest): Likewise.
5203         (ctan_test_towardzero): Likewise.
5204         (ctan_test_downward): Likewise.
5205         (ctan_test_upward): Likewise.
5206         (ctanh_test): Likewise.
5207         (ctanh_test_tonearest): Likewise.
5208         (ctanh_test_towardzero): Likewise.
5209         (ctanh_test_downward): Likewise.
5210         (ctanh_test_upward): Likewise.
5211         (erf_test): Likewise.
5212         (erfc_test): Likewise.
5213         (exp_test): Likewise.
5214         (exp_test_tonearest): Likewise.
5215         (exp_test_towardzero): Likewise.
5216         (exp_test_downward): Likewise.
5217         (exp_test_upward): Likewise.
5218         (exp10_test): Likewise.
5219         (exp2_test): Likewise.
5220         (expm1_test): Likewise.
5221         (fmod_test): Likewise.
5222         (gamma_test): Likewise.
5223         (hypot_test): Likewise.
5224         (j0_test): Likewise.
5225         (j1_test): Likewise.
5226         (jn_test): Likewise.
5227         (lgamma_test): Likewise.
5228         (log_test): Likewise.
5229         (log10_test): Likewise.
5230         (log1p_test): Likewise.
5231         (log2_test): Likewise.
5232         (logb_test_downward): Likewise.
5233         (pow_test): Likewise.
5234         (pow_test_tonearest): Likewise.
5235         (pow_test_towardzero): Likewise.
5236         (pow_test_downward): Likewise.
5237         (pow_test_upward): Likewise.
5238         (remainder_test): Likewise.
5239         (remquo_test): Likewise.
5240         (sin_test): Likewise.
5241         (sin_test_tonearest): Likewise.
5242         (sin_test_towardzero): Likewise.
5243         (sin_test_downward): Likewise.
5244         (sin_test_upward): Likewise.
5245         (sincos_test): Likewise.
5246         (sinh_test): Likewise.
5247         (sinh_test_tonearest): Likewise.
5248         (sinh_test_towardzero): Likewise.
5249         (sinh_test_downward): Likewise.
5250         (sinh_test_upward): Likewise.
5251         (sqrt_test): Likewise.
5252         (tan_test): Likewise.
5253         (tan_test_tonearest): Likewise.
5254         (tan_test_towardzero): Likewise.
5255         (tan_test_downward): Likewise.
5256         (tan_test_upward): Likewise.
5257         (tanh_test): Likewise.
5258         (tgamma_test): Likewise.
5259         (y0_test): Likewise.
5260         (y1_test): Likewise.
5261         (yn_test): Likewise.
5262
5263         * math/gen-libm-test.pl (adjust_arg): Remove function.
5264         (special_function): Remove argument $in_func.  Only handle
5265         generating output for tables of tests, not inside functions.
5266         (parse_args): Likewise.
5267         (generate_testfile): Remove variable $in_func.  Update call to
5268         parse_args.
5269         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
5270         (MINUS_ZERO_INIT): Rename macro to minus_zero.
5271         (PLUS_INFTY_INIT): Rename macro to plus_infty.
5272         (MINUS_INFTY_INIT): Rename macro to minus_infty.
5273         (QNAN_VALUE_INIT): Rename macro to qnan_value.
5274         (MAX_VALUE_INIT): Rename macro to max_value.
5275         (MIN_VALUE_INIT): Rename macro to min_value.
5276         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
5277         (plus_zero): Remove variable.
5278         (minus_zero): Likewise.
5279         (plus_infty): Likewise.
5280         (minus_infty): Likewise.
5281         (qnan_value): Likewise.
5282         (max_value): Likewise.
5283         (min_value): Likewise.
5284         (min_subnorm_value): Likewise.
5285
5286 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5287
5288         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
5289         uint64_t or uint32_t usage.
5290         * crypt/sha256-block.c: Likewise.
5291         * crypt/sha256-crypt.c: Likewise.
5292         * crypt/sha256.c: Likewise.
5293         * crypt/sha512-block.c: Likewise.
5294         * crypt/sha512-crypt.c: Likewise.
5295         * crypt/sha512.c: Likewise.
5296         * debug/backtrace-tst.c: Likewise.
5297         * debug/pcprofiledump.c: Likewise.
5298         * elf/cache.c: Likewise.
5299         * elf/dl-cache.c: Likewise.
5300         * elf/dl-misc.c: Likewise.
5301         * elf/dl-profile.c: Likewise.
5302         * elf/dl-support.c: Likewise.
5303         * elf/ldconfig.c: Likewise.
5304         * elf/sprof.c: Likewise.
5305         * iconv/dummy-repertoire.c: Likewise.
5306         * iconv/iconv_charmap.c: Likewise.
5307         * iconv/skeleton.c: Likewise.
5308         * iconvdata/8bit-generic.c: Likewise.
5309         * iconvdata/cp737.h: Likewise.
5310         * iconvdata/cp775.h: Likewise.
5311         * iconvdata/ibm1008.h: Likewise.
5312         * iconvdata/ibm1025.h: Likewise.
5313         * iconvdata/ibm1046.h: Likewise.
5314         * iconvdata/ibm1097.h: Likewise.
5315         * iconvdata/ibm1112.h: Likewise.
5316         * iconvdata/ibm1122.h: Likewise.
5317         * iconvdata/ibm1123.h: Likewise.
5318         * iconvdata/ibm1124.h: Likewise.
5319         * iconvdata/ibm1129.h: Likewise.
5320         * iconvdata/ibm1130.h: Likewise.
5321         * iconvdata/ibm1132.h: Likewise.
5322         * iconvdata/ibm1133.h: Likewise.
5323         * iconvdata/ibm1137.h: Likewise.
5324         * iconvdata/ibm1140.h: Likewise.
5325         * iconvdata/ibm1141.h: Likewise.
5326         * iconvdata/ibm1142.h: Likewise.
5327         * iconvdata/ibm1143.h: Likewise.
5328         * iconvdata/ibm1144.h: Likewise.
5329         * iconvdata/ibm1145.h: Likewise.
5330         * iconvdata/ibm1146.h: Likewise.
5331         * iconvdata/ibm1147.h: Likewise.
5332         * iconvdata/ibm1148.h: Likewise.
5333         * iconvdata/ibm1149.h: Likewise.
5334         * iconvdata/ibm1153.h: Likewise.
5335         * iconvdata/ibm1154.h: Likewise.
5336         * iconvdata/ibm1155.h: Likewise.
5337         * iconvdata/ibm1156.h: Likewise.
5338         * iconvdata/ibm1157.h: Likewise.
5339         * iconvdata/ibm1158.h: Likewise.
5340         * iconvdata/ibm1160.h: Likewise.
5341         * iconvdata/ibm1161.h: Likewise.
5342         * iconvdata/ibm1162.h: Likewise.
5343         * iconvdata/ibm1163.h: Likewise.
5344         * iconvdata/ibm1164.h: Likewise.
5345         * iconvdata/ibm1166.h: Likewise.
5346         * iconvdata/ibm1167.h: Likewise.
5347         * iconvdata/ibm12712.h: Likewise.
5348         * iconvdata/ibm1390.h: Likewise.
5349         * iconvdata/ibm1399.h: Likewise.
5350         * iconvdata/ibm16804.h: Likewise.
5351         * iconvdata/ibm4517.h: Likewise.
5352         * iconvdata/ibm4899.h: Likewise.
5353         * iconvdata/ibm4909.h: Likewise.
5354         * iconvdata/ibm4971.h: Likewise.
5355         * iconvdata/ibm5347.h: Likewise.
5356         * iconvdata/ibm803.h: Likewise.
5357         * iconvdata/ibm856.h: Likewise.
5358         * iconvdata/ibm901.h: Likewise.
5359         * iconvdata/ibm902.h: Likewise.
5360         * iconvdata/ibm9030.h: Likewise.
5361         * iconvdata/ibm9066.h: Likewise.
5362         * iconvdata/ibm921.h: Likewise.
5363         * iconvdata/ibm922.h: Likewise.
5364         * iconvdata/ibm9448.h: Likewise.
5365         * iconvdata/isiri-3342.h: Likewise.
5366         * iconvdata/jis0201.h: Likewise.
5367         * include/link.h: Likewise.
5368         * include/netdb.h: Likewise.
5369         * inet/check_native.c: Likewise.
5370         * inet/check_pf.c: Likewise.
5371         * inet/getipv4sourcefilter.c: Likewise.
5372         * inet/getnameinfo.c: Likewise.
5373         * inet/getsourcefilter.c: Likewise.
5374         * inet/htonl.c: Likewise.
5375         * inet/setipv4sourcefilter.c: Likewise.
5376         * inet/setsourcefilter.c: Likewise.
5377         * inet/test-inet6_opt.c: Likewise.
5378         * inet/tst-network.c: Likewise.
5379         * locale/C-collate.c: Likewise.
5380         * locale/C-ctype.c: Likewise.
5381         * locale/C-time.c: Likewise.
5382         * locale/C-translit.h: Likewise.
5383         * locale/loadarchive.c: Likewise.
5384         * locale/programs/3level.h: Likewise.
5385         * locale/programs/charmap.c: Likewise.
5386         * locale/programs/charmap.h: Likewise.
5387         * locale/programs/ld-address.c: Likewise.
5388         * locale/programs/ld-collate.c: Likewise.
5389         * locale/programs/ld-ctype.c: Likewise.
5390         * locale/programs/ld-identification.c: Likewise.
5391         * locale/programs/ld-measurement.c: Likewise.
5392         * locale/programs/ld-messages.c: Likewise.
5393         * locale/programs/ld-monetary.c: Likewise.
5394         * locale/programs/ld-name.c: Likewise.
5395         * locale/programs/ld-numeric.c: Likewise.
5396         * locale/programs/ld-paper.c: Likewise.
5397         * locale/programs/ld-telephone.c: Likewise.
5398         * locale/programs/ld-time.c: Likewise.
5399         * locale/programs/linereader.c: Likewise.
5400         * locale/programs/locale.c: Likewise.
5401         * locale/programs/locarchive.c: Likewise.
5402         * locale/programs/locfile.h: Likewise.
5403         * locale/programs/repertoire.c: Likewise.
5404         * locale/programs/simple-hash.c: Likewise.
5405         * locale/programs/simple-hash.h: Likewise.
5406         * malloc/memusage.c: Likewise.
5407         * malloc/memusagestat.c: Likewise.
5408         * nis/nis_defaults.c: Likewise.
5409         * nis/nis_hash.c: Likewise.
5410         * nis/nis_print.c: Likewise.
5411         * nis/nis_xdr.c: Likewise.
5412         * nscd/connections.c: Likewise.
5413         * nscd/hstcache.c: Likewise.
5414         * nscd/nscd_gethst_r.c: Likewise.
5415         * nscd/nscd_getserv_r.c: Likewise.
5416         * nscd/nscd_helper.c: Likewise.
5417         * nscd/servicescache.c: Likewise.
5418         * nss/makedb.c: Likewise.
5419         * nss/nss_db/db-XXX.c: Likewise.
5420         * nss/nss_db/db-initgroups.c: Likewise.
5421         * nss/nss_db/db-netgrp.c: Likewise.
5422         * nss/nss_files/files-network.c: Likewise.
5423         * nss/nss_files/files-parse.c: Likewise.
5424         * posix/bug-regex5.c: Likewise.
5425         * posix/fnmatch_loop.c: Likewise.
5426         * posix/regcomp.c: Likewise.
5427         * posix/regexec.c: Likewise.
5428         * posix/tst-rfc3484-2.c: Likewise.
5429         * posix/tst-rfc3484-3.c: Likewise.
5430         * posix/tst-rfc3484.c: Likewise.
5431         * resolv/nss_dns/dns-canon.c: Likewise.
5432         * resolv/nss_dns/dns-network.c: Likewise.
5433         * resolv/res_init.c: Likewise.
5434         * resolv/res_mkquery.c: Likewise.
5435         * resolv/tst-aton.c: Likewise.
5436         * stdlib/cxa_atexit.c: Likewise.
5437         * stdlib/cxa_finalize.c: Likewise.
5438         * stdlib/gen-fpioconst.c: Likewise.
5439         * stdlib/strtol_l.c: Likewise.
5440         * string/tst-endian.c: Likewise.
5441         * sunrpc/auth_des.c: Likewise.
5442         * sunrpc/clnt_udp.c: Likewise.
5443         * sunrpc/rtime.c: Likewise.
5444         * sunrpc/svcauth_des.c: Likewise.
5445         * sunrpc/xdr.c: Likewise.
5446         * sunrpc/xdr_intXX_t.c: Likewise.
5447         * sunrpc/xdr_rec.c: Likewise.
5448         * sysdeps/generic/ldconfig.h: Likewise.
5449         * sysdeps/generic/ldsodefs.h: Likewise.
5450         * sysdeps/generic/memusage.h: Likewise.
5451         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
5452         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
5453         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
5454         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
5455         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
5456         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5457         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
5458         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
5459         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5460         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
5461         * sysdeps/posix/getaddrinfo.c: Likewise.
5462         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
5463         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
5464         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
5465         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5466         * sysdeps/powerpc/test-gettimebase.c: Likewise.
5467         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
5468         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
5469         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
5470         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
5471         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
5472         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
5473         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
5474         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
5475         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
5476         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
5477         * sysdeps/x86_64/dl-tls.h: Likewise.
5478         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
5479         * time/alt_digit.c: Likewise.
5480         * time/era.c: Likewise.
5481         * wcsmbs/tst-c16c32-1.c: Likewise.
5482
5483 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
5484
5485         * math/libm-test.inc (struct test_sincos_data): New type.
5486         (RUN_TEST_LOOP_sincos): New macro.
5487         (sincos_test_data): New variable.
5488         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
5489
5490 2013-05-16  Richard Henderson  <rth@redhat.com>
5491
5492         * math/atest-exp2.c (LIMB64): New macro.
5493         (CONSTSZ): New macro.
5494         (mp_exp1, mp_exp_m1, mp_log2): New variables.
5495         (hexdig): Move ...
5496         (print_mpn_fp): ... to function scope.
5497         (read_mpn_hex): Remove.
5498         (get_log2): Remove.
5499         (exp2_mpn): Use mp_log2.
5500         (main): Use mp_exp1.
5501
5502 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
5503
5504         * math/libm-test.inc: Remove comment about not testing "inexact"
5505         exceptions.
5506         (INEXACT_EXCEPTION): New macro.
5507         (NO_INEXACT_EXCEPTION): Likewise.
5508         (INVALID_EXCEPTION_OK): Update value.
5509         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5510         (OVERFLOW_EXCEPTION_OK): Likewise.
5511         (UNDERFLOW_EXCEPTION_OK): Likewise.
5512         (IGNORE_ZERO_INF_SIGN): Likewise.
5513         (ERRNO_UNCHANGED): Likewise.
5514         (ERRNO_EDOM): Likewise.
5515         (ERRNO_ERANGE): Likewise.
5516         (test_exceptions): Handle testing "inexact" exceptions.
5517         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
5518         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
5519         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
5520         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
5521         INEXACT_EXCEPTION.
5522         (rint_towardzero_test_data): Likewise.
5523         (rint_downward_test_data): Likewise.
5524         (rint_upward_test_data): Likewise.
5525
5526         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
5527         with OVERFLOW_EXCEPTION.
5528         (exp10_test_data): Likewise.
5529         (exp2_test_data): Likewise.
5530         (expm1_test_data): Likewise.
5531         (lgamma_test_data): Likewise.
5532         (pow_test_data): Likewise.
5533         (tgamma_test_data): Likewise.
5534         (yn_test_data): Remove duplicate test of overflow.
5535
5536         * math/libm-test.inc (struct test_cc_c_data): New type.
5537         (RUN_TEST_LOOP_cc_c): New macro.
5538         (cpow_test_data): New variable.
5539         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
5540
5541         * math/libm-test.inc (struct test_f_L_data): New type.
5542         (RUN_TEST_LOOP_f_L): New macro.
5543         (llrint_test_data): New variable.
5544         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
5545         (llrint_tonearest_test_data): New variable.
5546         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
5547         (llrint_towardzero_test_data): New variable.
5548         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
5549         (llrint_downward_test_data): New variable.
5550         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
5551         (llrint_upward_test_data): New variable.
5552         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
5553         (llround_test_data): New variable.
5554         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
5555
5556 2013-05-13  Peter Collingbourne  <pcc@google.com>
5557
5558         * math/atest-exp2.c (get_log2): Remove const attribute.
5559
5560 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
5561
5562         * math/libm-test.inc (struct test_f_l_data): New type.
5563         (RUN_TEST_LOOP_f_l): New macro.
5564         (lrint_test_data): New variable.
5565         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
5566         (lrint_tonearest_test_data): New variable.
5567         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
5568         (lrint_towardzero_test_data): New variable.
5569         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
5570         (lrint_downward_test_data): New variable.
5571         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
5572         (lrint_upward_test_data): New variable.
5573         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
5574         (lround_test_data): New variable.
5575         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
5576
5577 2013-05-15  Peter Collingbourne  <pcc@google.com>
5578
5579         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
5580         (EXTRACT_WORDS64) Use where appropriate.
5581         (INSERT_WORDS64) Likewise.
5582
5583         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
5584         constraints with x constraints.
5585         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
5586
5587         * malloc/obstack.c (_obstack_compat): Add initializer.
5588
5589 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5590
5591         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
5592         si_trapno and add si_addr_lsb to _sifields.sigfault.
5593         (si_trapno): Remove macro.
5594         (si_addr_lsb): Define new macro.
5595         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
5596
5597 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
5598
5599         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
5600         instead of TEST_f_l.
5601         (llrint_test_tonearest): Likewise.
5602         (llrint_test_towardzero): Likewise.
5603         (llrint_test_downward): Likewise.
5604         (llrint_test_upward): Likewise.
5605         (llround_test): Likewise.
5606
5607         * math/libm-test.inc (struct test_f_i_data): Add comment.
5608         (RUN_TEST_LOOP_f_b): New macro.
5609         (RUN_TEST_LOOP_f_b_tg): Likewise.
5610         (finite_test_data): New variable.
5611         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
5612         (isfinite_test_data): New variable.
5613         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5614         (isinf_test_data): New variable.
5615         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5616         (isnan_test_data): New variable.
5617         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5618         (isnormal_test_data): New variable.
5619         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5620         (issignaling_test_data): New variable.
5621         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5622         (signbit_test_data): New variable.
5623         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5624
5625         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
5626         with INVALID_EXCEPTION.
5627         (acosh_test_data): Likewise.
5628         (asin_test_data): Likewise.
5629         (atanh_test_data): Likewise.
5630         (fmod_test_data): Likewise.
5631         (log_test_data): Likewise.
5632         (log10_test_data): Likewise.
5633         (log2_test_data): Likewise.
5634         (pow_test_data): Likewise.
5635         (sqrt_test_data): Likewise.
5636         (y0_test_data): Likewise.
5637         (y1_test_data): Likewise.
5638         (yn_test_data): Likewise.
5639
5640         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
5641         function contents.
5642
5643         * math/libm-test.inc (struct test_ff_i_data): New type.
5644         (RUN_TEST_LOOP_ff_i_tg): New macro.
5645         (isgreater_test_data): New variable.
5646         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5647         (isgreaterequal_test_data): New variable.
5648         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5649         (isless_test_data): New variable.
5650         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5651         (islessequal_test_data): New variable.
5652         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5653         (islessgreater_test_data): New variable.
5654         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5655         (isunordered_test_data): New variable.
5656         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5657
5658 2013-05-14  David S. Miller  <davem@davemloft.net>
5659
5660         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5661
5662 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
5663
5664         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
5665
5666         * math/libm-test.inc (struct test_fF_f1_data): Change type of
5667         extra_test to int.
5668         (struct test_f_i_data): Change type of max_ulp to int.
5669
5670         * math/libm-test.inc (test_ffI_f1_data): New type.
5671         (RUN_TEST_LOOP_ffI_f1): New macro.
5672         (remquo_test_data): New variable.
5673         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
5674
5675         * setjmp/tst-setjmp-fp.c: New file.
5676         * setjmp/Makefile (tests): Add tst-setjmp-fp.
5677         (link-libm): New variable.
5678         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
5679
5680         * math/libm-test.inc (struct test_f_i_data): New type.
5681         (RUN_TEST_LOOP_f_i): New macro.
5682         (RUN_TEST_LOOP_f_i_tg): Likewise.
5683         (fpclassify_test_data): New variable.
5684         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
5685         (ilogb_test_data): New variable.
5686         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
5687
5688         * math/libm-test.inc (scalbln_test): Correct function name in END
5689         call.
5690
5691         * math/libm-test.inc (struct test_f_f1_data): Add comment.
5692         (RUN_TEST_LOOP_fI_f1): New macro.
5693         (frexp_test_data): New variable.
5694         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
5695
5696         * math/libm-test.inc (struct test_fF_f1_data): New type.
5697         (RUN_TEST_LOOP_fF_f1): New macro.
5698         (modf_test_data): New variable.
5699         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
5700
5701         * math/libm-test.inc (struct test_f_f1_data): New type.
5702         (RUN_TEST_LOOP_f_f1): New macro.
5703         (gamma_test_data): New variable.
5704         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
5705         (lgamma_test_data): New variable.
5706         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
5707
5708 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
5709
5710         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
5711         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
5712         (main): Comment "tls" pseudo-hwcap.
5713
5714 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
5715
5716         * math/libm-test.inc (struct test_fl_f_data): New type.
5717         (RUN_TEST_LOOP_fl_f): New variable.
5718         (scalbln_test_data): New variable.
5719         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
5720
5721         * math/libm-test.inc (struct test_fi_f_data): New type.
5722         (RUN_TEST_LOOP_fi_f): New macro.
5723         (ldexp_test_data): New variable.
5724         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
5725         (scalbn_test_data): New variable.
5726         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
5727
5728         * math/libm-test.inc (struct test_c_f_data): New type.
5729         (RUN_TEST_LOOP_c_f): New macro.
5730         (cabs_test_data): New variable.
5731         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
5732         (carg_test_data): New variable.
5733         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
5734         (cimag_test_data): New variable.
5735         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
5736         (creal_test_data): New variable.
5737         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
5738
5739         * math/libm-test.inc (struct test_if_f_data): New type.
5740         (RUN_TEST_LOOP_if_f): New macro.
5741         (jn_test_data): New variable.
5742         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
5743         (yn_test_data): New variable.
5744         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
5745
5746         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
5747
5748 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5749
5750         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
5751         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
5752
5753 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
5754
5755         * benchtests/Makefile (CPPFLAGS-nonlib): Add
5756         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
5757         (bench-deps): Add bench-timing.h.
5758         * benchtests-bench-skeleton.c: Include bench-timing.h.
5759         (main): Use TIMING_* macros instead of clock_gettime.
5760         * benchtests/bench-timing.h: New file.
5761
5762         [BZ #14582]
5763         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
5764         Renamed from _LIB_VERSION.
5765         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
5766
5767 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
5768
5769         * math/libm-test.inc (struct test_fff_f_data): New type.
5770         (RUN_TEST_LOOP_fff_f): New macro.
5771         (fma_test_data): New variable.
5772         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
5773         (fma_towardzero_test_data): New variable.
5774         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
5775         (fma_downward_test_data): New variable.
5776         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
5777         (fma_upward_test_data): New variable.
5778         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
5779
5780         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
5781         (struct test_c_c_data): New type.
5782         (RUN_TEST_LOOP_c_c): New macro.
5783         (cacos_test_data): New variable.
5784         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
5785         (cacosh_test_data): New variable.
5786         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
5787         (casin_test_data): New variable.
5788         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
5789         (casinh_test_data): New variable.
5790         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
5791         (catan_test_data): New variable.
5792         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
5793         (catanh_test_data): New variable.
5794         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
5795         (ccos_test_data): New variable.
5796         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
5797         (ccosh_test_data): New variable.
5798         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
5799         (cexp_test_data): New variable.
5800         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
5801         (clog_test_data): New variable.
5802         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
5803         (clog10_test_data): New variable.
5804         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
5805         (conj_test_data): New variable.
5806         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
5807         (cproj_test_data): New variable.
5808         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
5809         (csin_test_data): New variable.
5810         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
5811         (csinh_test_data): New variable.
5812         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
5813         (csqrt_test_data): New variable.
5814         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
5815         (ctan_test_data): New variable.
5816         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
5817         (ctan_tonearest_test_data): New variable.
5818         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
5819         (ctan_towardzero_test_data): New variable.
5820         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
5821         (ctan_downward_test_data): New variable.
5822         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
5823         (ctan_upward_test_data): New variable.
5824         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
5825         (ctanh_test_data): New variable.
5826         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
5827         (ctanh_tonearest_test_data): New variable.
5828         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
5829         (ctanh_towardzero_test_data): New variable.
5830         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
5831         (ctanh_downward_test_data): New variable.
5832         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
5833         (ctanh_upward_test_data): New variable.
5834         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
5835         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
5836         of BUILD_COMPLEX.
5837
5838         * math/libm-test.inc (struct test_ff_f_data): New type.
5839         (struct test_ff_f_data_nexttoward): Likewise.
5840         (RUN_TEST_LOOP_2_f): New macro.
5841         (RUN_TEST_LOOP_ff_f): Likewise.
5842         (atan2_test_data): New variable.
5843         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
5844         (copysign_test_data): New variable.
5845         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
5846         (fdim_test_data): New variable.
5847         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
5848         (fmax_test_data): New variable.
5849         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
5850         (fmin_test_data): New variable.
5851         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
5852         (fmod_test_data): New variable.
5853         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
5854         (hypot_test_data): New variable.
5855         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
5856         (nextafter_test_data): New variable.
5857         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
5858         (nexttoward_test_data): New variable.
5859         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
5860         (pow_test_data): New variable.
5861         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
5862         (pow_tonearest_test_data): New variable.
5863         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
5864         (pow_towardzero_test_data): New variable.
5865         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
5866         (pow_downward_test_data): New variable.
5867         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
5868         (pow_upward_test_data): New variable.
5869         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
5870         (remainder_test_data): New variable.
5871         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
5872         (scalb_test_data): New variable.
5873         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
5874         * sysdeps/i386/fpu/libm-test-ulps: Update.
5875
5876 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
5877
5878         * math/libm-test.inc (fma_test): Use max_value instead of local
5879         variable fltmax.
5880         (nextafter_test): Likewise.
5881
5882         * math/libm-test.inc (acos_towardzero_test_data): New variable.
5883         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5884         (acos_downward_test_data): New variable.
5885         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5886         (acos_upward_test_data): New variable.
5887         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5888         (acosh_test_data): New variable.
5889         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
5890         (asin_test_data): New variable.
5891         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
5892         (asin_tonearest_test_data): New variable.
5893         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5894         (asin_towardzero_test_data): New variable.
5895         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5896         (asin_downward_test_data): New variable.
5897         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5898         (asin_upward_test_data): New variable.
5899         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5900         (asinh_test_data): New variable.
5901         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
5902         (atan_test_data): New variable.
5903         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
5904         (atanh_test_data): New variable.
5905         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
5906         (cbrt_test_data): New variable.
5907         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
5908         (ceil_test_data): New variable.
5909         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
5910         (cos_test_data): New variable.
5911         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
5912         (cos_tonearest_test_data): New variable.
5913         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5914         (cos_towardzero_test_data): New variable.
5915         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5916         (cos_downward_test_data): New variable.
5917         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5918         (cos_upward_test_data): New variable.
5919         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5920         (cosh_test_data): New variable.
5921         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
5922         (cosh_tonearest_test_data): New variable.
5923         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5924         (cosh_towardzero_test_data): New variable.
5925         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5926         (cosh_downward_test_data): New variable.
5927         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5928         (cosh_upward_test_data): New variable.
5929         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5930         (erf_test_data): New variable.
5931         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
5932         (erfc_test_data): New variable.
5933         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
5934         (exp_test_data): New variable.
5935         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
5936         (exp_tonearest_test_data): New variable.
5937         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5938         (exp_towardzero_test_data): New variable.
5939         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5940         (exp_downward_test_data): New variable.
5941         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5942         (exp_upward_test_data): New variable.
5943         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5944         (exp10_test_data): New variable.
5945         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
5946         (exp2_test_data): New variable.
5947         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
5948         (expm1_test_data): New variable.
5949         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
5950         (fabs_test_data): New variable.
5951         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
5952         (floor_test_data): New variable.
5953         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
5954         (j0_test_data): New variable.
5955         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
5956         (j1_test_data): New variable.
5957         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
5958         (log_test_data): New variable.
5959         (log_test): Run tests with RUN_TEST_LOOP_f_f.
5960         (log10_test_data): New variable.
5961         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
5962         (log1p_test_data): New variable.
5963         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
5964         (log2_test_data): New variable.
5965         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
5966         (logb_test_data): New variable.
5967         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
5968         (logb_downward_test_data): New variable.
5969         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5970         (nearbyint_test_data): New variable.
5971         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
5972         (rint_test_data): New variable.
5973         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
5974         (rint_tonearest_test_data): New variable.
5975         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5976         (rint_towardzero_test_data): New variable.
5977         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5978         (rint_downward_test_data): New variable.
5979         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5980         (rint_upward_test_data): New variable.
5981         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5982         (round_test_data): New variable.
5983         (round_test): Run tests with RUN_TEST_LOOP_f_f.
5984         (sin_test_data): New variable.
5985         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
5986         (sin_tonearest_test_data): New variable.
5987         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5988         (sin_towardzero_test_data): New variable.
5989         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
5990         (sin_downward_test_data): New variable.
5991         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
5992         (sin_upward_test_data): New variable.
5993         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
5994         (sinh_test_data): New variable.
5995         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
5996         (sinh_tonearest_test_data): New variable.
5997         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
5998         (sinh_towardzero_test_data): New variable.
5999         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6000         (sinh_downward_test_data): New variable.
6001         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6002         (sinh_upward_test_data): New variable.
6003         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6004         (sqrt_test_data): New variable.
6005         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
6006         (tan_test_data): New variable.
6007         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
6008         (tan_tonearest_test_data): New variable.
6009         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6010         (tan_towardzero_test_data): New variable.
6011         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6012         (tan_downward_test_data): New variable.
6013         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6014         (tan_upward_test_data): New variable.
6015         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6016         (tanh_test_data): New variable.
6017         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
6018         (tgamma_test_data): New variable.
6019         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
6020         (trunc_test_data): New variable.
6021         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
6022         (y0_test_data): New variable.
6023         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
6024         (y1_test_data): New variable.
6025         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
6026         (significand_test_data): New variable.
6027         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
6028
6029 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
6030
6031         [BZ #12387]
6032         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
6033
6034 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6035
6036         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
6037
6038 2013-05-10  Andreas Jaeger  <aj@suse.de>
6039
6040         [BZ #15448]
6041         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
6042         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
6043
6044 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
6045
6046         * math/gen-libm-test.pl (adjust_arg): New function.
6047         (special_functions): Handle generating output in both functions
6048         and arrays.
6049         (parse_args): Likewise.
6050         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
6051         $in_func argument to parse_args.
6052         * math/libm-test.inc (struct test_f_f_data): New type.
6053         (IF_ROUND_INIT_): New macro.
6054         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
6055         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
6056         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
6057         (IF_ROUND_INIT_FE_UPWARD): Likewise.
6058         (ROUND_RESTORE_): Likewise.
6059         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
6060         (ROUND_RESTORE_FE_TONEAREST): Likewise.
6061         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
6062         (ROUND_RESTORE_FE_UPWARD): Likewise.
6063         (RUN_TEST_LOOP_f_f): New macro.
6064         (acos_test_data): New variable.
6065         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
6066         (acos_tonearest_test_data): New variable.
6067         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6068
6069 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6070
6071         * benchtests/bench-skeleton.c (startup): Fix coding style.
6072
6073 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
6074
6075         [BZ #6809]
6076         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
6077         negative infinity argument.
6078         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
6079         negative infinity argument.
6080         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
6081         negative infinity argument.
6082         * math/libm-test.inc (tgamma_test): Expect errno to be set for
6083         domain errors.
6084
6085 2013-05-10  Florian Weimer  <fweimer@redhat.com>
6086
6087         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
6088         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
6089         * iconv/iconv_prog.c (main): Likewise.
6090         * locale/programs/charmap-dir.c (charmap_readdir)
6091         (fopen_uncompressed): Likewise.
6092         * locale/programs/locfile.c (siblings_uncached)
6093         (write_locale_data): Use lstat64 instead of lstat.
6094         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
6095         stat.
6096
6097 2013-05-10  Andreas Jaeger  <aj@suse.de>
6098
6099         [BZ #15395]
6100         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
6101         localization.
6102         Include <locale.h>.
6103
6104 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
6105
6106         * elf/dl-close.c (_dl_close_worker): Add comments.
6107
6108 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
6109
6110         [BZ #15359]
6111         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
6112         high part of pi/2.
6113         (__ieee754_rem_pio2l): Update comments.
6114
6115         [BZ #15429]
6116         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
6117         high part of pi/2.
6118         (__ieee754_rem_pio2l): Update comments.
6119
6120         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
6121         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
6122
6123         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
6124         M_PI_4l.
6125
6126         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
6127         (M_PI_34_LOG10El): Likewise.
6128         (M_PI2_LOG10El): Likewise.
6129         (M_PI4_LOG10El): Likewise.
6130         (M_PI_LOG10El): Likewise.
6131
6132 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6133
6134         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6135
6136 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
6137
6138         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
6139         (MINUS_ZERO_INIT): Likewise.
6140         (PLUS_INFTY_INIT): Likewise.
6141         (MINUS_INFTY_INIT): Likewise.
6142         (QNAN_VALUE_INIT): Likewise.
6143         (MAX_VALUE_INIT): Likewise.
6144         (MIN_VALUE_INIT): Likewise.
6145         (MIN_SUBNORM_VALUE_INIT): Likewise.
6146         (plus_zero): Initialize with PLUS_ZERO_INIT.
6147         (minus_zero): Initialize with MINUS_ZERO_INIT.
6148         (plus_infty): Initialize with PLUS_INFTY_INIT.
6149         (minus_infty): Initialize with MINUS_INFTY_INIT.
6150         (qnan_value): Initialize with QNAN_VALUE_INIT.
6151         (max_value): Initialize with MAX_VALUE_INIT.
6152         (min_value): Initialize with MIN_VALUE_INIT.
6153         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
6154
6155         * math/libm-test.inc (RUN_TEST_if_f): New macro.
6156         (jn_test): Use TEST_if_f instead of TEST_ff_f.
6157         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
6158         (yn_test): Use TEST_if_f instead of TEST_ff_f.
6159
6160         * math/libm-test.inc (RUN_TEST_f_f): New macro.
6161         (RUN_TEST_2_f): Likewise.
6162         (RUN_TEST_ff_f): Likewise.
6163         (RUN_TEST_fi_f): Likewise.
6164         (RUN_TEST_fl_f): Likewise.
6165         (RUN_TEST_fff_f): Likewise.
6166         (RUN_TEST_c_f): Likewise.
6167         (RUN_TEST_f_f1): Likewise.
6168         (RUN_TEST_fF_f1): Likewise.
6169         (RUN_TEST_fI_f1): Likewise.
6170         (RUN_TEST_ffI_f1): Likewise.
6171         (RUN_TEST_c_c): Likewise.
6172         (RUN_TEST_cc_c): Likewise.
6173         (RUN_TEST_f_i): Likewise.
6174         (RUN_TEST_f_i_tg): Likewise.
6175         (RUN_TEST_ff_i_tg): Likewise.
6176         (RUN_TEST_f_b): Likewise.
6177         (RUN_TEST_f_b_tg): Likewise.
6178         (RUN_TEST_f_l): Likewise.
6179         (RUN_TEST_f_L): Likewise.
6180         (RUN_TEST_sincos): Likewise.
6181         * math/gen-libm-test.pl (new_test): Take new argument to indicate
6182         whether to show exceptions.  Do not include ");\n" in return
6183         value.
6184         (special_functions): Output call to RUN_TEST_sincos instead of
6185         check_float calls.  Update calls to new_test.
6186         (parse_args): Output call to single RUN_TEST_* macro instead of
6187         check_* calls and other assignments.  Update calls to new_test.
6188
6189         [BZ #2546]
6190         [BZ #2560]
6191         [BZ #5159]
6192         [BZ #15426]
6193         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
6194         input to result for tgamma overflow.
6195         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
6196         (gamma_coeff): New variable.
6197         (NCOEFF): New macro.
6198         (gamma_positive): New function.
6199         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
6200         underflow here.  Use gamma_positive instead of exp (lgamma) for
6201         other arguments.
6202         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
6203         (gamma_coeff): New variable.
6204         (NCOEFF): New macro.
6205         (gammaf_positive): New function.
6206         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
6207         underflow here.  Use gamma_positive instead of exp (lgamma) for
6208         other arguments.
6209         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
6210         (gamma_coeff): New variable.
6211         (NCOEFF): New macro.
6212         (gammal_positive): New function.
6213         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
6214         underflow here.  Use gamma_positive instead of exp (lgamma) for
6215         other arguments.
6216         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
6217         (gamma_coeff): New variable.
6218         (NCOEFF): New macro.
6219         (gammal_positive): New function.
6220         (__ieee754_gammal_r): Handle positive infinity, overflow and
6221         underflow here.  Handle NaN the same as positive infinity.  Remove
6222         check x < 0xffffffff for negative integers.  Use gamma_positive
6223         instead of exp (lgamma) for other arguments.
6224         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
6225         (gamma_coeff): New variable.
6226         (NCOEFF): New macro.
6227         (gammal_positive): New function.
6228         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
6229         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
6230         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6231         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
6232         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
6233         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6234         * sysdeps/generic/math_private.h (__gamma_productf): New
6235         prototype.
6236         (__gamma_product): Likewise.
6237         (__gamma_productl): Likewise.
6238         * math/Makefile (libm-calls): Add gamma_product.
6239         * math/libm-test.inc (tgamma_test): Add more tests.
6240         * sysdeps/i386/fpu/libm-test-ulps: Update.
6241         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6242
6243 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
6244
6245         * benchtests/bench-skeleton.c (main): Preheat CPU.
6246
6247 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
6248
6249         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
6250
6251 2013-05-07  Roland McGrath  <roland@hack.frob.com>
6252
6253         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
6254         and _dl_skip_args_internal.
6255
6256 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
6257
6258         * manual/message.texi (Message Translation): Talk about users.
6259         Message to key mapping impacts design.
6260
6261 2013-05-06  Roland McGrath  <roland@hack.frob.com>
6262
6263         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
6264
6265         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
6266
6267         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
6268         * sysdeps/wordsize-64/glob64.c: ... here.
6269
6270         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
6271         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
6272         New macros.
6273
6274         * debug/getlogin_r_chk.c: Moved to ...
6275         * login/getlogin_r_chk.c: ... here.
6276         * debug/Makefile (routines): Move getlogin_r_chk to ...
6277         * login/Makefile (routines): ... here.
6278         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
6279         * login/Versions (libc: GLIBC_2.4): ... here.
6280
6281         * io/poll.c (__poll): Renamed from poll.
6282         Add libc_hidden_def.
6283         (poll): Define as weak alias.
6284
6285         * debug/ptsname_r_chk.c: Moved to ...
6286         * login/ptsname_r_chk.c: ... here.
6287         * debug/Makefile (routines): Move ptsname_r_chk to ...
6288         * login/Makefile (routines): ... here.
6289         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
6290         * login/Versions (libc: GLIBC_2.4): ... here.
6291
6292         * posix/getlogin.c: Moved to ...
6293         * login/getlogin.c: ... here.
6294         * posix/getlogin_r.c: Moved to ...
6295         * login/getlogin_r.c: ... here.
6296         * posix/getlogin_r.c: Moved to ...
6297         * login/getlogin_r.c: ... here.
6298         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
6299         * login/Makefile (routines): ... here.
6300         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
6301         * login/Versions (libc: GLIBC_2.0): ... here.
6302
6303         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
6304         (setrlimit): Define as weak alias.
6305
6306         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
6307         Call __ names for open, ftruncate, and close.
6308         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
6309         (truncate): Define as weak alias.
6310
6311 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
6312
6313         * math/gen-libm-test.pl (parse_args): Initialize x before each
6314         test of frexp, modf and remquo.
6315
6316         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
6317         test signgam value.
6318
6319 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6320
6321         [BZ #15418]
6322         [BZ #15419]
6323         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
6324         internal tests.
6325         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
6326
6327 2013-05-06  Roland McGrath  <roland@hack.frob.com>
6328
6329         * elf/dl-writev.h: New file.
6330         * elf/dl-misc.c: Include it.
6331         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
6332         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
6333
6334 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
6335
6336         * math/libm-test.inc (noXFails): Remove variable.
6337         (noXPasses): Likewise.
6338         (BUILD_COMPLEX_INT): Remove macro.
6339         (print_screen): Remove xfail argument.
6340         (print_screen_max_error): Likewise.
6341         (update_stats): Likewise.
6342         (print_max_error): Likewise.  Update calls to other affected
6343         functions.
6344         (print_complex_max_error): Likewise.
6345         (test_single_exception): Update calls to print_screen.
6346         (test_single_errno): Likewise.
6347         (check_float_internal): Remove xfail argument.  Update calls to
6348         other affected functions.
6349         (check_float): Likewise.
6350         (check_complex): Likewise.
6351         (check_int): Likewise.
6352         (check_long): Likewise.
6353         (check_bool): Likewise.
6354         (check_longlong): Likewise.
6355         (main): Don't print noXFails and noXPasses.
6356         * math/gen-libm-test.pl (top level): Don't mention expected
6357         failure handling in comment.
6358         (new_test): Don't handle expected failures.
6359         (parse_args): Don't mention expected failure handling in comment.
6360         (generate_testfile): Don't handle expected failures.
6361         (parse_ulps): Likewise.
6362         (print_ulps_file): Likewise.
6363         (get_failure): Remove function.
6364         (output_test): Don't handle expected failures.
6365         * make/README.libm-test: Don't mention expected failure handling.
6366
6367         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
6368         (minus_zero): Likewise.
6369         (plus_infty): Likewise.
6370         (minus_infty): Likewise.
6371         (qnan_value): Likewise.
6372         (max_value): Likewise.
6373         (min_value): Likewise.
6374         (min_subnorm_value): Likewise.
6375         (initialize): Do not initialize those variables dynamically.
6376
6377 2013-05-03  Roland McGrath  <roland@hack.frob.com>
6378
6379         * io/open.c (__open_2): Moved to ...
6380         * io/open_2.c: ... this new file.
6381         * io/open64.c (__open64_2): Moved to ...
6382         * io/open64_2.c: ... this new file.
6383         * io/openat.c (__openat_2): Moved to ...
6384         * io/openat_2.c: ... this new file.
6385         * io/openat64.c (__openat64_2): Moved to ...
6386         * io/openat64_2.c: ... this new file.
6387         * io/Makefile (routines): Add them.
6388         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
6389         * sysdeps/unix/sysv/linux/open_2.c: File removed.
6390         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
6391         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
6392         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
6393         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
6394         (__openat64): Add hidden_ver.
6395         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
6396         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
6397
6398         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
6399         Separately conditionalize setting of GLRO(dl_sysinfo) so
6400         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
6401         as well, but the actual setting is only under [NEED_DL_SYSINFO].
6402
6403 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6404
6405         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
6406         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
6407         definition.
6408         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
6409         * sysdeps/unix/sysv/linux/powerpc/init-first.c
6410         (_libc_vdso_platform_setup): Add __vdso_time initialization.
6411         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
6412         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
6413
6414 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
6415
6416         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
6417         test signgam value.
6418
6419         * math/libm-test.inc (hypot_test): Do not use
6420         IGNORE_ZERO_INF_SIGN.
6421
6422 2013-05-03  Andreas Jaeger  <aj@suse.de>
6423
6424         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
6425         Linux 3.9.
6426         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
6427         (PF_MAX): Adjust for VSOCK change.
6428
6429 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6430
6431         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6432
6433 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
6434
6435         [BZ #15264]
6436         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
6437         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
6438         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
6439
6440 2013-05-02  David S. Miller  <davem@davemloft.net>
6441
6442         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6443
6444 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
6445
6446         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
6447
6448 2013-05-01  Roland McGrath  <roland@hack.frob.com>
6449
6450         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
6451
6452 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
6453
6454         [BZ #14952]
6455         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
6456         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
6457         Use __attribute__ ((__gnu_inline__)).
6458         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
6459         Don't use __attribute__ ((__gnu_inline__)).
6460
6461 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
6462
6463         [BZ #15423]
6464         * math/s_catan.c (__catan): Handle small real or imaginary part of
6465         input specially to avoid spurious underflow.
6466         * math/s_catanf.c (__catanf): Likewise.
6467         * math/s_catanh.c (__catanh): Likewise.
6468         * math/s_catanhf.c (__catanhf): Likewise.
6469         * math/s_catanhl.c (__catanhl): Likewise.
6470         * math/s_catanl.c (__catanl): Likewise.
6471         * math/libm-test.inc (catan_test): Add more tests.
6472         (catanh_test): Likewise.
6473         * sysdeps/i386/fpu/libm-test-ulps: Update.
6474         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6475
6476 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6477
6478         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6479
6480 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
6481
6482         [BZ #15416]
6483         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
6484         accurately for denominator in atan2.
6485         * math/s_catanf.c (__catanf): Likewise.
6486         * math/s_catanh.c (__catanh): Likewise.
6487         * math/s_catanhf.c (__catanhf): Likewise.
6488         * math/s_catanhl.c (__catanhl): Likewise.
6489         * math/s_catanl.c (__catanl): Likewise.
6490         * math/libm-test.inc (catan_test): Add more tests.
6491         (catanh_test): Likewise.
6492         * sysdeps/i386/fpu/libm-test-ulps: Update.
6493         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6494
6495 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
6496
6497         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
6498
6499         * benchtests/Makefile (bench): Remove slow benchmarks.
6500         * benchtests/atan-inputs: Add slow benchmark inputs.
6501         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
6502         (BENCH_FUNC): Accept variant offset.
6503         (VARIANT): Define.
6504         * benchtests/bench-skeleton.c (main): Run benchmark for each
6505         variant.
6506         * benchtests/cos-inputs: Add slow benchmark inputs.
6507         * benchtests/exp-inputs: Likewise.
6508         * benchtests/pow-inputs: Likewise.
6509         * benchtests/sin-inputs: Likewise.
6510         * benchtests/slowatan-inputs: Remove.
6511         * benchtests/slowatan.c: Remove.
6512         * benchtests/slowcos-inputs: Remove.
6513         * benchtests/slowcos.c: Remove.
6514         * benchtests/slowexp-inputs: Remove.
6515         * benchtests/slowexp.c: Remove.
6516         * benchtests/slowpow-inputs: Remove.
6517         * benchtests/slowpow.c: Remove.
6518         * benchtests/slowsin-inputs: Remove.
6519         * benchtests/slowsin.c: Remove.
6520         * benchtests/slowtan-inputs: Remove.
6521         * benchtests/slowtan.c: Remove.
6522         * benchtests/tan-inputs: Add slow benchmark inputs.
6523         * scripts/bench.pl: Parse comments and directives.
6524
6525         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
6526         in CPPFLAGS.
6527         ($(objpfx)bench-%.c): Remove *-ITER.
6528         * benchtests/bench-modf.c: Remove definition of ITER.
6529         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
6530         (main): Loop for DURATION seconds instead of fixed number of
6531         iterations.
6532         * scripts/bench.pl: Don't expect iterations in parameters.
6533
6534 2013-04-29  Roland McGrath  <roland@hack.frob.com>
6535
6536         * io/fchdir.c (__fchdir): Renamed from fchdir.
6537         (fchdir): Define as weak alias.
6538
6539 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
6540
6541         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
6542         (ERRNO_EDOM): Likewise.
6543         (ERRNO_ERANGE): Likewise.
6544         (noErrnoTests): New variable.
6545         (init_max_error): Set errno to 0.
6546         (test_single_errno): New function.
6547         (test_errno): Likewise.
6548         (check_float_internal): Call test_errno.  Set errno to 0.
6549         (check_complex): Refer to errno tests in comment.
6550         (check_int): Call test_errno.  Set errno to 0.
6551         (check_long): Likewise.
6552         (check_bool): Likewise.
6553         (check_longlong): Likewise.
6554         (cos_test): Use ERRNO_* flags for errno tests instead of
6555         check_int.
6556         (expm1_test): Likewise.
6557         (fmod_test): Likewise.
6558         (ilogb_test): Likewise.
6559         (lgamma_test): Likewise.
6560         (pow_test): Likewise.
6561         (remainder_test): Likewise.
6562         (sin_test): Likewise.
6563         (tan_test): Likewise.
6564         (yn_test): Likewise.
6565         (initialize): Set errno to 0.
6566         (main): Print number of errno tests.
6567         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
6568
6569 2013-04-29  Andreas Jaeger  <aj@suse.de>
6570
6571         [BZ #15084]
6572         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
6573         and RES_USEVC.
6574
6575         [BZ #15085]
6576         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
6577         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
6578         unimplemented.
6579
6580         [BZ #15380]
6581         * stdlib/random.c (__initstate): Return NULL if
6582         __initstate fails.
6583
6584         [BZ #15086]
6585         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
6586         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
6587         RES_SNGLKUPREOP.
6588
6589 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6590
6591         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6592
6593 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
6594
6595         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
6596         of individual tests.
6597         (casin_test): Likewise.
6598         (casinh_test): Likewise.
6599
6600 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
6601
6602         [BZ #15409]
6603         * math/s_catan.c (__catan): Handle arguments with large real or
6604         imaginary part separately without squaring.
6605         * math/s_catanf.c (__catanf): Likewise.
6606         * math/s_catanh.c (__catanh): Likewise.
6607         * math/s_catanhf.c (__catanhf): Likewise.
6608         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
6609         and redefine.
6610         (__catanhl): Handle arguments with large real or imaginary part
6611         separately without squaring.
6612         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
6613         and redefine.
6614         (__catanl): Handle arguments with large real or imaginary part
6615         separately without squaring.
6616         * math/libm-test.inc (catan_test): Add more tests.
6617         (catanh_test): Likewise.
6618         * sysdeps/i386/fpu/libm-test-ulps: Update.
6619         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6620
6621 2013-04-27  Andreas Jaeger  <aj@suse.de>
6622
6623         [BZ #15007]
6624         * stdlib/stdlib.h: Update guards for qecvt.
6625         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
6626         <stdlib.h>.
6627
6628 2013-04-27  Allan McRae  <allan@archlinux.org>
6629
6630         * sysdeps/i386/fpu/libm-test-ulps: Update.
6631
6632 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
6633
6634         [BZ #15406]
6635         * math/s_catan.c: Include <float.h>.
6636         (__catan): Ensure underflow exception occurs for underflowed
6637         result.
6638         * math/s_catanf.c: Include <float.h>.
6639         (__catanf): Ensure underflow exception occurs for underflowed
6640         result.
6641         * math/s_catanh.c: Include <float.h>.
6642         (__catanh): Ensure underflow exception occurs for underflowed
6643         result.
6644         * math/s_catanhf.c: Include <float.h>.
6645         (__catanhf): Ensure underflow exception occurs for underflowed
6646         result.
6647         * math/s_catanhl.c: Include <float.h>.
6648         (__catanhl): Ensure underflow exception occurs for underflowed
6649         result.
6650         * math/s_catanl.c: Include <float.h>.
6651         (__catanl): Ensure underflow exception occurs for underflowed
6652         result.
6653         * math/libm-test.inc (catan_test): Add more tests.
6654         (catanh_test): Likewise.
6655
6656         [BZ #15405]
6657         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
6658         underflowed result.
6659         * math/s_ccoshf.c (__ccoshf): Likewise.
6660         * math/s_ccoshl.c (__ccoshl): Likewise.
6661         * math/s_csin.c (__csin): Likewise.
6662         * math/s_csinf.c (__csinf): Likewise.
6663         * math/s_csinh.c (__csinh): Likewise.
6664         * math/s_csinhf.c (__csinhf): Likewise.
6665         * math/s_csinhl.c (__csinhl): Likewise.
6666         * math/s_csinl.c (__csinl): Likewise.
6667         * math/libm-test.inc (ccos_test): Add more tests.
6668         (ccosh_test): Likewise.
6669         (csin_test): Likewise.
6670         (csinh_test): Likewise.
6671
6672 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6673
6674         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
6675         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
6676         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
6677         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
6678         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
6679         powerpc/power5+/fpu folders.
6680         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
6681
6682
6683 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
6684
6685         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6686
6687 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
6688
6689         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
6690         additions to variable.
6691         [$(config-machine) = x86_64] (modules-names): Likewise.
6692         ($(objpfx)tst-audit3): Remove dependency.
6693         ($(objpfx)tst-audit3.out): Likewise.
6694         ($(objpfx)tst-audit4): Likewise.
6695         ($(objpfx)tst-audit4.out): Likewise.
6696         ($(objpfx)tst-audit5): Likewise.
6697         ($(objpfx)tst-audit5.out): Likewise.
6698         ($(objpfx)tst-audit6): Likewise.
6699         ($(objpfx)tst-audit6.out): Likewise.
6700         ($(objpfx)tst-audit7): Likewise.
6701         ($(objpfx)tst-audit7.out): Likewise.
6702         (tst-audit3-ENV): Remove variable.
6703         (tst-audit4-ENV): Likewise.
6704         (tst-audit5-ENV): Likewise.
6705         (tst-audit6-ENV): Likewise.
6706         (tst-audit7-ENV): Likewise.
6707         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
6708         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
6709         addition to variable.
6710         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
6711         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
6712         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
6713         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
6714         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
6715         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
6716         tst-audit3, tst-audit4 and tst-audit5.
6717         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
6718         tst-audit6 and tst-audit7.
6719         [$(subdir) = elf] (modules-names): Add audit modules for those
6720         tests.
6721         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
6722         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
6723         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
6724         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
6725         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
6726         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
6727         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
6728         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
6729         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
6730         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
6731         [$(subdir) = elf] (tst-audit3-ENV): New variable.
6732         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
6733         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
6734         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
6735         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
6736         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
6737         Likewise.
6738         [$(subdir) = elf && $(config-cflags-avx) = yes]
6739         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
6740         [$(subdir) = elf && $(config-cflags-avx) = yes]
6741         (CFLAGS-tst-auditmod4a.c): Likewise.
6742         [$(subdir) = elf && $(config-cflags-avx) = yes]
6743         (CFLAGS-tst-auditmod4b.c): Likewise.
6744         [$(subdir) = elf && $(config-cflags-avx) = yes]
6745         (CFLAGS-tst-auditmod6b.c): Likewise.
6746         [$(subdir) = elf && $(config-cflags-avx) = yes]
6747         (CFLAGS-tst-auditmod6c.c): Likewise.
6748         [$(subdir) = elf && $(config-cflags-avx) = yes]
6749         (CFLAGS-tst-auditmod7b.c): Likewise.
6750         * elf/tst-audit3.c: Move to ...
6751         * sysdeps/x86_64/tst-audit3.c: ... here.
6752         * elf/tst-audit4.c: Move to ...
6753         * sysdeps/x86_64/tst-audit4.c: ... here.
6754         * elf/tst-audit5.c: Move to ...
6755         * sysdeps/x86_64/tst-audit5.c: ... here.
6756         * elf/tst-audit6.c: Move to ...
6757         * sysdeps/x86_64/tst-audit6.c: ... here.
6758         * elf/tst-audit7.c: Move to ...
6759         * sysdeps/x86_64/tst-audit7.c: ... here.
6760         * elf/tst-auditmod3a.c: Move to ...
6761         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
6762         * elf/tst-auditmod3b.c: Move to ...
6763         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
6764         * elf/tst-auditmod4a.c: Move to ...
6765         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
6766         * elf/tst-auditmod4b.c: Move to ...
6767         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
6768         * elf/tst-auditmod5a.c: Move to ...
6769         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
6770         * elf/tst-auditmod5b.c: Move to ...
6771         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
6772         * elf/tst-auditmod6a.c: Move to ...
6773         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
6774         * elf/tst-auditmod6b.c: Move to ...
6775         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
6776         * elf/tst-auditmod6c.c: Move to ...
6777         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
6778         * elf/tst-auditmod7a.c: Move to ...
6779         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
6780         * elf/tst-auditmod7b.c: Move to ...
6781         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
6782
6783 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
6784
6785         [BZ #15366]
6786         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
6787         define unconditionally.
6788         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
6789         define unconditionally.
6790         (INT8_C, INT16_C, etc.): Likewise.
6791
6792 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
6793
6794         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
6795         __ehdr_start with hidden visibility.
6796
6797         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
6798
6799 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
6800
6801         * math/libm-test.inc (cos_test): Use accurate hex constants.
6802         (sincost_test): Likewise.
6803
6804 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
6805
6806         * math/libm-test.inc (catan_test): Add more tests.
6807         (catanh_test): Likewise.
6808
6809         * math/s_catanf.c (__catanf): Use suffixed floating-point
6810         constants.
6811         * math/s_catanhf.c (__catanhf): Likewise.
6812         * math/s_catanhl.c (__catanhl): Likewise.
6813         * math/s_catanl.c (__catanl): Likewise.
6814
6815         [BZ #15394]
6816         * math/s_catan.c (__catan): Calculate imaginary part of result
6817         with log1p not log unless computing log of number close to 0.
6818         * math/s_catanf.c (__catanf): Likewise.
6819         * math/s_catanl.c (__catanl): Likewise.
6820         * math/s_catanh.c (__catanh): Calculate real part of result with
6821         log1p not log unless computing log of number close to 0.
6822         * math/s_catanhf.c (__catanhf): Likewise.
6823         * math/s_catanhl.c (__catanhl): Likewise.
6824         * math/libm-test.inc (catan_test): Add more tests.
6825         (catanh_test): Likewise.
6826         * sysdeps/i386/fpu/libm-test-ulps: Update.
6827         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6828
6829 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6830
6831         * benchtests/Makefile: Mention files in which fast and slow
6832         paths of math functions are implemented.
6833
6834 2013-04-23  Roland McGrath  <roland@hack.frob.com>
6835
6836         * sysdeps/posix/timespec_get.c: New file.
6837
6838 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6839
6840         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
6841         POWER.
6842         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
6843         for POWER.
6844         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
6845         powerpc/power5/fpu folders.
6846         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
6847         * benchtests/Makefile: Add modf testcase.
6848         * benchtests/bench-modf.c: New file: Benchmark test for mo
6849
6850 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
6851
6852         [BZ #14888]
6853         * time/Makefile (tests): Add tst-strptime-whitespace.
6854         * time/strptime_l.c (get_number): Use ISSPACE.
6855         (__strptime_internal): Likewise.
6856         * time/tst-strptime-whitespace.c: New test case.
6857
6858 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
6859
6860         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
6861         member.
6862         (_nss_files_init): Set it here.
6863
6864 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
6865
6866         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
6867         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
6868         unsigned.
6869
6870 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
6871
6872         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
6873
6874 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
6875
6876         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
6877         size just once.
6878
6879 2013-04-21  David S. Miller  <davem@davemloft.net>
6880
6881         * po/ru.po: Update Russion translation from translation project.
6882
6883 2013-04-17  Adam Conrad  <adconrad@0c3.net>
6884
6885         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
6886         and setfsgid.
6887
6888 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
6889
6890         * configure.in: Remove i386 configure warning. Remove i386 case.
6891         * configure: Regenerate.
6892         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
6893         Add example to error message.
6894         * sysdeps/i386/configure: Regenerate.
6895
6896 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
6897
6898         * benchtests/Makefile (bench): Add cos, tan, slowcos and
6899         slowtan.
6900         * benchtests/cos-inputs: New file.
6901         * benchtests/slowcos-inputs: New file.
6902         * benchtests/slowcos.c: New file.
6903         * benchtests/slowtan-inputs: New file.
6904         * benchtests/slowtan.c: New file.
6905         * benchtests/tan-inputs: New file.
6906
6907 2013-04-16  Roland McGrath  <roland@hack.frob.com>
6908
6909         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
6910         considered kosher.
6911
6912 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
6913
6914         * benchtests/Makefile: Include cppflags-iterator.mk to add
6915         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
6916
6917         * Makefile.in (bench-clean): New target.
6918         * benchtests/Makefile (bench-clean): Likewise.
6919
6920 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
6921
6922         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
6923
6924 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
6925
6926         * stdio-common/tstdiomisc.c: Fix coding-style violation.
6927
6928 2013-04-15  Andreas Schwab  <schwab@suse.de>
6929
6930         * nscd/grpcache.c (cache_addgr): Properly check for short write.
6931         * nscd/initgrcache.c (addinitgroupsX): Likewise.
6932         * nscd/pwdcache.c (cache_addpw): Likewise.
6933         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
6934         more than recsize.
6935
6936 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6937
6938         * benchtests/Makefile (bench): Write all output to
6939         bench-out.tmp together.
6940
6941 2013-04-15  Andreas Schwab  <schwab@suse.de>
6942
6943         * nscd/nscd.c (main): Don't fork again after closing files.
6944
6945 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6946
6947         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
6948
6949         * benchtests/Rules (bench-deps): Collect dependencies into a
6950         single variable.  Add Makefile to dependencies.
6951         ($(objpfx)bench-%.c): Depend on bench-deps.
6952
6953 2013-04-12  Roland McGrath  <roland@hack.frob.com>
6954             Xavier Roche  <roche+kml2@exalead.com>
6955
6956         [BZ #15361]
6957         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
6958         just that it's a file descriptor.
6959         * manual/llio.texi (Synchronizing AIO Operations): Update description
6960         for EBADF error from aio_fsync.
6961
6962 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
6963
6964         * Rules (bench): Move target definition...
6965         * benchtests/Makefile: ... here.
6966
6967 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
6968
6969         * math/libm-test.inc (cos_test): Fix PI/2 test.
6970         (sincos_test): Likewise.
6971         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
6972         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
6973
6974 2013-04-11  Andreas Schwab  <schwab@suse.de>
6975
6976         [BZ #13988]
6977         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
6978         accept exponent character only when digits were seen.
6979         * stdio-common/Makefile (tests): Add bug26.
6980         * stdio-common/bug26.c: New file.
6981
6982         [BZ #14293]
6983         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
6984         non-freeable.
6985
6986 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
6987
6988         * Makeconfig (rtld-prefix): Define built linker prefix.
6989         * Rules (run-bench): Use it.
6990         * math/Makefile (run-regen-ulps): Likewise.
6991
6992         * Rules (bench): Remove eval.
6993
6994 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6995             Roland McGrath  <roland@hack.frob.com>
6996             Ondrej Bilka  <neleai@seznam.cz>
6997
6998         [BZ #15346]
6999         * time/getdate.c: Include ctype.h and alloca.h.
7000         (__getdate_r): Trim leading and trailing spaces of input.
7001         * time/tst-getdate.c (tests): Add tests with leading and
7002         trailing spaces.
7003
7004 2013-04-08  Roland McGrath  <roland@hack.frob.com>
7005
7006         [BZ #14280]
7007         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
7008         when computing value.
7009
7010 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
7011
7012         * math/README.libm-test (How can I generate "libm-test-ulps"?):
7013         Use testrun.sh to run libm tests.
7014
7015         [BZ #15309]
7016         * elf/dl-open.c (dl_open_worker): memset all of seen array.
7017
7018 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
7019
7020         [BZ #15264]
7021         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
7022
7023 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
7024
7025         * Makefile.in (regen-ulps): New target.
7026         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
7027         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
7028         [ifneq (no,$(PERL)] (regen-ulps): New target.
7029         [ifeq (no,$(PERL)] (regen-ulps): New target.
7030         * math/libm-test.inc (ulps_file_name): Define.
7031         (output_dir): New variable.
7032         (options): Add "output-dir" option.
7033         (parse_opt): Handle 'o' case.
7034         (main): If output_dir is non-NULL use it as a prefix
7035         otherwise use "".
7036         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
7037
7038 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
7039
7040         [BZ #10060, #10062]
7041         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
7042         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
7043         fail configure if __sync_val_compare_and_swap is not inlined.
7044         * sysdeps/i386/configure: Regenerate.
7045         * configure.in: Build for i686 when configured for i386.
7046         * configure: Regenerate.
7047         * README: Remove i386 reference.
7048
7049 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
7050
7051         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
7052         * sysdeps/s390/s390-64/sysdep.h: Likewise.
7053
7054 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
7055
7056         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
7057         (lmsnanval): New variables.
7058         (F): Add conversion tests.
7059         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
7060         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
7061
7062         * stdio-common/tstdiomisc.c (F): Properly collect individual
7063         tests' results.
7064
7065         [BZ #14686, #15336]
7066         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
7067         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7068         Instead, use input NaN values or generate a qNaN by arithmetic
7069         operation.  Also fix bugs to comply with the standard.
7070         * math/libm-test.inc (remainder_test): Add more tests.
7071
7072         [BZ #15335, #15342]
7073         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
7074         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
7075         input NaN values or generate a qNaN by arithmetic operation.
7076
7077         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
7078         unreachable code.
7079
7080         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
7081         definitions.
7082
7083 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
7084
7085         [BZ #14478]
7086         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
7087         underflowed result.
7088         * math/s_cexpf.c (__cexpf): Likewise.
7089         * math/s_cexpl.c (__cexpl): Likewise.
7090         * math/libm-test.inc (cexp_test): Add more tests.
7091
7092 2013-04-03  Andreas Schwab  <schwab@suse.de>
7093
7094         [BZ #15330]
7095         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
7096         order arrays from heap if bigger than alloca cutoff.
7097
7098 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
7099
7100         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
7101         (SNAN_TESTS_double): Refer to GCC PR56831.
7102         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
7103         GCC PR56828.
7104
7105 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
7106
7107         * Rules (bench): Move bench.out after the run is complete.
7108
7109         * Rules (bench): Echo currently running benchmark.
7110
7111         * benchtests/Makefile (bench): Add atan and slowatan.
7112         * benchtests/atan-inputs: New file.
7113         * benchtests/slowatan-inputs: New file.
7114         * benchtests/slowatan.c: New file.
7115
7116         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
7117         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
7118         its value.
7119
7120         [BZ #15305]
7121         * sysdeps/unix/sysv/linux/kernel-features.h
7122         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
7123         __ASSUME_XFS_RESTRICTED_CHOWN.
7124         * sysdeps/unix/sysv/linux/pathconf.c
7125         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
7126         Save and restore errno.
7127
7128 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
7129
7130         [BZ #15327]
7131         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
7132         arguments using __kernel_casinh.
7133         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
7134         arguments using __kernel_casinhf.
7135         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
7136         arguments using __kernel_casinhl.
7137         * math/libm-test.inc (cacosh_test): Add more tests.
7138         * sysdeps/i386/fpu/libm-test-ulps: Update.
7139         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7140
7141 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
7142
7143         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
7144         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
7145
7146         * bench/Makefile (bench): Add sin and slowsin.
7147         * benchtests/sin-inputs: New file.
7148         * benchtests/slowsin-inputs: New file.
7149         * benchtests/slowsin.c: New file.
7150
7151         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
7152         (bench): Add slowexp and slowpow.
7153         (exp-ITER): Increase iterations.
7154         (pow-ITER): Likewise.
7155         * benchtests/exp-inputs: Change input.
7156         * benchtests/pow-inputs: Likewise.
7157         * benchtests/slowexp-inputs: New file.
7158         * benchtests/slowexp.c: New file.
7159         * benchtests/slowpow-inputs: New file.
7160         * benchtests/slowpow.c: New file.
7161
7162 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7163
7164         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
7165         instructions.
7166         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
7167         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
7168         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
7169         * benchtests/Makefile: Add rint benchtest.
7170         * benchtests/rint-inputs: Input for rint benchtest.
7171
7172 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
7173
7174         * Versions.def (libm): Add GLIBC_2.18.
7175         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
7176         hidden libm prototypes.
7177         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
7178         * math/Makefile (libm-calls): Add s_issignaling.
7179         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
7180         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
7181         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
7182         declaration.
7183         * math/math.h [__USE_GNU] (issignaling): New macro.
7184         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
7185         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
7186         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
7187         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
7188         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
7189         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
7190         * manual/arith.texi (issignaling): New section.
7191         * manual/libm-err-tab.pl (@all_functions): Update comment.
7192         * math/gen-libm-test.pl (parse_args): Apply special handling for
7193         issignaling.
7194         * math/libm-test.inc (print_float, issignaling_test): New
7195         functions.
7196         (check_float_internal): Add issignaling checks.
7197         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
7198         default definition.
7199         * sysdeps/powerpc/math-tests.h: New file.
7200         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
7201         tests.
7202         * math/test-snan.c (TEST_FUNC): Likewise.
7203
7204 2013-03-30  David S. Miller  <davem@davemloft.net>
7205
7206         * po/de.po: Update from translation team.
7207
7208 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
7209
7210         [BZ #10357]
7211         * math/k_casinh.c (__kernel_casinh): Handle arguments with
7212         imaginary part less than 1.0 and real part less than 0.5
7213         specially.
7214         * math/k_casinhf.c (__kernel_casinhf): Likewise.
7215         * math/k_casinhl.c (__kernel_casinhl): Likewise.
7216         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
7217         (cacos_test): Add more tests.
7218         (casin_test): Likewise.
7219         (casinh_test): Likewise.
7220         * sysdeps/i386/fpu/libm-test-ulps: Update.
7221         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7222
7223 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
7224
7225         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
7226         ONE with its value.
7227
7228         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
7229         (__pow_mp): Replace ONE and MONE with their values.
7230         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
7231         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
7232         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
7233         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
7234         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
7235         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
7236
7237         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
7238
7239         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
7240         (__pow_mp): Replace ZERO and MZERO with their values.
7241         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
7242         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
7243         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
7244         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
7245         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
7246         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
7247         (__sqr): Likewise.
7248
7249         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
7250
7251         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
7252
7253 2013-03-28  Roland McGrath  <roland@hack.frob.com>
7254
7255         * include/stdlib.h [!SHARED] (__call_tls_dtors):
7256         Declare with __attribute__ ((weak)).
7257         * stdlib/exit.c (__libc_atexit) [!SHARED]:
7258         Call __call_tls_dtors only if it's not NULL.
7259
7260 2013-03-28  Roland McGrath  <roland@hack.frob.com>
7261
7262         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
7263         didn't do it already, then set _dl_phdr and _dl_phnum based on the
7264         magic __ehdr_start linker symbol if it's defined.
7265         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
7266         them up here if it was already done.
7267
7268         * elf/dl-support.c (_dl_phdr): Make pointer to const.
7269         (_dl_aux_init): Use const in cast when setting it.
7270         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
7271         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
7272         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
7273
7274         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
7275         Declare them here.
7276         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
7277         * csu/libc-tls.c: Nor here.
7278         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
7279
7280         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
7281         (__libc_message): Never call vsyslog.
7282
7283 2013-03-28  Alan Modra  <amodra@gmail.com>
7284
7285         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
7286         Define as empty.
7287         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
7288         Likewise.
7289
7290 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7291
7292         [BZ #15214]
7293         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
7294         underflow.
7295         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7296
7297 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7298
7299         [BZ #15304]
7300         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
7301         Don't add gid passed as argument.
7302
7303         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
7304
7305 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
7306
7307         [BZ #15307]
7308         * math/k_casinh.c (__kernel_casinh): Handle arguments with
7309         imaginary part between 1.0 and 1.5 and real part less than 0.5
7310         specially.
7311         * math/k_casinhf.c (__kernel_casinhf): Likewise.
7312         * math/k_casinhl.c (__kernel_casinhl): Likewise.
7313         * math/libm-test.inc (cacos_test): Add more tests.
7314         (casin_test): Likewise.
7315         (casinh_test): Likewise.
7316         * sysdeps/i386/fpu/libm-test-ulps: Update.
7317         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7318
7319 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7320
7321         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
7322         constants.
7323         (norm): Likewise.
7324         (denorm): Likewise.
7325         (__dbl_mp): Likewise.
7326         (add_magnitudes): Likewise.
7327         (sub_magnitudes): Likewise.
7328         (__add): Likewise.
7329         (__sub): Likewise.
7330         (__mul): Likewise.
7331         (__sqr): Likewise.
7332         (__inv): Likewise.
7333         (__dvd): Likewise.
7334
7335         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
7336         commented code.
7337         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
7338         (__dubcos): Likewise.
7339         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
7340         (__ieee754_acos): Likewise.
7341         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
7342         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
7343         (__exp1): Likewise.
7344         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
7345         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
7346         (log1): Likewise.
7347         (my_log2): Likewise.
7348         (checkint): Likewise.
7349         * sysdeps/ieee754/dbl-64/e_remainder.c
7350         (__ieee754_remainder): Likewise.
7351         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
7352         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
7353         (bsloww): Likewise.
7354         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
7355
7356         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
7357         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
7358         MANTISSA_STORE_T to store computations on mantissa.  Use
7359         macros for rounding and division.
7360         (denorm): Likewise.
7361         (__dbl_mp): Likewise.
7362         (add_magnitudes): Likewise.
7363         (sub_magnitudes): Likewise.
7364         (__mul): Likewise.
7365         (__sqr): Likewise.
7366         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
7367         powers of two in terms of TWOPOW macro.
7368         (mp_no): Make type of mantissa as MANTISSA_T.
7369         [!RADIXI]: Define RADIXI.
7370         [!TWO52]: Define TWO52.
7371         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
7372
7373 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7374
7375         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
7376         llroundl symbol when building for PPC32.
7377
7378 2013-03-24  Mark H Weaver  <mhw@netris.org>
7379
7380         * manual/arith.texi (Normalization Functions): Fix prototypes for
7381         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
7382
7383 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7384
7385         [BZ #13889]
7386         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
7387         high value to check if expl overflow.
7388         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
7389         to check for underflow and overflow.
7390         * math/libm-test.inc: Add exp test.
7391
7392 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
7393
7394         [BZ #11120]
7395         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
7396         with NOT_IN_libc.
7397
7398 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7399
7400         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
7401         symbol.
7402
7403 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7404
7405         * math/gen-libm-test.pl (parse_args, special_functions): Properly
7406         wrap blocks consisting of several statements.
7407
7408         * sysdeps/generic/math-tests.h: New file.
7409         * sysdeps/i386/fpu/math-tests.h: Likewise.
7410         * math/test-snan.c: Include it.
7411         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
7412
7413 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
7414
7415         [BZ #15285]
7416         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
7417         (__ieee754_j0l): Do not improve calculations using cos of twice
7418         input for inputs above LDBL_MAX / 2.0L.
7419         (__ieee754_y0l): Likewise.
7420         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
7421         (__ieee754_j1l): Do not improve calculations using cos of twice
7422         input for inputs above LDBL_MAX / 2.0L.
7423         (__ieee754_y1l): Likewise.
7424         * math/libm-test.inc (j0_test): Add another test.
7425         (j1_test): Likewise.
7426         (y0_test): Likewise.
7427         (y1_test): Likewise.
7428         * sysdeps/i386/fpu/libm-test-ulps: Update.
7429
7430 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7431
7432         * Rules ($(objpfx)bench-%.c): Include code from a C source
7433         file.
7434
7435 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
7436
7437         [BZ #15287]
7438         * math/k_casinh.c (__kernel_casinh): Handle arguments with
7439         imaginary part 1.0 and real part less than 0.5 specially.
7440         * math/k_casinhf.c (__kernel_casinhf): Likewise.
7441         * math/k_casinhl.c (__kernel_casinhl): Likewise.
7442         * math/libm-test.inc (cacos_test): Add more tests.
7443         (casin_test): Likewise.
7444         (casinh_test): Likewise.
7445         * sysdeps/i386/fpu/libm-test-ulps: Update.
7446         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7447
7448 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7449
7450         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
7451         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
7452
7453 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
7454
7455         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
7456         * config.make.in (config-cflags-sse4): Remove variable.
7457         (config-cflags-avx): Likewise.
7458         (config-cflags-sse2avx): Likewise.
7459         (config-cflags-novzeroupper): Likewise.
7460         (config-asflags-i686): Likewise.
7461         (have-mfma4): Likewise.
7462         (have-as-vis3): Likewise.
7463         (MIG): Likewise.
7464         * configure.in (MIG): Do not AC_SUBST.
7465         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
7466         (libc_cv_cc_sse4): Do not AC_SUBST.
7467         (libc_cv_cc_avx): Likewise.
7468         (libc_cv_cc_sse2avx): Likewise.
7469         (libc_cv_cc_novzeroupper): Likewise.
7470         (libc_cv_cc_fma4): Likewise.
7471         (libc_cv_as_i686): Likewise.
7472         (libc_cv_sparc_as_vis3): Likewise.
7473         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
7474         LIBC_CONFIG_VAR.
7475         (config-asflags-i686): Likewise.
7476         (config-cflags-avx): Likewise.
7477         (config-cflags-sse2avx): Likewise.
7478         (have-mfma4): Likewise.
7479         (config-cflags-novzeroupper): Likewise.
7480         * sysdeps/mach/configure.in (MIG): Likewise.
7481         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
7482         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
7483         LIBC_CONFIG_VAR.
7484         (config-cflags-avx): Likewise.
7485         (config-cflags-sse2avx): Likewise.
7486         (have-mfma4): Likewise.
7487         (config-cflags-novzeroupper): Likewise.
7488         * configure: Regenerated.
7489         * sysdeps/i386/configure: Likewise.
7490         * sysdeps/mach/configure: Likewise.
7491         * sysdeps/sparc/configure: Likewise.
7492         * sysdeps/x86_64/configure: Likewise.
7493
7494 2013-03-20  Roland McGrath  <roland@hack.frob.com>
7495
7496         [BZ #14812]
7497         * locale/programs/localedef.c (options): Put N_ translation marker
7498         on argument names, not just descriptions.
7499
7500 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7501
7502         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
7503
7504 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
7505
7506         [BZ #14176]
7507         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
7508
7509 2013-03-19  Roland McGrath  <roland@hack.frob.com>
7510
7511         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
7512         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
7513         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
7514         [!BEFORE_ABORT] (before_abort): New function.
7515         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
7516         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
7517         (writev_for_fatal): New function.
7518         (WRITEV_FOR_FATAL): New macro; call that.
7519         (backtrace_and_maps): New function.
7520         (BEFORE_ABORT): New macro; call that.
7521         (struct str_list): Type removed.
7522         (__libc_message, __libc_fatal): Functions removed.
7523         Include <sysdeps/posix/libc_fatal.c> instead.
7524
7525 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
7526
7527         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
7528         constants.
7529         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
7530         double constants.
7531
7532 2013-03-19  Andreas Schwab  <schwab@suse.de>
7533
7534         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
7535         * sysdeps/gnu/configure: Regenerate.
7536
7537         * configure.in: Substitute libc_cv_rtlddir.
7538         * configure: Regenerate.
7539         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
7540         * Makeconfig (rtlddir, inst_rtlddir): New variables.
7541         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
7542         * elf/Makefile (install-others, CFLAGS-interp.c)
7543         (ldso_install, common-ldd-rewrite): Likewise.
7544         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
7545         $(inst_slibdir)/$(rtld-installed-name).
7546         * scripts/rellns-sh: Add -p option.
7547         * Makerules (make-shlib-link): Use rellns-sh to get relative name
7548         for source.
7549
7550 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
7551
7552         * manual/nptl.texi: Renamed to ...
7553         * manual/threads.texi: ... this.
7554         * manual/Makefile (chapters): Update.
7555
7556 2013-03-18  Roland McGrath  <roland@hack.frob.com>
7557
7558         [BZ #14812]
7559         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
7560         on argument names, not just descriptions.
7561         * malloc/memusagestat.c (options): Likewise.
7562         * nss/getent.c (options): Likewise.
7563
7564 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
7565
7566         [BZ #14812]
7567         * iconv/iconv_prog.c (options): Put N_ translation marker
7568         on argument names, not just descriptions.
7569         * iconv/iconvconfig.c (options): Likewise.
7570
7571 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
7572
7573         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
7574         implementation which is faster on all x86_64 architectures.
7575         Tested on AMD, Intel Nehalem, SNB, IVB.
7576         * sysdeps/x86_64/strnlen.S: Likewise.
7577
7578         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
7579         Remove all multiarch strlen and strnlen versions.
7580         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
7581         Remove strlen and strnlen related parts.
7582
7583         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
7584         Inline strlen part.
7585         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
7586
7587         * sysdeps/x86_64/multiarch/strlen.S: Remove.
7588         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
7589         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
7590         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
7591         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
7592         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
7593
7594 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
7595
7596         * manual/memory.texi (Malloc Tunable Parameters):
7597         Sort parameters alphabetically. Add comments for missing entries.
7598
7599 2013-03-17  David S. Miller  <davem@davemloft.net>
7600
7601         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7602
7603 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
7604
7605         [BZ #15283]
7606         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
7607         for arguments at most half maximum finite value.
7608         * math/libm-test.inc (j0_test): Add more tests.
7609         (j1_test): Likewise.
7610         (y0_test): Likewise.
7611         (y1_test): Likewise.
7612         * sysdeps/i386/fpu/libm-test-ulps: Update.
7613         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7614
7615         [BZ #14155]
7616         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
7617         1 / x and functions P and Q for arguments above 0x1p256L.
7618         (__ieee754_y0l): Likewise.
7619         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
7620         (__ieee754_y1l): Likewise.
7621         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
7622         (j1_test): Likewise.
7623         (y0_test): Likewise.
7624         (y1_test): Likewise.
7625
7626 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
7627
7628         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
7629         variable.
7630
7631 2013-03-15  Roland McGrath  <roland@hack.frob.com>
7632
7633         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
7634         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
7635         zero since it's initialized to EXEC_PAGESIZE.
7636
7637         * sysdeps/unix/sysv/linux/ldsodefs.h
7638         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
7639         * sysdeps/generic/ldsodefs.h: ... here.
7640
7641 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
7642
7643         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
7644
7645         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
7646         math/test-snan.c.
7647         * math/test-snan.c: Renamed from
7648         sysdeps/powerpc/fpu/test-powerpc-snan.c.
7649         * math/Makefile (tests): Add test-snan.
7650         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
7651         test-powerpc-snan.
7652
7653         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
7654         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
7655         functions.
7656         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
7657         __builtin_nan family of functions.
7658         * math/libm-test.inc (initialize): Initialize qnan_value with
7659         __builtin_nan family of functions.
7660         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
7661         Remove variables.
7662         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
7663         Remove functions.
7664         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
7665         storage class.  Initialize qNaN_var and sNaN_var with
7666         __builtin_nan and __builtin_nans families of functions,
7667         respectively.
7668
7669         * math/libm-test.inc (acosh_test): Also test with qNaN input.
7670         (sqrt_test): Remove duplicate test with qNaN input.
7671         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
7672         (round_test, signbit_test, significand_test): Note missing +/-Inf
7673         as well as qNaN tests.
7674
7675         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
7676         qNaN_var.  Fix a few strings, too.
7677         * math/libm-test.inc (nan_value): Rename to qnan_value.
7678         * math/gen-libm-test.pl (%beautify): Adjust to that.
7679         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
7680         * math/test-misc.c (main): Likewise.
7681         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
7682         to __qnan_bytes, and __qnan_union, respectively.
7683         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
7684         Likewise.
7685         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
7686         and lqnanval, respectively.
7687         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
7688         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
7689         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
7690         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
7691
7692         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
7693         * math/test-misc.c (main) [__x86_64__]: Enable test for long
7694         doubles.
7695
7696         * math/test-misc.c (main): Fix copy'n'pastos.
7697         * misc/tst-efgcvt.c (special): Likewise.
7698
7699         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
7700         Remove declarations.
7701
7702 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7703
7704         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
7705         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
7706         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
7707         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
7708
7709 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7710
7711         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
7712         macro to return vdso values correctly in IFUNC implementations.
7713         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
7714         Optimization by using IFUNC.
7715
7716 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7717             Richard Henderson  <rth@redhat.com>
7718             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7719
7720         * Makefile.in (bench): New target.
7721         * NEWS: Mention the benchmark framework.
7722         * Rules (bench): Likewise.
7723         (binaries-bench): Generate binaries for functions to
7724         benchmark.
7725         * benchtests/Makefile: New makefile for benchmark tests.
7726         * benchtests/bench-skeleton.c: New skeleton file for benchmark
7727         programs.
7728         * benchtests/exp-inputs: New input file for EXP function.
7729         * benchtests/pow-inputs: New input file for POW function.
7730         * scripts/bench.pl: New script to generate source files for
7731         benchmark programs.
7732
7733 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7734
7735         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
7736         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
7737         computations on mantissa.  Use macros for rounding and
7738         division.
7739         (denorm): Likewise.
7740         (__dbl_mp): Likewise.
7741         (add_magnitudes): Likewise.
7742         (sub_magnitudes): Likewise.
7743         (__mul): Likewise.
7744         (__sqr): Likewise.
7745         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
7746         powers of two in terms of TWOPOW macro.
7747         (mp_no): Make type of mantissa as MANTISSA_T.
7748         [!RADIXI]: Define RADIXI.
7749         [!TWO52]: Define TWO52.
7750         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
7751
7752         * manual/nptl.texi (cindex): Modify threads to pthreads.
7753
7754 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
7755
7756         * sysdeps/x86_64/preconfigure: Regenerated.
7757
7758 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
7759
7760         [BZ #14155]
7761         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
7762         0x1p28 and above.
7763         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
7764         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
7765         0x1p28 and above.
7766         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
7767         * math/libm-test.inc (j0_test): Do not allow one spurious
7768         underflow exception.
7769         (y1_test): Likewise.
7770
7771 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
7772
7773         * manual/Makefile (chapters): Add nptl.
7774         * manual/debug.texi (Debugging Support): Add link to Threads
7775         chapter.
7776         * manual/nptl.texi: New file.
7777
7778         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
7779
7780 2013-03-14  Petr Baudis  <pasky@ucw.cz>
7781
7782         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
7783         for non-NULL pointer before the memory validity test. Pointed
7784         out by Holger Brunck <holger.brunck@keymile.com>.
7785
7786 2013-03-13  Andreas Schwab  <schwab@suse.de>
7787
7788         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
7789         instead of .os.
7790
7791 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
7792
7793         * timezone/zic.c: Update from tzcode 2013b.
7794
7795 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
7796
7797         * manual/install.texi (Configuring and compiling):
7798         Mention i686 and i586.
7799         * INSTALL: Regenerate.
7800
7801 2013-03-12  Roland McGrath  <roland@hack.frob.com>
7802
7803         * sysdeps/init_array/elf-init.c: New file.
7804         * csu/elf-init.c
7805         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
7806         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
7807
7808         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
7809         __gmon_start__ as global, but as static with a .preinit_array pointer.
7810         * sysdeps/init_array/gmon-start.c: New file.  Use that.
7811         * sysdeps/init_array/crti.S: New file, empty except for comments.
7812         * sysdeps/init_array/crtn.S: Likewise.
7813
7814 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
7815
7816         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
7817         definining bcopy.
7818         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7819         Remove Prefer_SSE_for_memop.
7820         * sysdeps/x86_64/multiarch/init-arch.h: Remove
7821         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
7822         HAS_PREFER_SSE_FOR_MEMOP.
7823         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7824         memset-x86-64.
7825         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
7826         Remove bzero, memset ifunc support.
7827         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
7828         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
7829         * sysdeps/x86_64/multiarch/memset.S: Likewise.
7830         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
7831
7832 2013-03-11  Andreas Schwab  <schwab@suse.de>
7833
7834         [BZ #15234]
7835         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
7836         by SHLIB_COMPAT.
7837         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
7838         (GLIBC_2.16): Remove pthread_atfork.
7839
7840 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
7841
7842         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
7843         (ptestcases.h): Likewise.
7844
7845 2013-03-08  Roland McGrath  <roland@hack.frob.com>
7846
7847         * Makeconfig ($(common-objpfx)config.status): Depend on
7848         sysdeps/*/preconfigure{,.in} too.
7849
7850 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
7851
7852         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
7853         (__free_hook): Use void * instead of __malloc_ptr_t.
7854         (__malloc_hook): Likewise.
7855         (__realloc_hook): Likewise.
7856         (__memalign_hook): Likewise.
7857         (__after_morecore_hook): Likewise.
7858         * malloc/arena.c (save_malloc_hook): Likewise.
7859         (save_free_hook): Likewise.
7860         * malloc/hooks.c (malloc_hook_ini): Likewise.
7861         (realloc_hook_ini): Likewise.
7862         (memalign_hook_ini): Likewise.
7863         * malloc/malloc.c (malloc_hook_ini): Likewise.
7864         (realloc_hook_ini): Likewise.
7865         (memalign_hook_ini): Likewise.
7866         (__free_hook): Likewise.
7867         (__malloc_hook): Likewise.
7868         (__realloc_hook): Likewise.
7869         (__memalign_hook): Likewise.
7870         (__libc_malloc): Likewise.
7871         (__libc_free): Likewise.
7872         (__libc_realloc): Likewise.
7873         (__libc_memalign): Likewise.
7874         (__libc_valloc): Likewise.
7875         (__libc_pvalloc): Likewise.
7876         (__libc_calloc): Likewise.
7877         (__posix_memalign): Likewise.
7878         * malloc/morecore.c (__sbrk): Likewise.
7879         (__default_morecore): Likewise.
7880
7881         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
7882
7883         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
7884         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
7885         __malloc_ptrdiff_t.
7886
7887         * malloc/malloc.h (__malloc_size_t): Remove macro.
7888         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
7889         __malloc_size_t.
7890         (old_memalign_hook): Likewise.
7891         (old_realloc_hook): Likewise.
7892         (struct hdr): Likewise.
7893         (flood): Likewise.
7894         (mallochook): Likewise.
7895         (memalignhook): Likewise.
7896         (reallochook): Likewise.
7897         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
7898         (tr_old_realloc_hook): Likewise.
7899         (tr_old_memalign_hook): Likewise.
7900         (tr_mallochook): Likewise.
7901         (tr_reallochook): Likewise.
7902         (tr_memalignhook): Likewise.
7903
7904 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7905
7906         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
7907         default_ldbl_pack and using as default implementation.
7908         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
7909         implementation.
7910         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
7911         redundant definition.
7912         (ldbl_insert_mantissa): Likewise.
7913         (ldbl_canonicalize): Likewise.
7914         (ldbl_nearbyint): Likewise.
7915         (ldbl_pack): Rename to ldbl_pack_ppc.
7916         (ldbl_unpack): Rename to ldbl_unpack_ppc.
7917         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
7918         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
7919
7920 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
7921
7922         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
7923         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
7924         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
7925         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
7926         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
7927         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
7928         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
7929         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
7930
7931 2013-03-07  Andreas Jaeger  <aj@suse.de>
7932
7933         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7934         bits/mman-linux.h.
7935
7936 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
7937
7938         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
7939         Include mpa.h and declare __MPEXP.
7940         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
7941         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
7942         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
7943         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
7944         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
7945         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
7946         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
7947
7948         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
7949         (__slowpow): Use long double EXPL and LOGL functions to
7950         compute POW.
7951         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
7952         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
7953         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
7954         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
7955         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
7956         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
7957
7958         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
7959         intermediate variable to calculate exponent.
7960         (__sqr): Likewise.
7961         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
7962         Likewise.
7963         (__sqr): Likewise.
7964
7965         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
7966         [!NO__SQR]: Define __sqr.
7967         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
7968         and NO__SQR.  Remove all code except __mul and __sqr.  Include
7969         sysdeps/ieee754/dbl-64/mpa.c.
7970         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
7971
7972         [BZ #12723]
7973         * posix/Makefile (tests): Add tst-pathconf.
7974         * posix/tst-pathconf.c: New test case.
7975         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
7976         _PC_PIPE_BUF.
7977         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
7978
7979 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
7980
7981         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
7982
7983 2013-03-06  Andreas Jaeger  <aj@suse.de>
7984
7985         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
7986         definition via __MAP_ANONYMOUS.
7987
7988         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
7989         it's not part of Linux headers.
7990
7991         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
7992         (MAP_HUGE_MASK): Define.
7993
7994         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
7995         Define.
7996         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
7997         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
7998         Define.
7999         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
8000         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
8001         Define.
8002         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
8003         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
8004         Define.
8005         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
8006
8007         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
8008         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
8009         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
8010         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
8011         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
8012         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
8013
8014         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
8015         Handle f2fs.
8016
8017         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8018         Handle f2fs and efivarfs.
8019
8020         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
8021         f2fs.
8022
8023         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
8024         (EFIVARFS_MAGIC): Add.
8025         (F2FS_LINK_MAX): Add.
8026
8027 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8028
8029         * stdio-common/vfprintf.c: Replace __builtin_expect with
8030         __glibc_unlikely.
8031
8032 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
8033
8034         [BZ #13550]
8035         * sysdeps/generic/bp-sym.h: Remove file.
8036         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
8037         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
8038         <bp-sym.h> and <bp-asm.h>.
8039         (__longjmp): Don't use BP_SYM.
8040         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
8041         and <bp-asm.h>.
8042         (memcpy): Don't use BP_SYM.
8043         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
8044         <bp-sym.h> and <bp-asm.h>.
8045         (memcpy): Don't use BP_SYM.
8046         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
8047         <bp-asm.h>.
8048         (memcpy): Don't use BP_SYM.
8049         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
8050         <bp-asm.h>.
8051         (memset): Don't use BP_SYM.
8052         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
8053         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
8054         (__bzero): Don't use BP_SYM.
8055         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
8056         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
8057         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
8058         <bp-sym.h> and <bp-asm.h>.
8059         (memcmp): Don't use BP_SYM.  Remove comment about bounded
8060         pointers.
8061         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
8062         <bp-sym.h> and <bp-asm.h>.
8063         (memcpy): Don't use BP_SYM.
8064         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
8065         <bp-sym.h> and <bp-asm.h>.
8066         (memset): Don't use BP_SYM.
8067         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
8068         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
8069         (__bzero): Don't use BP_SYM.
8070         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
8071         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
8072         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
8073         <bp-sym.h> and <bp-asm.h>.
8074         (strncmp): Don't use BP_SYM.  Remove comment about bounded
8075         pointers.
8076         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
8077         <bp-sym.h> and <bp-asm.h>.
8078         (memcpy): Don't use BP_SYM.
8079         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
8080         <bp-sym.h> and <bp-asm.h>.
8081         (memset): Don't use BP_SYM.
8082         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
8083         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
8084         (__bzero): Don't use BP_SYM.
8085         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
8086         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
8087         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
8088         <bp-sym.h> and <bp-asm.h>.
8089         (__memchr): Don't use BP_SYM.
8090         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
8091         <bp-sym.h> and <bp-asm.h>.
8092         (memcmp): Don't use BP_SYM.  Remove comment about bounded
8093         pointers.
8094         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
8095         <bp-sym.h> and <bp-asm.h>.
8096         (memcpy): Don't use BP_SYM.
8097         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
8098         <bp-sym.h> and <bp-asm.h>.
8099         (__mempcpy): Don't use BP_SYM.
8100         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
8101         <bp-sym.h> and <bp-asm.h>.
8102         (__memrchr): Don't use BP_SYM.
8103         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
8104         <bp-sym.h> and <bp-asm.h>.
8105         (memset): Don't use BP_SYM.
8106         (__bzero): Likewise.
8107         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
8108         <bp-sym.h> and <bp-asm.h>.
8109         (__rawmemchr): Don't use BP_SYM.
8110         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
8111         <bp-sym.h> and <bp-asm.h>.
8112         (__STRCMP): Don't use BP_SYM.
8113         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
8114         <bp-sym.h> and <bp-asm.h>.
8115         (strchr): Don't use BP_SYM.
8116         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
8117         <bp-sym.h> and <bp-asm.h>.
8118         (__strchrnul): Don't use BP_SYM.
8119         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
8120         <bp-sym.h> and <bp-asm.h>.
8121         (strlen): Don't use BP_SYM.
8122         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
8123         <bp-sym.h> and <bp-asm.h>.
8124         (strncmp): Don't use BP_SYM.  Remove comment about bounded
8125         pointers.
8126         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
8127         <bp-sym.h> and <bp-asm.h>.
8128         (__strnlen): Don't use BP_SYM.
8129         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
8130         <bp-sym.h> and <bp-asm.h>.
8131         (__GI__setjmp): Don't use BP_SYM.
8132         (_setjmp): Likewise.
8133         (__sigsetjmp): Likewise.
8134         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
8135         (L(start_addresses)): Don't use BP_SYM.
8136         (_start): Likewise.
8137         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
8138         <bp-asm.h>.
8139         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
8140         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
8141         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
8142         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
8143         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
8144         <bp-asm.h>.
8145         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
8146         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
8147         about bounded pointers.
8148         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
8149         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
8150         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
8151         <bp-asm.h>.
8152         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
8153         about bounded pointers.  Remove GKM FIXME comments.
8154         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
8155         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
8156         <bp-asm.h>.
8157         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
8158         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
8159         Remove GKM FIXME comments.
8160         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
8161         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
8162         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
8163         <bp-asm.h>.
8164         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
8165         about bounded pointers.  Remove GKM FIXME comment.
8166         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
8167         and <bp-asm.h>.
8168         (strncmp): Don't use BP_SYM.  Remove comment about bounded
8169         pointers.
8170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
8171         <bp-sym.h> and <bp-asm.h>.
8172         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
8173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
8174         <bp-sym.h> and <bp-asm.h>.
8175         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
8176         comment.
8177
8178 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
8179
8180         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
8181         call free(NULL).
8182
8183 2013-03-05  David S. Miller  <davem@davemloft.net>
8184
8185         * po/es.po: Update from translation team.
8186
8187 2013-03-05  Andreas Jaeger  <aj@suse.de>
8188
8189         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
8190         <bits/mman-linux.h>.
8191         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
8192         is fine.
8193         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
8194         <bits/mman-linux.h> to end of file.
8195         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
8196         is fine.
8197         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
8198         <bits/mman-linux.h> to end of file.
8199         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
8200         is fine.
8201         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
8202         <bits/mman-linux.h> to end of file.
8203
8204         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
8205         (MCL_CURRENT, MCL_FUTURE): Define here.
8206
8207 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8208
8209         [BZ #15232]
8210         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
8211         attribute_hidden.
8212         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
8213
8214 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8215
8216         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
8217         fourth parameter needed for rt_sigprocmask syscall.
8218         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
8219         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
8220         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
8221         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
8222         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
8223         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
8224
8225 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
8226
8227         [BZ #13550]
8228         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
8229         comment about bounded pointers.
8230         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
8231         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
8232
8233 2013-03-04  Andreas Jaeger  <aj@suse.de>
8234
8235         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
8236         common definitions.
8237
8238         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
8239         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
8240         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
8241         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8242         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
8243         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8244
8245 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8246
8247         [BZ #15055]
8248         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
8249         __ieee754_sqrl instead of __sqrl.
8250
8251 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
8252
8253         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
8254         * sysdeps/powerpc/fpu_control.h: ... here.
8255         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
8256         * sysdeps/powerpc/bits/fenvinline.h: ... here.
8257         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
8258         * sysdeps/powerpc/bits/mathinline.h: ... here.
8259
8260 2013-03-01  Roland McGrath  <roland@hack.frob.com>
8261
8262         * elf/dl-hwcaps.c (_dl_important_hwcaps):
8263         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
8264         to just [NEED_DL_SYSINFO_DSO].
8265         * elf/dl-support.c: Likewise.
8266         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
8267         * elf/rtld.c (dl_main): Likewise.
8268         * elf/setup-vdso.h (setup_vdso): Likewise.
8269         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
8270         * sysdeps/unix/sysv/linux/dl-sysdep.c
8271         (_dl_discover_osversion): Likewise.
8272
8273 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
8274
8275         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
8276         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
8277
8278 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
8279
8280         * NEWS: Mention libm performance improvements and non-x86 PI
8281         futex support.
8282
8283         * csu/libc-start.c (__pthread_initialize_minimal): Change
8284         function arguments.
8285         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
8286
8287 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
8288
8289         [BZ #13550]
8290         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
8291         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
8292         <bp-sym.h> and <bp-asm.h>.
8293         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
8294         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
8295         and <bp-asm.h>.
8296         (memcpy): Don't use BP_SYM.
8297         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
8298         <bp-asm.h>.
8299         (__mpn_add_n): Don't use BP_SYM.
8300         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
8301         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
8302         and <bp-asm.h>.
8303         (__mpn_addmul_1): Don't use BP_SYM.
8304         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8305         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
8306         <bp-sym.h>.
8307         (_setjmp): Don't use BP_SYM.
8308         (__novmx_setjmp): Likewise.
8309         (__GI__setjmp): Likewise.
8310         (__vmx_setjmp): Likewise.
8311         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
8312         <bp-sym.h>.
8313         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
8314         (__bzero): Don't use BP_SYM.
8315         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
8316         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
8317         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
8318         <bp-sym.h> and <bp-asm.h>.
8319         (memcpy): Don't use BP_SYM.
8320         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
8321         <bp-sym.h> and <bp-asm.h>.
8322         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
8323         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
8324         <bp-sym.h> and <bp-asm.h>.
8325         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
8326         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
8327         <bp-asm.h>.
8328         (__mpn_lshift): Don't use BP_SYM.
8329         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8330         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
8331         <bp-asm.h>.
8332         (memset): Don't use BP_SYM.
8333         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
8334         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
8335         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
8336         <bp-asm.h>.
8337         (__mpn_mul_1): Don't use BP_SYM.
8338         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8339         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
8340         <bp-sym.h> and <bp-asm.h>.
8341         (memcmp): Don't use BP_SYM.
8342         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
8343         <bp-sym.h> and <bp-asm.h>.
8344         (memcpy): Don't use BP_SYM.
8345         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
8346         <bp-sym.h> and <bp-asm.h>.
8347         (memset): Don't use BP_SYM.
8348         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
8349         <bp-sym.h> and <bp-asm.h>.
8350         (strncmp): Don't use BP_SYM.
8351         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
8352         <bp-sym.h> and <bp-asm.h>.
8353         (memcpy): Don't use BP_SYM.
8354         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
8355         <bp-sym.h> and <bp-asm.h>.
8356         (memset): Don't use BP_SYM.
8357         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
8358         <bp-sym.h> and <bp-asm.h>.
8359         (__memchr): Don't use BP_SYM.
8360         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
8361         <bp-sym.h> and <bp-asm.h>.
8362         (memcmp): Don't use BP_SYM.
8363         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
8364         <bp-sym.h> and <bp-asm.h>.
8365         (memcpy): Don't use BP_SYM.
8366         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
8367         <bp-sym.h> and <bp-asm.h>.
8368         (__mempcpy): Don't use BP_SYM.
8369         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
8370         <bp-sym.h> and <bp-asm.h>.
8371         (__memrchr): Don't use BP_SYM.
8372         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
8373         <bp-sym.h> and <bp-asm.h>.
8374         (memset): Don't use BP_SYM.
8375         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
8376         <bp-sym.h> and <bp-asm.h>.
8377         (__rawmemchr): Don't use BP_SYM.
8378         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
8379         <bp-sym.h> and <bp-asm.h>.
8380         (__STRCMP): Don't use BP_SYM.
8381         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
8382         <bp-sym.h> and <bp-asm.h>.
8383         (strchr): Don't use BP_SYM.
8384         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
8385         <bp-sym.h> and <bp-asm.h>.
8386         (__strchrnul): Don't use BP_SYM.
8387         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
8388         <bp-sym.h> and <bp-asm.h>.
8389         (strlen): Don't use BP_SYM.
8390         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
8391         <bp-sym.h> and <bp-asm.h>.
8392         (strncmp): Don't use BP_SYM.
8393         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
8394         <bp-sym.h> and <bp-asm.h>.
8395         (__strnlen): Don't use BP_SYM.
8396         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
8397         <bp-asm.h>.
8398         (__mpn_rshift): Don't use BP_SYM.
8399         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8400         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
8401         <bp-sym.h> and <bp-asm.h>.
8402         (__sigsetjmp): Don't use BP_SYM.
8403         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
8404         (L(start_addresses)): Don't use BP_SYM.
8405         (_start): Likewise.
8406         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
8407         <bp-asm.h>.
8408         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
8409         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
8410         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
8411         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
8412         <bp-asm.h>.
8413         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
8414         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
8415         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
8416         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
8417         <bp-asm.h>.
8418         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
8419         comments.
8420         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
8421         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
8422         <bp-asm.h>.
8423         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
8424         FIXME comments.
8425         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
8426         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
8427         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
8428         <bp-asm.h>.
8429         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
8430         comment.
8431         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
8432         and <bp-asm.h>.
8433         (strncmp): Don't use BP_SYM,
8434         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
8435         <bp-asm.h>.
8436         (__mpn_sub_n): Don't use BP_SYM.
8437         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8438         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
8439         and <bp-asm.h>.
8440         (__mpn_submul_1): Don't use BP_SYM.
8441         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
8443         <bp-sym.h> and <bp-asm.h>.
8444         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
8445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
8446         <bp-sym.h> and <bp-asm.h>.
8447         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
8448         comment.
8449
8450 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8451
8452         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
8453         Use ZK to minimize writes to Z.
8454         (sub_magnitudes): Simplify code a bit.
8455         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
8456         Use ZK to minimize writes to Z.
8457         (sub_magnitudes): Simplify code a bit.
8458
8459 2013-02-27  Roland McGrath  <roland@hack.frob.com>
8460
8461         * csu/gmon-start.c: Add special exception to license text.
8462
8463 2013-02-27  Richard Henderson  <rth@redhat.com>
8464
8465         * scripts/config.guess: Update from config.git.
8466         * scripts/config.sub: Likewise.
8467
8468 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
8469
8470         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
8471
8472         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
8473
8474         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
8475
8476         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
8477
8478         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
8479
8480 2013-02-26  Roland McGrath  <roland@hack.frob.com>
8481
8482         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
8483         [$(build-shared = yes].
8484
8485 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8486
8487         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
8488         (__mul): Reduce iterations for calculating mantissa.
8489
8490         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
8491         MPTWO.
8492         (__mpranred): Likewise.
8493
8494         [BZ #15160]
8495         * malloc/memusagestat.c (main): Draw graphs for heap and stack
8496         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
8497
8498 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8499
8500         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
8501         Define __attribute__.
8502
8503 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8504
8505         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
8506         unused.
8507         * posix/regex_internal.h (__attribute): Remove.
8508         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
8509         (re_string_context_at): Likewise.
8510         (bitset_not): Use __attribute__ and mark function as possibly
8511         unused.
8512         (bitset_merge): Likewise.
8513         (bitset_mask): Likewise.
8514         (re_string_char_size_at): Likewise.
8515         (re_string_wchar_at): Likewise.
8516         (re_string_elem_size_at): Likewise.
8517
8518 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8519
8520         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
8521         code.
8522         (cc32): Likewise.
8523
8524         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
8525         (__acr): Likewise.
8526         (__cpy): Likewise.
8527         (norm): Likewise.
8528         (denorm): Likewise.
8529         (__dbl_mp): Likewise.
8530         (add_magnitudes): Likewise.
8531         (sub_magnitudes): Likewise.
8532         (__mul): Likewise.
8533         (__inv): Likewise.
8534
8535         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
8536         style.
8537
8538         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
8539         style.
8540
8541         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
8542         code.
8543
8544         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
8545         up changes with default code.
8546         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
8547         Likewise.
8548
8549 2013-02-24  Allan McRae  <allan@archlinux.org>
8550
8551         * manual/socket.texi (The Internet Namespace): Order menu items
8552         to match that in the file.
8553
8554         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
8555         node listing of the info page menu.
8556
8557 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
8558
8559         [BZ #13550]
8560         * sysdeps/i386/bp-asm.h: Remove file.
8561         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
8562         (PARMS): Do not use macros from bp-asm.h.
8563         (S1): Likewise.
8564         (S2): Likewise.
8565         (SIZE): Likewise.
8566         (__mpn_add_n): Do not use BP_SYM
8567         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
8568         "bp-asm.h".
8569         (PARMS): Do not use macros from bp-asm.h.
8570         (S1): Likewise.
8571         (SIZE): Likewise.
8572         (__mpn_addmul_1): Do not use BP_SYM
8573         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
8574         "bp-asm.h".
8575         (PARMS): Do not use macros from bp-asm.h.
8576         (SIGMSK): Likewise.
8577         (_setjmp): Likewise.  Do not use BP_SYM.
8578         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
8579         "bp-asm.h".
8580         (PARMS): Do not use macros from bp-asm.h.
8581         (SIGMSK): Likewise.
8582         (setjmp): Likewise.  Do not use BP_SYM.
8583         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
8584         "bp-asm.h".
8585         (PARMS): Do not use macros from bp-asm.h.
8586         (__frexp): Do not use BP_SYM.
8587         (frexp): Likewise.
8588         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
8589         "bp-asm.h".
8590         (PARMS): Do not use macros from bp-asm.h.
8591         (__frexpf): Do not use BP_SYM.
8592         (frexpf): Likewise.
8593         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
8594         "bp-asm.h".
8595         (PARMS): Do not use macros from bp-asm.h.
8596         (__frexpl): Do not use BP_SYM.
8597         (frexpl): Likewise.
8598         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
8599         "bp-asm.h".
8600         (PARMS): Do not use macros from bp-asm.h.
8601         (__remquo): Do not use BP_SYM.
8602         (remquo): Likewise.
8603         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
8604         "bp-asm.h".
8605         (PARMS): Do not use macros from bp-asm.h.
8606         (__remquof): Do not use BP_SYM.
8607         (remquof): Likewise.
8608         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
8609         "bp-asm.h".
8610         (PARMS): Do not use macros from bp-asm.h.
8611         (__remquol): Do not use BP_SYM.
8612         (remquol): Likewise.
8613         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
8614         "bp-asm.h".
8615         (PARMS): Do not use macros from bp-asm.h.
8616         (DEST): Likewise.
8617         (SRC): Likewise.
8618         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
8619         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
8620         "bp-asm.h".
8621         (PARMS): Do not use macros from bp-asm.h.
8622         (strlen): Do not use BP_SYM.
8623         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
8624         "bp-asm.h".
8625         (PARMS): Do not use macros from bp-asm.h.
8626         (S1): Likewise.
8627         (S2): Likewise.
8628         (SIZE): Likewise.
8629         (__mpn_add_n): Do not use BP_SYM.
8630         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
8631         "bp-asm.h".
8632         (PARMS): Do not use macros from bp-asm.h.
8633         (S1): Likewise.
8634         (SIZE): Likewise.
8635         (__mpn_addmul_1): Do not use BP_SYM.
8636         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
8637         weak_alias.
8638         (bzero): Likewise.
8639         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
8640         "bp-asm.h".
8641         (PARMS): Do not use macros from bp-asm.h.
8642         (S): Likewise.
8643         (SIZE): Likewise.
8644         (__mpn_lshift): Do not use BP_SYM.
8645         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
8646         "bp-asm.h".
8647         (PARMS): Do not use macros from bp-asm.h.
8648         (DEST): Likewise.
8649         (SRC): Likewise.
8650         (LEN): Likewise.
8651         (memcpy): Likewise.  Do not use BP_SYM.
8652         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
8653         libc_hidden_def and weak_alias.
8654         (mempcpy): Do not use BP_SYM in weak_alias.
8655         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
8656         "bp-asm.h".
8657         (PARMS): Do not use macros from bp-asm.h.
8658         (DEST): Likewise.
8659         (LEN): Likewise.
8660         [!BZERO_P] (CHR): Likewise.
8661         (memset): Likewise.  Do not use BP_SYM.
8662         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
8663         "bp-asm.h".
8664         (PARMS): Do not use macros from bp-asm.h.
8665         (S1): Likewise.
8666         (SIZE): Likewise.
8667         (__mpn_mul_1): Do not use BP_SYM.
8668         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
8669         "bp-asm.h".
8670         (PARMS): Do not use macros from bp-asm.h.
8671         (S): Likewise.
8672         (SIZE): Likewise.
8673         (__mpn_rshift): Do not use BP_SYM.
8674         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
8675         "bp-asm.h".
8676         (PARMS): Do not use macros from bp-asm.h.
8677         (STR): Likewise.
8678         (CHR): Likewise.
8679         (strchr): Likewise.  Do not use BP_SYM.
8680         (index): Do not use BP_SYM in weak_alias.
8681         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
8682         "bp-asm.h".
8683         (PARMS): Do not use macros from bp-asm.h.
8684         (DEST): Likewise.
8685         (SRC): Likewise.
8686         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
8687         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
8688         "bp-asm.h".
8689         (PARMS): Do not use macros from bp-asm.h.
8690         (strlen): Do not use BP_SYM.
8691         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
8692         "bp-asm.h".
8693         (PARMS): Do not use macros from bp-asm.h.
8694         (S1): Likewise.
8695         (S2): Likewise.
8696         (SIZE): Likewise.
8697         (__mpn_sub_n): Do not use BP_SYM.
8698         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
8699         "bp-asm.h".
8700         (PARMS): Do not use macros from bp-asm.h.
8701         (S1): Likewise.
8702         (SIZE): Likewise.
8703         (__mpn_submul_1): Do not use BP_SYM.
8704         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
8705         "bp-asm.h".
8706         (PARMS): Do not use macros from bp-asm.h.
8707         (S1): Likewise.
8708         (S2): Likewise.
8709         (SIZE): Likewise.
8710         (__mpn_add_n): Do not use BP_SYM.
8711         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
8712         weak_alias.
8713         (bzero): Likewise.
8714         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
8715         "bp-asm.h".
8716         (PARMS): Do not use macros from bp-asm.h.
8717         (BLK2): Likewise.
8718         (LEN): Likewise.
8719         (memcmp): Do not use BP_SYM.
8720         (bcmp): Do not use BP_SYM in weak_alias.
8721         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
8722         "bp-asm.h".
8723         (PARMS): Do not use macros from bp-asm.h.
8724         (DEST): Likewise.
8725         (SRC): Likewise.
8726         (LEN): Likewise.
8727         (memcpy): Likewise.  Do not use BP_SYM.
8728         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
8729         "bp-asm.h".
8730         (PARMS): Do not use macros from bp-asm.h.
8731         (DEST): Likewise.
8732         (SRC): Likewise.
8733         (LEN): Likewise.
8734         (memmove): Likewise.  Do not use BP_SYM.
8735         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
8736         "bp-asm.h".
8737         (PARMS): Do not use macros from bp-asm.h.
8738         (DEST): Likewise.
8739         (SRC): Likewise.
8740         (LEN): Likewise.
8741         (__mempcpy): Likewise.  Do not use BP_SYM.
8742         (mempcpy): Do not use BP_SYM in weak_alias.
8743         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
8744         "bp-asm.h".
8745         (PARMS): Do not use macros from bp-asm.h.
8746         (DEST): Likewise.
8747         (LEN): Likewise.
8748         [!BZERO_P] (CHR): Likewise.
8749         (memset): Likewise.  Do not use BP_SYM.
8750         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
8751         "bp-asm.h".
8752         (PARMS): Do not use macros from bp-asm.h.
8753         (STR2): Likewise.
8754         (strcmp): Do not use BP_SYM.
8755         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
8756         "bp-asm.h".
8757         (PARMS): Do not use macros from bp-asm.h.
8758         (STR): Likewise.
8759         (DELIM): Likewise.
8760         [USE_AS_STRTOK_R] (SAVE): Likewise.
8761         (FUNCTION): Likewise.  Do not use BP_SYM.
8762         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
8763         aliases.
8764         (strtok_r): Likewise.
8765         (__GI___strtok_r): Likewise.
8766         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
8767         (PARMS): Do not use macros from bp-asm.h.
8768         (S): Likewise.
8769         (SIZE): Likewise.
8770         (__mpn_lshift): Do not use BP_SYM.
8771         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
8772         (PARMS): Do not use macros from bp-asm.h.
8773         (STR): Likewise.
8774         (CHR): Likewise.
8775         (__memchr): Do not use BP_SYM.
8776         (memchr): Do not use BP_SYM in weak_alias.
8777         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
8778         (PARMS): Do not use macros from bp-asm.h.
8779         (BLK2): Likewise.
8780         (LEN): Likewise.
8781         (memcmp): Do not use BP_SYM.
8782         (bcmp): Do not use BP_SYM in weak_alias.
8783         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
8784         (PARMS): Do not use macros from bp-asm.h.
8785         (S1): Likewise.
8786         (SIZE): Likewise.
8787         (__mpn_mul_1): Do not use BP_SYM.
8788         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
8789         "bp-asm.h".
8790         (PARMS): Do not use macros from bp-asm.h.
8791         (STR): Likewise.
8792         (CHR): Likewise.
8793         (__rawmemchr): Do not use BP_SYM.
8794         (rawmemchr): Do not use BP_SYM in weak_alias.
8795         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
8796         (PARMS): Do not use macros from bp-asm.h.
8797         (S): Likewise.
8798         (SIZE): Likewise.
8799         (__mpn_rshift): Do not use BP_SYM.
8800         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
8801         (PARMS): Do not use macros from bp-asm.h.
8802         (SIGMSK): Likewise.
8803         (__sigsetjmp): Likewise.  Do not use BP_SYM.
8804         * sysdeps/i386/start.S: Do not include "bp-sym.h".
8805         (_start): Do not use BP_SYM.
8806         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
8807         (PARMS): Do not use macros from bp-asm.h.
8808         (DEST): Likewise.
8809         (SRC): Likewise.
8810         (__stpcpy): Likewise.  Do not use BP_SYM.
8811         (stpcpy): Do not use BP_SYM in weak_alias.
8812         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
8813         "bp-asm.h".
8814         (PARMS): Do not use macros from bp-asm.h.
8815         (DEST): Likewise.
8816         (SRC): Likewise.
8817         (LEN): Likewise.
8818         (__stpncpy): Likewise.  Do not use BP_SYM.
8819         (stpncpy): Do not use BP_SYM in weak_alias.
8820         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
8821         (PARMS): Do not use macros from bp-asm.h.
8822         (STR): Likewise.
8823         (CHR): Likewise.
8824         (strchr): Likewise.  Do not use BP_SYM.
8825         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
8826         "bp-asm.h".
8827         (PARMS): Do not use macros from bp-asm.h.
8828         (STR): Likewise.
8829         (CHR): Likewise.
8830         (__strchrnul): Likewise.  Do not use BP_SYM.
8831         (strchrnul): Do not use BP_SYM in weak_alias.
8832         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
8833         "bp-asm.h".
8834         (PARMS): Do not use macros from bp-asm.h.
8835         (STOP): Likewise.
8836         (strcspn): Do not use BP_SYM.
8837         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
8838         "bp-asm.h".
8839         (PARMS): Do not use macros from bp-asm.h.
8840         (STR): Likewise.
8841         (STOP): Likewise.
8842         (strpbrk): Likewise.  Do not use BP_SYM.
8843         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
8844         "bp-asm.h".
8845         (PARMS): Do not use macros from bp-asm.h.
8846         (STR): Likewise.
8847         (CHR): Likewise.
8848         (strrchr): Likewise.  Do not use BP_SYM.
8849         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
8850         (PARMS): Do not use macros from bp-asm.h.
8851         (SKIP): Likewise.
8852         (strspn): Do not use BP_SYM.
8853         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
8854         (PARMS): Do not use macros from bp-asm.h.
8855         (STR): Likewise.
8856         (DELIM): Likewise.
8857         (SAVE): Likewise.
8858         (FUNCTION): Likewise.  Do not use BP_SYM.
8859         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
8860         aliases.
8861         (strtok_r): Likewise.
8862         (__GI___strtok_r): Likewise.
8863         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
8864         (PARMS): Do not use macros from bp-asm.h.
8865         (S1): Likewise.
8866         (S2): Likewise.
8867         (SIZE): Likewise.
8868         (__mpn_sub_n): Do not use BP_SYM.
8869         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
8870         "bp-asm.h".
8871         (PARMS): Do not use macros from bp-asm.h.
8872         (S1): Likewise.
8873         (SIZE): Likewise.
8874         (__mpn_submul_1): Do not use BP_SYM.
8875         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
8876         <bp-sym.h>.
8877         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
8878         and <bp-asm.h>.
8879         (PARMS): Do not use macros from bp-asm.h.
8880         (FLAGS): Likewise.
8881         (PTID): Likewise.
8882         (TLS): Likewise.
8883         (CTID): Likewise.
8884         (__clone): Do not use BP_SYM.
8885         (clone): Do not use BP_SYM in weak_alias.
8886         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
8887         and <bp-asm.h>.
8888         (PARMS): Do not use macros from bp-asm.h.
8889         (LEN): Likewise.
8890         (__mmap64): Do not use BP_SYM.
8891         (mmap64): Do not use BP_SYM in weak_alias.
8892         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
8893         <bp-sym.h> and <bp-asm.h>.
8894         (PARMS): Do not use macros from bp-asm.h.
8895         (__posix_fadvise64_l64): Do not use BP_SYM.
8896         * sysdeps/unix/sysv/linux/i386/semtimedop.S
8897         (PARMS): Do not use macros from bp-asm.h.
8898         (NSOPS): Likewise.
8899         (semtimedop): Do not use BP_SYM.
8900         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
8901         and <bp-asm.h>.
8902
8903 2013-02-21  Allan McRae  <allan@archlinux.org>
8904
8905         * manual/message.texi (Charset conversion in gettext):
8906         Move @end statement to beginning of line.
8907
8908 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8909
8910         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
8911         static.
8912         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
8913         Likewise.
8914
8915         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
8916         (denorm): Likewise.
8917         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
8918         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
8919
8920 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8921
8922         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
8923         tail-call to the resolved function if pltexit isn't needed.
8924
8925 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8926
8927         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
8928         or Y being zero as being unlikely.
8929         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
8930         Likewise.
8931
8932 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
8933
8934         * manual/nss.texi (System Databases and Name Service Switch):
8935         Remove frobnicate @pxref.
8936
8937 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
8938
8939         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
8940         __attribute__ ((unused)) to __attribute__ ((__unused__)).
8941
8942 2013-02-20  Petr Machata  <pmachata@redhat.com>
8943
8944         * elf/elf.h (R_ARM_TARGET1): New macro.
8945         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
8946         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
8947         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
8948         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
8949         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
8950         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
8951         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
8952         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
8953         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
8954         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
8955         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
8956         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
8957         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
8958         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
8959         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
8960         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
8961         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
8962         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
8963         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
8964         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
8965         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
8966         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
8967         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
8968         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
8969         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
8970         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
8971         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
8972         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
8973         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
8974         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
8975         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
8976         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
8977         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
8978         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
8979         (R_ARM_THM_GOT_BREL12): Likewise.
8980         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
8981         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
8982         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
8983         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
8984         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
8985         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
8986         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
8987         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
8988         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
8989
8990 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
8991
8992         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
8993         __attribute_used__ to __attribute__ ((unused)).
8994
8995 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
8996
8997         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
8998         powerpc mpa.c.
8999         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
9000         comment formatting.
9001         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
9002
9003 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
9004
9005         [BZ #13550]
9006         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
9007         Remove macro.
9008         (ENTER): Remove both macro definitions.
9009         (LEAVE): Likewise.
9010         (CHECK_BOUNDS_LOW): Likewise.
9011         (CHECK_BOUNDS_HIGH): Likewise.
9012         (CHECK_BOUNDS_BOTH): Likewise.
9013         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
9014         (RETURN_BOUNDED_POINTER): Likewise.
9015         (RETURN_NULL_BOUNDED_POINTER): Likewise.
9016         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
9017         (POP_ERRNO_LOCATION_RETURN): Likewise.
9018         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
9019         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
9020         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
9021         macros.
9022         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9023         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
9024         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
9025         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
9026         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
9027         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
9028         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
9029         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
9030         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
9031         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
9032         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
9033         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
9034         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
9035         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
9036         removed macros.
9037         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9038         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
9039         macros.
9040         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
9041         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
9042         * sysdeps/i386/i586/memset.S (memset): Likewise.
9043         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
9044         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9045         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
9046         macros.
9047         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
9048         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
9049         Change uses of L(2) to L(out).
9050         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
9051         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
9052         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
9053         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
9054         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
9055         removed macros.
9056         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9057         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
9058         macros.
9059         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
9060         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
9061         (RETURN): Do not use macro LEAVE.
9062         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
9063         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
9064         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
9065         * sysdeps/i386/i686/memset.S (memset): Likewise.
9066         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
9067         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
9068         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
9069         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
9070         Likewise.
9071         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
9072         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
9073         L(1_2) and L(1_3) into L(1).
9074         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
9075         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
9076         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
9077         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
9078         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
9079         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
9080         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
9081         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9082         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
9083         macros.
9084         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
9085         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
9086         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
9087         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
9088         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
9089         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
9090         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
9091         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
9092         * sysdeps/i386/strcspn.S (strcspn): Likewise.
9093         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
9094         * sysdeps/i386/strrchr.S (strrchr): Likewise.
9095         * sysdeps/i386/strspn.S (strspn): Likewise.
9096         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
9097         conditional code.
9098         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
9099         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
9100         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
9101         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
9102         L(1_3) into L(1_1).
9103         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
9104         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
9105         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
9106         macros.
9107         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9108
9109 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
9110
9111         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
9112         macro.
9113
9114 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
9115
9116         * math/atest-exp.c (exp_mpn): Remove ROUND.
9117         * math/atest-exp2.c (exp_mpn): Likewise.
9118         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
9119
9120         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
9121         * stdlib/tst-tls-atexit-lib.c: Likewise.
9122         * stdlib/tst-tls-atexit.c: Likewise.
9123
9124 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
9125
9126         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
9127         and __attribute_alloc_size__.
9128
9129 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
9130
9131         * include/programs/xmalloc.h: Change __attribute_alloc_size to
9132         __attribute_alloc_size__.
9133         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
9134         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
9135
9136 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
9137
9138         * include/programs/xmalloc.h: New file.
9139         * catgets/gencat.c: Include it.
9140         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
9141         * elf/pldd.c: Likewise.
9142         * iconv/iconv_charmap.c: Likewise.
9143         * iconv/iconvconfig.c: Likewise.
9144         * iconv/strtab.c: Likewise.
9145         * locale/programs/locale.c: Likewise.
9146         * locale/programs/localedef.h: Likewise.
9147         * locale/programs/simple-hash.c: Likewise.
9148         * nscd/nscd.h: Likewise.
9149         * nss/makedb.c: Likewise.
9150         * sysdeps/generic/ldconfig.h: Likewise.
9151
9152 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
9153
9154         * Versions.def: Add GLIBC_2.18.
9155         * include/link.h (struct link_map): New member l_tls_dtor_count.
9156         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
9157         (__call_tls_dtors): Likewise.
9158         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
9159         __cxa_thread_atexit_impl.
9160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9161         Likewise.
9162         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9163         Likewise.
9164         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9165         Likewise.
9166         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9167         Likewise.
9168         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
9169         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
9170         Likewise.
9171         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
9172         Likewise.
9173         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
9174         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
9175         Likewise.
9176         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
9177         (tests): Add test case tst-tls-atexit.
9178         (modules-names): Add shared library for tst-tls-atexit.
9179         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
9180         (GLIBC_PRIVATE): Add __call_tls_dtors.
9181         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
9182         for libstdc++.
9183         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
9184         * stdlib/tst-tls-atexit.c: New test case.
9185         * stdlib/tst-tls-atexit-lib.c: New test case.
9186
9187         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
9188
9189         * elf/Versions (ld): Add _dl_find_dso_for_object.
9190         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
9191         * elf/dl-open.c (_dl_find_dso_for_object): New function.
9192         (dl_open_worker): Use _dl_find_dso_for_object.
9193         * elf/dl-sym.c (do_sym): Likewise.
9194         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
9195
9196 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9197
9198         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
9199         Syntactic changes only.
9200         (_dl_runtime_profile): Do a tail-call to the resolved function.
9201
9202 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
9203
9204         [BZ #13550]
9205         * sysdeps/x86_64/bp-asm.h: Remove file.
9206         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
9207         <bp-sym.h> and <bp-asm.h>.
9208         (__clone): Do not use BP_SYM.
9209         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
9210         <bp-sym.h> and <bp-asm.h>.
9211         * sysdeps/unix/x86_64/sysdep.S: Likewise.
9212         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
9213         "bp-asm.h".
9214         (_setjmp): Do not use BP_SYM.
9215         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
9216         "bp-asm.h".
9217         (setjmp): Do not use BP_SYM.
9218         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
9219         libc_hidden_def.
9220         (mempcpy): Do not use BP_SYM in weak_alias.
9221         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
9222         "bp-asm.h".
9223         (strchr): Do not use BP_SYM.
9224         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
9225         "bp-asm.h".
9226         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
9227         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
9228         (_start): Do not use BP_SYM.
9229         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
9230         "bp-asm.h".
9231         (strcat): Do not use BP_SYM.
9232         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
9233         "bp-asm.h".
9234         (STRCMP): Do not use BP_SYM.
9235         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
9236         "bp-asm.h".
9237         (STRCPY): Do not use BP_SYM.
9238         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
9239         "bp-asm.h".
9240         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
9241         "bp-asm.h".
9242         (FUNCTION): Do not use BP_SYM.
9243         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
9244         weak_alias.
9245         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
9246
9247 2013-02-17  Andreas Jaeger  <aj@suse.de>
9248
9249         * time/Versions: Sort entries.
9250         * string/Versions: Likewise.
9251         * resolv/Versions: Likewise.
9252         * posix/Versions: Likewise.
9253         * iconv/Versions: Likewise.
9254         * elf/Versions: Likewise.
9255         * wcsmbs/Versions: Likewise.
9256
9257 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
9258
9259         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
9260         loop termination condition.
9261
9262         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
9263         variable to calculate EZ.
9264         (__sqr): Likewise.
9265
9266         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
9267         the lower precision input.
9268
9269 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
9270
9271         [BZ #13550]
9272         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
9273         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
9274         (run-via-rtld-prefix): Do not handle %-bp tests.
9275         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
9276         (all-object-suffixes): Remove .ob.
9277         (bppfx): Remove variable.
9278         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
9279         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
9280         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
9281         [$(build-bounded) = yes] (libtype.ob): Likewise.
9282         * Makerules (elide-routines.ob): Remove variable.
9283         (do-tests-clean): Do not handle *-bp.out.
9284         (common-mostlyclean): Do not handle *-bp and *-bp.out.
9285         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
9286         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
9287         (tests): Do not include $(tests-bp.out).
9288         (xtests): Do not include $(xtests-bp.out).
9289         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
9290         [$(build-bounded) = yes] ($(addprefix
9291         $(objpfx),$(binaries-bounded))): Remove rule.
9292         ($(objpfx)%-bp.out): Remove rule.
9293         * config.make.in (build-bounded): Remove variable.
9294         * crypt/Makefile [$(build-bounded) = yes]
9295         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
9296         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
9297         append to variable.
9298         [$(build-bounded) = yes] (install-lib): Likewise.
9299         [$(build-bounded) = yes] (generated): Likewise.
9300         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
9301         Remove rule.
9302         * intl/Makefile [$(build-bounded) = yes]
9303         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
9304         * math/Makefile [$(build-bounded) = yes]
9305         ($(tests:%=$(objpfx)%-bp): Likewise.
9306         * misc/Makefile [$(build-bounded) = yes]
9307         ($(objpfx)tst-tsearch-bp): Likewise.
9308         * nptl/Makeconfig (bounded-thread-library): Remove variable.
9309         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
9310         Remove dependency.
9311         * string/Makefile (o-objects.ob): Remove variable.
9312         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
9313         (CFLAGS-.ob): Remove variable.
9314         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
9315         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
9316         both definitions of variable.
9317         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
9318         (ASFLAGS-.ob): Remove variable.
9319
9320 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
9321
9322         [BZ #13550]
9323         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
9324         Remove __BOUNDED_POINTERS__ from condition.
9325         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
9326         * string/bits/string2.h [!__NO_STRING_INLINES &&
9327         !__BOUNDED_POINTERS__]: Likewise.
9328         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
9329         Likewise.
9330         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
9331         Remove conditional code.
9332         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
9333         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
9334         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
9335         condition.
9336
9337         [BZ #13550]
9338         * csu/libc-start.c: Do not include <bp-sym.h>.
9339         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
9340         * elf/dl-open.c: Do not include <bp-sym.h>.
9341         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
9342         * math/fegetenv.c: Do not include <bp-sym.h>.
9343         (fegetenv): Do not use BP_SYM in versioned symbols.
9344         * nptl/sysdeps/pthread/bits/libc-lockP.h
9345         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
9346         <bp-sym.h>.
9347         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9348         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
9349         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9350         (__pthread_mutex_destroy): Likewise.
9351         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9352         (__pthread_mutex_lock): Likewise.
9353         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9354         (__pthread_mutex_trylock): Likewise.
9355         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9356         (__pthread_mutex_unlock): Likewise.
9357         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9358         (__pthread_mutexattr_init): Likewise.
9359         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9360         (__pthread_mutexattr_destroy): Likewise.
9361         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9362         (__pthread_mutexattr_settype): Likewise.
9363         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9364         (__pthread_rwlock_init): Likewise.
9365         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9366         (__pthread_rwlock_destroy): Likewise.
9367         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9368         (__pthread_rwlock_rdlock): Likewise.
9369         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9370         (__pthread_rwlock_tryrdlock): Likewise.
9371         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9372         (__pthread_rwlock_wrlock): Likewise.
9373         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9374         (__pthread_rwlock_trywrlock): Likewise.
9375         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9376         (__pthread_rwlock_unlock): Likewise.
9377         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9378         (__pthread_key_create): Likewise.
9379         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9380         (__pthread_setspecific): Likewise.
9381         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9382         (__pthread_getspecific): Likewise.
9383         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
9384         Likewise.
9385         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9386         (_pthread_cleanup_push_defer): Likewise.
9387         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9388         (_pthread_cleanup_pop_restore): Likewise.
9389         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9390         (pthread_setcancelstate): Likewise.
9391         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
9392         <bp-sym.h>.
9393         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
9394         (memchr): Do not use BP_SYM in weak_alias.
9395         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
9396         (fegetenv): Do not use BP_SYM in versioned symbols.
9397         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
9398         (fesetenv): Do not use BP_SYM in versioned symbols.
9399         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
9400         (feupdateenv): Do not use BP_SYM in versioned symbols.
9401         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
9402         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
9403         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
9404         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
9405         (open64): Do not use BP_SYM in weak_alias.
9406         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
9407         (fegetenv): Do not use BP_SYM in versioned symbols.
9408         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
9409         (fesetenv): Do not use BP_SYM in versioned symbols.
9410         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
9411         (feupdateenv): Do not use BP_SYM in versioned symbols.
9412         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
9413         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
9414         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
9415         (feraiseexcept): Do not use BP_SYM in versioned symbols.
9416         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
9417         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
9418         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
9419         <bp-sym.h>.
9420         (__libc_start_main): Do not use BP_SYM.
9421
9422 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
9423
9424         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
9425         redundant return line.
9426         (norm): Likewise.
9427         (denorm): Likewise.
9428         (dbl_mp): Likewise.
9429         (sub_magnitudes): Likewise.
9430         (__add): Likewise.
9431         (__sub): Likewise.
9432         (__mul): Likewise.
9433         (__inv): Likewise.
9434         (__dvd): Likewise.
9435         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
9436         (norm): Likewise.
9437         (denorm): Likewise.
9438         (dbl_mp): Likewise.
9439         (sub_magnitudes): Likewise.
9440         (__add): Likewise.
9441         (__sub): Likewise.
9442         (__mul): Likewise.
9443         (__inv): Likewise.
9444         (__dvd): Likewise.
9445
9446         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
9447         instead of __mul.
9448         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
9449         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
9450         (cc32): Likewise.
9451
9452         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
9453         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
9454         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
9455         of __mul for squares.
9456         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
9457         function
9458         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
9459         Likewise.
9460         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
9461         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
9462
9463 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
9464
9465         [BZ #13550]
9466         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
9467         code.
9468         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
9469         prototype or function definition.  Rename ubp_* variables and
9470         parameters.  Remove argv definitions conditional on
9471         [__BOUNDED_POINTERS__].
9472         * debug/backtrace.c (__backtrace): Do not use __unbounded.
9473         * elf/dl-runtime.c (_dl_fixup): Likewise.
9474         * include/set-hooks.h (RUN_HOOK): Likewise.
9475         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
9476         definition.
9477         * string/strcpy.c (strcpy): Do not use __unbounded.
9478         * sysdeps/generic/frame.h (struct layout): Likewise.
9479         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
9480         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
9481         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
9482         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
9483         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
9484         (__backtrace): Likewise.
9485         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
9486         use __ptrvalue.
9487         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
9488         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
9489         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
9490         Likewise.
9491         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
9492         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
9493         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
9494         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9495         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
9496         Do not use __unbounded.
9497         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
9498         Rename __unboundedrlimits parameter to rlimits in prototype.
9499         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
9500         Do not use __unbounded.
9501         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
9502         not use __ptrvalue.
9503         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9504         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
9505         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
9506         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
9507         __ptrvalue or __unbounded.
9508         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
9509         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
9510         use __unbounded.
9511         (__new_msgctl): Do not use __ptrvalue.
9512         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
9513         __unbounded.
9514         (__libc_msgrcv): Do not use __ptrvalue.
9515         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
9516         startup_info): Do not use __unbounded.
9517         (__libc_start_main): Likewise.  Rename ubp_* variables and
9518         parameters.  Remove argv definitions conditional on
9519         [__BOUNDED_POINTERS__].
9520         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
9521         __ptrvalue.
9522         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
9523         use __unbounded.
9524         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
9525         or __ptrvalue.
9526         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
9527         use __unbounded.
9528         (__new_shmctl): Do not use __ptrvalue.
9529         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
9530         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
9531         Likewise.
9532         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
9533         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
9534         (__libc_sigaction): Likewise.
9535         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
9536         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
9537         Likewise.
9538         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
9539
9540 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
9541
9542         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
9543
9544         * string/mempcpy.c: Implement by calling memcpy.
9545
9546 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
9547
9548         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
9549
9550         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
9551         evaluation.
9552
9553         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
9554         values in the mantissa.
9555
9556         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
9557         minimize writes to Z.
9558         (sub_magnitudes): Simplify code a bit.
9559
9560 2013-02-12  Roland McGrath  <roland@hack.frob.com>
9561
9562         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
9563         from the message.  The linker prefixes all warnings with that already.
9564
9565 2013-02-12  Andreas Schwab  <schwab@suse.de>
9566
9567         [BZ #15078]
9568         * posix/regexec.c (extend_buffers): Add parameter min_len.
9569         (check_matching): Pass minimum needed length.
9570         (clean_state_log_if_needed): Likewise.
9571         (get_subexp): Likewise.
9572         * posix/Makefile (tests): Add bug-regex34.
9573         (bug-regex34-ENV): Define.
9574         * posix/bug-regex34.c: New file.
9575
9576         [BZ #11561]
9577         * posix/regcomp.c (parse_bracket_exp): When looking up collating
9578         elements compare against the byte sequence of it, not its name.
9579         * posix/Makefile (tests): Add bug-regex35.
9580         (bug-regex35-ENV): Define.
9581         * posix/bug-regex35.c: New file.
9582
9583 2013-02-11  Tom de Vries  <tom@codesourcery.com>
9584
9585         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
9586         comment.
9587         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
9588         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
9589         (CHECK_EOL): Add undef.
9590
9591 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
9592
9593         * bits/stdlib-bsearch.h: New file.
9594         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
9595         * stdlib/stdlib.h: Likewise.
9596
9597 2013-02-11  Roland McGrath  <roland@hack.frob.com>
9598
9599         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
9600         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
9601         declaration.
9602         * manual/search.texi (Array Search Function): Add missing const in
9603         lfind prototype.
9604         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
9605         declaration to use rlim_t.
9606         (Basic Scheduling Functions): Remove erroneous const from
9607         sched_getparam prototype.  Remove erroneous * from
9608         sched_get_priority_max and sched_get_priority_min prototypes.
9609         (Resource Usage): Fix summary @comment on vtimes to refer to
9610         sys/vtimes.h rather than vtimes.h.
9611         Add missing *s in vtimes prototype.
9612         (Limits on Resources): Fix ulimit prototype to return long int.
9613         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
9614         prototypes to use long int rather than double.
9615         (BSD Random): Fix initstate and setstate to use char *, not void *.
9616         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
9617         prototype to make second argument 'struct aiocb64 *const[]'.
9618         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
9619         (Status of AIO Operations): Remove erroneous const in aio_return and
9620         aio_return64 prototypes.
9621         (Synchronizing I/O): Fix sync prototype to return void.
9622         * manual/startup.texi (Suboptions): Remove an erroneous const in
9623         getsubopt prototype.
9624         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
9625         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
9626         use size_t rather than int.
9627         (Scanning All Users): Likewise for getpwent_r.
9628         (Setting Groups): Add missing const to setgroups prototype.
9629         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
9630         * manual/socket.texi (Host Names): Fix gethostbyaddr and
9631         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
9632         'const void *' rather than 'const char *'.
9633         (Host Address Functions): Likewise for inet_ntop.
9634         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
9635         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
9636         ssize_t for return value.
9637         (Sending Data): Likewise for send, sendto, sendmsg.
9638         (Socket Option Functions): Add a missing const in setsockopt prototype.
9639         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
9640         use wchar_t for the argument.
9641         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
9642         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
9643         take no arguments.
9644         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
9645         double/float/long double for second argument.
9646         Fix return types of significand, significandf, significandl.
9647         * manual/filesys.texi (Setting Permissions): Use mode_t for second
9648         argument in fchmod prototype.
9649         (File Owner): Use uid_t and gid_t in fchown prototype.
9650         (File Times): Add const to utimes, futimes, and lutimes prototypes.
9651         (Making Special Files): Use mode_t and dev_t in mknod prototype.
9652         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
9653         use 'const struct dirent **' as argument types to CMP function pointer
9654         argument.
9655         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
9656         (File Times): Fix summary magic @comment for struct utimbuf and utime
9657         to refer to utime.h, not time.h.
9658         * manual/string.texi (Argz Functions): Add missing const in
9659         argz_extract and argz_next prototypes.
9660         (Finding Tokens in a String): Likewise for basename.
9661         (String/Array Comparison): Fix typo in wcscasecmp prototype.
9662         (Copying and Concatenation): Fix typo in wmemmove prototype.
9663         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
9664         (Signal Stack): Remove erroneous const in sigstack prototype.
9665         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
9666         prototype.
9667         (Simple Calendar Time): Likewise for stime.
9668         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
9669         prototype.
9670         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
9671         say sys/sysctl.h instead.
9672         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
9673         and vsyslog prototypes.
9674
9675 2013-02-11  Tom de Vries  <tom@codesourcery.com>
9676
9677         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
9678         Remove.
9679
9680 2013-02-11  Roland McGrath  <roland@hack.frob.com>
9681
9682         * misc/sys/mman.h: Fix typo in mremap comment.
9683
9684 2013-02-08  Roland McGrath  <roland@hack.frob.com>
9685
9686         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
9687         the '\0' terminator.
9688
9689 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
9690
9691         [BZ #13550]
9692         * debug/segfault.c: Don't include <bp-checks.h>.
9693         * sysdeps/generic/bp-checks.h: Remove file.
9694         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
9695         (__GETDENTS): Don't use CHECK_N.
9696         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
9697         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
9698         (__getgroups): Don't use CHECK_N.
9699         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
9700         (setgroups): Don't use CHECK_N.
9701         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
9702         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9703         (__libc_msgrcv): Don't use CHECK_N.
9704         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
9705         (__libc_msgsnd): Don't use CHECK_N.
9706         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
9707         <bp-checks.h>.
9708         (__libc_pread): Don't use CHECK_N.
9709         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
9710         include <bp-checks.h>.
9711         (__libc_pread64): Don't use CHECK_N.
9712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
9713         include <bp-checks.h>.
9714         (__libc_pwrite): Don't use CHECK_N.
9715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
9716         include <bp-checks.h>.
9717         (__libc_pwrite64): Don't use CHECK_N.
9718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
9719         <bp-checks.h>.
9720         (__libc_pread): Don't use CHECK_N.
9721         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
9722         include <bp-checks.h>.
9723         (__libc_pread64): Don't use CHECK_N.
9724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
9725         include <bp-checks.h>.
9726         (__libc_pwrite): Don't use CHECK_N.
9727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
9728         include <bp-checks.h>.
9729         (__libc_pwrite64): Don't use CHECK_N.
9730         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
9731         (do_pread): Don't use CHECK_N.
9732         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
9733         (do_pread64): Don't use CHECK_N.
9734         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
9735         (do_pwrite): Don't use CHECK_N.
9736         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
9737         (do_pwrite64): Don't use CHECK_N.
9738         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
9739         (__libc_readv): Don't use CHECK_N.
9740         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
9741         (semop): Don't use CHECK_N.
9742         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
9743         <bp-checks.h>.
9744         (semtimedop): Don't use CHECK_N.
9745         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
9746         (__libc_pread): Don't use CHECK_N.
9747         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
9748         <bp-checks.h>.
9749         (__libc_pread64): Don't use CHECK_N.
9750         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
9751         <bp-checks.h>.
9752         (__libc_pwrite): Don't use CHECK_N.
9753         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
9754         <bp-checks.h>.
9755         (__libc_pwrite64): Don't use CHECK_N.
9756         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
9757         <bp-checks.h>.
9758         (__libc_msgrcv): Don't use CHECK_N.
9759         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
9760         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
9761         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
9762         (__libc_writev): Don't use CHECK_N.
9763
9764 2013-02-08  Roland McGrath  <roland@hack.frob.com>
9765
9766         * string/strcpy.c: Removed unused variable.
9767
9768         * Makeconfig (+sysdep-includes): Define with := rather than =.
9769         Use an existing include/ subdir of each sysdeps dir before it.
9770
9771 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
9772
9773         * nscd/connection.c (register_traced_file): Comment function.
9774         [HAVE_INOTIFY] (union __inev): Define.
9775         [HAVE_INOTIFY] (inotify_check_files): New function.
9776         [HAVE_INOTIFY] (clear_db_cache): Likewise.
9777         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
9778         clear_db_cache.
9779         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
9780
9781 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
9782
9783         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
9784         loaded if not already and that a failure is permanent.
9785
9786 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
9787
9788         [BZ #15006]
9789         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
9790         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
9791
9792 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
9793
9794         [BZ #13550]
9795         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
9796         (CHECK_1_NULL_OK): Likewise.
9797         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
9798         (__fxstat): Do not use CHECK_1.
9799         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
9800         <bp-checks.h>.
9801         (___fxstat64): Do not use CHECK_1.
9802         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
9803         <bp-checks.h>.
9804         (__fxstatat): Do not use CHECK_1.
9805         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
9806         <bp-checks.h>.
9807         (__fxstatat64): Do not use CHECK_1.
9808         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
9809         <bp-checks.h>.
9810         (__fxstat): Do not use CHECK_1.
9811         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
9812         <bp-checks.h>.
9813         (__fxstatat): Do not use CHECK_1.
9814         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
9815         <bp-checks.h>.
9816         (__getresgid): Do not use CHECK_1.
9817         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
9818         <bp-checks.h>.
9819         (__getresuid): Do not use CHECK_1.
9820         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
9821         <bp-checks.h>.
9822         (__lxstat): Do not use CHECK_1.
9823         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
9824         <bp-checks.h>.
9825         (__old_msgctl): Do not use CHECK_1.
9826         (__new_msgctl): Likewise.
9827         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
9828         <bp-checks.h>.
9829         (__new_setrlimit): Do not use CHECK_1.
9830         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
9831         <bp-checks.h>.
9832         (__old_shmctl): Do not use CHECK_1.
9833         (__new_shmctl): Likewise.
9834         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
9835         <bp-checks.h>.
9836         (__xstat): Do not use CHECK_1.
9837         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
9838         (__lxstat): Do not use CHECK_1.
9839         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
9840         <bp-checks.h>.
9841         (___lxstat64): Do not use CHECK_1.
9842         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
9843         (__old_msgctl): Do not use CHECK_1.
9844         (__new_msgctl): Likewise.
9845         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
9846         <bp-checks.h>.
9847         (__gettimeofday): Do not use CHECK_1.
9848         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
9849         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
9850         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
9851         <bp-checks.h>.
9852         (__gettimeofday): Do not use CHECK_1.
9853         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
9854         (__old_shmctl): Do not use CHECK_1_NULL_OK.
9855         (__new_shmctl): Do not use CHECK_1.
9856         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
9857         <bp-checks.h>.
9858         (do_sigtimedwait): Do not use CHECK_1.
9859         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
9860         <bp-checks.h>.
9861         (do_sigwaitinfo): Do not use CHECK_1.
9862         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
9863         <bp-checks.h>.
9864         (msgctl): Do not use CHECK_1.
9865         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
9866         <bp-checks.h>.
9867         (shmctl): Do not use CHECK_1.
9868         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
9869         (ustat): Do not use CHECK_1.
9870         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
9871         <bp-checks.h>.
9872         (__fxstat): Do not use CHECK_1.
9873         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
9874         <bp-checks.h>.
9875         (__fxstatat): Do not use CHECK_1.
9876         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
9877         <bp-checks.h>.
9878         (__lxstat): Do not use CHECK_1.
9879         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
9880         <bp-checks.h>.
9881         (__xstat): Do not use CHECK_1.
9882         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
9883         (__xstat): Do not use CHECK_1.
9884         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
9885         (___xstat64): Do not use CHECK_1.
9886
9887         [BZ #13550]
9888         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
9889         definitions.
9890         (CHECK_BOUNDS_HIGH): Likewise.
9891         * string/strcpy.c: Do not include <bp-checks.h>.
9892         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
9893
9894 2013-02-07  Roland McGrath  <roland@hack.frob.com>
9895
9896         * nscd/nscd-client.h (__nscd_drop_map_ref):
9897         Add __attribute__ ((unused)).
9898         * nis/nss-nisplus.h (niserr2nss): Likewise.
9899
9900         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
9901         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
9902
9903         * csu/libc-tls.c (init_static_tls, init_slotinfo):
9904         Remove inline keyword.
9905         * include/rounding-mode.h (round_away): Likewise.
9906         * libio/wfileops.c (adjust_wide_data): Likewise.
9907         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
9908         (__m128i_strloadu_tolower): Likewise.
9909         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
9910         (__m128i_strloadu_tolower): Likewise.
9911         * time/mktime.c (ydhms_diff): Likewise.
9912         * locale/elem-hash.h (elem_hash): Likewise.
9913         * locale/setlocale.c (setdata): Likewise.
9914         * posix/regex_internal.h (re_string_char_size_at): Likewise.
9915         (re_string_wchar_at): Likewise.
9916         (bitset_not, bitset_merge, bitset_mask): Likewise.
9917         [!(__GNUC__ > 3)] (inline): Remove macro.
9918         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
9919         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
9920         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
9921         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
9922         * string/memcmp.c (memcmp_bytes): Likewise.
9923         * locale/programs/locarchive.c (compute_hashval): Likewise.
9924         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
9925         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
9926         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
9927         * nss/getent.c (print_rpc, print_protocols): Likewise.
9928         (print_passwd, print_group, print_aliases): Likewise.
9929         * nis/nss-nisplus.h (niserr2nss): Likewise.
9930         * nscd/connections.c (restart_p): Likewise.
9931         Change return type to bool.
9932
9933 2013-02-05  Roland McGrath  <roland@hack.frob.com>
9934
9935         * Makeconfig (all-Depend-files): Add existing
9936         $(sorted-subdirs:=/Depend) files.
9937         (all-subdirs): Remove nss.
9938         * sysdeps/unix/inet/Subdirs: Add it here instead.
9939         * hesiod/Depend: New file.
9940
9941         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
9942         instead of calling alloca.
9943
9944         * io/lseek.c (__lseek): Rename to __libc_lseek.
9945         Define __lseek as an alias.
9946
9947         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
9948
9949 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
9950
9951         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
9952         else clause and remove check for non-standard endianness.
9953
9954 2013-02-04  David S. Miller  <davem@davemloft.net>
9955
9956         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9957
9958 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
9959
9960         [BZ #13550]
9961         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
9962         (__ubp_memchr): Remove prototype.
9963         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
9964         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
9965         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
9966         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
9967         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
9968         Remove alias.
9969         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
9970         (__ubp_memchr): Likewise.
9971         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
9972         (__ubp_memchr): Likewise.
9973         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
9974         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
9975         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
9976         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
9977         CHECK_STRING.
9978         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
9979         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
9980         (__getcwd): Do not use CHECK_STRING.
9981         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
9982         <bp-checks.h>.
9983         (__real_chown): Do not use CHECK_STRING.
9984         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
9985         <bp-checks.h>.
9986         (fchownat): Do not use CHECK_STRING.
9987         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
9988         CHECK_STRING.
9989         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
9990         <bp-checks.h>.
9991         (__lchown): Do not use CHECK_STRING.
9992         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9993         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9994         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
9995         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
9996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
9997         include <bp-checks.h>.
9998         (truncate64): Do not use CHECK_STRING.
9999         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
10000         <bp-checks.h>.
10001         (__real_chown): Do not use CHECK_STRING.
10002         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
10003         <bp-checks.h>.
10004         (__lchown): Do not use CHECK_STRING.
10005         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
10006         <bp-checks.h>.
10007         (__chown): Do not use CHECK_STRING.
10008         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
10009         <bp-checks.h>.
10010         (truncate64): Do not use CHECK_STRING.
10011         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
10012         Likewise.
10013         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
10014         (__xmknod): Do not use CHECK_STRING.
10015         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
10016         <bp-checks.h>.
10017         (__xmknodat): Do not use CHECK_STRING.
10018         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
10019         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
10020
10021 2013-02-04  Andreas Schwab  <schwab@suse.de>
10022
10023         [BZ #14142]
10024         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
10025         * include/netdb.h: Likewise for h_errno.
10026         * elf/tst-stackguard1.c: Include <tls.h>.
10027
10028 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10029
10030         * elf/link.h (struct link_map): Extend the l_addr comment.
10031         * include/link.h (struct link_map): Likewise.
10032
10033 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
10034
10035         [BZ #13550]
10036         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
10037         (BOUNDED_1): Remove macro.
10038         * debug/backtrace.c: Don't include <bp-checks.h>.
10039         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
10040         (__backtrace): Likewise.
10041         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
10042         <bp-checks.h>.
10043         (__backtrace): Don't use BOUNDED_1.
10044         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
10045         <bp-checks.h>.
10046         (__backtrace): Don't use BOUNDED_1.
10047         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
10048         (__backtrace): Don't use BOUNDED_1.
10049         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
10050         (shmat): Don't use BOUNDED_N.
10051
10052 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
10053
10054         [BZ #13550]
10055         * sysdeps/generic/bp-start.h: Remove file.
10056         * csu/libc-start.c: Don't include <bp-start.h>.
10057         (LIBC_START_MAIN): Set up __environ directly instead of using
10058         INIT_ARGV_and_ENVIRON.
10059         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
10060         <bp-start.h>.
10061
10062         [BZ #13550]
10063         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
10064         definitions.
10065         (CHECK_FCNTL): Likewise.
10066         (CHECK_N_PAGES): Likewise.
10067
10068         [BZ #13550]
10069         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
10070         definitions.
10071         (CHECK_SIGSET_NULL_OK): Likewise.
10072         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
10073         <bp-checks.h>.
10074         (sigpending): Don't use CHECK_SIGSET.
10075         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
10076         <bp-checks.h>.
10077         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
10078         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
10079         <bp-checks.h>.
10080         (do_sigsuspend): Don't use CHECK_SIGSET.
10081         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
10082         use CHECK_SIGSET.
10083         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
10084         (do_sigwait): Don't use CHECK_SIGSET.
10085         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
10086         use CHECK_SIGSET.
10087         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
10088         include <bp-checks.h>.
10089         (sigpending): Don't use CHECK_SIGSET.
10090         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
10091         include <bp-checks.h>.
10092         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
10093         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
10094         <bp-checks.h>.
10095         (sigpending): Don't use CHECK_SIGSET.
10096         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
10097         <bp-checks.h>.
10098         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
10099
10100         [BZ #13550]
10101         * sysdeps/generic/bp-semctl.h: Remove file.
10102         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
10103         <bp-checks.h> and <bp-semctl.h>.
10104         (__old_semctl): Don't use CHECK_SEMCTL.
10105         (__new_semctl): Likewise.
10106         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
10107         and <bp-semctl.h>.
10108         (__old_semctl): Don't use CHECK_SEMCTL.
10109         (__new_semctl): Likewise.
10110         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
10111         <bp-checks.h> and <bp-semctl.h>.
10112         (__old_semctl): Don't use CHECK_SEMCTL.
10113         (__new_semctl): Likewise.
10114         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
10115         <bp-checks.h> and <bp-semctl.h>.
10116         (semctl): Don't use CHECK_SEMCTL.
10117
10118         [BZ #13550]
10119         * Makerules (elide-bp-thunks): Remove variable.
10120         (elide-routines.oS): Don't use $(elide-bp-thunks).
10121         (elide-routines.os): Likewise.
10122         (elide-routines.o): Likewise.
10123         (elide-routines.op): Likewise.
10124         (elide-routines.og): Likewise.
10125         (objects): Don't use $(bp-thunks).
10126         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
10127         include.
10128         (common-generated): Do not add s-proto-bp.d.
10129         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
10130         (int): Likewise.
10131         (typ): Likewise.
10132         Do not generate makefile rules for bounded-pointer thunks.
10133         * sysdeps/generic/bp-thunks.h: Remove file.
10134         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
10135         * sysdeps/unix/s-proto-bp.S: Likewise.
10136
10137         [BZ #15062]
10138         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
10139         parts of result separately when argument is not close to line from
10140         -i to i and one part of argument is small.
10141         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10142         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10143         * math/libm-test.inc (cacos_test): Add more tests.
10144         (casin_test): Likewise.
10145         (casinh_test): Likewise.
10146         * sysdeps/i386/fpu/libm-test-ulps: Update.
10147         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10148
10149 2013-01-31  David S. Miller  <davem@davemloft.net>
10150
10151         * po/de.po: Update from translation team.
10152
10153 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
10154
10155         * time/tzfile.c: Include stdint.h for SIZE_MAX.
10156
10157 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
10158
10159         * configure.in (_AC_PROG_CC_C89): New definition.
10160         * configure: Regenerate.
10161
10162         * configure.in (AC_PROG_CPP): New definition.
10163         * configure: Regenerate.
10164
10165 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
10166
10167         * debug/tst-backtrace.h: New file.
10168         * debug/tst-backtrace2.c: Include tst-backtrace.h.
10169         (ret): Remove variable.
10170         (x): Likewise.
10171         (FAIL): Remove macro.
10172         (NO_INLINE): Likewise.
10173         (fn1): Use match function instead of strstr.
10174         * debug/tst-backtrace3.c: Include tst-backtrace.h.
10175         (ret): Remove variable.
10176         (x): Likewise.
10177         (FAIL): Remove macro.
10178         (NO_INLINE): Likewise.
10179         (fn): Use match function instead of strstr.
10180         * debug/tst-backtrace4.c: Include tst-backtrace.h.
10181         (ret): Remove variable.
10182         (x): Likewise.
10183         (FAIL): Remove macro.
10184         (NO_INLINE): Likewise.
10185         (handle_signal): Use match function instead of strstr.
10186         * debug/tst-backtrace5.c: Include tst-backtrace.h.
10187         (ret): Remove variable.
10188         (x): Likewise.
10189         (FAIL): Remove macro.
10190         (NO_INLINE): Likewise.
10191         (handle_signal): Use match function instead of strstr.
10192
10193 2013-01-23  Roland McGrath  <roland@hack.frob.com>
10194
10195         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
10196
10197 2013-01-23  David S. Miller  <davem@davemloft.net>
10198
10199         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
10200         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
10201         argument of CAS if possible.
10202         * sysdeps/sparc/sparc64/bits/atomic.h
10203         (__arch_compare_and_exchange_val_32_acq): Likewise.
10204         (__arch_compare_and_exchange_val_64_acq): Likewise.
10205
10206 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
10207
10208         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
10209         * sysdeps/posix/ulimit.c: ... this.
10210         Include <limits.h>.
10211         * sysdeps/unix/bsd/ulimit.c: Remove file.
10212
10213 2013-01-23  Adam Conrad  <adconrad@0c3.net>
10214
10215         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
10216         (LDFLAGS-tst-array5): Likewise.
10217
10218 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
10219
10220         [BZ #15036]
10221         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
10222         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
10223         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
10224         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
10225
10226 2013-01-21  David S. Miller  <davem@davemloft.net>
10227
10228         * sysdeps/sparc/backtrace.c: New file.
10229         * sysdeps/sparc/sparc32/backtrace.h: New file.
10230         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
10231         * sysdeps/sparc/sparc64/backtrace.h: New file.
10232         * sysdeps/sparc/sparc64/backtrace.c: Delete.
10233         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
10234         -funwind-tables.
10235
10236 2013-01-21  Andreas Schwab  <schwab@suse.de>
10237
10238         [BZ #15020]
10239         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
10240         closed its stdout.
10241
10242 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
10243
10244         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
10245         "mpa2.h".
10246         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10247
10248 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
10249             Mark Mitchell  <mark@codesourcery.com>
10250             Tom de Vries  <tom@codesourcery.com>
10251             Paul Pluzhnikov  <ppluzhnikov@google.com>
10252
10253         * debug/tst-backtrace2.c: New file.
10254         * debug/tst-backtrace3.c: Likewise.
10255         * debug/tst-backtrace4.c: Likewise.
10256         * debug/tst-backtrace5.c: Likewise.
10257         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
10258         (CFLAGS-tst-backtrace3.c): Likewise.
10259         (CFLAGS-tst-backtrace4.c): Likewise.
10260         (CFLAGS-tst-backtrace5.c): Likewise.
10261         (LDFLAGS-tst-backtrace2): Likewise.
10262         (LDFLAGS-tst-backtrace3): Likewise.
10263         (LDFLAGS-tst-backtrace4): Likewise.
10264         (LDFLAGS-tst-backtrace5): Likewise.
10265         (tests): Add new tests tst-backtrace2, tst-backtrace3,
10266         tst-backtrace4 and tst-backtrace5.
10267
10268 2013-01-18  Anton Blanchard  <anton@samba.org>
10269             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10270
10271         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
10272         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
10273         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
10274         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
10275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10276         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
10277         "+r" and remove output regs list as redundant.  Add explicit inline
10278         asm to specify register of return val to work around compiler codegen
10279         bug.  Remove (int) cast on return value.  Add return type parameter to
10280         use in macro so that this macro does not truncate return value for
10281         64-bit values.
10282         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
10283         pass to INTERNAL_VSYSCALL_NCS.
10284         (INLINE_VSYSCALL): Add 'long int' as return type to
10285         INTERNAL_VSYSCALL_NCS macro invocation.
10286         (INTERNAL_VSYSCALL): Add 'long int' as return type to
10287         INTERNAL_VSYSCALL_NCS macro invocation.
10288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10289
10290 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
10291
10292         [BZ #14496]
10293         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
10294         Fix application of SIMD FP exception mask.
10295
10296         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
10297         mp_no from a power of two.
10298         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
10299         __mpexp_twomm1.  Use __pow_mp.
10300
10301         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
10302         multiplication.
10303
10304 2013-01-17  David S. Miller  <davem@davemloft.net>
10305
10306         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10307
10308 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
10309
10310         [BZ #15023]
10311         * include/complex.h: Condition contents on [!_COMPLEX_H].
10312         (__kernel_casinhf): New prototype.
10313         (__kernel_casinh): Likewise.
10314         (__kernel_casinhl): Likewise.
10315         * math/Makefile (libm_calls): Add k_casinh.
10316         * math/k_casinh.c: New file.
10317         * math/k_casinhf.c: Likewise.
10318         * math/k_casinhl.c: Likewise.
10319         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
10320         finite nonzero arguments.
10321         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
10322         finite nonzero arguments.
10323         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
10324         finite nonzero arguments.
10325         * math/s_casinh.c: Do not include <float.h>.
10326         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
10327         * math/s_casinhf.c: Do not include <float.h>.
10328         (__casinhf): Move code for finite nonzero arguments to
10329         k_casinhf.c.
10330         * math/s_casinhl.c: Do not include <float.h>.
10331         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
10332         redefine.
10333         (__casinhl): Move code for finite nonzero arguments to
10334         k_casinhl.c.
10335         * math/libm-test.inc (cacos_test): Add more tests.
10336         * sysdeps/i386/fpu/libm-test-ulps: Update.
10337         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10338
10339 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
10340
10341         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
10342         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
10343         [!HAVE_MREMAP]: Remove [defined linux] case.
10344         * malloc/arena.c: Do not include <malloc-sysdep.h>.
10345
10346 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
10347
10348         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
10349
10350 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
10351
10352         * elf/elf.h (R_386_SIZE32): New relocation.
10353         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
10354         R_386_SIZE32.
10355         (elf_machine_rela): Likewise.
10356         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
10357         R_X86_64_SIZE64 and R_X86_64_SIZE32.
10358
10359 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
10360
10361         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
10362         (FP_FAST_FMA): Do not define.
10363         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
10364         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
10365         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
10366         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
10367         !_SOFT_FLOAT]: Likewise.
10368         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
10369         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
10370         value.
10371         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
10372         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
10373         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
10374         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
10375         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
10376         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
10377         file.
10378
10379 2013-01-16  Andreas Schwab  <schwab@suse.de>
10380
10381         [BZ #14327]
10382         * include/stdlib.h (__mktemp): Add declaration.
10383         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
10384         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
10385
10386 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10387
10388         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
10389         definitions.
10390         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
10391         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
10392         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
10393         definitions here.
10394         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
10395         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
10396         definitions.
10397         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
10398         and ONE.
10399         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
10400         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
10401         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
10402         definitions.
10403         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
10404         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
10405         definitions.
10406         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
10407
10408         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
10409
10410 2013-01-15  David S. Miller  <davem@davemloft.net>
10411
10412         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
10413         trunc{,f} to libm-sysdep_routes.
10414         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
10415         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
10416         file.
10417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
10418         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
10419         file.
10420         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
10421         file.
10422         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
10423         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
10424         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
10425         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
10426         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
10427         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
10428         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
10429         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
10430
10431         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
10432         nearbyint{,f} to libm-sysdep_routes.
10433         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
10434         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
10435         New file.
10436         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
10437         file.
10438         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
10439         New file.
10440         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
10441         file.
10442         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
10443         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
10444         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
10445         file.
10446         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
10447         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
10448         file.
10449         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
10450         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
10451         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
10452
10453         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
10454         libc_feholdexcept and libc_fesetenv.
10455
10456 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
10457
10458         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
10459
10460 2013-01-14  David S. Miller  <davem@davemloft.net>
10461
10462         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
10463         (SPARC_ASM_VIS2_IFUNC): Likewise.
10464         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
10465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
10466         use of 'siam' instruction.
10467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
10468         Likewise.
10469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
10470         Likewise.
10471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
10472         Likewise.
10473         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
10474         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
10475         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
10476         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
10477         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
10478         file.
10479         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
10480         file.
10481         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
10482         file.
10483         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
10484         file.
10485         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
10486         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
10487         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
10488         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
10489         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
10490         new VIS2 routines.
10491         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10492         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10493         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10494         Likewise.
10495         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10496         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10497         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10498         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
10500         routines to libm-sysdep_routines.
10501         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
10502
10503         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
10504         fdim/fdimf to libm-sysdep_routines.
10505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
10506         file.
10507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
10508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
10509         file.
10510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
10511         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
10512         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
10513         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
10514         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
10515         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
10516         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
10517
10518 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
10519
10520         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
10521         to optimize copies.
10522
10523         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
10524         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10525         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10526
10527         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
10528         local variable MPTWO.
10529         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
10530         Likewise.
10531
10532 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
10533
10534         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
10535         GLOB_NOESCAPE.
10536
10537 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
10538
10539         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
10540
10541 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
10542
10543         * manual/pattern.texi (glob_t): Document gl_flags.
10544         (glob64_t): Likewise.
10545
10546 2013-01-11  David S. Miller  <davem@davemloft.net>
10547
10548         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
10549         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
10550         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
10551         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
10552         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
10553         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
10554         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
10555         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
10556         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
10557         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
10558         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
10559         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
10560         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
10561
10562         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
10563         sparc V9 rather than using V8 code.
10564         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
10565         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
10566
10567         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10568         Move to...
10569         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
10570         Here.
10571
10572 2013-01-11  Roland McGrath  <roland@hack.frob.com>
10573
10574         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
10575         not in the main loop.
10576         * configure: Regenerated.
10577
10578 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
10579
10580         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
10581         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
10582         to just #else.
10583         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
10584         [!__GLIBC_HAVE_LONG_LONG] case.
10585         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
10586         condition to just #else.
10587         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
10588         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
10589         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
10590         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
10591         unconditional.
10592         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
10593         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
10594         #elif condition to just #else.
10595         * sysdeps/unix/sysv/linux/sys/sysmacros.h
10596         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
10597         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
10598         #elif condition to just #else.
10599
10600 2013-01-11  Steve Ellcey  <sellcey@mips.com>
10601
10602         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
10603         (EF_MIPS_ARCH_64): Fix value.
10604         (EF_MIPS_ARCH_32R2): New.
10605         (EF_MIPS_ARCH_64R2): New.
10606
10607 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
10608
10609         * Makeconfig (+link-pie-before-libc): New.
10610         (+link-pie-after-libc): Likewise.
10611         (+link-pie-tests): Likewise.
10612         (+link-pie): Rewritten.
10613         (link-before-libc): Remove $(config-LDFLAGS).
10614         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
10615         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
10616         (config-LDFLAGS): Renamed to ...
10617         (rtld-LDFLAGS): This.
10618         (rtld-tests-LDFLAGS): New macro.
10619         (link-libc-rpath-link): Likewise.
10620         (link-libc-tests-rpath-link): Likewise.
10621         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
10622         (link-libc): Prepand $(link-libc-rpath-link).
10623         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
10624         (test-program-prefix): New macro.
10625         (test-via-rtld-prefix): Likewise.
10626         (test-program-cmd): Likewise.
10627         (host-test-program-cmd): Likewise.
10628         * Makefile ($(common-objpfx)testrun.sh): Replace
10629         $(run-program-prefix) with $(test-program-prefix).
10630         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
10631         $(rtld-LDFLAGS).
10632         ($(common-objpfx)shlib.lds): Likewise.
10633         (build-module-helper): Likewise.
10634         ($(common-objpfx)format.lds): Likewise.
10635         * Rules (binaries-pie-tests): New.
10636         (binaries-pie-notests): Likewise.
10637         (binaries-pie): Rewritten.
10638         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
10639         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
10640         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
10641         (make-test-out): Replace $(host-built-program-cmd) with
10642         $(host-test-program-cmd).
10643         * config.make.in (build-hardcoded-path-in-tests): New variable.
10644         * configure.in (--enable-hardcoded-path-in-tests): New configure
10645         option.
10646         (hardcoded_path_in_tests): New AC_SUBST.
10647         * configure: Regenerated.
10648         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
10649         $(built-program-cmd) with $(test-program-cmd).
10650         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
10651         (test_program_cmd): This.
10652         * elf/Makefile ($(objpfx)order.out): Run test with
10653         $(test-program-prefix).
10654         ($(objpfx)order2.out): Likewise.
10655         ($(objpfx)tst-initorder.out): Likewise.
10656         ($(objpfx)tst-initorder2.out): Likewise.
10657         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
10658         $(test-program-cmd).
10659         ($(objpfx)tst-array1-static.out): Likewise.
10660         ($(objpfx)tst-array2.out): Likewise.
10661         ($(objpfx)tst-array3.out): Likewise.
10662         ($(objpfx)tst-array4.out): Likewise.
10663         ($(objpfx)tst-array5.out): Likewise.
10664         ($(objpfx)tst-array5-static.out): Likewise.
10665         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
10666         $(test-program-cmd).
10667         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
10668         $(run-program-prefix) with $(test-program-prefix).
10669         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
10670         (test_program_prefix): This.
10671         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
10672         $(run-program-prefix) with $(test-program-prefix).
10673         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
10674         (test_program_prefix): This.
10675         * iconvdata/tst-tables.sh: Likewise.
10676         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
10677         $(run-program-prefix) with $(test-program-prefix).
10678         ($(objpfx)tst-translit.out): Likewise.
10679         ($(objpfx)tst-gettext2.out): Likewise.
10680         ($(objpfx)tst-gettext4.out): Likewise.
10681         ($(objpfx)tst-gettext6.out): Likewise.
10682         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
10683         (test_program_prefix): This.
10684         * intl/tst-gettext2.sh: Likewise.
10685         * intl/tst-gettext4.sh  Likewise.
10686         * intl/tst-gettext6.sh: Likewise.
10687         * intl/tst-translit.sh: Likewise.
10688         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
10689         with $(test-program-cmd).
10690         * libio/Makefile ($(objpfx)test-freopen.out): Replace
10691         $(run-program-prefix) with $(test-program-prefix).
10692         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
10693         (test_program_prefix): This.
10694         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
10695         $(run-program-prefix) with $(test-program-prefix).
10696         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
10697         (test_program_prefix): This.
10698         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
10699         * posix/Makefile ($(objpfx)globtest.out): Replace
10700         $(run-via-rtld-prefix) and $(test-wrapper) with
10701         $(test-program-prefix) and $(test-via-rtld-prefix).
10702         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
10703         $(test-program-prefix).
10704         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
10705         $(host-test-program-cmd).
10706         (tst-spawn-ARGS): Likewise.
10707         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
10708         $(test-program-prefix).
10709         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
10710         (test_via_rtld_prefix): This.
10711         (test_wrapper): Renamed to ...
10712         (test_program_prefix): This.
10713         (run_program_prefix): Replaced by test_program_prefix.
10714         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
10715         (test_program_prefix): This.
10716         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
10717         with $(host-test-program-cmd).
10718         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
10719         $(run-program-prefix) with $(test-program-prefix).
10720         ($(objpfx)tst-printf.out): Likewise.
10721         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
10722         $(test-program-cmd).
10723         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
10724         (test_program_prefix): This.
10725         * stdio-common/tst-unbputc.sh: Likewise.
10726         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
10727         $(run-program-prefix) with $(test-program-prefix).
10728         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
10729         (test_program_prefix): This.
10730         * string/Makefile ($(objpfx)tst-svc.out):  Replace
10731         $(built-program-cmd) with $(test-program-cmd).
10732
10733 2013-01-11  Andreas Jaeger  <aj@suse.de>
10734
10735         [BZ #15003]
10736         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
10737         value. Sync with Linux 3.7.
10738
10739 2013-01-10  David S. Miller  <davem@davemloft.net>
10740
10741         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
10742         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
10743         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
10744
10745 2013-01-10  Roland McGrath  <roland@hack.frob.com>
10746
10747         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
10748         never set.
10749         * configure: Regenerated.
10750
10751 2013-01-10  David S. Miller  <davem@davemloft.net>
10752
10753         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
10754         sparc V9 rather than using V8 code.
10755         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
10756         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
10757
10758 2013-01-10  Roland McGrath  <roland@hack.frob.com>
10759
10760         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
10761         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
10762         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
10763         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
10764         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
10765         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
10766         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
10767         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
10768         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
10769         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
10770         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
10771         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
10772         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
10773         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
10774         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
10775         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
10776         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
10777         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
10778         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
10779         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
10780         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
10781         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
10782         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
10783         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
10784         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
10785         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
10786         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
10787
10788 2013-01-10  David S. Miller  <davem@davemloft.net>
10789
10790         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10791
10792 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10793
10794         * posix/Makefile (tests-static): New variable.
10795         (tests): Add $(tests-static).
10796         (tst-exec-static-ARGS): New variable.
10797         (tst-spawn-static-ARGS): Likewise.
10798         * posix/tst-exec-static.c: New file.
10799         * posix/tst-spawn-static.c: Likewise.
10800         * posix/tst-exec.c: Support run directly.
10801         * posix/tst-spawn.c: Likewise.
10802
10803 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
10804
10805         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
10806         long.
10807         * math/bits/mathcalls.h (llrint): Likewise.
10808         (llround): Likewise.
10809         * stdlib/stdlib.h (struct drand48_data): Likewise.
10810         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
10811         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
10812         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
10813         Likewise.
10814         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
10815         Likewise.
10816         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
10817         (elf_greg_t): Likewise.
10818         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
10819         (__jmp_buf): Likewise.
10820         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
10821         definitions.
10822         (llrint): Likewise, for all definitions.
10823         (llrintl): Likewise.
10824
10825         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
10826         Remove [__GNUC__] condition.
10827         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
10828         condition to just [__USE_ISOC99].
10829         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
10830
10831 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10832
10833         [BZ #14200]
10834         * sysdeps/unix/sysv/linux/x86/bits/environments.h
10835         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
10836         defined.
10837         (_POSIX_V6_ILP32_OFF32): Likewise.
10838         (_XBS5_ILP32_OFF32): Likewise.
10839         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
10840         (__ILP32_OFFBIG_LDFLAGS): Likewise.
10841
10842 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10843
10844         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
10845
10846         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
10847         doubles __mpexp_twomm1.  Adjust usage.
10848         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
10849         Remove.
10850
10851 2013-01-10  Andreas Schwab  <schwab@suse.de>
10852
10853         [BZ #14964]
10854         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
10855         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
10856
10857 2013-01-09  David S. Miller  <davem@davemloft.net>
10858
10859         [BZ #15003]
10860         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
10861         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
10862         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
10863         TCP_FASTOPEN): Define.
10864         (tcp_repair_opt): New structure.
10865         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
10866         enum values.
10867         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
10868         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
10869         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
10870         (tcp_cookie_transactions): New structure.
10871
10872 2013-01-09  Anton Blanchard  <anton@samba.org>
10873
10874         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
10875         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
10876         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
10877         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
10878
10879 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
10880
10881         * include/features.h (__USE_ANSI): Remove.
10882
10883 2013-01-09  Roland McGrath  <roland@hack.frob.com>
10884
10885         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
10886
10887         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
10888
10889 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
10890
10891         * sysdeps/s390/fpu/libm-test-ulps: Update.
10892
10893         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10894
10895         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
10896         (__acr): Likewise.
10897         (__cpy): Likewise.
10898         (norm): Likewise.
10899         (denorm): Likewise.
10900         (__mp_dbl): Likewise.
10901         (__dbl_mp): Likewise.
10902         (add_magnitudes): Likewise.
10903         (sub_magnitudes): Likewise.
10904         (__add): Likewise.
10905         (__sub): Likewise.
10906         (__mul): Likewise.
10907         (__inv): Likewise.
10908         (__dvd): Likewise.
10909         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
10910         (__acr): Likewise.
10911         (__cpy): Likewise.
10912         (norm): Likewise.
10913         (denorm): Likewise.
10914         (__mp_dbl): Likewise.
10915         (__dbl_mp): Likewise.
10916         (add_magnitudes): Likewise.
10917         (sub_magnitudes): Likewise.
10918         (__add): Likewise.
10919         (__sub): Likewise.
10920         (__mul): Likewise.
10921         (__inv): Likewise.
10922         (__dvd): Likewise.
10923         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
10924         (__acr): Likewise.
10925         (__cpy): Likewise.
10926         (norm): Likewise.
10927         (denorm): Likewise.
10928         (__mp_dbl): Likewise.
10929         (__dbl_mp): Likewise.
10930         (add_magnitudes): Likewise.
10931         (sub_magnitudes): Likewise.
10932         (__add): Likewise.
10933         (__sub): Likewise.
10934         (__mul): Likewise.
10935         (__inv): Likewise.
10936         (__dvd): Likewise.
10937
10938 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
10939
10940         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
10941         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
10942         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
10943         2 && __USE_EXTERN_INLINES]: Likewise.
10944
10945 2013-01-08  Andreas Jaeger  <aj@suse.de>
10946
10947         [BZ# 14985]
10948         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
10949         Remove.
10950         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
10951         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
10952
10953 2013-01-07  Anton Blanchard  <anton@samba.org>
10954
10955         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
10956         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
10957         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
10958         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
10959         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
10960         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
10961         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
10962         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
10963         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10964         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
10965         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
10966         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
10967         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
10968         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
10969         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
10970         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
10971         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
10972         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
10973         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
10974         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
10975         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
10976         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
10977         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
10978         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
10979         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
10980         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
10981         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
10982         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
10983         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
10984         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
10985         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
10986         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10987         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
10988         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
10989         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
10990         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
10991         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
10992         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
10993         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
10994         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
10995         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
10996         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
10997         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
10998
10999 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
11000
11001         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
11002         (__MALLOC_PMT): Likewise.
11003         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
11004         [__GNUC__], only on [_LIBC].
11005         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
11006         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
11007         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
11008         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
11009         forward declaration.
11010         (realloc_hook_ini): Likewise.
11011         (memalign_hook_ini): Likewise.
11012         (__libc_memalign): Do not use __MALLOC_PMT in variable
11013         declaration.
11014         (__libc_valloc): Likewise.
11015         (__libc_pvalloc): Likewise.
11016         (__libc_calloc): Likewise.
11017         (__posix_memalign): Likewise.
11018
11019         [BZ #14996]
11020         * math/s_casinh.c: Include <float.h>.
11021         (__casinh): Do not do computation with squaring and square root
11022         for large arguments.
11023         * math/s_casinhf.c: Include <float.h>.
11024         (__casinhf): Do not do computation with squaring and square root
11025         for large arguments.
11026         * math/s_casinhl.c: Include <float.h>.
11027         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
11028         (__casinhl): Do not do computation with squaring and square root
11029         for large arguments.
11030         * math/libm-test.inc (casin_test): Add more tests.
11031         (casinh_test): Likewise.
11032         * sysdeps/i386/fpu/libm-test-ulps: Update.
11033         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11034
11035 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
11036
11037         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
11038         (__x86_64_raw_data_cache_size): Likewise.
11039         (__x86_64_data_cache_size_half): Likewise.
11040         (__x86_64_raw_data_cache_size_half): Likewise.
11041         (__x86_64_shared_cache_size): Likewise.
11042         (__x86_64_raw_shared_cache_size): Likewise.
11043         (__x86_64_shared_cache_size_half): Likewise.
11044         (__x86_64_raw_shared_cache_size_half): Likewise.
11045         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
11046         to ...
11047         (__x86_data_cache_size): This.
11048         (__x86_64_raw_data_cache_size): Renamed to ...
11049         (__x86_raw_data_cache_size): This.
11050         (__x86_64_data_cache_size_half): Renamed to ...
11051         (__x86_data_cache_size_half): This.
11052         (__x86_64_raw_data_cache_size_half): Renamed to ...
11053         (__x86_raw_data_cache_size_half): This.
11054         (__x86_64_shared_cache_size): Renamed to ...
11055         (__x86_shared_cache_size): This.
11056         (__x86_64_raw_shared_cache_size): Renamed to ...
11057         (__x86_raw_shared_cache_size): This.
11058         (__x86_64_shared_cache_size_half): Renamed to ...
11059         (__x86_shared_cache_size_half): This.
11060         (__x86_64_raw_shared_cache_size_half): Renamed to ...
11061         (__x86_raw_shared_cache_size_half): This.
11062         * sysdeps/x86_64/memcpy.S: Updated.
11063         * sysdeps/x86_64/memset.S: Likewise.
11064         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
11065         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
11066         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
11067
11068 2013-01-04  David S. Miller  <davem@davemloft.net>
11069
11070         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11071
11072 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
11073
11074         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
11075         1 to avoid redefinition warning.
11076         (__USE_GNU): Don't define.
11077         (init_signaling_nan): Protoize.
11078
11079         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11080
11081 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11082
11083         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
11084         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
11085         (__cpymn): Likewise.
11086         (norm): Remove commented code.
11087         (denorm): Likewise.
11088         (__mp_dbl): Likewise.
11089         (__inv): Likewise.
11090         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
11091         (__cpymn): Likewise.
11092         (norm): Remove commented code.
11093         (denorm): Likewise.
11094         (__mp_dbl): Likewise.
11095         (__inv): Likewise.
11096
11097         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
11098         mp_no value for 1.0 and 2.0.
11099         (norm): Use RADIXI instead of radixi.d.
11100         (denorm): Likewise.
11101         (__mul): Use 0.0 instead of zero.d.
11102         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
11103         mp_no value for 1.0 and 2.0.
11104         (norm): Use RADIXI instead of radixi.d.
11105         (denorm): Likewise.
11106         (__mul): Use 0.0 instead of zero.d.
11107
11108 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
11109
11110         [BZ #14994]
11111         * math/s_casinh.c (__casinh): Reduce finite argument to first
11112         quadrant then set signs of results at the end.
11113         * math/s_casinhf.c (__casinhf): Likewise.
11114         * math/s_casinhl.c (__casinhl): Likewise.
11115         * math/libm-test.inc (casin_test): Add more tests.
11116         (casinh_test): Likewise.
11117         * sysdeps/i386/fpu/libm-test-ulps: Update.
11118         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11119
11120 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11121
11122         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
11123
11124         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
11125
11126         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
11127         declarations.
11128         (denorm): Likewise.
11129         (__mp_dbl): Likewise.
11130         (__inv): Likewise.
11131
11132         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
11133         and adjust the header comment.
11134
11135         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
11136         variable name from declaration.
11137
11138 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11139
11140         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11141         Initialize COMMON_CPUID_INDEX_7 element.
11142         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
11143         (CPUID_RTM): Likewise.
11144         (HAS_RTM): Likewise.
11145         (COMMON_CPUID_INDEX_7): New enum.
11146
11147 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
11148
11149         [BZ #14981]
11150         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
11151         size is zero, record memory as freed.
11152
11153 2013-01-03  Andreas Jaeger  <aj@suse.de>
11154
11155         * po/ia.po: Add new Interlingua translation.
11156
11157 2012-01-03  Allan McRae  <allan@archlinux.org>
11158
11159         * locale/programs/localedef.c: Fix description of '--posix' flag.
11160
11161 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
11162
11163         * NEWS: Update dates in second copyright notice.
11164         * README: Update copyright dates in example.
11165         * manual/libc.texinfo: Update copyright dates.
11166         * scripts/test-installation.pl: Update copyright date in --version
11167         output.
11168
11169         * hurd/ctty-input.c: Fix copyright notice formatting.
11170         * hurd/ctty-output.c: Likewise.
11171         * hurd/dtable.c: Likewise.
11172         * hurd/hurd-raise.c: Likewise.
11173         * hurd/hurdprio.c: Likewise.
11174         * hurd/msgportdemux.c: Likewise.
11175         * misc/sys/file.h: Likewise.
11176         * misc/sys/ioctl.h: Likewise.
11177         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
11178         * sysdeps/mach/hurd/chdir.c: Likewise.
11179         * sysdeps/mach/hurd/fchdir.c: Likewise.
11180         * sysdeps/mach/hurd/rename.c: Likewise.
11181         * sysdeps/mach/hurd/rmdir.c: Likewise.
11182         * sysdeps/mach/hurd/seekdir.c: Likewise.
11183         * sysdeps/mach/hurd/setsid.c: Likewise.
11184         * sysdeps/posix/wait3.c: Likewise.
11185
11186         * All files with FSF copyright notices: Update copyright dates
11187         using scripts/update-copyrights.
11188         * intl/plural.c: Regenerated.
11189         * locale/programs/charmap-kw.h: Likewise.
11190         * locale/programs/locfile-kw.h: Likewise.
11191
11192 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11193
11194         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
11195         four values.
11196
11197         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
11198         calculation loop and add branch prediction.
11199
11200         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
11201         check access beyond bounds of m1np.
11202
11203         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
11204         MPTWO.
11205         (__inv): Remove local variable MPTWO to use the global
11206         constant.
11207         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
11208         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
11209         variable MPTWO.
11210         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
11211         MP3HALFS static const.
11212
11213 2013-01-01  David S. Miller  <davem@davemloft.net>
11214
11215         * po/ca.po: Update from translation team.
11216
11217 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
11218
11219         * scripts/update-copyrights: New file.
11220         * Makeconfig: Reformat copyright notice.
11221         * ctype/ctype.h: Likewise.
11222         * debug/swprintf_chk.c: Likewise.
11223         * elf/dl-cache.c: Likewise.
11224         * elf/dl-debug.c: Likewise.
11225         * elf/dl-object.c: Likewise.
11226         * grp/initgroups.c: Likewise.
11227         * hurd/Makefile: Likewise.
11228         * hurd/hurd/signal.h: Likewise.
11229         * hurd/hurdfault.c: Likewise.
11230         * hurd/hurdioctl.c: Likewise.
11231         * hurd/hurdlookup.c: Likewise.
11232         * hurd/intr-msg.c: Likewise.
11233         * iconv/gconv_open.c: Likewise.
11234         * libio/swprintf.c: Likewise.
11235         * locale/lc-ctype.c: Likewise.
11236         * locale/nl_langinfo.c: Likewise.
11237         * mach/Machrules: Likewise.
11238         * mach/Makefile: Likewise.
11239         * malloc/obstack.h: Likewise.
11240         * manual/Makefile: Likewise.
11241         * manual/tsort.awk: Likewise.
11242         * misc/bits/stab.def: Likewise.
11243         * nis/nis_print_group_entry.c: Likewise.
11244         * nis/nis_table.c: Likewise.
11245         * nis/nss_compat/compat-pwd.c: Likewise.
11246         * nis/nss_compat/compat-spwd.c: Likewise.
11247         * po/Makefile: Likewise.
11248         * posix/fnmatch.c: Likewise.
11249         * posix/regex.h: Likewise.
11250         * resolv/Makefile: Likewise.
11251         * resolv/nss_dns/dns-network.c: Likewise.
11252         * resolv/res_hconf.c: Likewise.
11253         * scripts/gen-sorted.awk: Likewise.
11254         * soft-fp/soft-fp.h: Likewise.
11255         * stdio-common/printf.h: Likewise.
11256         * stdlib/monetary.h: Likewise.
11257         * stdlib/random.c: Likewise.
11258         * stdlib/random_r.c: Likewise.
11259         * sysdeps/generic/Makefile: Likewise.
11260         * sysdeps/gnu/Makefile: Likewise.
11261         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11262         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11263         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11264         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11265         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11266         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11267         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11268         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11269         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11270         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11271         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
11272         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
11273         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
11274         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
11275         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
11276         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
11277         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
11278         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11279         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11280         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11281         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11282         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11283         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11284         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
11285         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
11286         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
11287         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
11288         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
11289         * sysdeps/mach/hurd/errnos.awk: Likewise.
11290         * sysdeps/mach/hurd/fork.c: Likewise.
11291         * sysdeps/mach/hurd/getcwd.c: Likewise.
11292         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
11293         * sysdeps/mach/hurd/mmap.c: Likewise.
11294         * sysdeps/mach/hurd/utimes.c: Likewise.
11295         * sysdeps/mach/hurd/xmknod.c: Likewise.
11296         * sysdeps/posix/profil.c: Likewise.
11297         * sysdeps/posix/readdir_r.c: Likewise.
11298         * sysdeps/powerpc/bits/mathdef.h: Likewise.
11299         * sysdeps/powerpc/bits/setjmp.h: Likewise.
11300         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
11301         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
11302         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
11303         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11304         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11305         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11306         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
11307         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11308         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11309         * sysdeps/pthread/lio_listio.c: Likewise.
11310         * sysdeps/sparc/dl-procinfo.h: Likewise.
11311         * sysdeps/unix/i386/sysdep.S: Likewise.
11312         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
11313         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
11314         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
11315         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
11316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
11317         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
11318         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
11319         * sysdeps/unix/sysv/linux/speed.c: Likewise.
11320         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
11321         * sysdeps/wordsize-32/divdi3.c: Likewise.
11322         * time/sys/time.h: Likewise.
11323         * wcsmbs/Makefile: Likewise.
11324
11325 2013-01-01  David S. Miller  <davem@davemloft.net>
11326
11327         * po/fr.po: Update from translation team.
11328
11329         * catgets/gencat.c: Update copyright year.
11330         * csu/version.c: Likewise.
11331         * debug/catchsegv.sh: Likewise.
11332         * debug/pcprofiledump.c: Likewise.
11333         * debug/xtrace.sh: Likewise.
11334         * elf/ldconfig.c: Likewise.
11335         * elf/ldd.bash.in: Likewise.
11336         * elf/pldd.c: Likewise.
11337         * elf/sotruss.ksh: Likewise.
11338         * elf/sprof.c: Likewise.
11339         * iconv/iconv_prog.c: Likewise.
11340         * iconv/iconvconfig.c: Likewise.
11341         * locale/programs/locale.c: Likewise.
11342         * locale/programs/localedef.c: Likewise.
11343         * login/programs/pt_chown.c: Likewise.
11344         * malloc/memusage.sh: Likewise.
11345         * malloc/memusagestat.c: Likewise.
11346         * malloc/mtrace.pl: Likewise.
11347         * nscd/nscd.c: Likewise.
11348         * nss/getent.c: Likewise.
11349         * nss/makedb.c: Likewise.
11350         * posix/getconf.c: Likewise.
11351
11352 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
11353
11354         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
11355         numbers.
11356
11357 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
11358
11359         * math/bits/mathcalls.h (modf): Use __nonnull.
11360
11361 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11362
11363         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
11364         (split): Use macro CN instead of the bare value.
11365         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
11366         could be used.
11367         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
11368         instead of the bare value.
11369         (power1): Likewise.
11370
11371 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11372
11373         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
11374         __ATAN_TWOM.
11375         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
11376
11377         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
11378         their values.
11379         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
11380         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11381         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
11382         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
11383
11384 2012-12-28  Andreas Jaeger  <aj@suse.de>
11385
11386         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
11387         values are from Linux 3.7.
11388
11389         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
11390         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
11391
11392 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11393
11394         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
11395         TRUE case.
11396
11397         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
11398         (norm): Likewise.
11399         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
11400         variables with preprocessor constants.
11401         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
11402         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
11403         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
11404
11405 2012-12-27  Bruno Haible  <bruno@clisp.org>
11406
11407         [BZ #14317]
11408         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
11409         only if needed.
11410
11411 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
11412
11413         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
11414         and use variable directly.
11415         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
11416
11417         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
11418         MPONE.
11419         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
11420         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
11421         variable MPONE.
11422         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11423         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
11424         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
11425         include directive.  Remove local variable MPONE.
11426         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
11427         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
11428         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
11429
11430 2012-12-25  David S. Miller  <davem@davemloft.net>
11431
11432         * version.h (RELEASE): Set to "development".
11433         (VERSION): Set to "2.17.90".
11434         * NEWS: Add 2.18 section.
11435
11436 2012-12-21  David S. Miller  <davem@davemloft.net>
11437
11438         * po/hr.po: Update from translation team.
11439
11440 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11441
11442         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
11443
11444 2012-12-19  Steve Ellcey  <sellcey@mips.com>
11445
11446         * NEWS:  Mention new memcpy for MIPS.
11447
11448 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11449
11450         * manual/contrib.texi (Contributors): Spelling correction.
11451
11452 2012-12-15  David S. Miller  <davem@davemloft.net>
11453
11454         * po/ru.po: Update from translation team.
11455
11456 2012-12-13  David S. Miller  <davem@davemloft.net>
11457
11458         * NEWS: Mention IFUNC testsuite enhancements.
11459
11460         * po/pl.po: Update from translation team.
11461         * po/bg.po: Likewise.
11462
11463         * manual/contrib.texi (Contributors): Update entries for Hongjiu
11464         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
11465
11466 2012-12-11  David S. Miller  <davem@davemloft.net>
11467
11468         * po/sv.po: Update from translation team.
11469
11470         * po/vi.po: Update from translation team.
11471
11472         * po/cs.po: Update from translation team.
11473
11474         * po/de.po: Update from translation team.
11475         * po/eo.po: Likewise.
11476         * po/nl.po: Likewise.
11477
11478 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
11479
11480         [BZ #14246]
11481         * manual/argp.texi (Argp Helper Functions): Move node to follow
11482         Argp Parsing State.
11483
11484         [BZ #14872]
11485         * manual/conf.texi (Limits on File System Capacity): Mention if
11486         terminating null is included in the max size.
11487
11488 2012-12-10  Andreas Jaeger  <aj@suse.de>
11489
11490         * po/cs.po: Update from translation team.
11491
11492 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
11493
11494         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
11495         void pointer and cast to uintptr_t.
11496         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
11497         path.
11498         * sysdeps/s390/s390-64/memcpy.S: Likewise.
11499         * sysdeps/s390/s390-64/memset.S: Likewise.
11500
11501 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
11502
11503         [BZ #14833]
11504         * menual/message.texi (Message Translation): Fix typos.
11505         (Helper programs for gettext): Likewise.
11506
11507 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
11508
11509         [BZ #14898]
11510         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
11511         Change to -1.
11512
11513 2012-12-07  David S. Miller  <davem@davemloft.net>
11514
11515         * po/libc.pot: Update.
11516
11517 2012-12-07  Richard Henderson  <rth@redhat.com>
11518
11519         [BZ #10114]
11520         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
11521         normal/normal case to before the switch.
11522         (_FP_DIV): Likewise.
11523
11524 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
11525             Mike Frysinger  <vapier@gentoo.org>
11526
11527         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
11528         check for __NR_fadvise64_64.
11529
11530 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
11531
11532         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
11533         0, not just to plain "0" as a statement.
11534         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
11535         with cw.
11536
11537 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
11538
11539         * NEWS: Use sourceware.org in Bugzilla URL.
11540
11541 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
11542
11543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
11544         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
11545
11546         * stdio-common/tst-put-error.c (do_test): Add newline to the
11547         padded test to ensure flush.
11548
11549 2012-12-05  Jeff Law  <law@redhat.com>
11550
11551         * sunrpc/etc.rpc (fedfs_admin): Add entry.
11552
11553 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
11554
11555         * README: Don't refer to ports add-on as distributed separately.
11556         Mention AArch64 in list of systems supported in the ports add-on.
11557
11558         * LICENSES: Add more non-FSF copyright and license notices.
11559
11560         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
11561         ((unused)).
11562
11563         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
11564
11565         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
11566         10000 as width of padded output.
11567
11568 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
11569
11570         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
11571
11572         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
11573         variable LX with __attribute__ ((unused)).
11574         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
11575         Likewise.
11576         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
11577         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
11578         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
11579         with __attribute__ ((unused)).
11580
11581 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
11582
11583         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
11584
11585 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
11586
11587         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
11588         (CFLAGS-nldbl-acos.c): New variable.
11589         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
11590         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
11591         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
11592         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
11593         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
11594         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
11595         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
11596         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
11597         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
11598         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
11599         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
11600         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
11601         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
11602         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
11603         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
11604         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
11605         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
11606         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
11607         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
11608         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
11609         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
11610         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
11611         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
11612         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
11613         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
11614         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
11615         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
11616         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
11617         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
11618         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
11619         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
11620         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
11621         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
11622         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
11623         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
11624         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
11625         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
11626         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
11627         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
11628         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
11629         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
11630         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
11631         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
11632         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
11633         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
11634         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
11635         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
11636         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
11637         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
11638         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
11639         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
11640         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
11641         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
11642         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
11643         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
11644         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
11645         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
11646         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
11647         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
11648         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
11649         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
11650         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
11651         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
11652         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
11653         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
11654         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
11655         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
11656         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
11657         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
11658         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
11659         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
11660         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
11661         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
11662         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
11663         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
11664         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
11665         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
11666         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
11667         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
11668         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
11669         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
11670         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
11671         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
11672         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
11673         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
11674         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
11675         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
11676         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
11677         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
11678         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
11679         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
11680         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
11681         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
11682         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
11683         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
11684         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
11685         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
11686
11687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
11688         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
11689
11690         [BZ #14914]
11691         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
11692         whole low double instead of just low 47 bits when splitting values
11693         into two parts.
11694
11695 2012-12-03  Allan McRae  <allan@archlinux.org>
11696
11697         * manual/stdio.texi (Predefined Printf Handlers): Remove
11698         @hsep and @vsep usage.
11699
11700 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
11701
11702         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
11703         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
11704
11705 2012-12-03  Jeff Law  <law@redhat.com>
11706
11707         * time/sys/time.h (settimeofday): Do not mark TV argument
11708         as __nonnull.
11709
11710 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
11711
11712         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
11713         when currently writing and seek to current position when not.
11714         * libio/Makefile (tests): Remove bug-fclose1.
11715         * libio/bug-fclose1.c: Delete.
11716
11717 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
11718
11719         * manual/arith.texi (feenableexcept): Fix typo.
11720         (fedisableexcept): Likewise.
11721
11722 2012-11-30  Roland McGrath  <roland@hack.frob.com>
11723
11724         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
11725         second, differently-typed declaration, rather than a cast.
11726
11727 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11728
11729         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
11730         * include/rpc/svc.h: ... here.
11731
11732 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
11733
11734         [BZ #13013]
11735         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
11736         depending n and resplen2 to catch cases where answer
11737         equals answerp2.
11738
11739 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
11740
11741         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
11742         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
11743
11744 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
11745
11746         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
11747
11748 2012-11-29  Roland McGrath  <roland@hack.frob.com>
11749
11750         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
11751
11752 2012-11-28  Jeff Law  <law@redhat.com>
11753
11754         [BZ #13761]
11755         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
11756         dataset_temporary.  Track alloca usage into alloca_used.
11757         If dataset is large allocate and release it via malloc/free.
11758
11759 2012-06-04  Florian Weimer  <fweimer@redhat.com>
11760
11761         [BZ #14197]
11762         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
11763
11764 2012-11-28  David S. Miller  <davem@davemloft.net>
11765
11766         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11767
11768 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
11769
11770         [BZ #14803]
11771         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
11772         of pi/2 rounded to nearest to 64 bits.
11773         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
11774         nearest to 64 bits.
11775         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
11776         bits.
11777
11778 2012-11-28  Jeff Law <law@redhat.com>
11779             Martin Osvald <mosvald@redhat.com>
11780
11781         [BZ #14889]
11782         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
11783         * sunrpc/svc.c: Include time.h.
11784         (__svc_accept_failed): New function.
11785         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
11786         any reason other than EINTR, call __svc_accept_failed.
11787         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
11788         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
11789
11790 2012-11-28  Andreas Schwab  <schwab@suse.de>
11791
11792         * scripts/abilist.awk: Also handle indirect functions in .opd
11793         section.
11794
11795 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
11796
11797         [BZ #13881]
11798         * sysdeps/x86/fpu/powl_helper.c: New file.
11799         * sysdeps/x86/fpu/Makefile: Likewise.
11800         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
11801         (p3): New object.
11802         (__ieee754_powl): Use __powl_helper for finite arguments except
11803         integer exponents below 8.
11804         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
11805         (p3): New object.
11806         (__ieee754_powl): Use __powl_helper for finite arguments except
11807         integer exponents below 8.
11808         * math/libm-test.inc (pow_test): Add more tests and enable some
11809         previously disabled tests.
11810         * sysdeps/i386/fpu/libm-test-ulps: Update.
11811         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11812
11813 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11814             Carlos O'Donell  <carlos_odonell@mentor.com>
11815
11816         * nss/makedb.c (is_prime): Assert that input is odd and greater
11817         than 4.  Note that fact in a comment too.
11818         (next_prime): Add 4 to input.
11819
11820 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
11821
11822         [BZ #11741]
11823         * libio/Makefile (tests): Add test case tst-fwrite-error.
11824         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
11825         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
11826         * libio/tst-fwrite-error.c: New test case.
11827
11828 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
11829
11830         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
11831         before casting to void *.
11832         * include/libc-internal.h (__pointer_type): New macro.
11833         (__integer_if_pointer_type_sub): Likewise.
11834         (__integer_if_pointer_type): Likewise.
11835         (cast_to_integer): Likewise.
11836         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
11837         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
11838         before casting to atomic64_t.
11839         (atomic_exchange_acq): Likewise.
11840         (__arch_exchange_and_add_body): Likewise.
11841         (__arch_add_body): Likewise.
11842         (atomic_add_negative): Likewise.
11843         (atomic_add_zero): Likewise.
11844
11845 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
11846
11847         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
11848         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
11849         (add_fdes): Likewise.
11850         (linear_search_fdes): Likewise.
11851         (binary_search_unencoded_fdes): Likewise.
11852
11853 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
11854
11855         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
11856
11857 2012-11-24  Adam Conrad  <adconrad@0c3.net>
11858
11859         * configure.in: Autodetect C++ header directories.
11860         * configure: Regenerated.
11861
11862 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
11863
11864         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
11865
11866 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
11867
11868         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11869
11870 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
11871
11872         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
11873         LDBL_MANT_DIG == 106]: Disable some tests.
11874         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
11875         Likewise.
11876         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
11877         Likewise.
11878
11879         [BZ #14871]
11880         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
11881         input for small inputs.  Return +/- pi/2 for large inputs.
11882         * math/libm-test.inc (atan_test): Add more tests.
11883
11884         * sysdeps/generic/unwind-dw2-fde-glibc.c
11885         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
11886         __attribute__ ((unused)).
11887
11888         [BZ #14645]
11889         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
11890         x * y if x and y are nonzero and z is zero.
11891
11892         [BZ #14811]
11893         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
11894         nonzero exponents with absolute value below 0x1p-117 to +/-
11895         0x1p-117.
11896
11897         [BZ #14869]
11898         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
11899         up arguments below 2**-450, not just those below 2**-500.
11900         * math/libm-test.inc (hypot_test): Add another test.
11901
11902         [BZ #14868]
11903         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
11904         Return a+b for ratio over 2**120, not 2**60.
11905         * math/libm-test.inc (hypot_test): Add another test.
11906
11907         * math/libm-test.inc (clog_test): Use
11908         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
11909         (clog10_test): Likewise.
11910
11911         [BZ #6778]
11912         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
11913
11914 2012-11-22  Andreas Schwab  <schwab@suse.de>
11915
11916         * sysdeps/i386/fpu/libm-test-ulps: Update.
11917
11918 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
11919
11920         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
11921         printf output with newline.
11922
11923 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
11924
11925         [BZ #14865]
11926         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
11927         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
11928         -z nodlopen, -z initfirst and -z execstack support.
11929         * configure: Regenerated.
11930
11931         * elf/elf.h (DF_1_NODIRECT): New macro.
11932         (DF_1_IGNMULDEF): Likewise.
11933         (DF_1_NOKSYMS): Likewise.
11934         (DF_1_NOHDR): Likewise.
11935         (DF_1_EDITED): Likewise.
11936         (DF_1_NORELOC): Likewise.
11937         (DF_1_SYMINTPOSE): Likewise.
11938         (DF_1_GLOBAUDIT): Likewise.
11939         (DF_1_SINGLETON): Likewise.
11940         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
11941         DT_1_SUPPORTED_MASK bits.
11942         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
11943
11944 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
11945
11946         * sysdeps/unix/make-syscalls.sh: Document prefixes.
11947
11948 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
11949
11950         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
11951         macro.
11952
11953         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
11954         (sendmmsg): Move declarations...
11955         * socket/sys/socket.h: ... here.
11956         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
11957         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
11958         include it from...
11959         * socket/recvmmsg.c: ... this new file.
11960         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
11961         (sendmmsg): Rename to __sendmmsg, create weak alias and make
11962         definition of __sendmmsg hidden.
11963         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
11964         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
11965         Move ENOSYS stub into and include it from...
11966         * socket/sendmmsg.c: ... this new file.
11967         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
11968         (sysdep_routines): Move recvmmsg and sendmmsg...
11969         * socket/Makefile (routines): ... here.
11970         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
11971         (GLIBC_PRIVATE): Add __sendmmsg.
11972         * include/sys/socket.h (__sendmmsg): Add declarations.
11973         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
11974         sendmmsg.
11975
11976 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
11977
11978         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
11979         variable I1 with __attribute__ ((unused)).
11980         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
11981
11982 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
11983
11984         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
11985         DUMMY variables with __attribute__ ((unused)).
11986
11987         * bits/byteswap.h: Include <bits/types.h>.
11988         (__bswap_64): Use __uint64_t instead of unsigned long long int.
11989
11990 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
11991
11992         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
11993         string_t.  Do not manually set errno.
11994         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
11995         length with __strnlen.  Make sure to both set errno and return it on
11996         failure.
11997
11998 2012-11-19  David S. Miller  <davem@davemloft.net>
11999
12000         With help from Joseph Myers.
12001         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
12002         very large arguments properly.
12003         * math/libm-test.inc (atan_test): New tests.
12004         (atan2_test): New tests.
12005         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12006         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12007
12008 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
12009
12010         [BZ #14856]
12011         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
12012         Define to 3.
12013
12014         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
12015         [POSIX] (EADDRNOTAVAIL): Likewise.
12016         [POSIX] (EAFNOSUPPORT): Likewise.
12017         [POSIX] (EALREADY): Likewise.
12018         [POSIX] (ECONNABORTED): Likewise.
12019         [POSIX] (ECONNREFUSED): Likewise.
12020         [POSIX] (ECONNRESET): Likewise.
12021         [POSIX] (EDESTADDRREQ): Likewise.
12022         [POSIX] (EDQUOT): Likewise.
12023         [POSIX] (EHOSTUNREACH): Likewise.
12024         [POSIX] (EIDRM): Likewise.
12025         [POSIX] (EISCONN): Likewise.
12026         [POSIX] (ELOOP): Likewise.
12027         [POSIX] (EMULTIHOP): Likewise.
12028         [POSIX] (ENETDOWN): Likewise.
12029         [POSIX] (ENETUNREACH): Likewise.
12030         [POSIX] (ENOBUFS): Likewise.
12031         [POSIX] (ENODATA): Likewise.
12032         [POSIX] (ENOLINK): Likewise.
12033         [POSIX] (ENOMSG): Likewise.
12034         [POSIX] (ENOPROTOOPT): Likewise.
12035         [POSIX] (ENOSR): Likewise.
12036         [POSIX] (ENOSTR): Likewise.
12037         [POSIX] (ENOTCONN): Likewise.
12038         [POSIX] (ENOTSOCK): Likewise.
12039         [POSIX] (EOPNOTSUPP): Likewise.
12040         [POSIX] (EOVERFLOW): Likewise.
12041         [POSIX] (EPROTO): Likewise.
12042         [POSIX] (EPROTONOSUPPORT): Likewise.
12043         [POSIX] (EPROTOTYPE): Likewise.
12044         [POSIX] (ESTALE): Likewise.
12045         [POSIX] (ETIME): Likewise.
12046         [POSIX] (ETXTBSY): Likewise.
12047         [POSIX] (EWOULDBLOCK): Likewise.
12048         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
12049         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
12050         [POSIX] (SEEK_CUR): Likewise.
12051         [POSIX] (SEEK_END): Likewise.
12052         [POSIX || UNIX98] (mode_t): Do not require.
12053         [POSIX] (off_t): Likewise.
12054         [POSIX] (pid_t): Likewise.
12055         [POSIX] (sys/stat.h): Do not allow header.
12056         [POSIX] (unistd.h): Likewise.
12057         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
12058         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
12059         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
12060         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
12061         require.
12062         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
12063         sigevent): Specify elements.
12064         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
12065         entry.
12066         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
12067         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
12068
12069         * conform/data/cpio.h-data [POSIX]: Disable whole file.
12070         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
12071         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
12072         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
12073         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
12074         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
12075         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
12076         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
12077         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
12078         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
12079         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
12080         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
12081         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
12082         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
12083         Likewise.
12084         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
12085         Likewise.
12086         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
12087         Likewise.
12088         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
12089         Likewise.
12090         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
12091         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
12092         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
12093         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
12094         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
12095         Specify lower bound on value.
12096         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
12097         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
12098         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
12099         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
12100         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
12101         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
12102         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
12103         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
12104         value.
12105         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
12106         as optional.
12107         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
12108         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
12109         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
12110         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
12111         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
12112         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
12113         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
12114         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
12115         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
12116         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
12117         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
12118         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
12119         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
12120         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
12121         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
12122         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
12123         entry.
12124         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
12125         optional.
12126         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
12127         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
12128         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
12129         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
12130         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
12131         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
12132         Likewise.
12133         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
12134         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
12135         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
12136         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
12137         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
12138         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
12139         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
12140         as optional.
12141         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
12142         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
12143         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
12144         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
12145         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
12146         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
12147         specify as optional.
12148         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
12149         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
12150         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
12151         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
12152         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
12153         [XPG3] (NL_LANGMAX): Likewise.
12154         [POSIX || XPG3] (NL_MSGMAX): Likewise.
12155         [POSIX || XPG3] (NL_NMAX): Likewise.
12156         [POSIX || XPG3] (NL_SETMAX): Likewise.
12157         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
12158         [XPG3] (NZERO): Likewise.
12159         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
12160         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
12161         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
12162         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
12163         (REG_ERANGE): Expect.
12164         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
12165         optional-constant.
12166         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
12167         Use (void) in prototype.
12168         [POSIX] (*_t): Allow.
12169         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
12170         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
12171         (WRDE_BADVAL): Expect.
12172
12173         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
12174         expect.
12175         [XPG3 || XPG4] (O_RSYNC): Likewise.
12176         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
12177         Likewise.
12178         [XPG3 || XPG4] (pthread_sigmask): Likewise.
12179         [XPG3 || XPG4] (sigqueue): Likewise.
12180         [XPG3 || XPG4] (sigtimedwait): Likewise.
12181         [XPG3 || XPG4] (sigwaitinfo): Likewise.
12182         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
12183         [XPG3 || XPG4] (vsnprintf): Likewise.
12184         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
12185         Likewise.
12186         [XPG3 || XPG4] (blksize_t): Likewise.
12187         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
12188         Likewise.
12189         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
12190         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
12191         [XPG3 || XPG4] (struct itimerspec): Likewise.
12192         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
12193         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
12194         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
12195         [XPG3 || XPG4] (clockid_t): Likewise.
12196         [XPG3 || XPG4] (timer_t): Likewise.
12197         [XPG3 || XPG4] (clock_getres): Likewise.
12198         [XPG3 || XPG4] (clock_gettime): Likewise.
12199         [XPG3 || XPG4] (clock_settime): Likewise.
12200         [XPG3 || XPG4] (nanosleep): Likewise.
12201         [XPG3 || XPG4] (timer_create): Likewise.
12202         [XPG3 || XPG4] (timer_delete): Likewise.
12203         [XPG3 || XPG4] (timer_gettime): Likewise.
12204         [XPG3 || XPG4] (timer_getoverrun): Likewise.
12205         [XPG3 || XPG4] (timer_settime): Likewise.
12206         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
12207         [XPG3 || XPG4] (getlogin_r): Likewise.
12208         [XPG3 || XPG4] (pread): Likewise.
12209         [XPG3 || XPG4] (pthread_atfork): Likewise.
12210         [XPG3 || XPG4] (pwrite): Likewise.
12211
12212         [BZ #14835]
12213         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
12214         <bits/siginfo.h>.
12215
12216 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
12217
12218         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
12219         finalizing MALLSTREAM.
12220
12221         * sysdeps/mach/hurd/syncfs.c: New file.
12222
12223 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
12224
12225         [BZ #14719]
12226         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
12227         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
12228         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
12229         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
12230         (_nss_dns_gethostbyname4_r): Likewise.
12231         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
12232         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
12233
12234 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
12235
12236         [BZ #13763]
12237         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
12238
12239 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
12240
12241         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
12242         * elf/cache.c (print_entry): Print ",AArch64" for
12243         FLAG_AARCH64_LIB64
12244
12245         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
12246         * elf/cache.c (print_entry): Print ",hard-float" for
12247         FLAG_ARM_LIBHF.
12248
12249 2012-11-18  David S. Miller  <davem@davemloft.net>
12250
12251         With help from Joseph Myers.
12252         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
12253         cutoff to 2**-13.
12254         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
12255         cutoff to 2**-25.
12256         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
12257         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
12258         small.
12259         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
12260         * math/libm-test.inc (y0_test): New tests.
12261         (y1_test): New tests.
12262         * sysdeps/i386/fpu/libm-test-ulps: Update.
12263         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12264         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12265
12266 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
12267
12268         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
12269         64-bit targets.
12270         * configure: Regenerated.
12271
12272 2012-11-17  David S. Miller  <davem@davemloft.net>
12273
12274         [BZ #14811]
12275         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
12276         nonzero exponents with absolute value below 0x1p-128 to +/-
12277         0x1p-128.
12278
12279 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
12280
12281         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
12282
12283         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
12284
12285         * posix/getconf-speclist.c: New file.
12286         * posix/posix-envs.def: Likewise.
12287         * posix/confstr.c (START_ENV_GROUP): New macro.
12288         (END_ENV_GROUP): Likewise.
12289         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
12290         (KNOWN_PRESENT_ENV_STRING): Likewise.
12291         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
12292         (UNKNOWN_ENVIRONMENT): Likewise.
12293         (confstr): Include posix-envs.def instead of handling
12294         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
12295         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
12296         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
12297         (END_ENV_GROUP): Likewise.
12298         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
12299         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
12300         (UNKNOWN_ENVIRONMENT): Likewise.
12301         (__sysconf): Include posix-envs.def instead of handling associated
12302         cases directly here.
12303         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
12304         preprocessing getconf-speclist.c rather than running getconf or
12305         generating empty file.
12306
12307 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
12308
12309         * scripts/check-local-headers.sh: Ignore 'mach' headers.
12310
12311 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
12312
12313         [BZ #14672]
12314         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
12315
12316 2012-11-16  David S. Miller  <davem@davemloft.net>
12317
12318         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
12319         smaller than LDBL_EPSILON/2.0L, just return xm1.
12320
12321 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
12322
12323         * elf/tst-array1.c (init): Set constructor priority to 1000.
12324         (fini): Set destructor priority to 1000.
12325         * elf/tst-array2dep.c: Likewise.
12326
12327 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
12328
12329         [BZ #11741]
12330         * libio/fileops.c (_IO_new_file_write): Correctly return error.
12331         (_IO_new_file_xsputn): Also return EOF if none of the input
12332         data was written when overflow failed.
12333         * libio/iopadn.c (_IO_padn): Likewise.
12334         * libio/iowpadn.c (_IO_wpadn): Likewise.
12335         * stdio-common/tst-put-error.c: Add copyright notice.
12336         (do_test): Add case for printing padded string.
12337         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
12338         _IO_padn returned error.
12339         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
12340         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
12341         return EOF.
12342
12343 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
12344
12345         * libio/libioP.h: Add comment note that the references to C++
12346         bits are now obsolete.
12347
12348 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12349
12350         * math/libm-test.inc (check_complex): Use asprintf.
12351
12352 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
12353
12354         * debug/pcprofiledump.c (print_version): Update copyright year.
12355         * malloc/memusagestat.c (print_version): Likewise.
12356
12357 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
12358
12359         [BZ #14831]
12360         * elf/Makefile (tests): Add tst-audit8.
12361         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
12362         ($(objpfx)tst-audit8.out): New target.
12363         (tst-audit8-ENV): New variable.
12364         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
12365         audit if l_reloc_result is NULL.
12366         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
12367         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
12368         * elf/tst-audit8.c: New file.
12369
12370 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12371
12372         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
12373         * misc/Makefile (CFLAGS-select.c): Define.
12374         * posix/Makefile (CFLAGS-pause.c): Define.
12375
12376 2012-11-13  David S. Miller  <davem@davemloft.net>
12377
12378         * crypt/Makefile: Move test targets after toplevel Rules
12379         inclusion.  Grab any necessary sysdep routines when linking.
12380         * crypt/md5.c (md5_process_block): Remove define, we will always
12381         name it __md5_process_block.
12382         (md5_finish_ctx): Update md5_process_block call.
12383         (md5_stream): Likewise.
12384         (md5_process_bytes): Likewise.
12385         (md5_process_block): Rename to __md5_process_block and move to ...
12386         * crypt/md5-block.c: ... here.
12387         * crypt/sha256.c (sha256_process_block): Move to ...
12388         * crypt/sha256-block.c: ... here.
12389         * crypt/sha512.c (sha512_process_block): Move to ...
12390         * crypt/sha512-block.c: ... here.
12391         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
12392         path.
12393         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
12394         * sysdeps/sparc/sparc64/multiarch/Makefile
12395         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
12396         crypt subdir.
12397         (localedef-aux): Add md5 crypto assembler when in locale subdir.
12398         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
12399         multiarch changes.
12400         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
12401         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
12402         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
12403         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
12404         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
12405         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
12406         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
12407         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
12408         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
12409         file.
12410         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
12411         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
12412         file.
12413         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
12414
12415 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
12416
12417         * timezone/tzselect.ksh: Update from tzcode git revision
12418         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
12419         * timezone/zdump.c: Likewise.
12420         * timezone/zic.c: Likewise.
12421         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
12422         in TZVERSION setting, not $(PKGVERSION).
12423         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
12424         REPORT_BUGS_TO settings.
12425
12426         [BZ #14838]
12427         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
12428         macro.
12429
12430 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12431
12432         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
12433         detection to immediately after _FP_ROUND().
12434         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
12435         bits are 0.
12436
12437 2012-11-11  David S. Miller  <davem@davemloft.net>
12438
12439         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
12440         inttypes.h
12441         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
12442         __close rather than their public counterparts.
12443
12444 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
12445
12446         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
12447         file.
12448         [UNIX98] (sem_timedwait): Do not expect.
12449         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
12450         [XPG4 || UNIX98] (sockatmark): Do not expect.
12451         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
12452         (clock_getcpuclockid): Do not expect.
12453         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
12454         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
12455         Do not expect.
12456         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
12457         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
12458         [UNIX98] (vwscanf): Likewise.
12459         [UNIX98] (vswscanf): Likewise.
12460
12461 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
12462
12463         * timezone/version.h: Remove file.
12464         * timezone/README: Do not refer to version.h.
12465         * timezone/Makefile ($(objpfx)zic.o): New dependency on
12466         $(objpfx)version.h.
12467         ($(objpfx)zdump.o): Likewise.
12468         ($(objpfx)version.h): New target.
12469
12470         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
12471         2012i.
12472         * timezone/README: Don't mention modification to tzselect.ksh.
12473         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
12474         work on unmodified tzselect.ksh.  Substitute version numbers in
12475         tzselect.ksh.
12476
12477         * Makefile (format-me): Remove.
12478         (INSTALL): Adjust indentation.  Use commands directly instead of
12479         using $(format-me).
12480
12481         * aclocal.m4 (ACX_PKGVERSION): New macro.
12482         (ACX_BUGURL): Likewise.
12483         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
12484         (PKGVERSION): New AC_DEFINE_UNQUOTED.
12485         (REPORT_BUGS_TO): Likewise.
12486         * configure: Regenerated.
12487         * config.h.in (PKGVERSION): New macro.
12488         (REPORT_BUGS_TO): Likewise.
12489         * config.make.in (PKGVERSION): New variable.
12490         (PKGVERSION_TEXI): Likewise.
12491         (REPORT_BUGS_TO): Likewise.
12492         (REPORT_BUGS_TEXI): Likewise.
12493         * Makefile (format-me): Use -I$(common-objpfx)manual.
12494         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
12495         ($(common-objpfx)manual/%): New target.
12496         (manual/%): Remove target.
12497         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
12498         (print_version): Use PKGVERSION.
12499         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
12500         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
12501         and REPORT_BUGS_TO.
12502         ($(objpfx)xtrace): Likewise.
12503         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
12504         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
12505         (print_version): Use PKGVERSION.
12506         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
12507         (do_version): Use PKGVERSION.
12508         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
12509         REPORT_BUGS_TO.
12510         (common-ldd-rewrite): Likewise.
12511         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
12512         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
12513         (print_version): Use PKGVERSION.
12514         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
12515         * elf/pldd.c (argp_program_bug_address): Remove variable.
12516         (more_help): New function.
12517         (argp): Use more_help.
12518         (print_version): Use PKGVERSION.
12519         * elf/sln.c (main): Use PKGVERSION.
12520         (usage): Use REPORT_BUGS_TO.
12521         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
12522         (top level): Use PKGVERSION.
12523         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
12524         (print_version): Use PKGVERSION.
12525         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
12526         (print_version): Use PKGVERSION.
12527         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
12528         (print_version): Use PKGVERSION.
12529         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
12530         (print_version): Use PKGVERSION.
12531         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
12532         (print_version): Use PKGVERSION.
12533         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
12534         (print_version): Use PKGVERSION.
12535         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
12536         and BUGURL.
12537         ($(objpfx)memusage): Likewise.
12538         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
12539         (do_version): Use PKGVERSION.
12540         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
12541         (print_version): Use PKGVERSION.
12542         * malloc/mtrace.pl ($PACKAGE): Remove variable.
12543         ($PKGVERSION): New variable.
12544         ($REPORT_BUGS_TO): Likewise.
12545         (usage): Use $REPORT_BUGS_TO.
12546         (top level): Use $PKGVERSION.
12547         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
12548         ($(objpfx)pkgvers.texi): New rule.
12549         ($(objpfx)stamp-pkgvers): Likewise.
12550         * manual/install.texi: Include pkgvers.texi.
12551         (--with-pkgversion): Document new configure option.
12552         (--with-bugurl): Likewise.
12553         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
12554         than necessarily for this particular distribution.  Use
12555         REPORT_BUGS_TO for where to report bugs.
12556         * INSTALL: Regenerated.
12557         * manual/libc.texinfo: Include pkgvers.texi.
12558         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
12559         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
12560         (print_version): Use PKGVERSION.
12561         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
12562         (print_version): Use PKGVERSION.
12563         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
12564         (print_version): Use PKGVERSION.
12565         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
12566         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
12567         macro.
12568         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
12569         (print_version): Use PKGVERSION.
12570         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
12571         (print_version): Use PKGVERSION.
12572         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
12573         and PKGVERSION.
12574
12575         * timezone/checktab.awk: Update from tzcode 2012i.
12576         * timezone/ialloc.c: Likewise.
12577         * timezone/private.h: Likewise.
12578         * timezone/scheck.c: Likewise.
12579         * timezone/tzfile.h: Likewise.
12580         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
12581         (TZVERSION): Hardcode tzcode version number.
12582         * timezone/zdump.c: Update from tzcode 2012i.
12583         * timezone/zic.c: Likewise.
12584         * timezone/version.h: New file.
12585         * timezone/README: Describe version.h.  Update upstream location.
12586
12587         [BZ #14824]
12588         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
12589         (mktemp): Enable declaration.
12590         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
12591         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
12592         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
12593         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
12594         Likewise.
12595         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
12596         Likewise.
12597         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
12598         Likewise.
12599         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
12600         Likewise.
12601         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
12602         Likewise.
12603         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
12604         Likewise.
12605
12606         [BZ #14821]
12607         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
12608         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
12609         for copies of such integer values.
12610         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
12611         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
12612
12613 2012-11-09  Andreas Jaeger  <aj@suse.de>
12614
12615         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
12616         definitions and declarations that are provided by
12617         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
12618
12619 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12620
12621         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
12622         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
12623         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
12624         definition.
12625
12626 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12627
12628         * elf/elf.h: Update comment before AArch64 relocations.
12629
12630 2012-11-07  David S. Miller  <davem@davemloft.net>
12631
12632         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
12633         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12634         (__start_context): Declare.
12635         (__makecontext_ret): Delete.
12636         (__makecontext): Hook up __start_context instead of
12637         __makecontext_ret.
12638         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
12639         (sysdep_routines): Add __start_context when in stdlib.
12640
12641 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12642
12643         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
12644         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
12645         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
12646         hardcoded "nm".
12647         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
12648         (READELF): New variable.  Use it instead of hardcoded "readelf".
12649
12650 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
12651
12652         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
12653         * sysdeps/x86/Makefile: Here.
12654         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
12655         * sysdeps/x86/tst-xmmymm.sh: This.
12656
12657 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12658
12659         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
12660         expectations.
12661         [UNIX98] (pthread_barrier_t): Do not expect.
12662         [UNIX98] (pthread_barrierattr_t): Likewise.
12663         [UNIX98] (pthread_spinlock_t): Likewise.
12664         [UNIX98] (pthread_barrier_destroy): Likewise.
12665         [UNIX98] (pthread_barrier_init): Likewise.
12666         [UNIX98] (pthread_barrier_wait): Likewise.
12667         [UNIX98] (pthread_barrierattr_destroy): Likewise.
12668         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
12669         [UNIX98] (pthread_barrierattr_init): Likewise.
12670         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
12671         [UNIX98] (pthread_getcpuclockid): Likewise.
12672         [UNIX98] (pthread_mutex_timedlock): Likewise.
12673         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
12674         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
12675         [UNIX98] (pthread_sigmask): Likewise.
12676         [UNIX98] (pthread_spin_destroy): Likewise.
12677         [UNIX98] (pthread_spin_init): Likewise.
12678         [UNIX98] (pthread_spin_lock): Likewise.
12679         [UNIX98] (pthread_spin_trylock): Likewise.
12680         [UNIX98] (pthread_spin_unlock): Likewise.
12681         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
12682         Do not expect.
12683         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
12684         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
12685         [XPG3 || XPG4] (pthread_cond_t): Likewise.
12686         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
12687         [XPG3 || XPG4] (pthread_key_t): Likewise.
12688         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
12689         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
12690         [XPG3 || XPG4] (pthread_once_t): Likewise.
12691         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
12692         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
12693         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
12694         [XPG3 || XPG4] (pthread_t): Likewise.
12695
12696         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
12697         not expect.
12698         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
12699
12700         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
12701         Change function return type to int.
12702
12703         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
12704         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
12705         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
12706         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
12707         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
12708         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
12709         [!POSIX] (posix_madvise): Likewise.
12710         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
12711         && !UNIX98].
12712         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
12713         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
12714         (mode_t): Likewise.
12715         (posix_mem_offset): Likewise.
12716         (posix_typed_mem_get_info): Likewise.
12717         (posix_typed_mem_open): Likewise.
12718
12719         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
12720         Change condition to [XOPEN2K8].
12721
12722         * conform/conformtest.pl: Preprocess allow-header data with -x c
12723         instead of from stdin.
12724         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
12725         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
12726         [C99-based standards] (cerfc): Likewise.
12727         [C99-based standards] (cexp2): Likewise.
12728         [C99-based standards] (cexpm1): Likewise.
12729         [C99-based standards] (clog10): Likewise.
12730         [C99-based standards] (clog1p): Likewise.
12731         [C99-based standards] (clog2): Likewise.
12732         [C99-based standards] (clgamma): Likewise.
12733         [C99-based standards] (ctgamma): Likewise.
12734         [C99-based standards] (cerff): Likewise.
12735         [C99-based standards] (cerfcf): Likewise.
12736         [C99-based standards] (cexp2f): Likewise.
12737         [C99-based standards] (cexpm1f): Likewise.
12738         [C99-based standards] (clog10f): Likewise.
12739         [C99-based standards] (clog1pf): Likewise.
12740         [C99-based standards] (clog2f): Likewise.
12741         [C99-based standards] (clgammaf): Likewise.
12742         [C99-based standards] (ctgammaf): Likewise.
12743         [C99-based standards] (cerfl): Likewise.
12744         [C99-based standards] (cerfcl): Likewise.
12745         [C99-based standards] (cexp2l): Likewise.
12746         [C99-based standards] (cexpm1l): Likewise.
12747         [C99-based standards] (clog10l): Likewise.
12748         [C99-based standards] (clog1pl): Likewise.
12749         [C99-based standards] (clog2l): Likewise.
12750         [C99-based standards] (clgammal): Likewise.
12751         [C99-based standards] (ctgammal): Likewise.
12752         * conform/data/inttypes.h-data [C99-based standards]: Include
12753         stdint.h-data.  Remove all expectations for stdint.h contents.
12754         [C99-based standards] (PRI*): Do not allow.
12755         [C99-based standards] (SCN*): Likewise.
12756         [C99-based standards] (*_t): Likewise.
12757         [C99-based-standards] (PRId8): Expect macro.
12758         [C99-based-standards] (PRIi8): Likewise.
12759         [C99-based-standards] (PRIo8): Likewise.
12760         [C99-based-standards] (PRIu8): Likewise.
12761         [C99-based-standards] (PRIx8): Likewise.
12762         [C99-based-standards] (PRIX8): Likewise.
12763         [C99-based-standards] (SCNd8): Likewise.
12764         [C99-based-standards] (SCNi8): Likewise.
12765         [C99-based-standards] (SCNo8): Likewise.
12766         [C99-based-standards] (SCNu8): Likewise.
12767         [C99-based-standards] (SCNx8): Likewise.
12768         [C99-based-standards] (PRIdLEAST8): Likewise.
12769         [C99-based-standards] (PRIiLEAST8): Likewise.
12770         [C99-based-standards] (PRIoLEAST8): Likewise.
12771         [C99-based-standards] (PRIuLEAST8): Likewise.
12772         [C99-based-standards] (PRIxLEAST8): Likewise.
12773         [C99-based-standards] (PRIXLEAST8): Likewise.
12774         [C99-based-standards] (SCNdLEAST8): Likewise.
12775         [C99-based-standards] (SCNiLEAST8): Likewise.
12776         [C99-based-standards] (SCNoLEAST8): Likewise.
12777         [C99-based-standards] (SCNuLEAST8): Likewise.
12778         [C99-based-standards] (SCNxLEAST8): Likewise.
12779         [C99-based-standards] (PRIdFAST8): Likewise.
12780         [C99-based-standards] (PRIiFAST8): Likewise.
12781         [C99-based-standards] (PRIoFAST8): Likewise.
12782         [C99-based-standards] (PRIuFAST8): Likewise.
12783         [C99-based-standards] (PRIxFAST8): Likewise.
12784         [C99-based-standards] (PRIXFAST8): Likewise.
12785         [C99-based-standards] (SCNdFAST8): Likewise.
12786         [C99-based-standards] (SCNiFAST8): Likewise.
12787         [C99-based-standards] (SCNoFAST8): Likewise.
12788         [C99-based-standards] (SCNuFAST8): Likewise.
12789         [C99-based-standards] (SCNxFAST8): Likewise.
12790         [C99-based-standards] (PRId16): Likewise.
12791         [C99-based-standards] (PRIi16): Likewise.
12792         [C99-based-standards] (PRIo16): Likewise.
12793         [C99-based-standards] (PRIu16): Likewise.
12794         [C99-based-standards] (PRIx16): Likewise.
12795         [C99-based-standards] (PRIX16): Likewise.
12796         [C99-based-standards] (SCNd16): Likewise.
12797         [C99-based-standards] (SCNi16): Likewise.
12798         [C99-based-standards] (SCNo16): Likewise.
12799         [C99-based-standards] (SCNu16): Likewise.
12800         [C99-based-standards] (SCNx16): Likewise.
12801         [C99-based-standards] (PRIdLEAST16): Likewise.
12802         [C99-based-standards] (PRIiLEAST16): Likewise.
12803         [C99-based-standards] (PRIoLEAST16): Likewise.
12804         [C99-based-standards] (PRIuLEAST16): Likewise.
12805         [C99-based-standards] (PRIxLEAST16): Likewise.
12806         [C99-based-standards] (PRIXLEAST16): Likewise.
12807         [C99-based-standards] (SCNdLEAST16): Likewise.
12808         [C99-based-standards] (SCNiLEAST16): Likewise.
12809         [C99-based-standards] (SCNoLEAST16): Likewise.
12810         [C99-based-standards] (SCNuLEAST16): Likewise.
12811         [C99-based-standards] (SCNxLEAST16): Likewise.
12812         [C99-based-standards] (PRIdFAST16): Likewise.
12813         [C99-based-standards] (PRIiFAST16): Likewise.
12814         [C99-based-standards] (PRIoFAST16): Likewise.
12815         [C99-based-standards] (PRIuFAST16): Likewise.
12816         [C99-based-standards] (PRIxFAST16): Likewise.
12817         [C99-based-standards] (PRIXFAST16): Likewise.
12818         [C99-based-standards] (SCNdFAST16): Likewise.
12819         [C99-based-standards] (SCNiFAST16): Likewise.
12820         [C99-based-standards] (SCNoFAST16): Likewise.
12821         [C99-based-standards] (SCNuFAST16): Likewise.
12822         [C99-based-standards] (SCNxFAST16): Likewise.
12823         [C99-based-standards] (PRId32): Likewise.
12824         [C99-based-standards] (PRIi32): Likewise.
12825         [C99-based-standards] (PRIo32): Likewise.
12826         [C99-based-standards] (PRIu32): Likewise.
12827         [C99-based-standards] (PRIx32): Likewise.
12828         [C99-based-standards] (PRIX32): Likewise.
12829         [C99-based-standards] (SCNd32): Likewise.
12830         [C99-based-standards] (SCNi32): Likewise.
12831         [C99-based-standards] (SCNo32): Likewise.
12832         [C99-based-standards] (SCNu32): Likewise.
12833         [C99-based-standards] (SCNx32): Likewise.
12834         [C99-based-standards] (PRIdLEAST32): Likewise.
12835         [C99-based-standards] (PRIiLEAST32): Likewise.
12836         [C99-based-standards] (PRIoLEAST32): Likewise.
12837         [C99-based-standards] (PRIuLEAST32): Likewise.
12838         [C99-based-standards] (PRIxLEAST32): Likewise.
12839         [C99-based-standards] (PRIXLEAST32): Likewise.
12840         [C99-based-standards] (SCNdLEAST32): Likewise.
12841         [C99-based-standards] (SCNiLEAST32): Likewise.
12842         [C99-based-standards] (SCNoLEAST32): Likewise.
12843         [C99-based-standards] (SCNuLEAST32): Likewise.
12844         [C99-based-standards] (SCNxLEAST32): Likewise.
12845         [C99-based-standards] (PRIdFAST32): Likewise.
12846         [C99-based-standards] (PRIiFAST32): Likewise.
12847         [C99-based-standards] (PRIoFAST32): Likewise.
12848         [C99-based-standards] (PRIuFAST32): Likewise.
12849         [C99-based-standards] (PRIxFAST32): Likewise.
12850         [C99-based-standards] (PRIXFAST32): Likewise.
12851         [C99-based-standards] (SCNdFAST32): Likewise.
12852         [C99-based-standards] (SCNiFAST32): Likewise.
12853         [C99-based-standards] (SCNoFAST32): Likewise.
12854         [C99-based-standards] (SCNuFAST32): Likewise.
12855         [C99-based-standards] (SCNxFAST32): Likewise.
12856         [C99-based-standards] (PRId64): Likewise.
12857         [C99-based-standards] (PRIi64): Likewise.
12858         [C99-based-standards] (PRIo64): Likewise.
12859         [C99-based-standards] (PRIu64): Likewise.
12860         [C99-based-standards] (PRIx64): Likewise.
12861         [C99-based-standards] (PRIX64): Likewise.
12862         [C99-based-standards] (SCNd64): Likewise.
12863         [C99-based-standards] (SCNi64): Likewise.
12864         [C99-based-standards] (SCNo64): Likewise.
12865         [C99-based-standards] (SCNu64): Likewise.
12866         [C99-based-standards] (SCNx64): Likewise.
12867         [C99-based-standards] (PRIdLEAST64): Likewise.
12868         [C99-based-standards] (PRIiLEAST64): Likewise.
12869         [C99-based-standards] (PRIoLEAST64): Likewise.
12870         [C99-based-standards] (PRIuLEAST64): Likewise.
12871         [C99-based-standards] (PRIxLEAST64): Likewise.
12872         [C99-based-standards] (PRIXLEAST64): Likewise.
12873         [C99-based-standards] (SCNdLEAST64): Likewise.
12874         [C99-based-standards] (SCNiLEAST64): Likewise.
12875         [C99-based-standards] (SCNoLEAST64): Likewise.
12876         [C99-based-standards] (SCNuLEAST64): Likewise.
12877         [C99-based-standards] (SCNxLEAST64): Likewise.
12878         [C99-based-standards] (PRIdFAST64): Likewise.
12879         [C99-based-standards] (PRIiFAST64): Likewise.
12880         [C99-based-standards] (PRIoFAST64): Likewise.
12881         [C99-based-standards] (PRIuFAST64): Likewise.
12882         [C99-based-standards] (PRIxFAST64): Likewise.
12883         [C99-based-standards] (PRIXFAST64): Likewise.
12884         [C99-based-standards] (SCNdFAST64): Likewise.
12885         [C99-based-standards] (SCNiFAST64): Likewise.
12886         [C99-based-standards] (SCNoFAST64): Likewise.
12887         [C99-based-standards] (SCNuFAST64): Likewise.
12888         [C99-based-standards] (SCNxFAST64): Likewise.
12889         [C99-based-standards] (PRIdMAX): Likewise.
12890         [C99-based-standards] (PRIiMAX): Likewise.
12891         [C99-based-standards] (PRIoMAX): Likewise.
12892         [C99-based-standards] (PRIuMAX): Likewise.
12893         [C99-based-standards] (PRIxMAX): Likewise.
12894         [C99-based-standards] (PRIXMAX): Likewise.
12895         [C99-based-standards] (SCNdMAX): Likewise.
12896         [C99-based-standards] (SCNiMAX): Likewise.
12897         [C99-based-standards] (SCNoMAX): Likewise.
12898         [C99-based-standards] (SCNuMAX): Likewise.
12899         [C99-based-standards] (SCNxMAX): Likewise.
12900         [C99-based-standards] (PRIdPTR): Likewise.
12901         [C99-based-standards] (PRIiPTR): Likewise.
12902         [C99-based-standards] (PRIoPTR): Likewise.
12903         [C99-based-standards] (PRIuPTR): Likewise.
12904         [C99-based-standards] (PRIxPTR): Likewise.
12905         [C99-based-standards] (PRIXPTR): Likewise.
12906         [C99-based-standards] (SCNdPTR): Likewise.
12907         [C99-based-standards] (SCNiPTR): Likewise.
12908         [C99-based-standards] (SCNoPTR): Likewise.
12909         [C99-based-standards] (SCNuPTR): Likewise.
12910         [C99-based-standards] (SCNxPTR): Likewise.
12911         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
12912         allow.
12913         * conform/data/stdint.h-data: Update comments to clarify
12914         requirements.
12915         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
12916         type.
12917         [C99-based standards] (INT8_MAX): Likewise.
12918         [C99-based standards] (INT16_MIN): Likewise.
12919         [C99-based standards] (INT16_MAX): Likewise.
12920         [C99-based standards] (INT32_MIN): Likewise.
12921         [C99-based standards] (INT32_MAX): Likewise.
12922         [C99-based standards] (INT64_MIN): Likewise.
12923         [C99-based standards] (INT64_MAX): Likewise.
12924         [C99-based standards] (UINT8_MAX): Likewise.
12925         [C99-based standards] (UINT16_MAX): Likewise.
12926         [C99-based standards] (UINT32_MAX): Likewise.
12927         [C99-based standards] (UINT64_MAX): Likewise.
12928         [C99-based standards] (INT_LEAST8_MIN): Likewise.
12929         [C99-based standards] (INT_LEAST8_MAX): Likewise.
12930         [C99-based standards] (INT_LEAST16_MIN): Likewise.
12931         [C99-based standards] (INT_LEAST16_MAX): Likewise.
12932         [C99-based standards] (INT_LEAST32_MIN): Likewise.
12933         [C99-based standards] (INT_LEAST32_MAX): Likewise.
12934         [C99-based standards] (INT_LEAST64_MIN): Likewise.
12935         [C99-based standards] (INT_LEAST64_MAX): Likewise.
12936         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
12937         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
12938         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
12939         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
12940         [C99-based standards] (INT_FAST8_MIN): Likewise.
12941         [C99-based standards] (INT_FAST8_MAX): Likewise.
12942         [C99-based standards] (INT_FAST16_MIN): Likewise.
12943         [C99-based standards] (INT_FAST16_MAX): Likewise.
12944         [C99-based standards] (INT_FAST32_MIN): Likewise.
12945         [C99-based standards] (INT_FAST32_MAX): Likewise.
12946         [C99-based standards] (INT_FAST64_MIN): Likewise.
12947         [C99-based standards] (INT_FAST64_MAX): Likewise.
12948         [C99-based standards] (UINT_FAST8_MAX): Likewise.
12949         [C99-based standards] (UINT_FAST16_MAX): Likewise.
12950         [C99-based standards] (UINT_FAST32_MAX): Likewise.
12951         [C99-based standards] (UINT_FAST64_MAX): Likewise.
12952         [C99-based standards] (INTPTR_MIN): Likewise.
12953         [C99-based standards] (INTPTR_MAX): Likewise.
12954         [C99-based standards] (UINTPTR_MAX): Likewise.
12955         [C99-based standards] (INTMAX_MIN): Likewise.
12956         [C99-based standards] (INTMAX_MAX): Likewise.
12957         [C99-based standards] (UINTMAX_MAX): Likewise.
12958         [C99-based standards] (PTRDIFF_MIN): Likewise.
12959         [C99-based standards] (PTRDIFF_MAX): Likewise.
12960         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
12961         [C99-based standards] (SIZE_MAX): Likewise.
12962         [C99-based standards] (WCHAR_MAX): Likewise.
12963         [C99-based standards] (WINT_MAX): Likewise.
12964         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
12965         constraint on value.
12966         [C99-based standards] (WCHAR_MIN): Likewise.
12967         [C99-based standards] (WINT_MIN): Likewise.
12968         [C99-based standards] (*_t): Allow.
12969         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
12970         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
12971         Include math.h-data and complex.h-data.  Remove all expectations
12972         of math.h and complex.h contents.
12973         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
12974         at end of line.
12975         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
12976         (struct tm): Expect tag.
12977         [C99-based-standards] (wcstof): Expect function.
12978         [C99-based-standards] (wcstold): Likewise.
12979         [C99-based-standards] (wcstoll): Likewise.
12980         [C99-based-standards] (wcstoull): Likewise.
12981         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
12982         macro-int-constant.  Specify type.
12983         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
12984         constraint on value.
12985         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
12986         Specify type.
12987         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
12988         Specify value.
12989         [ISO C standards]: Do not allow headers.
12990         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
12991         wcs[abcdefghijklmnopqrstuvwxyz]*.
12992         [ISO C standards] (*_t): Do not allow.
12993         * conform/data/wctype.h-data [C99-based standards] (iswblank):
12994         Expect function.
12995         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
12996         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
12997         Specify type.
12998         [ISO C standards]: Do not allow headers.
12999         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
13000         is[abcdefghijklmnopqrstuvwxyz]*.
13001         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
13002         to[abcdefghijklmnopqrstuvwxyz]*.
13003         [ISO C standards] (*_t): Do not allow.
13004         * conform/data/stdalign.h-data: New file.
13005         * conform/data/stdbool.h-data: Likewise.
13006         * conform/data/stdnoreturn.h-data: Likewise.
13007
13008 2012-11-07  Roland McGrath  <roland@hack.frob.com>
13009
13010         [BZ #14815]
13011         * manual/filesys.texi (Directory Entries): Typo fix.
13012         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
13013
13014 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
13015
13016         * elf/elf.h (EM_AARCH64): New macro.
13017         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
13018         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
13019         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
13020         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
13021         (R_AARCH64_TLSDESC): Likewise.
13022         (NT_ARM_TLS): Likewise.
13023         (NT_ARM_HW_BREAK): Likewise.
13024         (NT_ARM_HW_WATCH): Likewise.
13025
13026 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
13027
13028         [BZ #14811]
13029         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
13030         (__ieee754_powl): Saturate nonzero exponents with absolute value
13031         below 0x1p-79 to +/- 0x1p-79.
13032         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
13033         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
13034         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
13035         nonzero exponents with absolute value below 0x1p-32 to +/-
13036         0x1p-32.
13037         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
13038         (__ieee754_powl): Saturate nonzero exponents with absolute value
13039         below 0x1p-79 to +/- 0x1p-79.
13040         * math/libm-test.inc (pow_test): Add more tests.
13041
13042 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13043
13044         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
13045         _dl_s390_cap_flags with kernel. Increase string length.
13046         (_dl_s390_platforms): Add z196 and zEC12.
13047
13048 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
13049
13050         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
13051         Change XOPEN21K to XOPEN2K.
13052
13053 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
13054
13055         * string/memmove.c: Use memcpy when possible.
13056
13057 2012-11-06  Andreas Jaeger  <aj@suse.de>
13058
13059         * po/eo.po: Update from translation team.
13060
13061 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
13062
13063         [BZ #14793]
13064         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
13065         exponent and small x and y exponents, scale x or y up.  Increase
13066         by 2 the exponent used in scaling up.
13067         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13068         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13069         * math/libm-test.inc (fma_test): Add more tests.
13070         (fma_test_towardzero): Likewise.
13071         (fma_test_downward): Likewise.
13072         (fma_test_upward): Likewise.
13073
13074 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
13075
13076         [BZ #14805]
13077         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
13078         fenv_t *.
13079
13080         [BZ #14801]
13081         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
13082         namespace for names of struct fields.
13083         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
13084         fenv_t fields.
13085         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
13086         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
13087
13088 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13089
13090         [BZ #3665]
13091         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
13092
13093 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
13094
13095         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
13096         PTR_DEMANGLE.
13097
13098         [BZ #5246]
13099         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
13100         PTR_DEMANGLE.
13101
13102 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
13103
13104         [BZ #14797]
13105         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
13106         definitely overflow as x * y not x * y + z.
13107         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13108         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13109         * math/libm-test.inc (fma_test): Add more tests.
13110         (fma_test_towardzero): Likewise.
13111         (fma_test_downward): Likewise.
13112         (fma_test_upward): Likewise.
13113
13114 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
13115
13116         [BZ #157]
13117
13118         * include/stub-tag.h: Remove file.
13119         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
13120         '#include' of it.
13121         * manual/maint.texi (Porting): Don't reference it.
13122         * Makerules ($(objpfx)stubs): Likewise.
13123         * dirent/closedir.c: Don't include <stub-tag.h>.
13124         * dirent/dirfd.c: Likewise.
13125         * dirent/fdopendir.c: Likewise.
13126         * dirent/getdents.c: Likewise.
13127         * dirent/getdents64.c: Likewise.
13128         * dirent/opendir.c: Likewise.
13129         * dirent/readdir.c: Likewise.
13130         * dirent/readdir64.c: Likewise.
13131         * dirent/readdir64_r.c: Likewise.
13132         * dirent/readdir_r.c: Likewise.
13133         * dirent/rewinddir.c: Likewise.
13134         * dirent/seekdir.c: Likewise.
13135         * dirent/telldir.c: Likewise.
13136         * gmon/profil.c: Likewise.
13137         * grp/setgroups.c: Likewise.
13138         * inet/if_index.c: Likewise.
13139         * io/access.c: Likewise.
13140         * io/chdir.c: Likewise.
13141         * io/chmod.c: Likewise.
13142         * io/chown.c: Likewise.
13143         * io/close.c: Likewise.
13144         * io/dup.c: Likewise.
13145         * io/dup2.c: Likewise.
13146         * io/dup3.c: Likewise.
13147         * io/euidaccess.c: Likewise.
13148         * io/faccessat.c: Likewise.
13149         * io/fchdir.c: Likewise.
13150         * io/fchmod.c: Likewise.
13151         * io/fchmodat.c: Likewise.
13152         * io/fchown.c: Likewise.
13153         * io/fchownat.c: Likewise.
13154         * io/fcntl.c: Likewise.
13155         * io/flock.c: Likewise.
13156         * io/fstatfs.c: Likewise.
13157         * io/fstatfs64.c: Likewise.
13158         * io/fstatvfs.c: Likewise.
13159         * io/fstatvfs64.c: Likewise.
13160         * io/futimens.c: Likewise.
13161         * io/fxstat.c: Likewise.
13162         * io/fxstat64.c: Likewise.
13163         * io/fxstatat.c: Likewise.
13164         * io/fxstatat64.c: Likewise.
13165         * io/getcwd.c: Likewise.
13166         * io/isatty.c: Likewise.
13167         * io/lchmod.c: Likewise.
13168         * io/lchown.c: Likewise.
13169         * io/link.c: Likewise.
13170         * io/linkat.c: Likewise.
13171         * io/lseek.c: Likewise.
13172         * io/lseek64.c: Likewise.
13173         * io/lxstat64.c: Likewise.
13174         * io/mkdir.c: Likewise.
13175         * io/mkdirat.c: Likewise.
13176         * io/mkfifo.c: Likewise.
13177         * io/mkfifoat.c: Likewise.
13178         * io/open.c: Likewise.
13179         * io/open64.c: Likewise.
13180         * io/openat.c: Likewise.
13181         * io/openat64.c: Likewise.
13182         * io/pipe.c: Likewise.
13183         * io/pipe2.c: Likewise.
13184         * io/poll.c: Likewise.
13185         * io/posix_fadvise.c: Likewise.
13186         * io/posix_fadvise64.c: Likewise.
13187         * io/posix_fallocate.c: Likewise.
13188         * io/posix_fallocate64.c: Likewise.
13189         * io/read.c: Likewise.
13190         * io/readlink.c: Likewise.
13191         * io/readlinkat.c: Likewise.
13192         * io/rmdir.c: Likewise.
13193         * io/sendfile.c: Likewise.
13194         * io/sendfile64.c: Likewise.
13195         * io/statfs.c: Likewise.
13196         * io/statfs64.c: Likewise.
13197         * io/statvfs.c: Likewise.
13198         * io/statvfs64.c: Likewise.
13199         * io/symlink.c: Likewise.
13200         * io/symlinkat.c: Likewise.
13201         * io/ttyname.c: Likewise.
13202         * io/ttyname_r.c: Likewise.
13203         * io/umask.c: Likewise.
13204         * io/unlink.c: Likewise.
13205         * io/unlinkat.c: Likewise.
13206         * io/utime.c: Likewise.
13207         * io/utimensat.c: Likewise.
13208         * io/write.c: Likewise.
13209         * io/xmknod.c: Likewise.
13210         * io/xmknodat.c: Likewise.
13211         * io/xstat.c: Likewise.
13212         * io/xstat64.c: Likewise.
13213         * login/getpt.c: Likewise.
13214         * login/grantpt.c: Likewise.
13215         * login/unlockpt.c: Likewise.
13216         * math/e_acoshl.c: Likewise.
13217         * math/e_acosl.c: Likewise.
13218         * math/e_asinl.c: Likewise.
13219         * math/e_atan2l.c: Likewise.
13220         * math/e_atanhl.c: Likewise.
13221         * math/e_coshl.c: Likewise.
13222         * math/e_expl.c: Likewise.
13223         * math/e_fmodl.c: Likewise.
13224         * math/e_gammal_r.c: Likewise.
13225         * math/e_hypotl.c: Likewise.
13226         * math/e_j0l.c: Likewise.
13227         * math/e_j1l.c: Likewise.
13228         * math/e_jnl.c: Likewise.
13229         * math/e_lgammal_r.c: Likewise.
13230         * math/e_log10l.c: Likewise.
13231         * math/e_log2l.c: Likewise.
13232         * math/e_logl.c: Likewise.
13233         * math/e_powl.c: Likewise.
13234         * math/e_rem_pio2l.c: Likewise.
13235         * math/e_sinhl.c: Likewise.
13236         * math/e_sqrtl.c: Likewise.
13237         * math/fclrexcpt.c: Likewise.
13238         * math/fedisblxcpt.c: Likewise.
13239         * math/feenablxcpt.c: Likewise.
13240         * math/fegetenv.c: Likewise.
13241         * math/fegetexcept.c: Likewise.
13242         * math/fegetround.c: Likewise.
13243         * math/feholdexcpt.c: Likewise.
13244         * math/fesetenv.c: Likewise.
13245         * math/fesetround.c: Likewise.
13246         * math/feupdateenv.c: Likewise.
13247         * math/fgetexcptflg.c: Likewise.
13248         * math/fraiseexcpt.c: Likewise.
13249         * math/fsetexcptflg.c: Likewise.
13250         * math/ftestexcept.c: Likewise.
13251         * math/k_cosl.c: Likewise.
13252         * math/k_rem_pio2l.c: Likewise.
13253         * math/k_sinl.c: Likewise.
13254         * math/k_tanl.c: Likewise.
13255         * math/s_asinhl.c: Likewise.
13256         * math/s_atanl.c: Likewise.
13257         * math/s_cbrtl.c: Likewise.
13258         * math/s_erfl.c: Likewise.
13259         * math/s_expm1l.c: Likewise.
13260         * math/s_log1pl.c: Likewise.
13261         * math/s_tanhl.c: Likewise.
13262         * misc/acct.c: Likewise.
13263         * misc/brk.c: Likewise.
13264         * misc/chflags.c: Likewise.
13265         * misc/chroot.c: Likewise.
13266         * misc/fchflags.c: Likewise.
13267         * misc/fgetxattr.c: Likewise.
13268         * misc/flistxattr.c: Likewise.
13269         * misc/fremovexattr.c: Likewise.
13270         * misc/fsetxattr.c: Likewise.
13271         * misc/fsync.c: Likewise.
13272         * misc/ftruncate.c: Likewise.
13273         * misc/futimes.c: Likewise.
13274         * misc/futimesat.c: Likewise.
13275         * misc/getdomain.c: Likewise.
13276         * misc/getdtsz.c: Likewise.
13277         * misc/gethostid.c: Likewise.
13278         * misc/gethostname.c: Likewise.
13279         * misc/getloadavg.c: Likewise.
13280         * misc/getpagesize.c: Likewise.
13281         * misc/getsysstats.c: Likewise.
13282         * misc/getxattr.c: Likewise.
13283         * misc/gtty.c: Likewise.
13284         * misc/ioctl.c: Likewise.
13285         * misc/lgetxattr.c: Likewise.
13286         * misc/listxattr.c: Likewise.
13287         * misc/llistxattr.c: Likewise.
13288         * misc/lremovexattr.c: Likewise.
13289         * misc/lsetxattr.c: Likewise.
13290         * misc/lutimes.c: Likewise.
13291         * misc/madvise.c: Likewise.
13292         * misc/mincore.c: Likewise.
13293         * misc/mlock.c: Likewise.
13294         * misc/mlockall.c: Likewise.
13295         * misc/mmap.c: Likewise.
13296         * misc/mprotect.c: Likewise.
13297         * misc/msync.c: Likewise.
13298         * misc/munlock.c: Likewise.
13299         * misc/munlockall.c: Likewise.
13300         * misc/munmap.c: Likewise.
13301         * misc/preadv.c: Likewise.
13302         * misc/preadv64.c: Likewise.
13303         * misc/ptrace.c: Likewise.
13304         * misc/pwritev.c: Likewise.
13305         * misc/pwritev64.c: Likewise.
13306         * misc/readv.c: Likewise.
13307         * misc/reboot.c: Likewise.
13308         * misc/remap_file_pages.c: Likewise.
13309         * misc/removexattr.c: Likewise.
13310         * misc/revoke.c: Likewise.
13311         * misc/select.c: Likewise.
13312         * misc/setdomain.c: Likewise.
13313         * misc/setegid.c: Likewise.
13314         * misc/seteuid.c: Likewise.
13315         * misc/sethostid.c: Likewise.
13316         * misc/sethostname.c: Likewise.
13317         * misc/setregid.c: Likewise.
13318         * misc/setreuid.c: Likewise.
13319         * misc/setxattr.c: Likewise.
13320         * misc/sstk.c: Likewise.
13321         * misc/stty.c: Likewise.
13322         * misc/swapoff.c: Likewise.
13323         * misc/swapon.c: Likewise.
13324         * misc/sync.c: Likewise.
13325         * misc/syncfs.c: Likewise.
13326         * misc/syscall.c: Likewise.
13327         * misc/truncate.c: Likewise.
13328         * misc/ualarm.c: Likewise.
13329         * misc/usleep.c: Likewise.
13330         * misc/ustat.c: Likewise.
13331         * misc/utimes.c: Likewise.
13332         * misc/vhangup.c: Likewise.
13333         * misc/writev.c: Likewise.
13334         * posix/_exit.c: Likewise.
13335         * posix/alarm.c: Likewise.
13336         * posix/execve.c: Likewise.
13337         * posix/fexecve.c: Likewise.
13338         * posix/fork.c: Likewise.
13339         * posix/fpathconf.c: Likewise.
13340         * posix/getaddrinfo.c: Likewise.
13341         * posix/getegid.c: Likewise.
13342         * posix/geteuid.c: Likewise.
13343         * posix/getgid.c: Likewise.
13344         * posix/getgroups.c: Likewise.
13345         * posix/getlogin.c: Likewise.
13346         * posix/getlogin_r.c: Likewise.
13347         * posix/getpgid.c: Likewise.
13348         * posix/getpid.c: Likewise.
13349         * posix/getppid.c: Likewise.
13350         * posix/getresgid.c: Likewise.
13351         * posix/getresuid.c: Likewise.
13352         * posix/getsid.c: Likewise.
13353         * posix/getuid.c: Likewise.
13354         * posix/glob64.c: Likewise.
13355         * posix/nanosleep.c: Likewise.
13356         * posix/pathconf.c: Likewise.
13357         * posix/pause.c: Likewise.
13358         * posix/posix_madvise.c: Likewise.
13359         * posix/pread.c: Likewise.
13360         * posix/pread64.c: Likewise.
13361         * posix/pwrite.c: Likewise.
13362         * posix/pwrite64.c: Likewise.
13363         * posix/sched_getaffinity.c: Likewise.
13364         * posix/sched_getp.c: Likewise.
13365         * posix/sched_gets.c: Likewise.
13366         * posix/sched_primax.c: Likewise.
13367         * posix/sched_primin.c: Likewise.
13368         * posix/sched_rr_gi.c: Likewise.
13369         * posix/sched_setaffinity.c: Likewise.
13370         * posix/sched_setp.c: Likewise.
13371         * posix/sched_sets.c: Likewise.
13372         * posix/sched_yield.c: Likewise.
13373         * posix/setgid.c: Likewise.
13374         * posix/setlogin.c: Likewise.
13375         * posix/setpgid.c: Likewise.
13376         * posix/setresgid.c: Likewise.
13377         * posix/setresuid.c: Likewise.
13378         * posix/setsid.c: Likewise.
13379         * posix/setuid.c: Likewise.
13380         * posix/sleep.c: Likewise.
13381         * posix/spawni.c: Likewise.
13382         * posix/sysconf.c: Likewise.
13383         * posix/times.c: Likewise.
13384         * posix/wait.c: Likewise.
13385         * posix/wait3.c: Likewise.
13386         * posix/wait4.c: Likewise.
13387         * posix/waitpid.c: Likewise.
13388         * resolv/gai_sigqueue.c: Likewise.
13389         * resource/getpriority.c: Likewise.
13390         * resource/getrlimit.c: Likewise.
13391         * resource/getrusage.c: Likewise.
13392         * resource/nice.c: Likewise.
13393         * resource/setpriority.c: Likewise.
13394         * resource/setrlimit.c: Likewise.
13395         * resource/ulimit.c: Likewise.
13396         * rt/aio_cancel.c: Likewise.
13397         * rt/aio_fsync.c: Likewise.
13398         * rt/aio_read.c: Likewise.
13399         * rt/aio_sigqueue.c: Likewise.
13400         * rt/aio_suspend.c: Likewise.
13401         * rt/aio_write.c: Likewise.
13402         * rt/clock_getres.c: Likewise.
13403         * rt/clock_gettime.c: Likewise.
13404         * rt/clock_nanosleep.c: Likewise.
13405         * rt/clock_settime.c: Likewise.
13406         * rt/lio_listio.c: Likewise.
13407         * rt/mq_close.c: Likewise.
13408         * rt/mq_getattr.c: Likewise.
13409         * rt/mq_notify.c: Likewise.
13410         * rt/mq_open.c: Likewise.
13411         * rt/mq_receive.c: Likewise.
13412         * rt/mq_send.c: Likewise.
13413         * rt/mq_setattr.c: Likewise.
13414         * rt/mq_timedreceive.c: Likewise.
13415         * rt/mq_timedsend.c: Likewise.
13416         * rt/mq_unlink.c: Likewise.
13417         * rt/shm_open.c: Likewise.
13418         * rt/shm_unlink.c: Likewise.
13419         * rt/timer_create.c: Likewise.
13420         * rt/timer_delete.c: Likewise.
13421         * rt/timer_getoverr.c: Likewise.
13422         * rt/timer_gettime.c: Likewise.
13423         * rt/timer_settime.c: Likewise.
13424         * setjmp/__longjmp.c: Likewise.
13425         * setjmp/setjmp.c: Likewise.
13426         * signal/kill.c: Likewise.
13427         * signal/killpg.c: Likewise.
13428         * signal/raise.c: Likewise.
13429         * signal/sigaction.c: Likewise.
13430         * signal/sigaltstack.c: Likewise.
13431         * signal/sigblock.c: Likewise.
13432         * signal/sigignore.c: Likewise.
13433         * signal/sigintr.c: Likewise.
13434         * signal/signal.c: Likewise.
13435         * signal/sigpause.c: Likewise.
13436         * signal/sigpending.c: Likewise.
13437         * signal/sigqueue.c: Likewise.
13438         * signal/sigreturn.c: Likewise.
13439         * signal/sigset.c: Likewise.
13440         * signal/sigsetmask.c: Likewise.
13441         * signal/sigstack.c: Likewise.
13442         * signal/sigsuspend.c: Likewise.
13443         * signal/sigtimedwait.c: Likewise.
13444         * signal/sigvec.c: Likewise.
13445         * signal/sigwait.c: Likewise.
13446         * signal/sigwaitinfo.c: Likewise.
13447         * signal/sysv_signal.c: Likewise.
13448         * socket/accept.c: Likewise.
13449         * socket/accept4.c: Likewise.
13450         * socket/bind.c: Likewise.
13451         * socket/connect.c: Likewise.
13452         * socket/getpeername.c: Likewise.
13453         * socket/getsockname.c: Likewise.
13454         * socket/getsockopt.c: Likewise.
13455         * socket/isfdtype.c: Likewise.
13456         * socket/listen.c: Likewise.
13457         * socket/recv.c: Likewise.
13458         * socket/recvfrom.c: Likewise.
13459         * socket/recvmsg.c: Likewise.
13460         * socket/send.c: Likewise.
13461         * socket/sendmsg.c: Likewise.
13462         * socket/sendto.c: Likewise.
13463         * socket/setsockopt.c: Likewise.
13464         * socket/shutdown.c: Likewise.
13465         * socket/sockatmark.c: Likewise.
13466         * socket/socket.c: Likewise.
13467         * socket/socketpair.c: Likewise.
13468         * stdio-common/ctermid.c: Likewise.
13469         * stdio-common/cuserid.c: Likewise.
13470         * stdio-common/remove.c: Likewise.
13471         * stdio-common/rename.c: Likewise.
13472         * stdio-common/renameat.c: Likewise.
13473         * stdio-common/tempname.c: Likewise.
13474         * stdlib/getcontext.c: Likewise.
13475         * stdlib/makecontext.c: Likewise.
13476         * stdlib/setcontext.c: Likewise.
13477         * stdlib/swapcontext.c: Likewise.
13478         * stdlib/system.c: Likewise.
13479         * streams/fattach.c: Likewise.
13480         * streams/fdetach.c: Likewise.
13481         * streams/getmsg.c: Likewise.
13482         * streams/getpmsg.c: Likewise.
13483         * streams/putmsg.c: Likewise.
13484         * streams/putpmsg.c: Likewise.
13485         * sysdeps/unix/bsd/getpt.c: Likewise.
13486         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
13487         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
13488         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
13489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
13490         Likewise.
13491         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
13492         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
13493         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
13494         * sysvipc/msgctl.c: Likewise.
13495         * sysvipc/msgget.c: Likewise.
13496         * sysvipc/msgrcv.c: Likewise.
13497         * sysvipc/msgsnd.c: Likewise.
13498         * sysvipc/semctl.c: Likewise.
13499         * sysvipc/semget.c: Likewise.
13500         * sysvipc/semop.c: Likewise.
13501         * sysvipc/semtimedop.c: Likewise.
13502         * sysvipc/shmat.c: Likewise.
13503         * sysvipc/shmctl.c: Likewise.
13504         * sysvipc/shmdt.c: Likewise.
13505         * sysvipc/shmget.c: Likewise.
13506         * termios/tcdrain.c: Likewise.
13507         * termios/tcflow.c: Likewise.
13508         * termios/tcflush.c: Likewise.
13509         * termios/tcgetattr.c: Likewise.
13510         * termios/tcgetpgrp.c: Likewise.
13511         * termios/tcsendbrk.c: Likewise.
13512         * termios/tcsetattr.c: Likewise.
13513         * termios/tcsetpgrp.c: Likewise.
13514         * time/adjtime.c: Likewise.
13515         * time/clock.c: Likewise.
13516         * time/getitimer.c: Likewise.
13517         * time/gettimeofday.c: Likewise.
13518         * time/setitimer.c: Likewise.
13519         * time/settimeofday.c: Likewise.
13520         * time/stime.c: Likewise.
13521         * time/time.c: Likewise.
13522
13523 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
13524
13525         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
13526         /usr/old/bin.
13527
13528         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
13529         instead of spaces.
13530         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
13531
13532 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
13533
13534         [BZ #14796]
13535         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
13536         FE_TONEAREST before applying Dekker multiplication and Knuth
13537         addition.  Clear inexact exceptions and check for exact zero
13538         results afterwards.
13539         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13540         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
13541         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13542         * math/libm-test.inc (fma_test): Add more tests.
13543         (fma_test_towardzero): Likewise.
13544         (fma_test_downward): Likewise.
13545         (fma_test_upward): Likewise.
13546         * sysdeps/generic/math_private.h (default_libc_fesetround): New
13547         function.
13548         (libc_fesetround): New macro.
13549         (libc_fesetroundf): Likewise.
13550         (libc_fesetroundl): Likewise.
13551         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
13552         function.
13553         (libc_fesetround_387): Likewise.
13554         (libc_fesetroundf): New macro.
13555         (libc_fesetround): Likewise.
13556         (libc_fesetroundl): Likewise.
13557         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
13558         function.
13559         (libc_fesetroundf): New macro.
13560         (libc_fesetround): Likewise.
13561         (libc_fesetroundl): Likewise.
13562         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
13563         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
13564         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
13565         libm_hidden_ver.
13566         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
13567         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
13568         libm_hidden_def.
13569         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
13570         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
13571         libm_hidden_ver.
13572         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
13573         libm_hidden_def.
13574
13575         [BZ #3439]
13576         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
13577         integer constant usable in #if and use that to give value to enum
13578         constant.
13579         (FE_DIVBYZERO): Likewise.
13580         (FE_UNDERFLOW): Likewise.
13581         (FE_OVERFLOW): Likewise.
13582         (FE_INVALID): Likewise.
13583         (FE_INVALID_SNAN): Likewise.
13584         (FE_INVALID_ISI): Likewise.
13585         (FE_INVALID_IDI): Likewise.
13586         (FE_INVALID_ZDZ): Likewise.
13587         (FE_INVALID_IMZ): Likewise.
13588         (FE_INVALID_COMPARE): Likewise.
13589         (FE_INVALID_SOFTWARE): Likewise.
13590         (FE_INVALID_SQRT): Likewise.
13591         (FE_INVALID_INTEGER_CONVERSION): Likewise.
13592         (FE_TONEAREST): Likewise.
13593         (FE_TOWARDZERO): Likewise.
13594         (FE_UPWARD): Likewise.
13595         (FE_DOWNWARD): Likewise.
13596         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
13597         (FE_DIVBYZERO): Likewise.
13598         (FE_OVERFLOW): Likewise.
13599         (FE_UNDERFLOW): Likewise.
13600         (FE_INEXACT): Likewise.
13601         (FE_TONEAREST): Likewise.
13602         (FE_DOWNWARD): Likewise.
13603         (FE_UPWARD): Likewise.
13604         (FE_TOWARDZERO): Likewise.
13605         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
13606         (FE_UNDERFLOW): Likewise.
13607         (FE_OVERFLOW): Likewise.
13608         (FE_DIVBYZERO): Likewise.
13609         (FE_INVALID): Likewise.
13610         (FE_TONEAREST): Likewise.
13611         (FE_TOWARDZERO): Likewise.
13612         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
13613         (FE_OVERFLOW): Likewise.
13614         (FE_UNDERFLOW): Likewise.
13615         (FE_DIVBYZERO): Likewise.
13616         (FE_INEXACT): Likewise.
13617         (FE_TONEAREST): Likewise.
13618         (FE_TOWARDZERO): Likewise.
13619         (FE_UPWARD): Likewise.
13620         (FE_DOWNWARD): Likewise.
13621         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
13622         (FE_DIVBYZERO): Likewise.
13623         (FE_OVERFLOW): Likewise.
13624         (FE_UNDERFLOW): Likewise.
13625         (FE_INEXACT): Likewise.
13626         (FE_TONEAREST): Likewise.
13627         (FE_DOWNWARD): Likewise.
13628         (FE_UPWARD): Likewise.
13629         (FE_TOWARDZERO): Likewise.
13630
13631 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
13632
13633         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
13634
13635 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
13636
13637         * scripts/cross-test-ssh.sh (command): Use newlines to separate
13638         commands.  Quote $PWD.
13639         (blacklist_exports): Don't use remove_newlines.  Replace "declare
13640         -x" by "export".
13641         (remove_newlines): Remove.
13642
13643 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
13644
13645         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
13646         * stdlib/stdlib.h (atof): Moved to ...
13647         * include/bits/stdlib-float.h: Here.  New file.
13648         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
13649         * stdlib/bits/stdlib-float.h: New file.
13650         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
13651         -mno-sse -mno-mmx.
13652         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
13653         <xmmintrin.h>.
13654
13655 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
13656
13657         * conform/conformtest.pl (@headers): Add fenv.h.
13658         * conform/data/fenv.h-data: New file.
13659         * include/fenv.h [_ISOMAC]: Disable all contents of file except
13660         include of <math/fenv.h>.
13661
13662         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
13663         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
13664         && !UNIX98].  Enables tests for XOPEN2K8.
13665         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
13666         POSIX2008]: Likewise.
13667
13668         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
13669         (struct rusage): Do not expect type or its members.
13670
13671         [BZ #3439]
13672         * math/math.h (FP_NAN): Define macro to integer constant usable in
13673         #if and use that to give value to enum constant.
13674         (FP_INFINITE): Likewise.
13675         (FP_ZERO): Likewise.
13676         (FP_SUBNORMAL): Likewise.
13677         (FP_NORMAL): Likewise.
13678
13679 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
13680
13681         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
13682         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
13683         arguments.
13684
13685 2012-11-02  Roland McGrath  <roland@hack.frob.com>
13686
13687         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
13688         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
13689         autoconf-time if not.
13690         * configure.in: Remove AC_PREREQ.
13691
13692 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13693
13694         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
13695         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
13696         of the internal implementation.
13697
13698 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
13699
13700         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
13701         except include of <misc/sys/syslog.h>.
13702
13703 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13704
13705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
13706         function returns with a NULL context exit with zero.
13707
13708 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13709
13710         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
13711
13712 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
13713
13714         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
13715         (run_program_cmd): This.
13716         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
13717         (tst_langinfo): New variable.  Use it.
13718
13719 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
13720
13721         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
13722         floating point opcodes.
13723
13724 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
13725
13726         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
13727         variable.
13728
13729         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
13730
13731         * sysdeps/mach/hurd/powerpc: Remove directory.
13732         * sysdeps/mach/powerpc: Likewise.
13733
13734 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13735
13736         * scripts/check-local-headers.sh: Ignore c++ headers.
13737
13738 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
13739
13740         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
13741         __libc_cleanup_region_start argument.
13742
13743 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
13744
13745         [BZ #14784]
13746         [BZ #14785]
13747         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
13748         x * y using scaling, not as x * y + z.
13749         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13750         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13751         * math/libm-test.inc (fma_test): Add more tests.
13752         (fma_test_towardzero): Likewise.
13753         (fma_test_downward): Likewise.
13754         (fma_test_upward): Likewise.
13755
13756 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
13757
13758         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
13759
13760 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
13761
13762         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
13763         New variable.
13764
13765 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
13766
13767         * rt/tst-shm.c (worker): Correct checking for mmap failure.
13768
13769 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
13770
13771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13772         Fix sort order.
13773         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13774         Likewise.
13775
13776 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13777
13778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13779         Fix the order of the list for glibc 2.17.
13780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13781         Likewise.
13782
13783 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
13784
13785         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13786
13787 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
13788
13789         [BZ #14610]
13790         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
13791         for low part of x being zero before using __atanl (y).
13792         * math/libm-test.inc (atan2_test): Add another test.
13793
13794         * manual/install.texi (Configuring and compiling): Document
13795         general use of test-wrapper and test-wrapper-env.
13796         * INSTALL: Regenerated.
13797
13798         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
13799         (__fma): Do not extract and scale down low bits on after-rounding
13800         systems when result rounded to normal precision would have normal
13801         exponent.
13802         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
13803         (__fmal): Do not extract and scale down low bits on after-rounding
13804         systems when result rounded to normal precision would have normal
13805         exponent.
13806         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
13807         (__fmal): Do not extract and scale down low bits on after-rounding
13808         systems when result rounded to normal precision would have normal
13809         exponent.
13810         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
13811         macro.
13812         (fma_test): Add more tests.
13813         (fma_test_towardzero): Likewise.
13814         (fma_test_downward): Likewise.
13815         (fma_test_upward): Likewise.
13816
13817 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
13818
13819         * sysdeps/i386/tininess.h: Renamed to ...
13820         * sysdeps/x86/tininess.h: This.
13821         * sysdeps/x86_64/tininess.h: Removed.
13822
13823 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
13824
13825         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
13826         input.  Use $(build-program-cmd).
13827         ($(objpfx)tst-array1-static.out): Likewise.
13828         ($(objpfx)tst-array2.out): Likewise.
13829         ($(objpfx)tst-array3.out): Likewise.
13830         ($(objpfx)tst-array4.out): Likewise.
13831         ($(objpfx)tst-array5.out): Likewise.
13832         ($(objpfx)tst-array5-static.out): Likewise.
13833
13834 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
13835
13836         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
13837         if defined.
13838
13839         * nss/nsswitch.h (nss_interface_function): Provide new
13840         macro for use with NSS functions.
13841         * grp/initgroups.c: Use new macro.
13842         * nss/getXXbyYY.c: Likewise.
13843         * nss/getXXbyYY_r.c: Likewise.
13844         * nss/getXXent.c: Likewise.
13845         * nss/getXXent_r.c: Likewise.
13846         * sysdeps/posix/getaddrinfo.c: Likewise.
13847
13848 2012-10-30  Andreas Jaeger  <aj@suse.de>
13849
13850         * po/ru.po: Update Russion translation from translation project.
13851
13852 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
13853
13854         [BZ #14152]
13855         [BZ #14783]
13856         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
13857         result and shift together with sticky bit instead of replicating
13858         round-to-nearest rounding.
13859         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13860         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13861         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
13862         missing underflow exceptions.
13863         (fma_test_towardzero): Add more tests.
13864         (fma_test_downward): Likewise.
13865         (fma_test_upward): Likewise.
13866
13867         [BZ #14047]
13868         * sysdeps/generic/tininess.h: New file.
13869         * sysdeps/i386/tininess.h: Likewise.
13870         * sysdeps/sh/tininess.h: Likewise.
13871         * sysdeps/x86_64/tininess.h: Likewise.
13872         * stdlib/tst-strtod-underflow.c: Likewise.
13873         * stdlib/tst-tininess.c: Likewise.
13874         * stdlib/strtod_l.c: Include <tininess.h>.
13875         (round_and_return): Do not set errno for exact underflow cases.
13876         Force an underflow exception when setting errno for underflow.
13877         Determine underflow based on rounding to normal precision if
13878         TININESS_AFTER_ROUNDING.
13879         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
13880         ERANGE for exact underflow cases.
13881         * stdlib/Makefile (tests): Add tst-tininess and
13882         tst-strtod-underflow.
13883         ($(objpfx)tst-tininess): Use $(link-libm).
13884         ($(objpfx)tst-strtod-underflow): Likewise.
13885
13886 2012-10-30  Andreas Jaeger  <aj@suse.de>
13887
13888         [BZ#14767]
13889         * elf/Makefile (tests): Remove conditional for have-initfini-array
13890         since this is now always required and the variable does not exist
13891         anymore.
13892         (tests-static): Likewise.
13893         (modules-names): Likewise.
13894
13895         * po/eo.po: Add Esperanto translation from translation project.
13896
13897         * elf/tst-array1.c (fini_array): Make writeable so that it can be
13898         merged with constructor/destructor.
13899         (init_array): Likewise.
13900         * elf/tst-array2dep.c (fini_array): Likewise.
13901         (init_array): Likewise.
13902
13903 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
13904
13905         * manual/message.texi: Delete @cartouche tags.
13906
13907 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
13908
13909         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
13910         EOPNOTSUPP.
13911         * sysdeps/mach/hurd/fsync.c: Likewise.
13912
13913         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
13914         [_POSIX_REALTIME_SIGNALS]: Change condition to
13915         [_POSIX_REALTIME_SIGNALS > 0].
13916
13917 2012-10-27  Andreas Jaeger  <aj@suse.de>
13918
13919         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
13920         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
13921         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
13922         [__WORDSIZE != 64]: Likewise.
13923
13924 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
13925
13926         *  iconvdata/tst-table.sh: Remove ${SHELL}.
13927         *  iconvdata/tst-tables.sh: Likewise.
13928
13929 2012-10-25  David S. Miller  <davem@davemloft.net>
13930
13931         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13932         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
13933         of strtoull.
13934
13935         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
13936         ifunc-impl-list.c
13937         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
13938         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
13939         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
13940         file.
13941
13942 2012-10-25  Roland McGrath  <roland@hack.frob.com>
13943
13944         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
13945         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
13946         __getdirentries.
13947
13948 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
13949             Jim Blandy  <jimb@codesourcery.com>
13950
13951         * scripts/cross-test-ssh.sh: New file.
13952         * manual/install.texi (Configuring and compiling): Document use of
13953         cross-test-ssh.sh.
13954         * INSTALL: Regenerated.
13955
13956 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
13957
13958         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
13959         EOPNOTSUPP.
13960
13961 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
13962
13963         * Makeconfig (run-program-prefix): Fix comment.
13964
13965 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
13966             Jim Blandy  <jimb@codesourcery.com>
13967
13968         * Makeconfig (test-wrapper): New variable,
13969         (test-wrapper-env): Likewise.
13970         [$(cross-compiling) = yes && $(test-wrapper) != ""]
13971         (run-built-tests): Define to yes.
13972         (run-program-prefix): Use $(test-wrapper).
13973         (built-program-cmd): Likewise.
13974         * Rules (make-test-out): Use $(test-wrapper-env) and
13975         $(host-built-program-cmd).
13976         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
13977         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
13978         tst-pathopt.sh.
13979         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
13980         $(test-wrapper-env) to tst-rtld-load-self.sh.
13981         ($(objpfx)order2.out): Use $(test-wrapper).
13982         ($(objpfx)tst-initorder.out): Likewise.
13983         ($(objpfx)tst-initorder2.out): Likewise.
13984         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
13985         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
13986         (test_wrapper_env): New variable.  Use it to run ld.so.
13987         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
13988         Use it to run ld.so.
13989         (test_wrapper_env): Likewise.
13990         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
13991         $(test-wrapper) to run-iconv-test.sh.
13992         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
13993         (ICONV): Use $test_wrapper.
13994         * posix/Makefile ($(objpfx)globtest.out): Pass
13995         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
13996         globtest.sh, not $(run-program-prefix).
13997         * posix/globtest.sh (run_via_rtld_prefix): New variable.
13998         (test_wrapper): Likewise.
13999         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
14000         set together with run_via_rtld_prefix.
14001         (run_program_prefix): Define in terms of test_wrapper and
14002         run_via_rtld_prefix.
14003
14004 2012-10-24  Roland McGrath  <roland@hack.frob.com>
14005
14006         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
14007         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
14008         Targets removed.
14009
14010         [BZ #14743]
14011         * include/time.h: Remove librt_hidden_proto (clock_gettime).
14012         Declare __clock_getres, __clock_gettime, __clock_settime,
14013         __clock_nanosleep, and __clock_getcpuclockid.
14014         * rt/clock_gettime.c: Define __clock_gettime as an alias.
14015         Remove librt_hidden_def (clock_gettime).
14016         * sysdeps/unix/clock_gettime.c: Likewise.
14017         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
14018         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
14019         * rt/clock_getres.c: Define __clock_getres as an alias.
14020         * sysdeps/posix/clock_getres.c: Likewise.
14021         * rt/clock_settime.c: Define __clock_settime as an alias.
14022         * sysdeps/unix/clock_settime.c: Likewise.
14023         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
14024         * sysdeps/unix/clock_nanosleep.c: Likewise.
14025         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
14026         * rt/clock-compat.c: New file.
14027         * rt/Makefile (librt-routines): Add clock-compat and move
14028         $(clock-routines) to ...
14029         (routines): ... here, new variable.
14030         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
14031         Don't add get_clockfreq here.
14032         * rt/Versions (libc: GLIBC_2.17): New version set.
14033         Add clock_* symbols here.
14034         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
14035         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
14036         (GLIBC_2.17): Add clock_* symbols.
14037         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
14038         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
14039         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
14040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
14041         Likewise.
14042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
14043         Likewise.
14044         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
14045         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
14046         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
14047         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
14048         * NEWS: Mention the move.
14049
14050         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
14051         Use __open, __read, __close rather than their public counterparts.
14052         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14053         (__get_clockfreq_via_cpuinfo): Likewise.
14054         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
14055         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
14056
14057         * config.h.in (HAVE_IFUNC): New #undef.
14058         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
14059         was successful.
14060         * configure: Regenerated.
14061
14062 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
14063
14064         * configure.in: Move READELF check to start of file.
14065         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
14066         libc_cv_asm_gnu_indirect_function in the process.
14067         * configure: Regenerated.
14068
14069 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
14070
14071         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
14072         send the output to /dev/null.
14073         (libc_cv_cc_with_libunwind): Likewise.
14074         (libc_cv_as_noexecstack): Likewise.
14075         * configure: Regenerate.
14076
14077 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
14078
14079         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
14080
14081         * posix/globtest.sh (TMPDIR): Do not set.
14082         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
14083         (testout): Likewise.
14084
14085 2012-10-24  Andreas Jaeger  <aj@suse.de>
14086
14087         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
14088         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
14089         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
14090         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
14091         posix_fadvise64, posix_fallocate64.
14092
14093         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
14094         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
14095         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
14096         Likewise.
14097         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
14098         Likewise.
14099         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
14100
14101         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
14102         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
14103         <bits/fcntl-linux.h>.
14104         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
14105
14106         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
14107         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
14108         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
14109         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
14110         [__WORDSIZE != 64]: Likewise.
14111
14112 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
14113
14114         * Makeconfig (run-built-tests): New variable.
14115         * Rules [$(cross-compiling) = yes]: Change condition to
14116         [$(run-built-tests) = no].
14117         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
14118         to [$(run-built-tests) = yes].
14119         * elf/Makefile [$(cross-compiling) = no]: Likewise
14120         * grp/Makefile [$(cross-compiling) = no]: Likewise.
14121         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
14122         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
14123         * intl/Makefile [$(cross-compiling) = no]: Likewise.
14124         * io/Makefile [$(cross-compiling) = no]: Likewise.
14125         * libio/Makefile [$(cross-compiling) = no]: Likewise.
14126         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
14127         * misc/Makefile [$(cross-compiling) = no]: Likewise.
14128         * posix/Makefile [$(cross-compiling) = no]: Likewise.
14129         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
14130         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
14131         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
14132         * string/Makefile [$(cross-compiling) = no]: Likewise.
14133
14134         * posix/Makefile ($(objpfx)globtest.out): Pass
14135         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
14136         $(rtld-installed-name).
14137         * posix/globtest.sh (elf_objpfx): Remove variable.
14138         (rtld_installed_name): Likewise.
14139         (library_path): Likewise.
14140         (run_program_prefix): New variable.  Use for running globtest
14141         binary.
14142
14143 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
14144             Joseph Myers  <joseph@codesourcery.com>
14145
14146         * Makeconfig (host-built-program-cmd): New variable.
14147         * elf/Makefile (tst-stackguard1-ARGS): Use
14148         $(host-built-program-cmd).
14149         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
14150         (tst-spawn-ARGS): Likewise.
14151         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
14152
14153 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
14154             Jim Blandy  <jimb@codesourcery.com>
14155
14156         * Makeconfig (run-via-rtld-prefix): New variable.
14157         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
14158         (built-program-cmd): Likewise.
14159
14160 2012-10-22  Andreas Jaeger  <aj@suse.de>
14161
14162         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
14163         __O_RSYNC if it exists, otherwise to O_SYNC.
14164
14165 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
14166             Joseph Myers  <joseph@codesourcery.com>
14167
14168         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
14169         /dev/null.
14170         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
14171         from /dev/null
14172         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
14173         /dev/null.
14174
14175 2012-10-22  Andreas Jaeger  <aj@suse.de>
14176
14177         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
14178         Define always.
14179         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
14180
14181         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14182         bits/fcntl-linux.h.
14183
14184         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
14185         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
14186
14187         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
14188         to __O_LARGEFILE.
14189         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
14190         to __O_LARGEFILE.
14191
14192 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
14193             Joseph Myers  <joseph@codesourcery.com>
14194
14195         * config.make.in (NM): New variable.
14196
14197 2012-10-21  Andreas Jaeger  <aj@suse.de>
14198
14199         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
14200         definitions and declarations that are provided by
14201         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
14202
14203 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
14204
14205         [BZ #14683]
14206         * elf/Makefile (tests-static): Add tst-leaks1-static.
14207         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
14208         ($(objpfx)tst-leaks1-static): New rule.
14209         ($(objpfx)tst-leaks1-static-mem): Likewise.
14210         (tst-leaks1-static-ENV): New macro.
14211         * elf/dl-open.c (dl_open_worker): Check the main application
14212         only if SHARED is defined.
14213         * elf/tst-leaks1-static.c: New file.
14214
14215 2012-10-20  Andreas Jaeger  <aj@suse.de>
14216
14217         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
14218         generic values for Linux.
14219         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
14220         and declarations that are provided by <bits/fcntl-linux.h> and
14221         include <bits/fcntl-linux.h>.
14222         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14223         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14224
14225 2012-10-20  Roland McGrath  <roland@hack.frob.com>
14226
14227         * io/fcntl.h: Move include of <bits/types.h> to the top and
14228         include it unconditionally.
14229
14230 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
14231
14232         * wcsmbs/Makefile (tests-ifunc): New variable.
14233         (tests): Add $(tests-ifunc).
14234         * wcsmbs/test-wcschr-ifunc.c: New file.
14235         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
14236         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
14237         * wcsmbs/test-wcslen-ifunc.c: Likewise.
14238         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
14239         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
14240
14241         * string/Makefile (tests-ifunc): New variable.
14242         (tests): Add $(tests-ifunc).
14243         * string/test-memccpy.c (TEST_NAME): New macro.
14244         * string/test-memchr.c (TEST_NAME): Likewise.
14245         * string/test-memcmp.c (TEST_NAME): Likewise.
14246         * string/test-memcpy.c (TEST_NAME): Likewise.
14247         * string/test-memmem.c (TEST_NAME): Likewise.
14248         * string/test-memmove.c (TEST_NAME): Likewise.
14249         * string/test-memset.c (TEST_NAME): Likewise.
14250         * string/test-rawmemchr.c (TEST_NAME): Likewise.
14251         * string/test-stpcpy.c (TEST_NAME): Likewise.
14252         * string/test-stpncpy.c (TEST_NAME): Likewise.
14253         * string/test-strcasecmp.c (TEST_NAME): Likewise.
14254         * string/test-strcasestr.c (TEST_NAME): Likewise.
14255         * string/test-strcat.c (TEST_NAME): Likewise.
14256         * string/test-strchr.c (TEST_NAME): Likewise.
14257         * string/test-strcmp.c(TEST_NAME): Likewise.
14258         * string/test-strcpy.c (TEST_NAME): Likewise.
14259         * string/test-strcspn.c (TEST_NAME): Likewise.
14260         * string/test-strlen.c (TEST_NAME): Likewise.
14261         * string/test-strncasecmp.c (TEST_NAME): Likewise.
14262         * string/test-strncmp.c (TEST_NAME): Likewise.
14263         * string/test-strncpy.c (TEST_NAME): Likewise.
14264         * string/test-strnlen.c (TEST_NAME): Likewise.
14265         * string/test-strpbrk.c (TEST_NAME): Likewise.
14266         * string/test-strrchr.c (TEST_NAME): Likewise.
14267         * string/test-strspn.c (TEST_NAME): Likewise.
14268         * string/test-strstr.c (TEST_NAME): Likewise.
14269         * string/test-bcopy-ifunc.c: New file.
14270         * string/test-bzero-ifunc.c: Likewise.
14271         * string/test-memccpy-ifunc.c: Likewise.
14272         * string/test-memchr-ifunc.c: Likewise.
14273         * string/test-memcmp-ifunc.c: Likewise.
14274         * string/test-memcpy-ifunc.c: Likewise.
14275         * string/test-memmem-ifunc.c: Likewise.
14276         * string/test-memmove-ifunc.c: Likewise.
14277         * string/test-mempcpy-ifunc.c: Likewise.
14278         * string/test-memset-ifunc.c: Likewise.
14279         * string/test-rawmemchr-ifunc.c: Likewise.
14280         * string/test-stpcpy-ifunc.c: Likewise.
14281         * string/test-stpncpy-ifunc.c: Likewise.
14282         * string/test-strcasecmp-ifunc.c: Likewise.
14283         * string/test-strcasestr-ifunc.c: Likewise.
14284         * string/test-strcat-ifunc.c: Likewise.
14285         * string/test-strchr-ifunc.c: Likewise.
14286         * string/test-strchrnul-ifunc.c: Likewise.
14287         * string/test-strcmp-ifunc.c: Likewise.
14288         * string/test-strcpy-ifunc.c: Likewise.
14289         * string/test-strcspn-ifunc.c: Likewise.
14290         * string/test-strlen-ifunc.c: Likewise.
14291         * string/test-strncasecmp-ifunc.c: Likewise.
14292         * string/test-strncat-ifunc.c: Likewise.
14293         * string/test-strncmp-ifunc.c: Likewise.
14294         * string/test-strncpy-ifunc.c: Likewise.
14295         * string/test-strnlen-ifunc.c: Likewise.
14296         * string/test-strpbrk-ifunc.c: Likewise.
14297         * string/test-strrchr-ifunc.c: Likewise.
14298         * string/test-strspn-ifunc.c: Likewise.
14299         * string/test-strstr-ifunc.c: Likewise.
14300
14301         * debug/Makefile (tests-ifunc): New variable.
14302         (tests): Add $(tests-ifunc).
14303         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
14304         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
14305         * debug/test-stpcpy_chk-ifunc.c: New file.
14306         * debug/test-strcpy_chk-ifunc.c: Likewise.
14307
14308 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
14309
14310         [BZ #13601]
14311         * elf/dl-load.c (open_verify): Retry read if the entire ELF
14312         header is not read in.
14313
14314 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
14315
14316         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
14317         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
14318         directly.  Pass built executable to script as
14319         $(built-program-cmd).
14320         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
14321         $testprogram without using LD_LIBRARY_PATH and $ldso.
14322
14323         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
14324         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
14325         $(rtld-installed-name).
14326         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
14327         (rtld_installed_name): Likewise.
14328         (library_path): Likewise.
14329         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
14330         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
14331         $(run-program-prefix) to tst-tables.sh.
14332         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
14333         it to run tst-table-from and tst-table-to.
14334         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
14335         Pass it to tst-table.sh.
14336         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
14337         $(run-program-prefix) to tst-gettext.sh.
14338         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
14339         tst-translit.sh.
14340         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
14341         tst-gettext2.sh.
14342         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
14343         to run tst-gettext.
14344         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
14345         to run tst-gettext2.
14346         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
14347         to run tst-translit.
14348         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
14349         $(run-program-prefix) to tst-mtrace.sh.
14350         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
14351         to run tst-mtrace.
14352         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
14353         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
14354         $(rtld-installed-name).
14355         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
14356         (rtld_installed_name): Likewise.
14357         (run_program_prefix): New variable.  Use it to run wordexp-test.
14358
14359         * Makeconfig (ARCH): Remove all definitions.
14360         (machine): Likewise.
14361         [ARCH]: Remove conditional code.
14362         [!objdir]: Give error.
14363         [!objdir] (objpfx): Remove.
14364         [!objdir] (common-objpfx): Likewise.
14365         [!objdir] (common-objdir): Likewise.
14366         * configure.in (config_makefile): Remove.  Hardcode Makefile in
14367         AC_CONFIG_FILES call.
14368         * configure: Regenerated.
14369
14370         [BZ #13888]
14371         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
14372         or TMPDIR.
14373         (testout): Likewise.
14374
14375         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
14376         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
14377         $(rtld-installed-name).
14378         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
14379         (rtld_installed_name): Likwise.
14380         (runit): Remove function.
14381         (run_getconf): New variable,  Use it for running getconf binary.
14382
14383 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
14384
14385         [BZ #14716]
14386         * string/test-memmem.c (check_result): New function.
14387         (do_one_test): Use it.
14388         (check1): New function.
14389         (test_main): Use it.
14390
14391 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
14392
14393         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
14394
14395 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
14396
14397         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
14398         (_G_LSEEK64): Likewise.
14399         (_G_MMAP64): Likewise.
14400         (_G_FSTAT64): Likewise.
14401         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
14402         (_G_LSEEK64): Likewise.
14403         (_G_MMAP64): Likewise.
14404         (_G_FSTAT64): Likewise.
14405         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
14406         unconditional.  Call __mmap64 directly.
14407         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
14408         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
14409         __lseek64 directly.
14410         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
14411         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
14412         __mmap64 directly.
14413         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
14414         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
14415         __lseek64 directly.
14416         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
14417         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
14418         __lseek64 directly.
14419         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
14420         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
14421         __lseek64 directly.
14422         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
14423         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
14424         __fxstat64 directly.
14425         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
14426         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
14427         unconditional.
14428         (freopen64) [!_G_OPEN64]: Remove conditional code.
14429         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
14430         unconditional.
14431         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
14432         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
14433         unconditional.
14434         (ftello64) [!_G_LSEEK64]: Remove conditional code.
14435         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
14436         unconditional.
14437         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
14438         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
14439         unconditional.
14440         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
14441         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
14442         unconditional.
14443         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
14444         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
14445         unconditional.
14446         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
14447         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
14448         unconditional.
14449         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
14450
14451 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14452
14453         [BZ #12140]
14454         * manual/memory.texi (Malloc Tunable Parameters): Add note
14455         about free list pointers overwriting some perturb bytes.
14456         Wording suggested by Roland McGrath.
14457
14458 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
14459
14460         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
14461         (lgamma_test): Likewise.
14462         (tgamma_test): Likewise.
14463
14464 2012-10-16  Florian Weimer  <fweimer@redhat.com>
14465
14466         [BZ #14700]
14467         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
14468         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
14469
14470 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
14471
14472         * NEWS: Mention BZ #14716.
14473         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
14474         when removing AVAILABLE1_USES_J macro.
14475
14476 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
14477
14478         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
14479         (__bswap_64): __uint64_t for unsigned 64-bit int.
14480
14481 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
14482
14483         * include/string.h (memmem): Declare libc hidden alias.
14484         * string/memmem.c (memmem): Define libc hidden alias.
14485         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
14486         __read, __close instead of open, read, close.
14487
14488 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
14489
14490         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
14491         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
14492         global and hidden.
14493         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
14494         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
14495         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
14496         Likewise.
14497         (__rawmemchr_sse2): Likewise.
14498         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
14499         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
14500         (__strchr_sse2): Likewise.
14501         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
14502         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
14503         (__strcasecmp_sse2): Likewise.
14504         (__strncasecmp_sse2): Likewise.
14505         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
14506         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
14507         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
14508         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
14509         (__strrchr_sse2): Likewise.
14510         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
14511         ifunc-impl-list.c.
14512         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
14513         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
14514         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
14515         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14516         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
14517         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
14518         * sysdeps/x86_64/multiarch/memset.S: Likewise.
14519         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
14520         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
14521         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
14522         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
14523         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
14524         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
14525         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
14526         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
14527         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
14528         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
14529         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
14530         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
14531         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
14532         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
14533         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
14534         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
14535         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
14536         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
14537         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14538         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
14539         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
14540         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
14541         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
14542
14543         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
14544         global and hidden.
14545         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
14546         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
14547         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
14548         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
14549         Likewise.
14550         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
14551         Likewise.
14552         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
14553         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
14554         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
14555         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
14556         ifunc-impl-list.c.
14557         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14558         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14559         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14560         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14561         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14562         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14563         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14564         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14565         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14566         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14567         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14568         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14569         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14570         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
14571         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
14572         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14573         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
14574         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
14575         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14576         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14577         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14578         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14579         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14580         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14581         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14582         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
14583         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
14584         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
14585         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
14586         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14587         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
14588         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14589         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14590         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
14591         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14592         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14593         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14594         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14595         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14596         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14597         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
14598
14599         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
14600         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
14601         * include/ifunc-impl-list.h: New file.
14602         * misc/ifunc-impl-list.c: Likewise.
14603         * misc/Makefile (routines): Add ifunc-impl-list.
14604         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
14605         * string/test-string.h: Include <ifunc-impl-list.h>.
14606         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
14607         impl_array): New variables.
14608         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
14609         are defined.
14610         (test_init): Call __libc_ifunc_impl_list to initialize
14611         func_list if TEST_IFUNC and TEST_NAME are defined.
14612
14613         * string/Makefile (strop-tests): Add bcopy and bzero.
14614         * string/test-bcopy.c: New file.
14615         * string/test-bzero.c: Likewise.
14616         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
14617         defined.
14618         * string/test-memset.c: Support bzero test if TEST_BZERO is
14619         defined.
14620         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
14621         __libc_memmove.
14622         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
14623         __libc_memset.
14624         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
14625         of memset.
14626
14627 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
14628
14629         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
14630         * configure: Regenerated.
14631
14632         * Makeconfig (+link-static-before-libc): Don't include
14633         $(link-static-libc).
14634
14635         * libio/libio.h (_IO_pos_t): Remove.
14636
14637 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
14638
14639         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
14640         McGrath.
14641
14642 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
14643
14644         * crypt/crypt-entry.c: Include fips-private.h.
14645         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
14646         * crypt/md5c-test.c (main): Tolerate disabled MD5.
14647         * sysdeps/unix/sysv/linux/fips-private.h: New file.
14648         * sysdeps/generic/fips-private.h: New file, dummy fallback.
14649
14650 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
14651
14652         * crypt/crypt-private.h: Include stdbool.h.
14653         (_ufc_setup_salt_r): Return bool.
14654         * crypt/crypt-entry.c: Include errno.h.
14655         (__crypt_r): Return NULL with EINVAL for bad salt.
14656         * crypt/crypt_util.c (bad_for_salt): New.
14657         (_ufc_setup_salt_r): Check that salt is long enough and within
14658         the specified alphabet.
14659         * crypt/badsalttest.c: New file.
14660         * crypt/Makefile (tests): Add it.
14661         ($(objpfx)badsalttest): New.
14662
14663 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
14664
14665         * NEWS: Add entry for BZ #14602.
14666
14667 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
14668
14669         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
14670         type-generic.
14671         * math/libm-test.inc: Update comment listing what functions and
14672         macros are tested.
14673         (isgreater_test): New function.
14674         (isgreaterequal_test): Likewise.
14675         (isless_test): Likewise.
14676         (islessequal_test): Likewise.
14677         (islessgreater_test): Likewise.
14678         (isunordered_test): Likewise.
14679         (main): Call the new functions.
14680
14681 2012-10-09  Roland McGrath  <roland@hack.frob.com>
14682
14683         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
14684         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
14685         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
14686         * sysdeps/i386/configure: Regenerated.
14687         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
14688         * sysdeps/mach/configure: Regenerated.
14689         * sysdeps/mach/hurd/configure: Regenerated.
14690         * sysdeps/powerpc/configure: Regenerated.
14691         * sysdeps/powerpc/powerpc32/configure: Regenerated.
14692         * sysdeps/powerpc/powerpc64/configure: Regenerated.
14693         * sysdeps/s390/s390-32/configure: Regenerated.
14694         * sysdeps/s390/s390-64/configure: Regenerated.
14695         * sysdeps/sh/configure: Regenerated.
14696         * sysdeps/sparc/configure: Regenerated.
14697         * sysdeps/unix/sysv/linux/configure: Regenerated.
14698         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
14699         * sysdeps/x86_64/configure: Regenerated.
14700
14701         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
14702         defined.  Don't check if MAP is NULL.
14703
14704 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
14705
14706         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
14707         (_G_stat64): Likewise.
14708         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
14709         (_G_stat64): Likewise.
14710         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
14711         instead of struct _G_stat64.
14712         * libio/fileops.c (mmap_remap_check): Likewise.
14713         (decide_maybe_mmap): Likewise.
14714         (_IO_new_file_seekoff): Likewise.
14715         (_IO_file_stat): Likewise.
14716         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
14717         _G_off64_t.
14718         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
14719         instead of struct _G_stat64.
14720         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
14721
14722 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
14723
14724         [BZ #14602]
14725         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
14726         Replace with ...
14727         (CHECK_EOL): New macro.
14728         (two_way_short_needle): Check beginning of haystack for EOL.  Use
14729         CHECK_EOL.
14730         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
14731         Replace with CHECK_EOL.
14732         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
14733         Replace with CHECK_EOL.
14734
14735 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
14736
14737         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
14738         type-generic.
14739         * math/libm-test.inc: Update comment listing what functions and
14740         macros are tested.
14741         (finite_test): New function.
14742         (isinf_test): Likewise.
14743         (isnan_test): Likewise.
14744         (fpclassify_test): Test subnormal input.
14745         (isfinite_test): Likewise.
14746         (isnormal_test): Likewise.
14747         (main): Call the new functions.
14748
14749 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
14750
14751         [BZ #14660]
14752         * Makerules (%.dynsym): Force C locale when running
14753         $(OBJDUMP) --dynamic-syms.
14754
14755 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
14756
14757         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
14758         <stdint.h>.
14759
14760 2012-10-06  David S. Miller  <davem@davemloft.net>
14761
14762         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
14763         upper 32-bits of the length value in %o2 since we use branch-on-register
14764         tests which consider the entire 64-bit register.
14765
14766 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
14767
14768         * string/test-strstr.c (check2): Add a test for page boundary.
14769
14770 2012-10-05  David S. Miller  <davem@davemloft.net>
14771
14772         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
14773         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
14774         file.
14775         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
14776         sysdep_routines.
14777         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
14778         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
14779         and bzero when HWCAP_SPARC_CRYPTO is present.
14780
14781 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
14782
14783         [BZ #14602]
14784         * string/test-strstr.c (check2): New function.
14785         (test_main): Call check2.
14786
14787         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
14788         and bug-strchr1.
14789         * string/bug-strcasestr1.c (do_test): Moved to ...
14790         * string/test-strcasestr.c (check1): Here.  New function.
14791         (do_one_test): Break out result checking code into ...
14792         (check_result): This.  New function.
14793         (do_one_test): Call check_result.
14794         (test_main): Call check1.
14795         * string/bug-strchr1.c (do_test): Moved to ...
14796         * string/test-strchr.c (check1): Here.  New function.
14797         (do_one_test): Break out result checking code into ...
14798         (check_result): This.  New function.
14799         (do_one_test): Call check_result.
14800         (test_main): Call check1.
14801         * string/bug-strstr1.c (main): Moved to ...
14802         * string/test-strstr.c (check1): Here.  New function.
14803         (do_one_test): Break out result checking code into ...
14804         (check_result): This.  New function.
14805         (do_one_test): Call check_result.
14806         (test_main): Call check1.
14807         * string/bug-strcasestr1.c: Removed.
14808         * string/bug-strchr1.c: Likewise.
14809         * string/bug-strstr1.c: Likewise.
14810
14811         * elf/Makefile (dl-routines): Add hwcaps.
14812         * elf/dl-support.c (_dl_important_hwcaps): Removed.
14813         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
14814         (_dl_important_hwcaps): Moved to ...
14815         * elf/dl-hwcaps.c: Here.  New file.
14816         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
14817
14818         [BZ #14557]
14819         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
14820         if IS_IN_rtld isn't defined.
14821
14822         * elf/dl-support.c (_dl_sysinfo_map): New.
14823         Include "get-dynamic-info.h" and "setup-vdso.h".
14824         (_dl_non_dynamic_init): Call setup_vdso.
14825         * elf/dynamic-link.h: Don't include <assert.h>.
14826         (elf_get_dynamic_info): Moved to ...
14827         * elf/get-dynamic-info.h: Here.  New file.
14828         * elf/dynamic-link.h: Include "get-dynamic-info.h".
14829         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
14830         * elf/setup-vdso.h: Here.  New file.
14831         * elf/rtld.c: Include "setup-vdso.h".
14832         (dl_main): Call setup_vdso.
14833
14834 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
14835
14836         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
14837         creal in comment listing functions tested.  List finite, isinf,
14838         isnan, isless, islessequal, isgreater, isgreaterequal,
14839         islessgreater, isunordered, lgamma_r and pow10 as functions and
14840         macros not tested.  Mention which functions not tested are aliases
14841         for other functions.  Fix typo.  Note that signs of NaNs are not
14842         tested.
14843
14844         * scripts/config.guess: Update from config.git.
14845         * scripts/config.sub: Likewise.
14846
14847 2012-10-04  Roland McGrath  <roland@hack.frob.com>
14848
14849         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
14850         * misc/madvise.c (madvise): Renamed to __madvise.
14851         Make madvise a weak alias.
14852         * include/sys/mman.h: Declare __madvise.
14853         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
14854         * sysdeps/unix/syscalls.list
14855         (madvise): Make __madvise the strong name, and madvise a weak alias.
14856         * sysdeps/unix/sysv/linux/syscalls.list
14857         (madvise, mmap): Remove redundant entries.
14858         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
14859         * malloc/malloc.c (mtrim): Likewise.
14860         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
14861
14862 2012-10-03  Roland McGrath  <roland@hack.frob.com>
14863
14864         * sysdeps/mach/hurd/dl-cache.c: File removed.
14865         * config.h.in (USE_LDCONFIG): New #undef.
14866         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
14867         * configure: Regenerated.
14868         * elf/Makefile (dl-routines): Add dl-cache only under
14869         [$(use-ldconfig) = yes].
14870         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
14871         cache on [USE_LDCONFIG].
14872         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
14873         [USE_LDCONFIG].
14874         * elf/rtld.c (dl_main): Likewise.
14875
14876 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
14877
14878         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
14879         _SC_LEVEL4_CACHE_LINESIZE.
14880
14881 2012-10-03  Roland McGrath  <roland@hack.frob.com>
14882
14883         * sysdeps/unix/bsd/confstr.h: File removed.
14884
14885 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
14886
14887         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
14888         sys/sdt-config.h.
14889
14890 2012-10-02  Roland McGrath  <roland@hack.frob.com>
14891
14892         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
14893         Make 'mapoff' field ElfW(Off) rather than off_t.
14894
14895 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
14896
14897         * nscd/Makefile: Remove nscd-cflags and all its users.
14898         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
14899         (CFLAGS-nonlib): Add compiler flags for nscd modules.
14900
14901         [BZ #10631]
14902         * malloc.c (malloc_printerr): Clarify error message.
14903
14904 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
14905
14906         [BZ #14648]
14907         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14908         Set bit_FMA_Usable if FMA is supported.
14909         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
14910         macro.
14911         (bit_FMA4_Usable): Updated.
14912         (index_FMA_Usable): New macro.
14913         (CPUID_FMA): Likewise
14914         (HAS_FMA): Defined with bit_FMA_Usable.
14915
14916 2012-10-01  Roland McGrath  <roland@hack.frob.com>
14917
14918         * bits/types.h (__swblk_t): Type removed.
14919         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
14920         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
14921         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14922         (__SWBLK_T_TYPE): Likewise.
14923         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
14924         (__SWBLK_T_TYPE): Likewise.
14925         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14926         (__SWBLK_T_TYPE): Likewise.
14927         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
14928         (__SWBLK_T_TYPE): Likewise.
14929
14930 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
14931             Honza Horak <hhorak@redhat.com>
14932
14933         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
14934         (xdr_mapname): Use YPMAXMAP as maxsize.
14935         (xdr_peername): Use YPMAXPEER as maxsize.
14936         (xdr_keydat): Use YPAXRECORD as maxsize.
14937         (xdr_valdat): Use YPMAXRECORD as maxsize.
14938
14939 2012-10-01  Roland McGrath  <roland@hack.frob.com>
14940
14941         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
14942
14943         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
14944         * csu/init-first.c: ... here.
14945         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
14946         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
14947         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
14948         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
14949         * sysdeps/i386/init-first.c: File removed.
14950         * sysdeps/sh/init-first.c: File removed.
14951
14952 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
14953
14954         [BZ #14645]
14955         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
14956         if x * y might underflow to zero and z is zero.
14957         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
14958         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
14959         * math/libm-test.inc (min_subnorm_value): New variable.
14960         (fma_test): Add more tests.
14961         (fma_test_towardzero): Likewise.
14962         (fma_test_downward): Likewise
14963         (fma_test_upward): Likewise.
14964         (initialize): Set min_subnorm_value.
14965
14966 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
14967
14968         [BZ #14638]
14969         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
14970         0 + 0.
14971         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
14972         mode for addition resulting in exact zero.
14973         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
14974         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
14975         exact 0 + 0.
14976         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
14977         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
14978         * math/libm-test.inc (fma_test): Add more tests.
14979         (fma_test_towardzero): New function.
14980         (fma_test_downward): Likewise.
14981         (fma_test_upward): Likewise.
14982         (main): Call the new functions.
14983
14984 2012-09-28  David S. Miller  <davem@davemloft.net>
14985
14986         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
14987
14988 2012-09-28  Roland McGrath  <roland@hack.frob.com>
14989
14990         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
14991         instead of SIGALRM.
14992
14993         * sysdeps/gnu/_G_config.h: Moved to ...
14994         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
14995         * sysdeps/mach/hurd/_G_config.h: Moved to ...
14996         * sysdeps/generic/_G_config.h: ... here.
14997
14998         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
14999
15000         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
15001
15002         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
15003         Conditionalize target on [libnss_test1.so-version].
15004
15005         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
15006
15007         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
15008         (elfobjdir): Move out of conditionals.
15009
15010         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
15011         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
15012         (__nss_lookup_function): Conditionalize label remove_from_tree on
15013         [!DO_STATIC_NSS || SHARED], matching its only use.
15014
15015 2012-09-28  David S. Miller  <davem@davemloft.net>
15016
15017         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
15018         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
15019         file.
15020         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
15021         sysdep_routines.
15022         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
15023         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
15024         when HWCAP_SPARC_CRYPTO is present.
15025
15026 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
15027
15028         * io/tst-mknodat.c: Create a FIFO instead of a socket.
15029
15030 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
15031
15032         [BZ #6530]
15033         * stdio-common/vfprintf.c (process_string_arg): Revert
15034         2000-07-22 change.
15035
15036 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
15037
15038         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
15039         for testcase.
15040         * stdio-common/tst-sprintf.c: Include <locale.h>
15041         (main): Test sprintf's handling of incomplete multibyte
15042         characters.
15043
15044 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
15045
15046         * elf/dl-runtime.c (VERSYMIDX): Removed.
15047         * elf/dl-version.c (VERSYMIDX): Likewise.
15048         * elf/do-rel.h (VERSYMIDX): Likewise.
15049         (VALIDX): Likewise.
15050         * elf/dynamic-link.h (VERSYMIDX): Likewise.
15051         * elf/rtld.c (VALIDX): Likewise.
15052         (ADDRIDX): Likewise.
15053         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
15054         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
15055         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
15056         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
15057         (VALIDX): Likewise.
15058         (ADDRIDX): Likewise.
15059
15060 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
15061
15062         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
15063
15064 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
15065
15066         [BZ #11438]
15067         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
15068         to global scope.
15069         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
15070         addresses are in the same scope as 192.0.2/24.
15071         * posix/gai.conf: Document new scope table defaults.
15072
15073 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15074
15075         [BZ #5298]
15076         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
15077         for ftell.  Compute offsets from write pointers instead.
15078         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
15079
15080 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15081
15082         [BZ #14543]
15083         * libio/Makefile (tests): New test case tst-fseek.
15084         * libio/tst-fseek.c: New test case to verify that fseek/ftell
15085         combination works in wide mode.
15086         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
15087         state when the external buffer state changes.
15088
15089 2012-09-27  David S. Miller  <davem@davemloft.net>
15090
15091         [BZ #14376]
15092         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
15093         pass reloc->r_addend in as the 'high' argument to
15094         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
15095
15096         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15097
15098 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
15099
15100         * rt/tst-aio2.c: Include <pthread.h>.
15101         * rt/tst-aio3.c: Likewise.
15102
15103 2012-09-27  Steve Ellcey  <sellcey@mips.com>
15104
15105         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
15106
15107 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
15108
15109         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
15110         contents on [SHARED].
15111
15112 2012-09-26  Marek Polacek  <polacek@redhat.com>
15113
15114         [BZ #14530]
15115         [BZ #13741]
15116         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
15117         for C++ and GCC <4.3 as well as for non GCC compilers.
15118
15119 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
15120
15121         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15122
15123 2012-09-25  Roland McGrath  <roland@hack.frob.com>
15124
15125         * Makefile.in (all, install): Declare with .PHONY.
15126         Reported by Michael Hope <michael.hope@linaro.org>.
15127
15128 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15129
15130         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
15131         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
15132         system header.
15133         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
15134         Likewise.
15135         (sydep_routines): Add the new and the internal functions.
15136         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
15137         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
15138         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
15139         (GLIBC_2.17): Add the new function.
15140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
15141         (GLIBC_2.17): Likewise.
15142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
15143         (GLIBC_2.17): Likewise.
15144         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
15145         (GLIBC_2.17): Likewise.
15146         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
15147
15148 2012-09-25  Alan Modra  <amodra@gmail.com>
15149
15150         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
15151         Add release barrier before setting once_control to say
15152         initialisation is done.  Add hints on lwarx.  Use macro in
15153         place of isync.
15154         (clear_once_control): Add release barrier.
15155
15156 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
15157
15158         [BZ #13629]
15159         * math/s_clog.c (__clog): Handle more values close to |z| = 1
15160         specially.
15161         * math/s_clog10.c (__clog10): Likewise.
15162         * math/s_clog10f.c (__clog10f): Likewise.
15163         * math/s_clog10l.c (__clog10l): Likewise.
15164         * math/s_clogf.c (__clogf): Likewise.
15165         * math/s_clogl.c (__clogl): Likewise.
15166         * math/Makefile (libm-calls): Add x2y2m1.
15167         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
15168         (__x2y2m1): Likewise.
15169         (__x2y2m1l): Likewise.
15170         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
15171         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
15172         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
15173         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
15174         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
15175         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
15176         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
15177         * sysdeps/i386/fpu/libm-test-ulps: Update.
15178         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15179
15180         [BZ #14621]
15181         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
15182         int as type of variable DEPTH.
15183         (glob): Use size_t instead of int as type of variables NEWCOUNT
15184         and OLD_PATHC.
15185
15186 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15187
15188         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
15189         Add s_sincosf-sse2.
15190         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
15191         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
15192         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
15193         macros for using routine as __sincosf_ia32.
15194         Use macro for function declaration and weak_alias.
15195         * sysdeps/i386/fpu/libm-test-ulps: Update.
15196
15197         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
15198         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15199
15200         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
15201         subnormal argument.
15202         * math/s_cexpf.c (__cexpf): Likewise.
15203         * math/s_csinf.c (__csinf): Likewise.
15204         * math/s_csinhf.c (__csinhf): Likewise.
15205         * math/s_ctanf.c (__ctanf): Likewise.
15206         * math/s_ctanhf.c (__ctanhf): Likewise.
15207         * math/s_ccosh.c (__ccoshf): Likewise.
15208         * math/s_cexp.c (__cexpl): Likewise.
15209         * math/s_csin.c (__csin): Likewise.
15210         * math/s_csinh.c (__csinh): Likewise.
15211         * math/s_ctan.c (__ctan): Likewise.
15212         * math/s_ctanh.c (ctanh): Likewise.
15213         * math/s_ccoshl.c (__ccoshl): Likewise.
15214         * math/s_cexpl.c (__cexpl): Likewise.
15215         * math/s_csinl.c (__csinl): Likewise.
15216         * math/s_csinhl.c (__csinhl): Likewise.
15217         * math/s_ctanl.c (__ctanl): Likewise.
15218         * math/s_ctanhl.c (__ctanhl): Likewise.
15219
15220 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
15221
15222         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
15223         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
15224         (_IO_off_t): Define to __off_t, not _G_off_t.
15225         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
15226         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
15227         (_IO_wint_t): Define to wint_t, not _G_wint_t.
15228         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
15229         type of __dummy and __dummy2 fields.
15230         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
15231         (_G_ssize_t): Likewise.
15232         (_G_off_t): Likewise.
15233         (_G_pid_t): Likewise.
15234         (_G_uid_t): Likewise.
15235         (_G_wchar_t): Likewise.
15236         (_G_wint_t): Likewise.
15237         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
15238         (_G_ssize_t): Likewise.
15239         (_G_off_t): Likewise.
15240         (_G_pid_t): Likewise.
15241         (_G_uid_t): Likewise.
15242         (_G_wchar_t): Likewise.
15243         (_G_wint_t): Likewise.
15244         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
15245         (_G_ssize_t): Likewise.
15246         (_G_off_t): Likewise.
15247         (_G_pid_t): Likewise.
15248         (_G_uid_t): Likewise.
15249         (_G_wchar_t): Likewise.
15250         (_G_wint_t): Likewise.
15251
15252 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
15253
15254         * malloc/arena.c: Include malloc-sysdep.h.
15255         (shrink_heap): Use check_may_shrink_heap to decide if madvise
15256         is sufficient to shrink the heap or an unmap is needed.
15257         * sysdeps/generic/malloc-sysdep.h: New file.  Define
15258         new function check_may_shrink_heap.
15259         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
15260         new function check_may_shrink_heap.
15261
15262 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
15263
15264         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
15265         comments.
15266
15267 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
15268
15269         * catgets/test-gencat.sh: Add "set -e".
15270         * elf/tst-pathopt.sh: Likewise.
15271         * grp/tst_fgetgrent.sh: Likewise.
15272         * iconvdata/run-iconv-test.sh: Likewise.
15273         * intl/tst-gettext.sh: Likewise.
15274         * intl/tst-gettext2.sh: Likewise.
15275         * intl/tst-gettext4.sh: Likewise.
15276         * intl/tst-gettext6.sh: Likewise.
15277         * intl/tst-translit.sh: Likewise.
15278         * io/ftwtest-sh: Likewise.
15279         * libio/test-freopen.sh: Likewise.
15280         * malloc/tst-mtrace.sh: Likewise.
15281         * posix/globtest.sh: Likewise.
15282         * posix/tst-getconf.sh: Likewise.
15283         * posix/wordexp-tst.sh: Likewise.
15284         * stdio-common/tst-printf.sh: Likewise.
15285         * stdio-common/tst-unbputc.sh: Likewise.
15286         * stdlib/tst-fmtmsg.sh: Likewise.
15287         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
15288         * catgets/Makefile: Do not specify -e option when running
15289         testsuite shell scripts.
15290         * elf/Makefile: Likewise.
15291         * grp/Makefile: Likewise.
15292         * iconvdata/Makefile: Likewise.
15293         * intl/Makefile: Likewise.
15294         * io/Makefile: Likewise.
15295         * libio/Makefile: Likewise.
15296         * malloc/Makefile: Likewise.
15297         * posix/Makefile: Likewise.
15298         * stdio-common/Makefile: Likewise.
15299         * stdlib/Makefile: Likewise.
15300         * sysdeps/x86_64/Makefile: Likewise.
15301
15302         * io/ftwtest-sh: Add copyright header.
15303         * posix/globtest.sh: Likewise.
15304         * posix/tst-getconf.sh: Likewise.
15305         * posix/wordexp-tst.sh: Likewise.
15306         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
15307
15308 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
15309
15310         [BZ #13679]
15311         * Makeconfig (+link): Defined as $(+link-static) if
15312         $(build-shared) isn't yes.
15313         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
15314         isn't yes.
15315         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
15316
15317         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
15318
15319         [BZ #14562]
15320         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
15321         new chunk size with MALLOC_ALIGN_MASK.
15322
15323 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
15324
15325         [BZ #5044]
15326         * stdio-common/printf_fphex.c: Include <stdbool.h> and
15327         <rounding-mode.h>.
15328         (__printf_fphex): Determine rounding using get_rounding_mode and
15329         round_away.
15330         * stdio-common/tst-printf-round.c (struct hex_test): New
15331         structure.
15332         (hex_tests): New variable.
15333         (test_hex_in_one_mode): New function.
15334         (do_test): Also run tests for hex float output.
15335
15336 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
15337
15338         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
15339         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
15340         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
15341         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
15342         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
15343         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
15344         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
15345         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
15346
15347 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
15348
15349         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
15350         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
15351         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
15352         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
15353
15354 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
15355
15356         [BZ #14579]
15357         * elf/rtld.c (dl_main): Limit the check for self loading to normal
15358         mode only.
15359         * elf/tst-rtld-load-self.sh: New test.
15360         * elf/Makefile: Run it.
15361
15362 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
15363
15364         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
15365         (tst-writev-ENV): Remove.
15366         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
15367
15368 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
15369
15370         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
15371
15372 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
15373
15374         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
15375         unconditional.
15376         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
15377         Likewise.
15378         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
15379         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
15380         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
15381         Likewise.
15382
15383 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
15384
15385         [BZ #14587]
15386         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
15387         * config.make.in (have-cpp-asm-debuginfo): Removed.
15388         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
15389         * configure: Regenerated.
15390
15391 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
15392
15393         [BZ #5044]
15394         * stdio-common/printf_fp.c: Include <stdbool.h> and
15395         <rounding-mode.h>.
15396         (___printf_fp): Determine rounding using get_rounding_mode and
15397         round_away.
15398         * stdio-common/tst-printf-round.c: New file.
15399         * stdio-common/Makefile (tests): Add tst-printf-round.
15400         (link-libm): New variable.
15401         ($(objpfx)tst-printf-round): Depend in $(link-libm).
15402
15403 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
15404
15405         [BZ #14576]
15406         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
15407         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
15408         Likewise.
15409         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
15410         Likewise.
15411
15412 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
15413
15414         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
15415         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
15416         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
15417         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
15418
15419 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
15420
15421         [BZ #14518]
15422         * include/rounding-mode.h: New file.
15423         * sysdeps/generic/get-rounding-mode.h: Likewise.
15424         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
15425         * stdlib/strtod_l.c: Include <rounding-mode.h>.
15426         (MAX_VALUE): New macro.
15427         (MIN_VALUE): Likewise.
15428         (overflow_value): New function.
15429         (underflow_value): Likewise.
15430         (round_and_return): Use overflow_value and underflow_value to
15431         determine return values in overflow and underflow cases.  Use
15432         round_away to determine rounding depending on rounding mode.
15433         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
15434         determine return values in overflow and underflow cases.
15435         * stdlib/tst-strtod-round.c: Include <fenv.h>.
15436         (struct test_results): New structure.
15437         (struct test): Use struct test_results to store expected results
15438         for all rounding modes.
15439         (TEST): Include expected results for all rounding modes.
15440         (test_in_one_mode): New function.
15441         (do_test): Use test_in_one_mode to compute and check results.
15442         Check results for all rounding modes.
15443         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
15444         $(link-libm).
15445
15446 2012-12-09  Allan McRae  <allan@archlinux.org>
15447
15448         * sysdeps/i386/fpu/libm-test-ulps: Update
15449
15450 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
15451
15452         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
15453         (_G_int32_t): Likewise.
15454         (_G_uint16_t): Likewise.
15455         (_G_uint32_t): Likewise.
15456         (_G_HAVE_BOOL): Likewise.
15457         (_G_HAVE_ATEXIT): Likewise.
15458         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
15459         (_G_HAVE_IO_FILE_OPEN): Likewise.
15460         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
15461         (_G_int32_t): Likewise.
15462         (_G_uint16_t): Likewise.
15463         (_G_uint32_t): Likewise.
15464         (_G_HAVE_BOOL): Likewise.
15465         (_G_HAVE_ATEXIT): Likewise.
15466         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
15467         (_G_HAVE_IO_FILE_OPEN): Likewise.
15468         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
15469         (_G_int32_t): Likewise.
15470         (_G_uint16_t): Likewise.
15471         (_G_uint32_t): Likewise.
15472         (_G_HAVE_BOOL): Likewise.
15473         (_G_HAVE_ATEXIT): Likewise.
15474         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
15475         (_G_HAVE_IO_FILE_OPEN): Likewise.
15476
15477 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
15478
15479         * csu/libc-tls.c: Update copyright years.
15480
15481 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
15482
15483         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
15484         [!_G_USING_THUNKS]: Remove conditional code.
15485         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
15486         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
15487
15488         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
15489         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
15490         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
15491         (_G_VTABLE_LABEL_PREFIX): Likewise.
15492         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
15493         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
15494         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
15495         (_G_VTABLE_LABEL_PREFIX): Likewise.
15496         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
15497         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
15498         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
15499         (_G_VTABLE_LABEL_PREFIX): Likewise.
15500         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
15501
15502 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
15503
15504         * libio/Makefile: Include ../Makeconfig before tests.
15505         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
15506         only if $(build-shared) is yes.
15507
15508         * iconv/gconv_db.c: Update copyright years.
15509
15510 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15511
15512         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
15513         unwind info if defined PIC. Fix special cases description.
15514         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
15515
15516         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
15517         DP_HI_MASK entry.
15518         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
15519
15520 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
15521
15522         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
15523
15524         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
15525         is NULL.
15526
15527         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
15528         (LDLIBS-tst-chk4): This.
15529         (LDFLAGS-tst-chk5): Renamed to ...
15530         (LDLIBS-tst-chk5): This.
15531         (LDFLAGS-tst-chk6): Renamed to ...
15532         (LDLIBS-tst-chk6): This.
15533         (LDFLAGS-tst-lfschk4): Renamed to ...
15534         (LDLIBS-tst-lfschk4): This.
15535         (LDFLAGS-tst-lfschk5): Renamed to ...
15536         (LDLIBS-tst-lfschk5): This.
15537         (LDFLAGS-tst-lfschk6): Renamed to ...
15538         (LDLIBS-tst-lfschk6): This.
15539
15540         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
15541         on $(common-objpfx)soversions.mk.
15542
15543 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
15544
15545         [BZ #10014]
15546         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
15547         example host name.
15548
15549 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
15550
15551         * malloc/arena.c (arena_get_retry): New function that gets
15552         another arena for the caller to try its request on.
15553         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
15554         current arena cannot fulfill the request.
15555         (__libc_memalign): Likewise.
15556         (__libc_memalign): Likewise.
15557         (__libc_pvalloc): Likewise.
15558         (__libc_calloc): Likewise.
15559
15560 2012-09-05  John Tobey  <john.tobey@gmail.com>
15561
15562         [BZ #13542]
15563         * manual/arith.texi (Operations on Complex): Fix description
15564         of carg branch cut.
15565
15566 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
15567
15568         [BZ #10014]
15569         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
15570         host name.
15571
15572         [BZ #10038]
15573         * manual/memory.texi (Memory): Make order of menu items match
15574         order of sections.
15575
15576 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15577
15578         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
15579         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
15580         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
15581
15582 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15583
15584         * csu/libc-tls.c (static_dtv): Renamed to ...
15585         (_dl_static_dtv): This.  Make it global.
15586         (_dl_initial_dtv): Removed.
15587         (__libc_setup_tls): Updated.
15588         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
15589         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
15590         DL_INITIAL_DTV.
15591
15592 2012-09-06  Petr Machata  <pmachata@redhat.com>
15593
15594         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
15595         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
15596         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
15597         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
15598
15599 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15600
15601         [BZ #14545]
15602         * csu/libc-tls.c (_dl_initial_dtv): New variable.
15603         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
15604         freeing dtv[-1].
15605
15606 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15607
15608         [BZ #14544]
15609         * Makeconfig (link-static-before-libc): Replace $(+prector)
15610         with $(+prectorT).
15611         (link-static-after-libc): Replace $(+postctor) with
15612         $(+postctorT).
15613         (link-bounded): Replace $(+prector)/$(+postctor) with
15614         $(+prectorT)/$(+postctorT).
15615         (+prectorT): New macro.
15616         (+postctorT): Likewise.
15617
15618 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
15619
15620         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
15621         (round_str): Handle values above the maximum for IBM long double
15622         as inexact.
15623         * stdlib/tst-strtod-round.c (tests): Regenerated.
15624
15625 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15626
15627         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
15628         assembler flag.
15629         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
15630         zarch_nohighgprs around the zarch optimized routines.
15631         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
15632         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
15633         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
15634         for zarch.
15635
15636 2012-09-05  David S. Miller  <davem@davemloft.net>
15637
15638         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15639
15640         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
15641         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
15642         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
15643         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15644         entries.
15645
15646 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15647
15648         * malloc/arena.c: Fold copyright years.
15649         * malloc/mcheck.c, malloc/memusage.c: Likewise.
15650
15651 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15652
15653         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
15654
15655 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15656
15657         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
15658
15659 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15660
15661         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
15662         change internal state upon failure.
15663
15664 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15665
15666         * malloc/mcheck.c (mcheck_check_all): Fix typo.
15667         * malloc/memusage.c (mmap): Likewise.
15668         (mmap64, mremap): Likewise.  Adjust name in comment.
15669
15670 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
15671
15672         * libio/fileops.c: Fix typos in comments.
15673         * libio/oldfileops.c: Likewise.
15674         * libio/wfileops.c: Likewise.
15675
15676 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
15677
15678         [BZ #1349]
15679         * malloc/Makefile (tests): Add tst-malloc-usable test case.
15680         (tst-malloc-usable-ENV): Set environment for test case.
15681         * malloc/hooks.c (malloc_check_get_size): New function to get
15682         requested size.
15683         * malloc/malloc.c (musable): Use malloc_check_get_size.
15684         * malloc/tst-malloc-usable.c: New test case.
15685
15686 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
15687
15688         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
15689
15690 2012-09-05  Allan McRae  <allan@archlinux.org>
15691
15692         [BZ #13966]
15693         * configure.in (CXX_SYSINCLUDES): Use compiler output to
15694         determine header location.
15695         * configure: Regenerated.
15696
15697 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
15698
15699         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
15700         float format.
15701         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
15702         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
15703         format.
15704         (test): Regenerate.
15705
15706 2012-09-04  David S. Miller  <davem@davemloft.net>
15707
15708         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
15709         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
15710         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
15711
15712 2012-09-04  Florian Weimer  <fweimer@redhat.com>
15713
15714         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
15715         failures.
15716
15717         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
15718
15719 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
15720
15721         [BZ #9914]
15722         * libio/iogetdelim.c: Include <limits.h>.
15723         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
15724         + len + 1 would overflow.
15725
15726 2012-09-03  Andreas Jaeger  <aj@suse.de>
15727
15728         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15729         * sysdeps/i386/fpu/libm-test-ulps: Update.
15730
15731 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15732
15733         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
15734         Add s_sinf-sse2, s_conf-sse2.
15735
15736         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
15737         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
15738         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
15739         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
15740
15741         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
15742         for using routine as __sinf_ia32.
15743         Use macro for function declaration and weak_alias.
15744         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
15745         for using routine as __cosf_ia32.
15746         Use macro for function declaration and weak_alias.
15747
15748         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
15749         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
15750
15751         * sysdeps/x86_64/fpu/s_sinf.S: New file.
15752         * sysdeps/x86_64/fpu/s_cosf.S: New file.
15753         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15754
15755         * math/libm-test.inc (cos_test): Add more test cases.
15756         (sin_test): Likewise.
15757         (sincos_test): Likewise.
15758
15759 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15760
15761         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
15762         (IFUNC_RESOLVE): Make pointers to the specialized implementations
15763         hidden.
15764         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
15765
15766 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
15767
15768         [BZ #14538]
15769         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
15770         first element of the GOT.
15771         (elf_machine_load_address): Return the difference between
15772         the runtime address of _DYNAMIC and elf_machine_dynamic ().
15773
15774 2012-09-01  Allan McRae  <allan@archlinux.org>
15775
15776         [BZ #13412]
15777         * configure.in (AWK): Require gawk version 3.0 or later.
15778         * configure: Regenerated.
15779
15780 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
15781
15782         * sysdeps/unix/sysv/linux/kernel-features.h
15783         (__ASSUME_POSIX_CPU_TIMERS): Remove.
15784         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
15785         [__NR_clock_getres]: Make code unconditional.
15786         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
15787         (clock_getcpuclockid): Remove code left unreachable by removal of
15788         conditionals.
15789         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
15790         code unconditional.
15791         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
15792         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
15793         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
15794         Make code unconditional.
15795         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
15796         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
15797         * sysdeps/unix/sysv/linux/clock_settime.c
15798         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
15799         conditional code.
15800         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
15801         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
15802
15803 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
15804
15805         [BZ #14476]
15806         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
15807         scripts/test-installation.pl.
15808
15809         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
15810         and $ld_so_version if it is set.
15811
15812 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
15813
15814         [BZ #14516]
15815         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
15816         failure if reading from procfs failed.
15817         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
15818
15819 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
15820
15821         * sysdeps/unix/sysv/linux/kernel-features.h
15822         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
15823         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
15824         Remove conditional code.
15825         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15826         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
15827         Remove conditional code.
15828         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15829         * sysdeps/unix/sysv/linux/i386/fxstat.c
15830         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15831         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15832         * sysdeps/unix/sysv/linux/i386/fxstatat.c
15833         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15834         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15835         * sysdeps/unix/sysv/linux/i386/lxstat.c
15836         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15837         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15838         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
15839         Remove conditional code.
15840         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15841         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
15842         Remove conditional code.
15843         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15844         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
15845         <kernel-features.h>.
15846         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
15847         Remove.
15848         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
15849         Remove conditional code.
15850         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15851         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
15852         Remove conditional.
15853
15854 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
15855
15856         [BZ #5400]
15857         * NEWS: Add fixed bug number.
15858
15859 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
15860
15861         [BZ #14519]
15862         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
15863         underflowing exponent in case of negative sign.
15864         * stdlib/tst-strtod-round-data: Add more tests.
15865         * stdlib/tst-strtod-round.c (tests): Regenerated.
15866
15867         [BZ #3479]
15868         * stdlib/strtod_l.c (NDIG): Remove.
15869         (HEXNDIG): Likewise.
15870         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
15871         smallest representable value.
15872         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
15873         lie within an exact representation of 1/2 ulp of the result.
15874         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
15875         unconditionally.
15876         (TENS_P9_IDX): Define unconditionally.
15877         (TENS_P9_SIZE): Likewise.
15878         (TENS_P10_IDX): Likewise.
15879         (TENS_P10_SIZE): Likewise.
15880         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
15881         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
15882         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
15883         entries for 10^2^13 and 10^2^14.
15884         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
15885         (TENS_P13_IDX): Define.
15886         (TENS_P13_SIZE): Likewise.
15887         (TENS_P14_IDX): Likewise.
15888         (TENS_P14_SIZE): Likewise.
15889         (_fpioconst_pow10): Change array size to
15890         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
15891         unconditional.
15892         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
15893         1024]: Add entries for 10^2^13 and 10^2^14.
15894         [LAST_POW10 > _LAST_POW10]: Remove #error.
15895         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
15896         (_fpioconst_pow10): Change array size to
15897         FPIOCONST_POW10_ARRAY_SIZE.
15898         * stdlib/gen-fpioconst.c: New file.
15899         * stdlib/gen-tst-strtod-round.c: Likewise.
15900         * stdlib/tst-strtod-round-data: Likewise.
15901         * stdlib/tst-strtod-round.c: Likewise.
15902         * stdlib/Makefile (tests): Add tst-strtod-round.
15903
15904         [BZ #14459]
15905         * stdlib/strtod_l.c: Include <stdint.h>.
15906         (NDEBUG): Do not define.
15907         (round_and_return): Change EXPONENT parameter to type intmax_t.
15908         Rearrange calculations to avoid internal overflow possibilities.
15909         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
15910         Rearrange calculations to avoid internal overflow possibilities.
15911         Assert that number fits inside MPNSIZE limbs.
15912         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
15913         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
15914         calculations and add assertions to avoid internal overflow
15915         possibilities.  Add casts to avoid signed/unsigned operations.
15916         * stdlib/tst-strtod-overflow.c: New file.
15917         * stdlib/Makefile (tests): Add tst-strtod-overflow.
15918
15919 2012-08-25  Marek Polacek  <polacek@redhat.com>
15920
15921         * time/time.h: Fix some typos in comments.
15922
15923 2012-08-23  Roland McGrath  <roland@hack.frob.com>
15924
15925         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
15926         * posix/tst-rfc3484-2.c: Likewise.
15927         * posix/tst-rfc3484-3.c: Likewise.
15928
15929 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
15930
15931         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
15932         (EF_ARM_ABI_FLOAT_HARD): Likewise.
15933
15934 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
15935
15936         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
15937         #include of fxstatat64.c.
15938
15939 2012-08-22  Roland McGrath  <roland@hack.frob.com>
15940
15941         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
15942         * shadow/getspent_r.c: Likewise.
15943         * shadow/getspnam.c: Likewise.
15944         * shadow/getspnam_r.c: Likewise.
15945         * gshadow/getsgent.c: Likewise.
15946         * gshadow/getsgent_r.c: Likewise.
15947         * gshadow/getsgnam.c: Likewise.
15948         * gshadow/getsgnam_r.c: Likewise.
15949         * inet/getnetbyad.c: Likewise.
15950         * inet/getnetbyad_r.c: Likewise.
15951         * inet/getnetbynm.c: Likewise.
15952         * inet/getnetbynm_r.c: Likewise.
15953         * inet/getnetent.c: Likewise.
15954         * inet/getnetent_r.c: Likewise.
15955         * inet/getproto.c: Likewise.
15956         * inet/getproto_r.c: Likewise.
15957         * inet/getprtent.c: Likewise.
15958         * inet/getprtent_r.c: Likewise.
15959         * inet/getprtname.c: Likewise.
15960         * inet/getprtname_r.c: Likewise.
15961         * inet/getrpcbyname.c: Likewise.
15962         * inet/getrpcbyname_r.c: Likewise.
15963         * inet/getrpcbynumber.c: Likewise.
15964         * inet/getrpcbynumber_r.c: Likewise.
15965         * inet/getrpcent.c: Likewise.
15966         * inet/getrpcent_r.c: Likewise.
15967         * inet/getaliasent.c: Likewise.
15968         * inet/getaliasent_r.c: Likewise.
15969         * inet/getaliasname.c: Likewise.
15970         * inet/getaliasname_r.c: Likewise.
15971         * nscd/getgrgid_r.c: Likewise.
15972         * nscd/getgrnam_r.c: Likewise.
15973         * nscd/gethstbyad_r.c: Likewise.
15974         * nscd/gethstbynm3_r.c: Likewise.
15975         * nscd/getpwnam_r.c: Likewise.
15976         * nscd/getpwuid_r.c: Likewise.
15977         * nscd/getsrvbynm_r.c: Likewise.
15978         * nscd/getsrvbypt_r.c: Likewise.
15979         * nscd/gai.c: Likewise.
15980
15981         * configure.in (build_nscd): New substituted variable, set
15982         by --disable-build-nscd and defaults to $use_nscd.
15983         * configure: Regenerated.
15984         * config.make.in (build-nscd): New substituted variable.
15985         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
15986         Change conditional to require [$(build-nscd) = yes] as well.
15987         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
15988
15989         [BZ# 13696]
15990         * configure.in (use_nscd): New substituted variable, set by
15991         --disable-nscd.  If enabled, define USE_NSCD.
15992         * configure: Regenerated.
15993         * config.h.in: Add USE_NSCD.
15994         * config.make.in (use-nscd): New substituted variable.
15995         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
15996         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
15997         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
15998         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
15999         (CFLAGS-getgrnam_r.c): Likewise.
16000         (CFLAGS-initgroups.c): Likewise.
16001         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
16002         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
16003         Variables removed.
16004         * inet/getnetgrent_r.c
16005         (nscd_setnetgrent): New function, broken out of ...
16006         (setnetgrent): ... here.  Call it.
16007         (innetgr): Conditionalize nscd bits on [USE_NSCD].
16008         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
16009         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
16010         * nscd/Makefile (routines, aux): Move definitions after include of
16011         Makeconfig.  Conditionalize on [$(use-nscd) != no].
16012         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
16013         Conditionalize on [USE_NSCD].
16014         (is_nscd, nscd_init_cb): Likewise.
16015         (nss_load_library): Conditionalize init callback on [USE_NSCD].
16016         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
16017         * nss/nss_db/db-init.c: Likewise.
16018         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
16019         [USE_NSCD].
16020         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
16021         (make_request): Use it.
16022         (cache_valid_p): New function.
16023         (__check_pf): Use it.
16024         * NEWS: Add item for --disable-nscd.
16025
16026 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
16027
16028         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
16029         to support sed >= 4.2.1-20-ga9bf076.
16030         * configure: Regenerated.
16031
16032 2012-08-22  Roland McGrath  <roland@hack.frob.com>
16033
16034         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
16035         Conditionalize whole body on [IREL].
16036
16037 2012-08-22  Jeff Law <law@redhat.com>
16038
16039         [BZ #14505]
16040         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
16041         if the family is PF_UNSPEC.
16042
16043 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
16044
16045         * Makerules (lib-version): Rename from V.
16046         (install-lib-nosubdir): Change V to lib-version.
16047
16048 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
16049
16050         [BZ #14252]
16051         * powerpc32/power6/wcschr.c: New file.
16052         * powerpc32/power6/wcscpy.c: New file.
16053         * powerpc32/power6/wcsrchr.c: New file.
16054         * powerpc64/power6/wcschr.c: New file.
16055         * powerpc64/power6/wcscpy.c: New file.
16056         * powerpc64/power6/wcsrchr.c: New file.
16057
16058 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
16059
16060         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
16061         (two_way_short_needle): Use it.
16062         * string/strstr.c (AVAILABLE1_USES_J): Define.
16063         * string/strcasestr.c: Likewise.
16064
16065         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
16066         array references.
16067         * string/strcasestr.c (TOLOWER): Make side-effect safe.
16068
16069         [BZ #11607]
16070         * NEWS: Add an entry.
16071         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
16072         define their defaults.
16073         (two_way_short_needle): Detect end-of-string on-the-fly.
16074         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
16075         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
16076         * string/bug-strcasestr1.c: New test.
16077         * string/Makefile: Run it.
16078
16079 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
16080
16081         [BZ #11607]
16082         * string/str-two-way.h (two_way_short_needle): Optimize matching of
16083         the first character.
16084
16085 2012-08-21  Roland McGrath  <roland@hack.frob.com>
16086
16087         * csu/elf-init.c (__libc_csu_irel): Function removed.
16088         * csu/libc-start.c (apply_irel): New function.
16089         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
16090
16091 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
16092
16093         * sysdeps/unix/sysv/linux/kernel-features.h
16094         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
16095         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
16096         <kernel-features.h>.
16097         [__NR_fadvise64_64]: Make code unconditional.
16098         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
16099         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
16100         !__NR_fadvise64_64)]: Likewise.
16101         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
16102         !__NR_fadvise64_64))]: Likewise.
16103         [__NR_fadvise64]: Make code unconditional.
16104         [!__NR_fadvise64]: Remove conditional code.
16105         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
16106         <kernel-features.h>.
16107         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
16108         unconditional.
16109         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
16110         conditional code.
16111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
16112         not include <kernel-features.h>.
16113         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
16114         unconditional.
16115         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
16116         conditional code.
16117         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
16118         include <kernel-features.h>.
16119         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
16120         unconditional.
16121         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
16122         conditional code.
16123
16124 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
16125
16126         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
16127         slight instruction rearrangements per scrollpipe analysis.
16128         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
16129
16130 2012-08-20  Roland McGrath  <roland@hack.frob.com>
16131
16132         * manual/syslog.texi (syslog; vsyslog, closelog):
16133         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
16134         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
16135
16136         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
16137         DSOCAPS to match condition on defining it.
16138
16139 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
16140
16141         * sysdeps/unix/sysv/linux/kernel-features.h
16142         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
16143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
16144         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
16145         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
16146         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
16147         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
16148         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
16149         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
16150         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
16151         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
16152
16153         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
16154         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
16155
16156         * sysdeps/unix/sysv/linux/kernel-features.h
16157         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
16158         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
16159         unconditional.
16160         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16161         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
16162         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
16163         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16164         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
16165         Make code unconditional.
16166         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16167         (__mmap64) [!__NR_mmap2]: Likewise.
16168         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
16169         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
16170         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16171         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
16172         [__NR_mmap2]: Make code unconditional.
16173         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16174         (__mmap64) [!__NR_mmap2]: Likewise.
16175
16176 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16177
16178         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
16179
16180 2012-08-18  Andreas Jaeger  <aj@suse.de>
16181
16182         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
16183
16184 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
16185
16186         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
16187         * include/unistd.h (__have_sock_cloexec): Likewise.
16188         (__have_pipe2): Likewise.
16189         (__have_dup3): Likewise.
16190
16191 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
16192
16193         [BZ #9685]
16194         * include/unistd.h (__have_pipe2): Change define into an extern int.
16195         (__have_dup3): Likewise.
16196         * socket/have_sock_cloexec.c: Include fcntl.h.
16197         (__have_pipe2): New variable.
16198         (__have_dup3): Likewise.
16199
16200 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
16201
16202         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
16203
16204 2012-08-17  Marek Polacek  <polacek@redhat.com>
16205
16206         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
16207         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
16208
16209 2012-08-17  Roland McGrath  <roland@hack.frob.com>
16210
16211         * configure.in: Add AC_SUBST for sysheaders.
16212         * configure: Regenerated.
16213         * config.make.in (sysheaders): New substituted variable.
16214
16215         * sysdeps/unix/mkfifo.c: Moved ...
16216         * sysdeps/posix/mkfifo.c: ... here.
16217         * sysdeps/unix/mkfifoat.c: Moved ...
16218         * sysdeps/posix/mkfifoat.c: ... here.
16219
16220         * sysdeps/unix/utime.c: Moved ...
16221         * sysdeps/posix/utime.c: ... here.
16222
16223         * sysdeps/unix/time.c: Moved ...
16224         * sysdeps/posix/time.c: ... here.
16225         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
16226         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
16227
16228         * sysdeps/unix/nice.c: Moved ...
16229         * sysdeps/posix/nice.c: ... here.
16230
16231         * sysdeps/unix/alarm.c: Moved ...
16232         * sysdeps/posix/alarm.c: ... here.
16233
16234         * intl/Makefile ($(codeset_mo)): Depend on the input file.
16235
16236 2012-08-17  Jeff Law <law@redhat.com>
16237
16238         * intl/Makefile (codeset_mo): New variable.
16239         ($(codeset_mo)): New target.
16240         (tst-codeset.out): Depend on that.  Remove explicit rule.
16241         (tst-gettext3.out, tst-gettext5.out): Likewise.
16242         (LOCPATH-ENV, tst-codeset-ENV): New variables.
16243         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
16244         * intl/tst-codeset.sh: Remove.
16245         * intl/tst-gettext3.sh: Likewise.
16246         * intl/tst-gettext5.sh: Likewise.
16247
16248 2012-08-17  Roland McGrath  <roland@hack.frob.com>
16249
16250         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
16251         * sysdeps/unix/syscalls.list: ... here.
16252
16253         * sysdeps/posix/getaddrinfo.c
16254         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
16255         (gaiconf_init, gaiconf_reload): Use them.
16256         [!_STATBUF_ST_NSEC]
16257         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
16258         Define using time_t rather than struct timespec.
16259
16260         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
16261         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
16262         Macros removed.
16263         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
16264         [!NO_THREADS].
16265         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
16266         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
16267         Likewise.
16268
16269         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
16270         __libc_cleanup_push argument.
16271
16272         * bits/param.h: New file.
16273         * misc/sys/param.h: New file.
16274         * include/sys/param.h: New file.
16275         * misc/Makefile (headers): Add bits/param.h.
16276         * sysdeps/generic/sys/param.h: File removed.
16277         * sysdeps/unix/sysv/linux/bits/param.h: New file.
16278         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
16279         * sysdeps/mach/hurd/bits/param.h: New file.
16280         * sysdeps/mach/hurd/sys/param.h: File removed.
16281
16282         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
16283         last change.
16284
16285         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
16286         [_IO_MTSAFE_IO].
16287         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
16288         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
16289         New macros.
16290
16291         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
16292         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
16293         rather than -D_IO_MTSAFE_IO conditionally.
16294         * stdio-common/Makefile (CPPFLAGS): Likewise.
16295         * wcsmbs/Makefile (CPPFLAGS): Likewise.
16296         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
16297         Use $(libio-mtsafe).
16298         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
16299         of -D_IO_MTSAFE_IO.
16300         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
16301         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
16302         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
16303         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
16304         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
16305         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
16306         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
16307         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
16308         (CFLAGS-fread_u_chk.c): Likewise.
16309         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
16310         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
16311         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
16312         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
16313         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
16314         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
16315         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
16316         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
16317         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
16318
16319         * libio/Makefile: Test [$(libc-reentrant) = yes]
16320         instead of [$(filter %REENTRANT, $(defines)) nonempty].
16321
16322         * Makeconfig
16323         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
16324         * sysdeps/pthread/configure: File removed.
16325         * sysdeps/pthread/Makeconfig: New file.
16326         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
16327         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
16328
16329 2012-08-16  Gary Benson  <gbenson@redhat.com>
16330
16331         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
16332         unmapping the first object in a namespace.
16333
16334 2012-08-16  Roland McGrath  <roland@hack.frob.com>
16335
16336         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
16337         (__internal_setnetgrent): ... this.  Add internal_function to
16338         definition.  Add libc_hidden_def.
16339         (setnetgrent): Update caller.
16340         (internal_endnetgrent): Renamed to ...
16341         (__internal_endnetgrent): ... this.  Add internal_function to
16342         definition.  Add libc_hidden_def.
16343         (endnetgrent): Update caller.
16344         (internal_getnetgrent_r): Renamed to ...
16345         (__internal_getnetgrent_r): ... this.  Add internal_function to
16346         definition.  Add libc_hidden_def.
16347         (__getnetgrent_r): Update caller.
16348         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
16349
16350 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
16351
16352         * stdlib/longlong.h: Update from GCC.
16353
16354 2012-08-16  Roland McGrath  <roland@hack.frob.com>
16355
16356         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
16357         on _QL, which is set by umul_ppmm but never used.
16358         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
16359         variables, which are set by GMP macros but never used.
16360         * stdio-common/_itowa.c (_itowa): Likewise.
16361         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
16362         * stdlib/mod_1.c (mpn_mod_1): Likewise.
16363
16364 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
16365
16366         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
16367         struct La_sh_regs is not constant.
16368         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
16369         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
16370         and struct La_sparc64_regs are not constant.
16371
16372 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
16373
16374         * sysdeps/unix/sysv/linux/kernel-features.h
16375         (__ASSUME_POSIX_TIMERS): Remove.
16376         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
16377         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
16378         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
16379         Make code unconditional.
16380         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
16381         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
16382         Make code unconditional.
16383         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
16384         * sysdeps/unix/sysv/linux/clock_nanosleep.c
16385         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
16386         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
16387         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
16388         Make code unconditional.
16389         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
16390         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
16391         (__libc_missing_posix_timers): Remove.
16392
16393 2012-08-15  Roland McGrath  <roland@hack.frob.com>
16394
16395         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
16396         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
16397
16398         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
16399
16400         * elf/dl-sym.c: Include <stdlib.h>.
16401
16402         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
16403         constants, which avoids warnings in 32-bit builds.
16404
16405         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
16406         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
16407
16408         * misc/lseek.c: File moved to ...
16409         * io/lseek.c: ... here.
16410
16411         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
16412
16413         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
16414         shifting LEN more than 31 bits at once.
16415
16416 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16417
16418         [BZ #14195]
16419         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
16420         segmentation fault for a case of two empty input strings.
16421         * string/test-strncasecmp.c (check1): Renamed to...
16422         (bz12205): ...this.
16423         (bz14195): Add new testcase for two empty input strings and N > 0.
16424         (test_main): Call new testcase, adapt for renamed function.
16425
16426 2012-08-15  Andreas Jaeger  <aj@suse.de>
16427
16428         [BZ #14090]
16429         * crypt/md5test2.c: New test, based on test supplied by Serge
16430         Belyshev <belyshev@depni.sinp.msu.ru>.
16431         * crypt/Makefile (xtests): Add md5test-giant..
16432         * crypt/Makefile ($(objpfx)md5test-giant): Add.
16433
16434 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
16435
16436         [BZ #14090]
16437         * crypt/md5.c (md5_process_block): Don't assume the buffer
16438         length is less than 2**32.
16439         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
16440         length is less than 2**64.
16441
16442 2012-08-15  Roland McGrath  <roland@hack.frob.com>
16443
16444         * string/str-two-way.h: Include <sys/param.h>.
16445         (MAX): Macro removed.
16446
16447         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
16448         Move #define and #undef of memmove to just before and after
16449         including <string.h>.
16450
16451         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
16452         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
16453         and after including <string.h>.  Move declarations of
16454         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
16455         to before #include "string/memmove.c".
16456
16457         * include/dirent.h: Declare __getdirentries.
16458
16459         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
16460         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
16461
16462 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
16463
16464         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
16465         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
16466         * sysdeps/i386/configure: Regenerated.
16467         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
16468         STABS_CURRENT_FILE, and STABS_FUN.
16469         (END): Remove call to STABS_FUN_END.
16470         (STABS_CURRENT_FILE1): Delete.
16471         (STABS_CURRENT_FILE): Likewise.
16472         (STABS_FUN): Likewise.
16473         (STABS_FUN_END): Likewise.
16474         (STABS_FUN2): Likewise.
16475         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
16476         * sysdeps/x86_64/configure: Regenerated.
16477
16478 2012-08-14  Roland McGrath  <roland@hack.frob.com>
16479
16480         * elf/dl-open.c: Include <atomic.h>.
16481         * elf/dl-lookup.c: Likewise.
16482
16483 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
16484
16485         * sysdeps/unix/sysv/linux/kernel-features.h
16486         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
16487         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
16488         unconditionally.
16489         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
16490         unconditionally.
16491         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
16492         condition on __ASSUME_CLONE_THREAD_FLAGS.
16493
16494 2012-08-14  Andreas Jaeger  <aj@suse.de>
16495
16496         * sysdeps/i386/fpu/libm-test-ulps: Update.
16497
16498 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
16499
16500         * include/atomic.h (atomic_exchange_and_add): Split into ...
16501         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
16502         New atomic macros.
16503
16504 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
16505
16506         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16507
16508 2012-08-13  Jeff Law <law@redhat.com>
16509
16510         * manual/stdio.texi (snprintf): Clarify handling of the trailing
16511         null byte in the output string.
16512
16513 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
16514
16515         * sysdeps/unix/sysv/linux/kernel-features.h
16516         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
16517         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
16518         (__ASSUME_ARG_MAX_STACK_BASED): Define.
16519         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
16520         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
16521         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
16522         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
16523
16524 2012-08-09  Jeff Law <law@redhat.com>
16525
16526         [BZ #13939]
16527         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
16528         When avoid_arena is set, don't retry in the that arena.  Pick the
16529         next one, whatever it might be.
16530         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
16531         (arena_lock): Pass in new parameter to arena_get2.
16532         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
16533         arena_get2.
16534         (__libc_malloc): Unify retrying after main arena failure with
16535         __libc_memalign version.
16536         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
16537
16538 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
16539
16540         [BZ #14166]
16541         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
16542         to __redirect_strstr.
16543         (__strstr_sse42): Use typeof __redirect_strstr.
16544         (__strstr_ia32): Likewise.
16545         (__libc_strstr): New prototype.
16546         (strstr): Renamed to ...
16547         (__libc_strstr): This.
16548         (strstr): New strong alias of __libc_strstr.
16549         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
16550         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
16551         __redirect_time.
16552         Include <time.h>.
16553         (__libc_time): New prototype.
16554         (time_ifunc): Replace time with __libc_time.
16555         (time): New strong alias and hidden definition of __libc_time.
16556         (__GI_time): Remove strong alias.
16557         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
16558         Include <stddef.h>.
16559         (memmove): Redefined to __redirect_memmove.
16560         (__memmove_sse2): Use typeof __redirect_memmove.
16561         (__memmove_ssse3): Likewise.
16562         (__memmove_ssse3_back): Likewise.
16563         (__libc_memmove): New prototype.
16564         (memmove): Renamed to ...
16565         (__libc_memmove): This.
16566         (memmove): New strong alias of __libc_memmove.
16567
16568 2012-08-08  Mark Salter  <msalter@redhat.com>
16569
16570         * elf/elf.h
16571         (R_MN10300_TLS_GD): Define.
16572         (R_MN10300_TLS_LD): Likewise.
16573         (R_MN10300_TLS_LDO): Likewise.
16574         (R_MN10300_TLS_GOTIE): Likewise.
16575         (R_MN10300_TLS_IE): Likewise.
16576         (R_MN10300_TLS_LE): Likewise.
16577         (R_MN10300_TLS_DTPMOD): Likewise.
16578         (R_MN10300_TLS_DTPOFF): Likewise.
16579         (R_MN10300_TLS_TPOFF): Likewise.
16580         (R_MN10300_SYM_DIFF): Likewise.
16581         (R_MN10300_ALIGN): Likewise.
16582         (R_MN10300_NUM): Update.
16583
16584 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
16585
16586         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
16587         Remove.
16588
16589 2012-08-08  Roland McGrath  <roland@hack.frob.com>
16590
16591         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
16592
16593         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
16594         sysdeps/unix -> sysdeps/posix move.
16595         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
16596
16597 2012-08-07      Allan McRae     <allan@archlinux.org>
16598
16599         [BZ #14303]
16600         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
16601         (SUNOS_CPP): Likewise.
16602         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
16603         not found.
16604         (open_input): Call CPP using execvp.
16605
16606 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
16607
16608         * sysdeps/unix/sysv/linux/kernel-features.h
16609         (__ASSUME_PROT_GROWSUPDOWN): Remove.
16610         (__ASSUME_NO_CLONE_DETACHED): Likewise.
16611         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
16612         (__ASSUME_WAITID_SYSCALL): Likewise.
16613         * sysdeps/unix/sysv/linux/dl-execstack.c
16614         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
16615         code unconditional.
16616         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
16617         conditional code.
16618         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
16619         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
16620         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
16621         code.
16622         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
16623         unconditional.
16624         [__ASSUME_WAITID_SYSCALL]: Likewise.
16625         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
16626
16627 2012-08-07  Roland McGrath  <roland@hack.frob.com>
16628
16629         * sysdeps/unix/closedir.c: Renamed to ...
16630         * sysdeps/posix/closedir.c: ... here.
16631         * sysdeps/unix/dirfd.c: Renamed to ...
16632         * sysdeps/posix/dirfd.c: ... here.
16633         * sysdeps/unix/dirstream.h: Renamed to ...
16634         * sysdeps/posix/dirstream.h: ... here.
16635         * sysdeps/unix/fdopendir.c: Renamed to ...
16636         * sysdeps/posix/fdopendir.c: ... here.
16637         * sysdeps/unix/opendir.c: Renamed to ...
16638         * sysdeps/posix/opendir.c: ... here.
16639         * sysdeps/unix/readdir.c: Renamed to ...
16640         * sysdeps/posix/readdir.c: ... here.
16641         * sysdeps/unix/readdir_r.c: Renamed to ...
16642         * sysdeps/posix/readdir_r.c: ... here.
16643         * sysdeps/unix/rewinddir.c: Renamed to ...
16644         * sysdeps/posix/rewinddir.c: ... here.
16645         * sysdeps/unix/seekdir.c: Renamed to ...
16646         * sysdeps/posix/seekdir.c: ... here.
16647         * sysdeps/unix/telldir.c: Renamed to ...
16648         * sysdeps/posix/telldir.c: ... here.
16649         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
16650         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
16651         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
16652         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
16653
16654         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
16655         * bits/fcntl.h: ... here.
16656
16657         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
16658         not 0.
16659         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
16660         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
16661         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
16662         (struct flock): Move l_start, l_len to the beginning.
16663         Use __pid_t for l_pid.
16664         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
16665         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
16666         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
16667         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
16668         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
16669         [__USE_LARGEFILE64] (struct flock64): New type.
16670         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
16671
16672         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
16673         * bits/dirent.h: ... here.
16674
16675         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
16676         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
16677
16678 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
16679
16680         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16681         Change from 2.6.0 to 2.6.16.
16682         * sysdeps/unix/sysv/linux/configure: Regenerated.
16683         * sysdeps/unix/sysv/linux/kernel-features.h
16684         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
16685         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
16686         version.
16687         (__ASSUME_UTIMES): Likewise.
16688         (__ASSUME_CLONE_STOPPED): Remove.
16689         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
16690         architectures, not kernel version.
16691         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
16692         (__ASSUME_NO_CLONE_DETACHED): Likewise.
16693         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
16694         (__ASSUME_WAITID_SYSCALL): Likewise.
16695         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
16696         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
16697         * README: State 2.6.16 as minimum Linux kernel version.  Do not
16698         refer to older versions.
16699
16700 2012-08-06  Roland McGrath  <roland@hack.frob.com>
16701
16702         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
16703         Define alphasort64 as an alias.
16704         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
16705         Define versionsort64 as an alias.
16706         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
16707         Define scandir64 as an alias.
16708         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
16709         Define scandirat64 as an alias.
16710         * dirent/alphasort64.c (alphasort64):
16711         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
16712         * dirent/versionsort64.c: Likewise.
16713         * dirent/scandir64.c: Likewise.
16714         * dirent/scandirat64.c: Likewise.
16715         * sysdeps/wordsize-64/alphasort.c: File removed.
16716         * sysdeps/wordsize-64/alphasort64.c: File removed.
16717         * sysdeps/wordsize-64/scandir.c: File removed.
16718         * sysdeps/wordsize-64/scandir64.c: File removed.
16719         * sysdeps/wordsize-64/scandirat.c: File removed.
16720         * sysdeps/wordsize-64/scandirat64.c: File removed.
16721         * sysdeps/wordsize-64/versionsort.c: File removed.
16722         * sysdeps/wordsize-64/versionsort64.c: File removed.
16723         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
16724         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
16725         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
16726         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
16727         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
16728         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
16729         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
16730         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
16731
16732         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
16733         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
16734         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
16735         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16736         [defined __arch64__ || defined __sparcv9]
16737         (__INO_T_MATCHES_INO64_T): New macro.
16738         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
16739         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
16740         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
16741         * sysdeps/unix/sysv/linux/bits/dirent.h
16742         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
16743         (_DIRENT_MATCHES_DIRENT64): New macro.
16744
16745         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
16746         Define lockf64 as an alias.
16747         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
16748         Define fseeko64 as an alias.
16749         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
16750         Define ftello64 as an alias.
16751         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
16752         Define _IO_fgetpos64 and fgetpos64 as aliases.
16753         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
16754         Define _IO_fsetpos64 and fsetpos64 as aliases.
16755         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
16756         Conditionalize body on this.
16757         * libio/fseeko64.c: Likewise.
16758         * libio/ftello64.c: Likewise.
16759         * libio/iofgetpos64.c: Likewise.
16760         * libio/iofsetpos64.c: Likewise.
16761         * sysdeps/wordsize-64/lockf.c: File removed.
16762         * sysdeps/wordsize-64/lockf64.c: File removed.
16763         * sysdeps/wordsize-64/fseeko.c: File removed.
16764         * sysdeps/wordsize-64/fseeko64.c: File removed.
16765         * sysdeps/wordsize-64/ftello.c: File removed.
16766         * sysdeps/wordsize-64/ftello64.c: File removed.
16767         * sysdeps/wordsize-64/iofgetpos.c: File removed.
16768         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
16769         * sysdeps/wordsize-64/iofsetpos.c: File removed.
16770         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
16771         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
16772         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
16773         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
16774         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
16775         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
16776         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
16777         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
16778         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
16779         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
16780         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
16781
16782         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
16783         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
16784         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
16785         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16786         [defined __arch64__ || defined __sparcv9]
16787         (__OFF_T_MATCHES_OFF64_T): New macro.
16788         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
16789         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
16790         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
16791         (__OFF_T_MATCHES_OFF64_T): New macro.
16792
16793 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
16794
16795         * stdlib/secure-getenv.c (__secure_getenv): Replace
16796         GLIBC_2_16 with GLIBC_2_17.
16797
16798 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
16799
16800         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
16801         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
16802
16803 2012-08-03  David S. Miller  <davem@davemloft.net>
16804
16805         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16806
16807 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
16808
16809         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
16810         Remove.
16811         (__ASSUME_CORRECT_SI_PID): Likewise.
16812         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
16813         (__ASSUME_TMPFS_NAME): Likewise.
16814         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
16815         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
16816         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
16817         (HAVE_AUX_SECURE): Make definition unconditional.
16818         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
16819         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
16820
16821 2012-08-03  Roland McGrath  <roland@hack.frob.com>
16822
16823         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
16824         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
16825         * sysdeps/mach/hurd/eloop-threshold.h: New file.
16826         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
16827         __eloop_threshold instead of SYMLOOP_MAX.
16828
16829         * sysdeps/generic/eloop-threshold.h: New file.
16830         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
16831         of MAXSYMLINKS.
16832         * elf/chroot_canon.c (chroot_canon): Likewise.
16833
16834 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
16835
16836         [BZ #13717]
16837         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16838         Change to 2.6.0 everywhere.
16839         * sysdeps/unix/sysv/linux/configure: Regenerated.
16840         * sysdeps/unix/sysv/linux/kernel-features.h
16841         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
16842         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
16843         kernel versions.
16844         (__ASSUME_POSIX_TIMERS): Define unconditionally.
16845         (__ASSUME_FUTEX_REQUEUE): Remove.
16846         (__ASSUME_STATFS64): Define unconditionally.
16847         (__ASSUME_AT_SECURE): Likewise.
16848         (__ASSUME_CORRECT_SI_PID): Likewise.
16849         (__ASSUME_TGKILL): Define without depending on kernel version for
16850         i386.
16851         (__ASSUME_UTIMES): Likewise.
16852         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
16853         kernel version.
16854         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
16855         (__ASSUME_TMPFS_NAME): Likewise.
16856         * README: Update reference to Linux kernel versions.
16857
16858 2012-08-02  Marek Polacek  <polacek@redhat.com>
16859
16860         [BZ# 14150]
16861         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
16862         libc_cv_asm_type_prefix with %.
16863         * configure: Regenerated.
16864         * include/libc-symbols.h: Remove comment about
16865         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
16866         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
16867         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
16868         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
16869         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
16870         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
16871         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
16872         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
16873         * elf/tst-unique2mod1.c: Likewise.
16874         * elf/tst-unique1mod2.c: Likewise.
16875         * elf/tst-unique1mod1.c: Likewise.
16876         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
16877         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
16878         Replace ASM_TYPE_DIRECTIVE with .type.
16879         * sysdeps/s390/s390-64/sysdep.h: Likewise.
16880         * sysdeps/i386/sysdep.h: Likewise.
16881         * sysdeps/x86_64/sysdep.h: Likewise.
16882         * sysdeps/sh/sysdep.h: Likewise.
16883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
16884         Do not define ASM_TYPE_DIRECTIVE.
16885         * sysdeps/powerpc/sysdep.h: Likewise.
16886         * sysdeps/powerpc/powerpc32/sysdep.h:
16887         Replace ASM_TYPE_DIRECTIVE with .type.
16888         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
16889         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
16890         * sysdeps/i386/fpu/e_powf.S: Likewise.
16891         * sysdeps/i386/fpu/e_expl.S: Likewise.
16892         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
16893         * sysdeps/i386/fpu/e_acosh.S: Likewise.
16894         * sysdeps/i386/fpu/e_pow.S: Likewise.
16895         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
16896         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
16897         * sysdeps/i386/fpu/s_expm1.S: Likewise.
16898         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
16899         * sysdeps/i386/fpu/e_log2.S: Likewise.
16900         * sysdeps/i386/fpu/e_log2l.S: Likewise.
16901         * sysdeps/i386/fpu/e_scalb.S: Likewise.
16902         * sysdeps/i386/fpu/e_powl.S: Likewise.
16903         * sysdeps/i386/fpu/e_log10f.S: Likewise.
16904         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
16905         * sysdeps/i386/fpu/e_logl.S: Likewise.
16906         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
16907         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
16908         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
16909         * sysdeps/i386/fpu/e_log2f.S: Likewise.
16910         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
16911         * sysdeps/i386/fpu/e_log.S: Likewise.
16912         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
16913         * sysdeps/i386/fpu/e_logf.S: Likewise.
16914         * sysdeps/i386/fpu/e_log10l.S: Likewise.
16915         * sysdeps/i386/fpu/e_atanh.S: Likewise.
16916         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
16917         * sysdeps/i386/fpu/e_log10.S: Likewise.
16918         * sysdeps/i386/fpu/s_frexp.S: Likewise.
16919         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
16920         * sysdeps/i386/fpu/s_asinh.S: Likewise.
16921         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
16922         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
16923         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
16924         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
16925         * sysdeps/i386/i686/strtok.S: Likewise.
16926         * sysdeps/i386/i386-mcount.S: Likewise.
16927         * sysdeps/i386/strtok.S: Likewise.
16928         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
16929         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
16930         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
16931         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
16932         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
16933         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
16934         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
16935         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
16936         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
16937         * sysdeps/x86_64/_mcount.S: Likewise.
16938         * sysdeps/x86_64/strtok.S: Likewise.
16939         * sysdeps/sh/_mcount.S: Likewise.
16940
16941 2012-08-01  Roland McGrath  <roland@hack.frob.com>
16942
16943         * libio/iofopen.c: Include <fcntl.h>.
16944         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
16945         (_IO_fopen64, fopen64): Define as aliases.
16946         * libio/iofopen64.c: Include <fcntl.h>.
16947         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
16948         Conditionalize body on this.
16949         * sysdeps/wordsize-64/iofopen.c: File removed.
16950         * sysdeps/wordsize-64/iofopen64.c: File removed.
16951
16952 2012-08-01  Marek Polacek  <polacek@redhat.com>
16953
16954         * libc/Makeconfig: Use elf in place of binfmt-subdir.
16955         Use dlfcn directly instead of a variable.
16956         (binfmt-subdir): Do not define.
16957         (dlfcn): Likewise.
16958
16959 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
16960
16961         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
16962         Remove all definitions.
16963         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
16964         <kernel-features.h>.
16965         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
16966         (miss_F_GETOWN_EX): Remove all definitions.
16967         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
16968         macro definition.
16969         [!__ASSUME_FCNTL64]: Remove conditional code.
16970         [__ASSUME_FCNTL64]: Make code unconditional.
16971         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
16972         <kernel-features.h>.
16973         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
16974         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
16975         (lockf64) [__NR_fcntl64]: Make code unconditional.
16976         (lockf64) [__ASSUME_FCNTL64]: Likewise.
16977
16978         * sysdeps/unix/sysv/linux/kernel-features.h
16979         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
16980         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
16981         Make code unconditional.
16982         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
16983         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
16984         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
16985         [__NR_vfork]: Make code unconditional.
16986         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
16987         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
16988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
16989         [__NR_vfork]: Make code unconditional.
16990         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
16991         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
16992
16993 2012-08-01  Roland McGrath  <roland@hack.frob.com>
16994
16995         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
16996         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
16997
16998         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
16999         Define mkstemp64 as an alias.
17000         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
17001         Define mkstemps64 as an alias.
17002         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
17003         Define mkostemp64 as an alias.
17004         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
17005         Define mkostemps64 as an alias.
17006         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
17007         Conditionalize body on this.
17008         * misc/mkostemp64.c: Likewise.
17009         * misc/mkostemps64.c: Likewise.
17010         * misc/mkstemps64.c: Likewise.
17011         * sysdeps/wordsize-64/mkstemp64.c: File removed.
17012         * sysdeps/wordsize-64/mkostemp64.c: File removed.
17013         * sysdeps/wordsize-64/mkostemp.c: File removed.
17014         * sysdeps/wordsize-64/mkstemp.c: File removed.
17015         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
17016         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
17017         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
17018         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
17019
17020         [BZ #14138]
17021         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
17022         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
17023         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
17024         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
17025
17026         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
17027         compat_symbol macros from <shlib-compat.h> rather than the underlying
17028         default_symbol_version and symbol_version macros, so that DEFAULT
17029         lines in shlib-versions are respected.
17030         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
17031
17032 2012-08-01  Florian Weimer  <fweimer@redhat.com>
17033
17034         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
17035         Declare with warn_unused_result.
17036         (setgid, setregid, setegid, setresgid): Likewise.
17037         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
17038         Likewise.
17039         * WUR-REPORT: Remove set*id functions.
17040
17041 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
17042
17043         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
17044
17045 2012-07-31  Roland McGrath  <roland@hack.frob.com>
17046
17047         [BZ #10191]
17048         * include/sys/socket.h (__libc_accept, __libc_accept4):
17049         Add attribute_hidden.
17050         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
17051
17052         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
17053         use of PTR_MANGLE.
17054         * inet/getnetgrent_r.c (setup): Likewise.
17055
17056         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
17057
17058 2012-07-31  David S. Miller  <davem@davemloft.net>
17059
17060         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17061
17062 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
17063
17064         [BZ #13629]
17065         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
17066         value between 1.0 and 2.0 and smaller part has absolute value less
17067         than 1.0.
17068         * math/s_clog10.c (__clog10): Likewise.
17069         * math/s_clog10f.c (__clog10f): Likewise.
17070         * math/s_clog10l.c (__clog10l): Likewise.
17071         * math/s_clogf.c (__clogf): Likewise.
17072         * math/s_clogl.c (__clogl): Likewise.
17073         * math/libm-test.inc (clog_test): Add more tests.
17074         (clog10_test): Likewise.
17075         * sysdeps/i386/fpu/libm-test-ulps: Update.
17076         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17077
17078 2012-07-31  Florian Weimer  <fweimer@redhat.com>
17079
17080         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
17081         Exit with zero in case no suitable GID is found, and write a
17082         message to standard error.
17083
17084 2012-07-30  Roland McGrath  <roland@hack.frob.com>
17085
17086         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
17087         rather than to 1.
17088         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
17089         (MAXPATHLEN): Removed.
17090         (NOGROUP, NODEV): New macros.
17091         (setbit, clrbit, isset, isclr): New macros.
17092         (howmany, roundup, powerof2): New macros.
17093         (DEV_BSIZE): New macro.
17094
17095         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
17096         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
17097
17098         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
17099         definition on [!__NO_LONG_DOUBLE_MATH].
17100
17101         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
17102         PTR_MANGLE and PTR_DEMANGLE.
17103
17104         * socket/accept4.c (accept4): Rename to __libc_accept4.
17105         Define accept4 as a weak alias.
17106
17107         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
17108         on [_DIRENT_HAVE_D_TYPE].
17109         * io/ftw.c (ftw_dir): Likewise.
17110
17111         * io/xmknod.c (__xmknod): Don't check PATH for being null.
17112
17113         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
17114
17115         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
17116         Use the BSD numbers rather than the arbitrary ones we had.
17117         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
17118         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
17119         (SIGXCPU, SIGXFSZ): New macros.
17120         (_NSIG): Now 32.
17121
17122         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
17123         initializer on [_LIBC_REENTRANT].
17124
17125         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
17126         definitions inside [_POSIX_MAPPED_FILES].
17127
17128         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
17129
17130         * dirent/opendir.c: Include <fcntl.h>.
17131
17132         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
17133         (__libc_getspecific): Likewise.
17134         (__libc_key_create): Likewise.
17135
17136         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
17137         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
17138         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
17139         (tmpfile64): Define as alias.
17140         * sysdeps/wordsize-64/tmpfile.c: File removed.
17141         * sysdeps/wordsize-64/tmpfile64.c: File removed.
17142         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
17143         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
17144
17145         * stdio-common/vfscanf.c: Include <stdbool.h>.
17146         * nss/makedb.c: Likewise.
17147         * stdio-common/_i18n_number.h: Likewise.
17148         * argp/argp-help.c: Likewise.
17149         * posix/wordexp.c: Likewise.
17150         * sysdeps/posix/spawni.c: Likewise.
17151         * nss/nss_files/files-initgroups.c: Likewise.
17152         * stdio-common/reg-modifier.c: Include <stdlib.h>.
17153         * nss/nss_files/files-initgroups.c: Likewise.
17154         * nss/nss_db/db-netgrp.c: Likewise.
17155         * nss/nss_db/db-initgroups.c: Likewise.
17156         * io/fchmodat.c: Include <sys/stat.h>.
17157
17158         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
17159         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
17160
17161         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
17162         [HAVE_MMAP].
17163
17164         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
17165         Add multiple inclusion protection.
17166
17167 2012-07-27  David S. Miller  <davem@davemloft.net>
17168
17169         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17170
17171 2012-07-27  Gary Benson  <gbenson@redhat.com>
17172
17173         [BZ #14298]
17174         * elf/rtld.c: Include <stap-probe.h>.
17175         (dl_main): Added static probes "init_start" and "init_complete".
17176         * elf/dl-load.c: Include <stap-probe.h>.
17177         (lose): Take new parameter "nsid".
17178         Added static probe "map_failed".
17179         (_dl_map_object_from_fd): Pass namespace id to lose.
17180         Added static probe "map_start".
17181         (open_verify): Pass namespace id to lose.
17182         * elf/dl-open.c: Include <stap-probe.h>.
17183         (dl_open_worker) Added static probes "map_complete", "reloc_start"
17184         and "reloc_complete".
17185         * elf/dl-close.c: Include <stap-probe.h>.
17186         (_dl_close_worker): Added static probes "unmap_start" and
17187         "unmap_complete".
17188         * elf/rtld-debugger-interface.txt: New file documenting the above.
17189
17190 2012-07-26  Roland McGrath  <roland@hack.frob.com>
17191
17192         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
17193         rather than a string variable.
17194         * sunrpc/rpc_main.c (h_output): Likewise.
17195         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
17196
17197 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
17198
17199         * inet/check_native.c: New file.
17200
17201 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
17202
17203         [BZ #13629]
17204         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
17205         if larger part has absolute value 1.0.
17206         * math/s_clog10.c (__clog10): Likewise.
17207         * math/s_clog10f.c (__clog10f): Likewise.
17208         * math/s_clog10l.c (__clog10l): Likewise.
17209         * math/s_clogf.c (__clogf): Likewise.
17210         * math/s_clogl.c (__clogl): Likewise.
17211         * math/libm-test.inc (clog_test): Add more tests.
17212         (clog10_test): Likewise.
17213         * sysdeps/i386/fpu/libm-test-ulps: Update.
17214         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17215
17216         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
17217         (pltexit): Likewise.
17218         (La_regs): Likewise.
17219         (La_retval): Likewise.
17220         (int_retval): Likewise.
17221         Update #error for removed macros to refer only to definitions in
17222         tst-audit.h.
17223         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
17224         macro.
17225         (pltexit): Likewise.
17226         (La_regs): Likewise.
17227         (La_retval): Likewise.
17228         (int_retval): Likewise.
17229         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
17230         macro.
17231         (pltexit): Likewise.
17232         (La_regs): Likewise.
17233         (La_retval): Likewise.
17234         (int_retval): Likewise.
17235         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
17236         macro.
17237         (pltexit): Likewise.
17238         (La_regs): Likewise.
17239         (La_retval): Likewise.
17240         (int_retval): Likewise.
17241         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
17242         macro.
17243         (pltexit): Likewise.
17244         (La_regs): Likewise.
17245         (La_retval): Likewise.
17246         (int_retval): Likewise.
17247         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
17248         macro.
17249         (pltexit): Likewise.
17250         (La_regs): Likewise.
17251         (La_retval): Likewise.
17252         (int_retval): Likewise.
17253         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
17254         macro.
17255         (pltexit): Likewise.
17256         (La_regs): Likewise.
17257         (La_retval): Likewise.
17258         (int_retval): Likewise.
17259         * sysdeps/generic/tst-audit.h: Update comment to refer only to
17260         macro definitions in tst-audit.h.
17261         * sysdeps/i386/tst-audit.h: New file.
17262         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
17263         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
17264         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
17265         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
17266         * sysdeps/sh/tst-audit.h: Likewise.
17267         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
17268         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
17269         * sysdeps/x86_64/tst-audit.h: Likewise.
17270
17271 2012-07-26  Andreas Jaeger  <aj@suse.de>
17272
17273         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
17274         ptrace.
17275
17276         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
17277         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
17278         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
17279         PTRACE_O_MASK.
17280         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
17281         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
17282         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
17283
17284         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
17285         value.
17286
17287         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
17288         _sigsys.
17289         (si_call_addr, si_syscall, si_arch): Define new macro.
17290         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
17291         _sigsys.
17292         (si_call_addr, si_syscall, si_arch): Define new marcro.
17293         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
17294         _sigsys.
17295         (si_call_addr, si_syscall, si_arch): Define new macro.
17296         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
17297         _sigsys.
17298         (si_call_addr, si_syscall, si_arch): Define new macro.
17299
17300 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
17301
17302         [BZ #13717]
17303         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
17304         Change to 2.4.21 where previously 2.4.1.
17305         * sysdeps/unix/sysv/linux/configure: Regenerated.
17306         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
17307         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
17308         Linux kernel version.
17309         (__ASSUME_STD_AUXV): Remove.
17310         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
17311         kernel version.
17312         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
17313         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
17314         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
17315         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
17316         (__ASSUME_NETLINK_SUPPORT): Likewise.
17317         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
17318         (__no_netlink_support): Remove conditional definition.
17319         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
17320         Remove.
17321         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
17322         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
17323         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
17324         (if_nameindex_ioctl): Remove.
17325         (if_nameindex_netlink): Do not handle __no_netlink_support.
17326         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
17327         code.
17328         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
17329         Remove conditional code.
17330         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
17331         code.
17332         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
17333         unconditional.
17334         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
17335         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
17336         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
17337         Remove.
17338         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
17339         [!__ASSUME_STD_AUXV]: Remove conditional code.
17340         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
17341         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
17342         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
17343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
17344         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
17345         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
17346         code.
17347         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
17348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
17349         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
17350         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
17351         conditional code.
17352         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
17353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
17354         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
17355         code.
17356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
17357         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
17358         conditional code.
17359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
17360         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
17361         code unconditional.
17362         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17363         conditional code.
17364         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
17365         unconditional.
17366         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17367         conditional code.
17368         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
17369         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
17370         unconditional.
17371         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17372         conditional code.
17373         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17374         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
17375         code unconditional.
17376         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17377         conditional code.
17378         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
17379         unconditional.
17380         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17381         conditional code.
17382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17383         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
17384         code unconditional.
17385         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17386         conditional code.
17387         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
17388         unconditional.
17389         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17390         conditional code.
17391
17392 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
17393
17394         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
17395         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
17396         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
17397         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
17398         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
17399         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
17400         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
17401         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
17402         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
17403         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
17404         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
17405         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
17406         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
17407         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
17408         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
17409         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
17410         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
17411         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
17412         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
17413         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
17414         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
17415         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
17416         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
17417
17418 2012-07-25  Florian Weimer  <fweimer@redhat.com>
17419
17420         * Versions.def: Add GLIBC_2.17.
17421         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
17422         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
17423         Introduce __libc_secure_getenv.
17424         * stdlib/Versions (2.17): Add secure_getenv
17425         (GLIBC_PRIVATE): Add __libc_secure_getenv.
17426         * stdlib/secure-getenv.c: Rename __secure_getenv to
17427         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
17428         symbol __secure_getenv for GLIBC_2.0.
17429         * stdlib/tst-secure-getenv.c: New.
17430         * stdlib/Makefile (tests): Add testcase.
17431         * manual/startup.texi (Environment Access): Document
17432         secure_getenv.
17433         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
17434         __libc_secure_getenv.
17435         * inet/ruserpass.c (ruserpass): Likewise.
17436         * malloc/mtrace.c (mtrace): Likewise.
17437         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
17438         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
17439         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
17440         * sysdeps/posix/tempname.c: Likewise.  Evaluate
17441         HAVE_SECURE_GETENV.
17442         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
17443         __secure_getenv to __libc_secure_getenv.
17444         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
17445         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17446         Likewise.
17447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17448         Likewise.
17449         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
17450         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
17451         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
17452         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
17453         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
17454         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
17455         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
17456
17457 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
17458
17459         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
17460         (struct La_i86_retval): Likewise.
17461         (struct La_x86_64_regs): Likewise.
17462         (struct La_x86_64_retval): Likewise.
17463         (struct La_x32_regs): Likewise.
17464         (struct La_x32_retval): Likewise.
17465         (struct La_ppc32_regs): Likewise.
17466         (struct La_ppc32_retval): Likewise.
17467         (struct La_ppc64_regs): Likewise.
17468         (struct La_ppc64_retval): Likewise.
17469         (struct La_sh_regs): Likewise.
17470         (struct La_sh_retval): Likewise.
17471         (struct La_s390_32_regs): Likewise.
17472         (struct La_s390_32_retval): Likewise.
17473         (struct La_s390_64_regs): Likewise.
17474         (struct La_s390_64_retval): Likewise.
17475         (struct La_sparc32_regs): Likewise.
17476         (struct La_sparc32_retval): Likewise.
17477         (struct La_sparc64_regs): Likewise.
17478         (struct La_sparc64_retval): Likewise.
17479         (struct audit_ifaces): Remove architecture-specific pltenter and
17480         pltexit members.
17481         * sysdeps/i386/ldsodefs.h: New file.
17482         * sysdeps/powerpc/ldsodefs.h: Likewise.
17483         * sysdeps/s390/ldsodefs.h: Likewise.
17484         * sysdeps/sh/ldsodefs.h: Likewise.
17485         * sysdeps/sparc/ldsodefs.h: Likewise.
17486         * sysdeps/x86_64/ldsodefs.h: Likewise.
17487
17488 2012-07-25  Marek Polacek  <polacek@redhat.com>
17489
17490         [BZ #6808]
17491         * math/libm-test.inc (yn_test): Add another test.
17492         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
17493         to ERANGE when the result is +-Inf.
17494         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
17495         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
17496         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
17497         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
17498
17499 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
17500
17501         * conform/data/time.h-data (NULL): Use macro-constant.  Require
17502         equal to 0.
17503         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
17504         clock_t.
17505         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
17506
17507 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
17508
17509         * configure.in <sysdeps resolving>: Correct printing
17510         Implies_before.
17511         * configure: Regenerate.
17512
17513 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
17514
17515         * math/w_ilogb.c: Include <limits.h>.
17516         * math/w_ilogbl.c: Likewise.
17517
17518 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
17519
17520         * manual/lang.texi (__va_copy): Document primarily as ISO C99
17521         va_copy.  Document allowing for unavailable va_copy only as
17522         pre-C99 compatibility.
17523         * manual/string.texi (Copying and Concatenation): Use va_copy
17524         instead of __va_copy in concat example.
17525
17526 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
17527
17528         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
17529         (__sendto): Use create_address_port.  Initialize APORT and deallocate
17530         it if not null.
17531
17532         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
17533         with O_NOLINK passed to __file_name_lookup.
17534
17535         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
17536         with O_NOLINK passed to __file_name_lookup.
17537
17538         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
17539         negative N or less than NGIDS.
17540
17541         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
17542         type to string_t.  Set ERANGE as errno and return it if NAME is not big
17543         enough.  Use memcpy instead of strncpy.
17544
17545 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
17546
17547         * elf/Makefile (check-data): Remove.
17548         (localplt.data): New vpath directive.
17549         ($(objpfx)check-localplt.out): Use localplt.data from vpath
17550         instead of $(check-data).
17551         * scripts/data/localplt-generic.data: Move to ...
17552         * sysdeps/generic/localplt.data: ... here.
17553         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
17554         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
17555         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
17556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
17557         ... here.
17558         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
17559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
17560         ... here.
17561         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
17562         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
17563         ... here.
17564         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
17565         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
17566         ... here.
17567         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
17568         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
17569         ... here.
17570         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
17571         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
17572         ... here.
17573
17574 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17575
17576         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
17577         PPC32 and PPC64 files.
17578         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
17579         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
17580
17581 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17582
17583         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
17584         __makecontext_ret to ...
17585         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
17586         ... here and call exit if uc_link is NULL.  New file.
17587         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
17588         __makecontext_ret.S.
17589         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
17590         __makecontext_ret to ...
17591         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
17592         ... here and call exit if uc_link is NULL.  New file.
17593         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
17594         __makecontext_ret.S.
17595
17596 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17597
17598         * elf/elf.h (R_390_IRELATIVE): New definition.
17599         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
17600         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
17601         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
17602         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
17603         (elf_machine_lazy_rel): Likewise.
17604         * sysdeps/s390/dl-irel.h: New file.
17605         * sysdeps/s390/s390-64/memcpy.S: New asm code.
17606         * sysdeps/s390/s390-64/memset.S: New asm code.
17607         * sysdeps/s390/s390-64/memcmp.S: New asm code.
17608         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
17609         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
17610         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
17611         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
17612         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
17613         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
17614         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
17615         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
17616         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
17617         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
17618         * sysdeps/s390/s390-32/memcpy.S: New asm code.
17619         * sysdeps/s390/s390-32/memset.S: New asm code.
17620         * sysdeps/s390/s390-32/memcmp.S: New asm code.
17621
17622 2012-07-17  Marek Polacek  <polacek@redhat.com>
17623
17624         [BZ #14349]
17625         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
17626         * sysdeps/s390/s390-64/configure.in: Likewise.
17627         * sysdeps/sparc/configure.in: Likewise.
17628         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
17629         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
17630         * sysdeps/i386/configure.in: Likewise.
17631         * sysdeps/x86_64/configure.in: Likewise.
17632         * sysdeps/sh/configure.in: Likewise.
17633         * sysdeps/s390/s390-32/configure: Regenerated.
17634         * sysdeps/s390/s390-64/configure: Likewise.
17635         * sysdeps/x86_64/configure: Likewise.
17636         * sysdeps/sh/configure: Likewise.
17637         * sysdeps/powerpc/powerpc64/configure: Likewise.
17638         * sysdeps/powerpc/powerpc32/configure: Likewise.
17639         * sysdeps/sparc/configure: Likwise.
17640         * sysdeps/i386/configure: Likewise.
17641
17642         * elf/dl-open.c: Comment fixes.
17643
17644 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
17645
17646         * Makefile [CXX] (check-data): Remove.
17647         [CXX] (c++-types.data): New vpath directive.
17648         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
17649         vpath.  Do not allow for C++ type data being missing.
17650         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
17651         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
17652         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
17653         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
17654         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
17655         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
17656         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
17657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
17658         ... here.
17659         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
17660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
17661         ... here.
17662         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
17663         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
17664         ... here.
17665         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
17666         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
17667         ... here.
17668         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
17669         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
17670         ... here.
17671         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
17672         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
17673         ... here.
17674         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
17675         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
17676         ... here.
17677         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
17678         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
17679
17680         * elf/tls-macros.h (TLS_LE): Move architecture-specific
17681         definitions to architecture-specific files.
17682         (TLS_IE): Likewise.
17683         (TLS_LD): Likewise.
17684         (TLS_GD): Likewise.
17685         * sysdeps/i386/tls-macros.h: New file.
17686         * sysdeps/powerpc/tls-macros.h: Likewise.
17687         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
17688         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
17689         * sysdeps/sh/tls-macros.h: Likewise.
17690         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
17691         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
17692         * sysdeps/x86_64/tls-macros.h: Likewise.
17693
17694 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
17695
17696         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
17697         zero value for regular exit case.
17698
17699         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
17700         (__start_context): Preserve zero value for regular exit case.
17701
17702 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
17703             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17704
17705         * manual/setjmp.texi (setcontext): Clarify normal process
17706         termination when uc_link is the null pointer.
17707         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
17708         exit call.
17709
17710 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
17711
17712         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
17713         preprocessor.  Test for each exception mask separately.
17714
17715 2012-07-16  Andreas Jaeger  <aj@suse.de>
17716
17717         * po/ru.po: Update from translation team.
17718
17719 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
17720
17721         * conform/data/string.h-data (NULL): Use macro-constant.  Require
17722         equal to 0.
17723         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
17724         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
17725         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
17726         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
17727         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17728
17729 2012-07-13  Andreas Jaeger  <aj@suse.de>
17730
17731         * po/fr.po: Update from translation team.
17732
17733 2012-07-12  Marek Polacek  <polacek@redhat.com>
17734
17735         [BZ #14173]
17736         * math/libm-test.inc (yn_test): Add test for BZ #14173.
17737         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
17738         loop condition.
17739
17740 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
17741
17742         [BZ #13717]
17743         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
17744         Change to 2.4.1 where previously 2.4.0.
17745         * sysdeps/unix/sysv/linux/configure: Regenerated.
17746         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
17747         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
17748         version.
17749         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
17750         (__ASSUME_AT_CLKTCK): Remove.
17751         (__ASSUME_AT_PAGESIZE): Likewise.
17752         (__ASSUME_AT_XID): Likewise.
17753         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
17754         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
17755         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
17756         unconditionally.
17757         (HAVE_AUX_PAGESIZE): Likewise.
17758         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
17759         [__ASSUME_AT_CLKTCK]: Make code unconditional.
17760         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
17761
17762 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
17763
17764         [BZ #14307]
17765         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
17766         the temporary buffer used to invoke __gethostbyname2_r,
17767         __gethostbyaddr_r and gethostbyname4_r to make room for struct
17768         host_data / struct gaih_addrtuple.
17769         * resolv/nss_dns/dns-host.c (global scope): Move definition of
17770         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
17771         header file nss/nsswitch.h.
17772         * nss/nsswitch.h (global scope): Add definition of implementation
17773         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
17774         resolv/nss_dns/dns-host.c).
17775
17776 2012-07-11  Andreas Jaeger  <aj@suse.de>
17777
17778         * po/fr.po: Update from translation team.
17779
17780         * po/sv.po: Update from translation team
17781         * po/fr.po: Another update from translation team.
17782
17783 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17784
17785         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
17786         for subnormals or multiply small sinh result by itself.
17787         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17788         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17789
17790 2012-07-11  David S. Miller  <davem@davemloft.net>
17791
17792         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17793
17794 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
17795
17796         [BZ #14347]
17797         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
17798         (INTERNAL_MARK): Shift it here.
17799
17800 2012-07-10  Marek Polacek  <polacek@redhat.com>
17801
17802         [BZ #14151]
17803         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
17804         libc_cv_asm_global_directive with .globl.
17805         * configure: Regenerated.
17806         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
17807         with .globl.
17808         * sysdeps/i386/configure: Regenerated.
17809         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
17810         with .globl.
17811         * sysdeps/x86_64/configure: Regenerated.
17812         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
17813         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
17814         * elf/tst-unique2mod2.c: Likewise.
17815         * elf/tst-unique2mod1.c: Likewise.
17816         * elf/tst-unique1mod2.c: Likewise.
17817         * elf/tst-unique1mod1.c: Likewise.
17818         * sysdeps/s390/s390-32/sysdep.h: Likewise.
17819         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
17820         * sysdeps/s390/s390-64/sysdep.h: Likewise.
17821         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
17822         * sysdeps/mach/sysdep.h: Likewise.
17823         * sysdeps/i386/sysdep.h: Likewise.
17824         * sysdeps/i386/i386-mcount.S: Likewise.
17825         * sysdeps/x86_64/_mcount.S: Likewise.
17826         * sysdeps/x86_64/sysdep.h: Likewise.
17827         * sysdeps/sh/_mcount.S: Likewise.
17828         * sysdeps/sh/sysdep.h: Likewise.
17829         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
17830         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
17831         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
17832         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
17833         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
17834         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
17835         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
17836         * locale/localeinfo.h: Likewise.
17837         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
17838         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
17839
17840 2012-07-09  Roland McGrath  <roland@hack.frob.com>
17841
17842         [BZ #14336]
17843         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
17844         system".
17845         * manual/message.texi (The Uniforum approach): Likewise.
17846         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
17847         (glibc iconv Implementation): Likewise.
17848
17849 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
17850
17851         [BZ #14337]
17852         * math/s_clog.c (__clog): Avoid scaling a value down where that
17853         could result in underflow.
17854         * math/s_clog10.c (__clog10): Likewise.
17855         * math/s_clog10f.c (__clog10f): Likewise.
17856         * math/s_clog10l.c (__clog10l): Likewise.
17857         * math/s_clogf.c (__clogf): Likewise.
17858         * math/s_clogl.c (__clogl): Likewise.
17859         * math/libm-test.inc (clog_test): Add more tests.
17860         (clog10_test): Likewise.
17861         * sysdeps/i386/fpu/libm-test-ulps: Update.
17862         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17863
17864 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
17865
17866         [BZ #14283]
17867         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
17868         by 7 not 8 to examine high bit of fractional part.
17869
17870         [BZ #14042]
17871         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
17872         for call to __mcount_internal.
17873         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
17874         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
17875         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
17876
17877 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
17878
17879         [BZ #14154]
17880         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
17881         approximation for values within 0x1p-13f of an odd multiple of
17882         pi/4.
17883         * math/libm-test.inc (tan_test): Do not allow spurious underflow
17884         exception.  Add more tests.
17885         * sysdeps/i386/fpu/libm-test-ulps: Update.
17886
17887         [BZ #6778]
17888         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
17889         inputs and return -1 for them.  Do not check for +Inf in case not
17890         reachable for +Inf.
17891         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
17892         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
17893         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
17894         and return -1 for them.  Do not check for +Inf in case not
17895         reachable for +Inf.
17896         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
17897         define.
17898         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
17899         and return -1 for them.  Do not check for +Inf in case not
17900         reachable for +Inf.
17901         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
17902         spurious underflow.
17903         * sysdeps/i386/fpu/libm-test-ulps: Update.
17904         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17905
17906 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
17907
17908         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
17909
17910 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
17911
17912         [BZ #14157]
17913         [BZ #14331]
17914         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
17915         could result in spurious underflow.  Scale down values above
17916         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
17917         * math/s_csqrtf.c (__csqrtf): Likewise.
17918         * math/s_csqrtl.c (__csqrtl): Likewise.
17919         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
17920         spurious underflow.
17921         * sysdeps/i386/fpu/libm-test-ulps: Update.
17922         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17923
17924 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
17925
17926         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
17927         xopen-msg.sed.
17928         * catgets/xopen-msg.awk: New file.
17929         * catgets/xopen-msg.sed: Removed.
17930
17931         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
17932         po2text.sed.
17933         * intl/po2test.awk: New file.
17934         * intl/po2test.sed: Removed.
17935
17936 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
17937
17938         [BZ #14328]
17939         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
17940         or multiply small sinh result by itself.
17941         * math/s_ctanf.c (__ctanf): Likewise.
17942         * math/s_ctanh.c (__ctanh): Likewise.
17943         * math/s_ctanhf.c (__ctanhf): Likewise.
17944         * math/s_ctanhl.c (__ctanhl): Likewise.
17945         * math/s_ctanl.c (__ctanl): Likewise.
17946         * math/libm-test.inc (ctan_test_tonearest): New function.
17947         (ctan_test_towardzero): Likewise.
17948         (ctan_test_downward): Likewise.
17949         (ctan_test_upward): Likewise.
17950         (ctanh_test_tonearest): Likewise.
17951         (ctanh_test_towardzero): Likewise.
17952         (ctanh_test_downward): Likewise.
17953         (ctanh_test_upward): Likewise.
17954         (main): Call these new functions.
17955         * sysdeps/i386/fpu/libm-test-ulps: Update.
17956         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17957
17958 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
17959
17960         * .gitignore: Delete /ports entry.
17961
17962 2012-07-03  Andreas Jaeger  <aj@suse.de>
17963
17964         * po/bg.po: Update from translation team.
17965         * po/cs.po: Likewise.
17966         * po/de.po: Likewise.
17967         * po/hr.po: Likewise.
17968         * po/nl.pl: Likewise.
17969         * po/pl.po: Likewise.
17970         * po/vi.po: Likewise.
17971
17972 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
17973
17974         * Makeconfig [!+link] (+link-before-libc): New variable.
17975         [!+link] (+link-after-libc): Likewise.
17976         [!+link] (+link-tests): Likewise.
17977         [!+link] (+link): Define in terms of $(+link-before-libc) and
17978         $(+link-after-libc).
17979         [!+link-static] (+link-static-before-libc): New variable.
17980         [!+link-static] (+link-static-after-libc): Likewise.
17981         [!+link-static] (+link-static-tests): Likewise.
17982         [!+link-static] (+link-static): Define in terms of
17983         $(+link-static-before-libc) and $(+link-static-after-libc).
17984         [build-shared] (link-libc-before-gnulib): New variable.
17985         [build-shared] (link-libc-tests): Likewise.
17986         [build-shared] (link-libc): Define in terms of
17987         $(link-libc-before-gnulib).
17988         [!build-shared] (link-libc-tests): New variable.
17989         (link-libc-static-tests): New variable.
17990         [!gnulib] (gnulib-arch): New variable.
17991         [!gnulib] (gnulib-tests): Likewise.
17992         [!gnulib] (static-gnulib-arch): Likewise.
17993         [!gnulib] (static-gnulib-tests): Likewise.
17994         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
17995         Define with "=" instead of ":=".
17996         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
17997         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
17998         * Rules (binaries-all-notests): New variable.
17999         (binaries-all-tests): Likewise.
18000         (binaries-static-notests): Likewise.
18001         (binaries-static-tests): Likewise.
18002         (binaries-all): Define using $(binaries-all-notests) and
18003         $(binaries-all-tests).
18004         (binaries-static): Define using $(binaries-static-notests) and
18005         $(binaries-static-tests).
18006         (binaries-shared-tests): New variable.
18007         (binaries-shared-notests): Likewise.
18008         (binaries-shared): Remove variable.
18009         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
18010         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
18011         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
18012         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
18013         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
18014         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
18015         * elf/Makefile (sln-modules): New variable.
18016         (extra-objs): Add $(sln-modules:=.o).
18017         (ldconfig-modules): Add static-stubs.
18018         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
18019         * elf/static-stubs.c: New file.
18020
18021         [BZ #14283]
18022         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
18023         by 7 not 8 to examine high bit of fractional part.  Use volatile
18024         variables when splitting into final array of floats if
18025         __FLT_EVAL_METHOD__ != 0.
18026         * math/libm-test.inc (cos_test): Add another test.
18027         (sin_test): Likewise.
18028         * sysdeps/i386/fpu/libm-test-ulps: Update.
18029
18030         [BZ #14273]
18031         * math/libm-test.inc (cosh_test): Add more tests.
18032
18033         * version.h (RELEASE): Set to "development".
18034         (VERSION): Set to "2.16.90".
18035
18036 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
18037
18038         * NEWS: Update copyright. Remove last-updated date.
18039         Mention math library bug fixes and timezone data changes.
18040         * README: Mention GNU/Hurd, x32, and HPPA support status.
18041
18042 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
18043
18044         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
18045
18046 2012-06-27  Andreas Jaeger  <aj@suse.de>
18047
18048         * manual/contrib.texi (Contributors): Add Samuel Thibault.
18049
18050 2012-06-25  Andreas Jaeger  <aj@suse.de>
18051
18052         * sysdeps/s390/fpu/libm-test-ulps: Update.
18053
18054 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
18055             Thomas Schwinge  <thomas@codesourcery.com>
18056
18057         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
18058         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
18059         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
18060         fanotify_mark.
18061
18062 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
18063
18064         * sysdeps/mach/start.c: Remove file.
18065         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
18066         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
18067         * sysdeps/sh/init-first.c: Likewise.
18068
18069         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
18070         registers for frame unwinding purposes, add CFI directives.
18071         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
18072         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
18073         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
18074         Likewise.
18075
18076         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
18077         __fortify_fail returning.
18078         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
18079
18080         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
18081         sysdeps/sh/____longjmp_chk.S.
18082         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
18083         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
18084         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
18085         (gen-as-const-headers): Append sigaltstack-offsets.sym.
18086
18087         * sysdeps/sh/abort-instr.h: New file.
18088         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
18089         process in case exit returns.
18090
18091         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
18092         initialize the GOT register before use.
18093
18094         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
18095         calculation of ARGC > 4.
18096
18097         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
18098         meaningful names to some local labels.
18099
18100 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18101             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18102
18103         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
18104         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
18105         (__arch_compare_and_exchange_val_16_acq): Likewise.
18106         (__arch_compare_and_exchange_val_32_acq): Likewise.
18107         (atomic_exchange_and_add): Fix gUSA sequence.
18108         (atomic_add): Likewise.
18109         (atomic_add_negative): Likewise.
18110         (atomic_add_zero): Likewise.
18111         (atomic_bit_test_set): Likewise.
18112
18113 2012-06-22  Andreas Schwab  <schwab@redhat.com>
18114
18115         [BZ #13579]
18116         * include/link.h (struct link_map): Add l_free_initfini.
18117         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
18118         l_initfini.
18119         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
18120         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
18121         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
18122         set.
18123
18124 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
18125
18126         * configure.in: Use AC_LANG_SOURCE.
18127         * configure: Regenerate.
18128
18129 2012-06-22  Roland McGrath  <roland@hack.frob.com>
18130
18131         * configure.in (libc_cv_localstatedir): New substituted variable.
18132         * configure: Regenerated.
18133         * config.make.in (localstatedir): New variable, substituted from
18134         libc_cv_localstatedir.
18135         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
18136         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
18137         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
18138         * sysdeps/gnu/configure: Regenerated.
18139
18140 2012-06-21  Jeff Law  <law@redhat.com>
18141
18142         [BZ #14277]
18143         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
18144         free.  Simplify list management for _LIBC case.
18145
18146 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
18147
18148         [BZ #14273]
18149         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
18150         Clear sign bit of 64-bit integer value before comparing against
18151         overflow value.
18152
18153         * sysdeps/mach/configure: Regenerated.
18154
18155 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
18156
18157         [BZ #14278]
18158         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
18159
18160 2012-06-21  Jeff Law  <law@redhat.com>
18161
18162         [BZ #13882]
18163         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
18164         uint16_t for elements in the "seen" array to avoid char overflows.
18165         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18166         * elf/dl-open.c (dl_open_worker): Likewise.
18167
18168 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
18169
18170         * scripts/list-sources.sh: Scan PORTS for translations.
18171         * po/libc.pot: Regenerated.
18172
18173 2012-06-21  Andreas Jaeger  <aj@suse.de>
18174
18175         [BZ #12194]
18176         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
18177         warning.
18178         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
18179         * bits/byteswap-16.h (__bswap_16): Likewise.
18180         * bits/byteswap.h (__bswap_constant_16): Likewise.
18181
18182 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
18183
18184         [BZ #14117]
18185         * sysdeps/i386/fpu_control.h: Removed.
18186         * sysdeps/x86_64/fpu_control.h: Moved to ...
18187         * sysdeps/x86/fpu_control.h: Here.
18188
18189         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
18190         (_FPU_SETCW): Likewise.
18191
18192 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
18193
18194         [BZ #14117]
18195         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
18196         * sysdeps/x86/fpu/bits/mathinline.h: This.
18197         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
18198
18199         [BZ #14050]
18200         [BZ #14117]
18201         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
18202         functions if __x86_64__ is defined.
18203
18204 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
18205
18206         * string/endian.h: Add !__ASSEMBLER__ condition for including
18207         conversion interfaces.
18208
18209 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
18210
18211         [BZ #14241]
18212         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
18213         of ABS(x) in calculating zero to negative powers other than odd
18214         integers.
18215         * math/libm-test.inc (pow_test): Add more tests.
18216
18217 2012-06-15  Andreas Jaeger  <aj@suse.de>
18218
18219         * manual/contrib.texi (Contributors): Update entry of Liubov
18220         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
18221         Machado Filho.
18222
18223 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
18224
18225         * string/string.h: Add __wur to GNU version of strerror_r.
18226
18227 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
18228
18229         [BZ #14229]
18230         * string/Makefile (tests): Add tst-strtok_r.
18231         * string/tst-strtok_r.c: New file.
18232         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
18233         RAX_LP/RDX_LP on SAVE_PTR.
18234
18235 2012-06-14  Roland McGrath  <roland@hack.frob.com>
18236
18237         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
18238
18239 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
18240
18241         * libm_test.inc (csqrt_test): Allow more spurious underflow
18242         exceptions.
18243         (j0_test): Likewise.
18244         (j1_test): Likewise.
18245         (y0_test): Likewise.
18246         (y1_test): Likewise.
18247
18248 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
18249
18250         * po/Makefile (libc.pot): Use UTF-8 charset.
18251
18252 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
18253
18254         [BZ #14210]
18255         Suppress sign-conversion warning from FD_SET.
18256         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
18257         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
18258         not unsigned long int.
18259         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
18260
18261 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
18262
18263         [BZ #14050]
18264         [BZ #14117]
18265         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
18266         __extern_always_inline instead of __extern_inline.
18267         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
18268         (__signbit): Likewise.
18269         (__signbitl): Support C++ namespace.
18270         (lrintf): New inline function.
18271         (lrint): Likewise.
18272         (llrintf): Likewise.
18273         (llrint): Likewise.
18274         (fmaxf): Likewise.
18275         (fmax): Likewise.
18276         (fminf): Likewise.
18277         (fmin): Likewise.
18278         (rint): Likewise.
18279         (rintf): Likewise.
18280         (ceil): Likewise.
18281         (ceilf): Likewise.
18282         (floor): Likewise.
18283         (floorf): Likewise.
18284         (nearbyint): Likewise.
18285         (nearbyintf): Likewise.
18286
18287 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
18288
18289         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
18290         non-default versions.
18291
18292 2012-06-11  Roland McGrath  <roland@hack.frob.com>
18293
18294         [BZ #14218]
18295         * manual/argp.texi (Argp): Reword argp_parse description slightly.
18296
18297 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
18298
18299         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
18300         (FE_UPWARD, FE_DOWNWARD): Don't define.
18301         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
18302         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
18303
18304         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
18305         reading it.
18306         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
18307         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18308
18309 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18310
18311         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
18312         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
18313         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
18314         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
18315
18316 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
18317
18318         [BZ #14117]
18319         * sysdeps/i386/fpu/bits/fenv.h: Removed.
18320         * sysdeps/i386/fpu/Implies: New file.
18321         * sysdeps/x86_64/fpu/Implies: Likewise.
18322         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
18323         * sysdeps/x86/fpu/bits/fenv.h: This.
18324
18325         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
18326         __SSE_MATH__.
18327
18328 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
18329
18330         [BZ #14134]
18331         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
18332         character 0xffff that matches the last element of the
18333         conversion table.
18334
18335 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18336
18337         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
18338         fmodl commit.
18339
18340 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18341
18342         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
18343         values higher than 25.6283.
18344
18345 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18346
18347         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
18348         subnormal exponent extraction and add some __builtin_expect.
18349         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
18350         Fix for subnormal mantissa calculation.
18351
18352 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
18353
18354         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
18355         cpu2 is -1 and errno is not ENOSYS.
18356
18357 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
18358
18359         [BZ #14117]
18360         * sysdeps/i386/i486/bits/string.h: Renamed to ...
18361         * sysdeps/x86/bits/string.h: This.
18362         * sysdeps/x86_64/bits/string.h: Removed.
18363
18364         * sysdeps/i386/i486/bits/string.h: Define inline functions only
18365         if not compiling for x86-64, but compiling for >= i486.
18366
18367         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
18368         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
18369
18370         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
18371         New macro from Linux kernel 3.4.0.
18372         (FP_XSTATE_MAGIC2): Likewise.
18373         (FP_XSTATE_MAGIC2_SIZE): Likewise.
18374         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
18375         (struct _fpx_sw_bytes): New struct.
18376         (struct _xsave_hdr): Likewise.
18377         (struct _ymmh_state): Likewise.
18378         (struct _xstate): Likewise.
18379
18380         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
18381         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
18382         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
18383         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
18384         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
18385         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
18386
18387         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
18388         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
18389         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
18390         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
18391         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
18392         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
18393
18394 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18395
18396         [BZ #13743]
18397         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
18398         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
18399         (sysdep_headers): Include sys/platform/ppc.h.
18400         * sysdeps/powerpc/test-gettimebase.c: Test for
18401         __ppc_get_timebase() to catch future ISA opcode/insn changes.
18402         * manual/Makefile (appendices): Include platform.texi.
18403         * manual/contrib.texi (Contributors): Update @node pointers.
18404         * manual/maint.texi (Maintenance): Likewise.
18405         (Platform): New node.
18406         * manual/platform.texi: New file.  Document the new features.
18407
18408 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
18409             Jakub Jelinek  <jakub@redhat.com>
18410
18411         [BZ #14188]
18412         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
18413         where __builtin_expect is unavailable.
18414
18415 2012-06-03  David S. Miller  <davem@davemloft.net>
18416
18417         * stdlib/longlong.h: Updated from GCC.
18418
18419 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
18420
18421         [BZ #14042]
18422         * sysdeps/powerpc/powerpc32/mcount.c: New file.
18423         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
18424         __mcount_internal.
18425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
18426         (GLIBC_2.16): Likewise.
18427
18428 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
18429
18430         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
18431
18432 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
18433
18434         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
18435         (default-abi): New variable.
18436         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
18437         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
18438         variable.
18439         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
18440         Likewise.
18441         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
18442         Likewise.
18443         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
18444         Likewise.
18445
18446         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
18447         definition.  Document in comment.
18448
18449 2012-06-01  David S. Miller  <davem@davemloft.net>
18450
18451         * stdlib/longlong.h: Updated from GCC.
18452
18453 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
18454
18455         [BZ #14117]
18456         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
18457         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
18458         sys/debugreg.h sys/io.h here.
18459         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
18460         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
18461         sys/io.h.
18462         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
18463         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
18464         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
18465         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
18466         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
18467         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
18468
18469         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
18470         Define only if __x86_64__ is defined.
18471
18472 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
18473
18474         [BZ #14048]
18475         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
18476         Use int64_t for variable i.
18477         * math/libm-test.inc (fmod_test): Add more tests.
18478
18479         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
18480         z computation is not scheduled after fetestexcept.
18481         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
18482         Use math_force_eval instead of asm to ensure calculation scheduled
18483         before exception test.
18484         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
18485         Ensure a1 + u.d computation is not scheduled after fetestexcept.
18486
18487 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
18488
18489         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
18490         computation is not scheduled after fetestexcept.
18491
18492 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
18493
18494         [BZ #14117]
18495         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
18496         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
18497
18498 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18499
18500         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
18501         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
18502
18503 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
18504
18505         [BZ #14117]
18506         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
18507         <bits/wordsize.h>.
18508         (__WCHAR_MIN): Support __WORDSIZE == 64.
18509         (__WCHAR_MAX): Likewise.
18510
18511         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
18512         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
18513
18514         [BZ #14183]
18515         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
18516         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
18517
18518         [BZ #14117]
18519         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
18520         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
18521
18522         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
18523         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
18524
18525         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
18526         Defined to 1 if __x86_64__ isn't defined.
18527         (_STAT_VER_LINUX_OLD): New.
18528         (st_atime): Remove duplicate.
18529         (st_mtime): Likewise.
18530         (st_ctime): Likewise.
18531
18532 2012-05-31  David S. Miller  <davem@davemloft.net>
18533
18534         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
18535         entries.
18536
18537 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
18538
18539         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
18540         gen-libm-test.pl.
18541
18542         [BZ #14132]
18543         * elf/dl-reloc.c: Include <_itoa.h>.
18544         (_dl_reloc_bad_type): Remove use of INTUSE.
18545         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
18546         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
18547         * stdio-common/psiginfo.c (psiginfo): Likewise.
18548         * stdio-common/psignal.c (psignal): Likewise.
18549         * string/strsignal.c (strsignal): Likewise.
18550         * include/signal.h (_sys_siglist): Declare hidden proto.
18551         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
18552         INTVARDEF with libc_hidden_data_def.
18553         * stdio-common/itoa-udigits.c: Likewise.
18554         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
18555         (_itoa_lower_digits_internal): Remove declaration.
18556         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
18557         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
18558         (_sys_sigabbrev_internal): Remove aliases.
18559         (_sys_siglist): Define hidden alias.
18560
18561 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
18562
18563         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18564         bits/sysctl.h.
18565
18566 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
18567
18568         [BZ #14117]
18569         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
18570         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
18571
18572         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
18573         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
18574         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
18575         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
18576         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
18577         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
18578
18579         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
18580         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
18581         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
18582
18583         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
18584         with __addr.
18585         (insw): Likewise.
18586         (insl): Likewise.
18587         (outsb): Likewise.
18588         (outsw): Likewise.
18589         (outsl): Likewise.
18590
18591         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
18592         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
18593         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
18594
18595         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
18596         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
18597         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
18598         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
18599         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
18600         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
18601
18602         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
18603         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
18604
18605         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
18606         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
18607
18608         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
18609         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
18610         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
18611
18612         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
18613         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
18614         to ...
18615         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
18616
18617         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
18618         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
18619         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
18620
18621         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
18622         for x86-64.
18623         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
18624
18625 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
18626
18627         * math/math.h (M_El): Use two more decimal places.
18628         (M_LOG2El): Likewise.
18629         (M_LOG10El): Likewise.
18630         (M_LN2l): Likewise.
18631         (M_LN10l): Likewise.
18632         (M_PIl): Likewise.
18633         (M_PI_2l): Likewise.
18634         (M_PI_4l): Likewise.
18635         (M_1_PIl): Likewise.
18636         (M_2_PIl): Likewise.
18637         (M_2_SQRTPIl): Likewise.
18638         (M_SQRT2l): Likewise.
18639         (M_SQRT1_2l): Likewise.
18640
18641 2012-05-31  David S. Miller  <davem@davemloft.net>
18642
18643         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
18644         values between float registers.
18645         * sysdeps/sparc/sparc64/memset.S: Likewise.
18646         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
18647
18648 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
18649
18650         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
18651         -D_FORTIFY_SOURCE=1.
18652         (CPPFLAGS-tst-longjmp_chk.c): Define.
18653         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
18654         (CPPFLAGS-tst-longjmp_chk2.c): Define.
18655         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
18656         CFLAGS-tst-wchar-h.c.
18657
18658 2012-05-31  Marek Polacek  <polacek@redhat.com>
18659
18660         [BZ #14132]
18661         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
18662         __endmntent_internal): Remove declaration.
18663         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
18664         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
18665         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
18666
18667 2012-05-30  David S. Miller  <davem@davemloft.net>
18668
18669         * sysdeps/sparc/sparc32/soft-fp/q_util.c
18670         (___Q_simulate_exceptions): Use real FP ops rather than writing
18671         into the %fsr.
18672         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
18673         Likewise.
18674
18675 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18676
18677         [BZ #14117]
18678         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
18679         * sysdeps/x86/bits/xtitypes.h: This.
18680
18681         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
18682         * sysdeps/x86/bits/wordsize.h: This.
18683
18684         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
18685         * sysdeps/x86/bits/huge_vall.h: This.
18686
18687         * sysdeps/i386/bits/select.h: Removed.
18688         * sysdeps/x86_64/bits/select.h: Renamed to ...
18689         * sysdeps/x86/bits/select.h: This.
18690
18691         * sysdeps/i386/bits/setjmp.h: Removed.
18692         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
18693         * sysdeps/x86/bits/setjmp.h: This.
18694
18695         * sysdeps/i386/bits/mathdef.h: Removed.
18696         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
18697         * sysdeps/x86/bits/mathdef.h: This.
18698
18699 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
18700
18701         [BZ #14132]
18702         * include/sys/socket.h (__connect_internal)
18703         (__libc_sa_len_internal): Remove declaration.
18704         (__connect, __libc_sa_len): Declare hidden_proto.
18705         (SA_LEN): Remove use of INTUSE.
18706         * socket/connect.c: Add libc_hidden_def.
18707         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
18708         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
18709         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
18710         alias.
18711         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
18712         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
18713         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
18714         of adding _internal alias.
18715
18716 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18717
18718         [BZ #14117]
18719         * sysdeps/i386/bits/link.h: Removed.
18720         * sysdeps/i386/bits/linkmap.h: Likewise.
18721         * sysdeps/x86_64/bits/link.h: Renamed to ...
18722         * sysdeps/x86/bits/link.h: This.
18723         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
18724         * sysdeps/x86/bits/linkmap.h: This.
18725
18726         * sysdeps/i386/bits/endian.h: Removed.
18727         * sysdeps/x86_64/bits/endian.h: Renamed to ...
18728         * sysdeps/x86/bits/endian.h: This.
18729
18730         * sysdeps/i386/bits/byteswap.h: Removed.
18731         * sysdeps/i386/bits/byteswap-16.h: Likewise.
18732         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
18733         * sysdeps/x86/bits/byteswap.h: This.
18734         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
18735         * sysdeps/x86/bits/byteswap-16.h: This.
18736         * sysdeps/i386/Implies: Add x86.
18737         * sysdeps/x86_64/Implies: Likewise.
18738
18739 2012-05-30  David S. Miller  <davem@davemloft.net>
18740
18741         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
18742         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
18743         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
18744         (FP_TRAPPING_EXCEPTIONS): Define.
18745         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
18746         (FP_TRAPPING_EXCEPTIONS): Define.
18747         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
18748         subnormals only when inexact has been signalled or underflow
18749         exceptions are enabled.
18750         (_FP_PACK_CANONICAL): Likewise.
18751
18752 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18753
18754         [BZ #14183]
18755         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
18756         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
18757
18758 2012-05-30  Richard Henderson  <rth@twiddle.net>
18759
18760         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
18761         with #ifndef NOT_IN_libc.
18762
18763         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
18764         marked to avoid plt entry.
18765
18766 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18767
18768         [BZ #14112]
18769         * Makeconfig (default-abi): New macro.
18770         (abi-includes): Likewise.
18771         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
18772         $(abi-$(default-abi)-lib-soname) for soname if defined.
18773         ($(common-objpfx)gnu/lib-names.stmp): Generate from
18774         abi-variants.
18775         * Makefile (installed-stubs): Likewise.
18776         * include/stubs-biarch.h: Removed.
18777         * scripts/lib-names.awk: Only handle one library at a time.
18778         * scripts/soversions.awk: Remove WORDSIZE support.
18779         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
18780         entries.
18781         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
18782         Removed.
18783         (syscall-list-default-condition): Likewise.
18784         (syscall-list-default-condition): Likewise.
18785         (syscall-list-includes): Likewise.
18786         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
18787         syscall-list-* with abi-*.  Handle undefined abi-variants.
18788         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
18789         * sysdeps/unix/sysv/linux/i386/Implies: New file.
18790         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
18791         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
18792         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
18793         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
18794         Removed.
18795         (syscall-list-32-options): Likewise.
18796         (syscall-list-32-condition): Likewise.
18797         (syscall-list-64-options): Likewise.
18798         (syscall-list-64-condition): Likewise.
18799         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
18800         macro.
18801         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
18802         Renamed to ...
18803         (abi-*): This.
18804         (abi-64-ld-soname): New macro.
18805         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
18806         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
18807         Renamed to ...
18808         (abi-*): This.
18809         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
18810         * sysdeps/x86_64/x32/shlib-versions: Likewise.
18811
18812 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
18813
18814         * sysdeps/unix/sysv/linux/kernel-features.h
18815         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
18816         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
18817         include <kernel-features.h>.
18818         [!__NR_ftruncate64]: Remove conditional code.
18819         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18820         [__NR_ftruncate64]: Make code unconditional.
18821         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18822         * sysdeps/unix/sysv/linux/truncate64.c: Do not
18823         include <kernel-features.h>.
18824         [!__NR_ftruncate64]: Remove conditional code.
18825         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18826         [__NR_ftruncate64]: Make code unconditional.
18827         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
18829         include <kernel-features.h>.
18830         [!__NR_ftruncate64]: Remove conditional code.
18831         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18832         [__NR_ftruncate64]: Make code unconditional.
18833         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
18835         include <kernel-features.h>.
18836         [!__NR_ftruncate64]: Remove conditional code.
18837         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18838         [__NR_ftruncate64]: Make code unconditional.
18839         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18840
18841         * configure.in (libc_cv_fpie): Weaken to a compile test using
18842         LIBC_TRY_CC_OPTION.
18843         * configure: Regenerated.
18844
18845 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18846
18847         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
18848         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
18849         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
18850         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
18851         Refreshed.
18852         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
18853         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
18854         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
18855         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
18856         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
18857         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
18858         Refreshed.
18859
18860 2012-05-27  David S. Miller  <davem@davemloft.net>
18861
18862         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
18863         (___Q_zero): New.
18864         (__Q_simulate_exceptions): Return void.  Change to simulate
18865         exceptions by writing into the %fsr.
18866         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
18867         (__Qp_handle_exceptions): Likewise.
18868         (numbers): Delete.
18869         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
18870         __Qp_handle_exceptions.
18871         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
18872         __Qp_handle_exceptions.
18873         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
18874         as unused and give dummy FP_RND_NEAREST initializer.
18875         (FP_INHIBIT_RESULTS): Define.
18876         (___Q_simulate_exceptions): Update declaration.
18877         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
18878         formatting.
18879         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
18880         as unused and give dummy FP_RND_NEAREST initializer.
18881         (__Qp_handle_exceptions): Update declaration.
18882         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
18883         formatting.
18884
18885 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
18886
18887         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
18888         the temporary FPU control word.
18889         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
18890         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
18891         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
18892         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
18893         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
18894         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
18895         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
18896         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
18897         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
18898         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
18899         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18900
18901 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18902
18903         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
18904         fields.
18905
18906 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
18907
18908         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
18909         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
18910         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
18911         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
18912         Likewise.
18913         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
18914         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
18915         Likewise.
18916
18917 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
18918
18919         * po/h.po: Update from translation team.
18920
18921 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
18922
18923         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
18924
18925         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
18926         handling of denormals.
18927         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
18928         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
18929         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
18930         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
18931         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
18932         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
18933         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
18934         Likewise.
18935
18936 2012-05-26  Marek Polacek  <polacek@redhat.com>
18937
18938         [BZ #14152]
18939         * math/libm-test.inc (fma_test): Don't always expect underflow
18940         exception.
18941
18942 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
18943
18944         [BZ #12416]
18945         * elf/tst-execstack.c: Include stackinfo.h.
18946         (do_test): Adjust test case to ensure that pthread_getattr_np
18947         behaviour remains the same after marking stack executable.
18948
18949 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
18950
18951         * sysdeps/unix/sysv/linux/kernel-features.h
18952         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
18953         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
18954         kernel-features.h.
18955         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
18956         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
18957         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
18958         kernel-features.h.
18959         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
18960         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
18961
18962 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
18963
18964         * configure.in: Define the default includes to being none.
18965         * configure: Regenerated.
18966
18967 2012-05-25  Roland McGrath  <roland@hack.frob.com>
18968
18969         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
18970         * sysdeps/x86_64/setjmp.S: Likewise.
18971         * sysdeps/i386/bsd-setjmp.S: Likewise.
18972         * sysdeps/i386/bsd-_setjmp.S: Likewise.
18973         * sysdeps/i386/setjmp.S: Likewise.
18974         * sysdeps/i386/__longjmp.S: Likewise.
18975         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
18976         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
18977
18978         * include/stap-probe.h: New file.
18979         * configure.in: Handle --enable-systemtap.
18980         * configure: Regenerated.
18981         * config.h.in (USE_STAP_PROBE): New #undef.
18982         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
18983         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
18984         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
18985
18986 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
18987
18988         [BZ #13717]
18989         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
18990         to 2.4.0 where earlier.
18991         * sysdeps/unix/sysv/linux/configure: Regenerated.
18992         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
18993         <kernel-features.h>.
18994         [__ASSUME_32BITUIDS]: Make code unconditional.
18995         [!__ASSUME_32BITUIDS]: Remove conditional code.
18996         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
18997         <kernel-features.h>.
18998         [__ASSUME_32BITUIDS]: Make code unconditional.
18999         [!__ASSUME_32BITUIDS]: Remove conditional code.
19000         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
19001         [__ASSUME_32BITUIDS]: Make code unconditional.
19002         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
19003         * sysdeps/unix/sysv/linux/i386/getegid.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/i386/geteuid.c: Do not include
19008         <kernel-features.h>.
19009         [__ASSUME_32BITUIDS]: Make code unconditional.
19010         [!__ASSUME_32BITUIDS]: Remove conditional code.
19011         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
19012         <kernel-features.h>.
19013         [__ASSUME_32BITUIDS]: Make code unconditional.
19014         [!__ASSUME_32BITUIDS]: Remove conditional code.
19015         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
19016         <kernel-features.h>.
19017         [__ASSUME_32BITUIDS]: Make code unconditional.
19018         [!__ASSUME_32BITUIDS]: Remove conditional code.
19019         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
19020         <kernel-features.h>.
19021         [__ASSUME_32BITUIDS]: Make code unconditional.
19022         [!__ASSUME_32BITUIDS]: Remove conditional code.
19023         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
19024         <kernel-features.h>.
19025         [__ASSUME_32BITUIDS]: Make code unconditional.
19026         [!__ASSUME_32BITUIDS]: Remove conditional code.
19027         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
19028         <kernel-features.h>.
19029         [__ASSUME_32BITUIDS]: Make code unconditional.
19030         [!__ASSUME_32BITUIDS]: Remove conditional code.
19031         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
19032         <kernel-features.h>.
19033         [__ASSUME_32BITUIDS]: Make code unconditional.
19034         [!__ASSUME_32BITUIDS]: Remove conditional code.
19035         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
19036         <kernel-features.h>.
19037         [__ASSUME_32BITUIDS]: Make code unconditional.
19038         [!__ASSUME_32BITUIDS]: Remove conditional code.
19039         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
19040         <kernel-features.h>.
19041         [__ASSUME_32BITUIDS]: Make code unconditional.
19042         [!__ASSUME_32BITUIDS]: Remove conditional code.
19043         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
19044         <kernel-features.h>.
19045         [__NR_setresgid] (__setresgid): Do not declare.
19046         [__ASSUME_32BITUIDS]: Make code unconditional.
19047         [!__ASSUME_32BITUIDS]: Remove conditional code.
19048         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
19049         <kernel-features.h>.
19050         [__NR_setresuid] (__setresuid): Do not declare.
19051         [__ASSUME_32BITUIDS]: Make code unconditional.
19052         [!__ASSUME_32BITUIDS]: Remove conditional code.
19053         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
19054         <kernel-features.h>.
19055         [__ASSUME_32BITUIDS]: Make code unconditional.
19056         [!__ASSUME_32BITUIDS]: Remove conditional code.
19057         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
19058         <kernel-features.h>.
19059         [__ASSUME_32BITUIDS]: Make code unconditional.
19060         [!__ASSUME_32BITUIDS]: Remove conditional code.
19061         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
19062         <kernel-features.h>.
19063         [__ASSUME_32BITUIDS]: Make code unconditional.
19064         [!__ASSUME_32BITUIDS]: Remove conditional code.
19065         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
19066         <kernel-features.h>.
19067         [__ASSUME_32BITUIDS]: Make code unconditional.
19068         [!__ASSUME_32BITUIDS]: Remove conditional code.
19069         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
19070         <kernel-features.h>.
19071         [__ASSUME_32BITUIDS]: Make code unconditional.
19072         [!__ASSUME_32BITUIDS]: Remove conditional code.
19073         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
19074         <kernel-features.h>.
19075         [__ASSUME_32BITUIDS]: Make code unconditional.
19076         [!__ASSUME_32BITUIDS]: Remove conditional code.
19077         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
19078         <kernel-features.h>.
19079         [__ASSUME_32BITUIDS]: Make code unconditional.
19080         [!__ASSUME_32BITUIDS]: Remove conditional code.
19081         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
19082         <kernel-features.h>.
19083         [__ASSUME_32BITUIDS]: Make code unconditional.
19084         [!__ASSUME_32BITUIDS]: Remove conditional code.
19085         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
19086         <kernel-features.h>.
19087         [__ASSUME_32BITUIDS]: Make code unconditional.
19088         [!__ASSUME_32BITUIDS]: Remove conditional code.
19089         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
19090         <kernel-features.h>.
19091         [__ASSUME_32BITUIDS]: Make code unconditional.
19092         [!__ASSUME_32BITUIDS]: Remove conditional code.
19093         * sysdeps/unix/sysv/linux/kernel-features.h
19094         (__ASSUME_SETRESUID_SYSCALL): Remove.
19095         (__ASSUME_SETRESGID_SYSCALL): Likewise.
19096         (__ASSUME_32BITUIDS): Likewise.
19097         (__ASSUME_LDT_WORKS): Likewise.
19098         (__ASSUME_O_DIRECTORY): Likewise.
19099         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
19100         architecture but not kernel version.
19101         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
19102         (__ASSUME_MMAP2_SYSCALL): Likewise.
19103         (__ASSUME_STAT64_SYSCALL): Likewise.
19104         (__ASSUME_IPC64): Likewise.
19105         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
19106         <kernel-features.h>.
19107         [__ASSUME_32BITUIDS]: Make code unconditional.
19108         [!__ASSUME_32BITUIDS]: Remove conditional code.
19109         * sysdeps/unix/sysv/linux/opendir.c: Do not include
19110         <kernel-features.h>.
19111         [__ASSUME_O_DIRECTORY]: Make code unconditional.
19112         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
19113         132096]: Remove conditional code.
19114         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
19115         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
19116         <kernel-features.h>.
19117         [__ASSUME_32BITUIDS]: Make code unconditional.
19118         [!__ASSUME_32BITUIDS]: Remove conditional code.
19119         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
19120         <kernel-features.h>.
19121         [__ASSUME_32BITUIDS]: Make code unconditional.
19122         [!__ASSUME_32BITUIDS]: Remove conditional code.
19123         * sysdeps/unix/sysv/linux/setegid.c: Do not include
19124         <kernel-features.h>.
19125         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
19126         unconditional.
19127         (__setresgid): Do not declare.
19128         [__ASSUME_32BITUIDS]: Make code unconditional.
19129         [!__ASSUME_32BITUIDS]: Remove conditional code.
19130         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
19131         <kernel-features.h>.
19132         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
19133         unconditional.
19134         (__setresuid): Do not declare.
19135         [__ASSUME_32BITUIDS]: Make code unconditional.
19136         [!__ASSUME_32BITUIDS]: Remove conditional code.
19137         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
19138         <kernel-features.h>.
19139         [__ASSUME_32BITUIDS]: Make code unconditional.
19140         [!__ASSUME_32BITUIDS]: Remove conditional code.
19141         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
19142         <kernel-features.h>.
19143         [__ASSUME_32BITUIDS]: Make code unconditional.
19144         [!__ASSUME_32BITUIDS]: Remove conditional code.
19145
19146 2012-05-25  Richard Henderson  <rth@twiddle.net>
19147
19148         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
19149         dl_hwcap to ifunc resolver.
19150         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
19151         elf_ifunc_invoke.
19152         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
19153         dl_hwcap to ifunc resolver.
19154         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
19155
19156 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
19157
19158         [BZ #14153]
19159         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
19160         for |x| <= 2**-26, not 2**-57.
19161         * math/libm-test.inc (acos_test): Do not allow spurious underflow
19162         exception.
19163
19164 2012-05-24  Jeff Law  <law@redhat.com>
19165
19166         * stdio-common/Makefile (tests): Add bug25.
19167         * stdio-common/bug25.c: New test.
19168
19169 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
19170
19171         [BZ #13576]
19172         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
19173         multiple of MALLOC_ALIGNMENT in size.
19174         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
19175
19176 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
19177
19178         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
19179         Require >= 256.
19180         (FILENAME_MAX): Use macro-int-constant.
19181         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
19182         (_IOFBF): Use macro-int-constant.
19183         (_IOLBF): Likewise.
19184         (_IONBF): Likewise.
19185         (SEEK_CUR): Likewise.
19186         (SEEK_END): Likewise.
19187         (SEEK_SET): Likewise.
19188         (TMP_MAX): Likewise.
19189         (EOF): Use macro-int-constant.  Require < 0.
19190         (NULL): Use macro-constant.  Require == 0.
19191         (stdin): Require type to be FILE *.
19192         (stdout): Likewise.
19193         (stderr): Likewise.
19194         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
19195         macro-int-constant.
19196         (EXIT_SUCCESS): Likewise.
19197         (NULL): Use macro-constant.  Require == 0.
19198         (RAND_MAX): Use macro-int-constant.
19199         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
19200         [C99-based standards] (strtof): Require function.
19201         [C99-based standards] (strtold): Likewise.
19202         [C99-based standards] (strtoll): Likewise.
19203         [C99-based standards] (strtoull): Likewise.
19204         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
19205         [ISO || ISO99 || ISO11] (limits.h): Likewise.
19206         [ISO || ISO99 || ISO11] (math.h): Likewise.
19207         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
19208         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
19209         [ISO || ISO99 || ISO11] (*_t): Do not allow.
19210
19211 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
19212
19213         [BZ #14132]
19214         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
19215         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
19216         * intl/dgettext.c (DCGETTEXT): Likewise.
19217         * intl/gettext.c (DCGETTEXT): Likewise.
19218         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
19219         * posix/regex_internal.h (gettext): Likewise.
19220         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
19221         Remove declaration.
19222         * include/argz.h (__argz_count_internal)
19223         (__argz_stringify_internal): Remove declaration.
19224         (__argz_count, __argz_stringify): Declare hidden proto.
19225         * intl/dcgettext.c: Remove use of INTDEF.
19226         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
19227         * string/argz-stringify.c: Likewise.
19228         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
19229         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
19230         Declare hidden proto.
19231         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
19232         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
19233         Declare hidden proto.
19234         * include/stdio.h (__asprintf_internal): Don't declare.
19235         (__asprintf): Don't define as macro.  Declare hidden proto.
19236         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
19237         (__fsetlocking): Declare hidden proto.
19238         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
19239         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
19240         hidden proto.
19241         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
19242         (_IO_setlinebuf): Remove use of INTUSE.
19243         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
19244         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
19245         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
19246         Remove declaration.
19247         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
19248         (_IO_do_flush): Remove use of INTUSE.
19249         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
19250         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
19251         (_IO_adjust_column, _IO_least_wmarker)
19252         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
19253         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
19254         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
19255         (_IO_default_doallocate, _IO_wdefault_doallocate)
19256         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
19257         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
19258         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
19259         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
19260         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
19261         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
19262         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
19263         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
19264         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
19265         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
19266         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
19267         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
19268         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
19269         proto.
19270         (_IO_flush_all_internal, _IO_adjust_column_internal)
19271         (_IO_default_uflow_internal, _IO_default_finish_internal)
19272         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
19273         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
19274         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
19275         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
19276         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
19277         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
19278         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
19279         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
19280         (_IO_file_close_internal, _IO_file_close_it_internal)
19281         (_IO_file_underflow_internal, _IO_file_overflow_internal)
19282         (_IO_file_init_internal, _IO_file_attach_internal)
19283         (_IO_file_fopen_internal, _IO_file_read_internal)
19284         (_IO_file_sync_internal, _IO_file_seek_internal)
19285         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
19286         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
19287         (_IO_str_underflow_internal, _IO_str_overflow_internal)
19288         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
19289         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
19290         (_IO_list_all_internal, _IO_link_in_internal)
19291         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
19292         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
19293         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
19294         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
19295         (_IO_do_write_internal, _IO_padn_internal)
19296         (_IO_getline_info_internal, _IO_getline_internal)
19297         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
19298         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
19299         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
19300         (_IO_vfscanf_internal, _IO_vfprintf_internal)
19301         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
19302         (_IO_init_internal, _IO_un_link_internal): Don't declare.
19303         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
19304         with libc_hidden_ver, remove use of INTUSE.
19305         * libio/genops.c: Likewise.
19306         * libio/freopen.c: Likewise.
19307         * libio/freopen64.c: Likewise.
19308         * libio/iofclose.c: Likewise.
19309         * libio/iofdopen.c: Likewise.
19310         * libio/iofflush.c: Likewise.
19311         * libio/iofflush_u.c: Likewise.
19312         * libio/iofgets.c: Likewise.
19313         * libio/iofgets_u.c: Likewise.
19314         * libio/iofopen.c: Likewise.
19315         * libio/iofopncook.c: Likewise.
19316         * libio/iofread.c: Likewise.
19317         * libio/iofread_u.c: Likewise.
19318         * libio/ioftell.c: Likewise.
19319         * libio/iofwrite.c: Likewise.
19320         * libio/iogetline.c: Likewise.
19321         * libio/iogets.c: Likewise.
19322         * libio/iogetwline.c: Likewise.
19323         * libio/iopadn.c: Likewise.
19324         * libio/iopopen.c: Likewise.
19325         * libio/ioseekoff.c: Likewise.
19326         * libio/ioseekpos.c: Likewise.
19327         * libio/iosetbuffer.c: Likewise.
19328         * libio/iosetvbuf.c: Likewise.
19329         * libio/ioungetc.c: Likewise.
19330         * libio/ioungetwc.c: Likewise.
19331         * libio/iovdprintf.c: Likewise.
19332         * libio/iovsprintf.c: Likewise.
19333         * libio/iovsscanf.c: Likewise.
19334         * libio/memstream.c: Likewise.
19335         * libio/obprintf.c: Likewise.
19336         * libio/oldfileops.c: Likewise.
19337         * libio/oldiofclose.c: Likewise.
19338         * libio/oldiofdopen.c: Likewise.
19339         * libio/oldiofopen.c: Likewise.
19340         * libio/oldiopopen.c: Likewise.
19341         * libio/oldstdfiles.c: Likewise.
19342         * libio/putc.c: Likewise.
19343         * libio/setbuf.c: Likewise.
19344         * libio/setlinebuf.c: Likewise.
19345         * libio/stdfiles.c: Likewise.
19346         * libio/strops.c: Likewise.
19347         * libio/vasprintf.c: Likewise.
19348         * libio/vscanf.c: Likewise.
19349         * libio/vsnprintf.c: Likewise.
19350         * libio/vswprintf.c: Likewise.
19351         * libio/wfiledoalloc.c: Likewise.
19352         * libio/wfileops.c: Likewise.
19353         * libio/wgenops.c: Likewise.
19354         * libio/wmemstream.c: Likewise.
19355         * libio/wstrops.c: Likewise.
19356         * libio/__fpurge.c: Likewise.
19357         * libio/__fsetlocking.c: Likewise.
19358         * assert/assert.c: Likewise.
19359         * debug/fgets_chk.c: Likewise.
19360         * debug/fgets_u_chk.c: Likewise.
19361         * debug/fread_chk.c: Likewise.
19362         * debug/fread_u_chk.c: Likewise.
19363         * debug/gets_chk.c: Likewise.
19364         * debug/obprintf_chk.c: Likewise.
19365         * debug/vasprintf_chk.c: Likewise.
19366         * debug/vdprintf_chk.c: Likewise.
19367         * debug/vsnprintf_chk.c: Likewise.
19368         * debug/vsprintf_chk.c: Likewise.
19369         * malloc/mtrace.c: Likewise.
19370         * misc/error.c: Likewise.
19371         * misc/syslog.c: Likewise.
19372         * stdio-common/asprintf.c: Likewise.
19373         * stdio-common/fxprintf.c: Likewise.
19374         * stdio-common/getw.c: Likewise.
19375         * stdio-common/isoc99_fscanf.c: Likewise.
19376         * stdio-common/isoc99_scanf.c: Likewise.
19377         * stdio-common/isoc99_vfscanf.c: Likewise.
19378         * stdio-common/isoc99_vscanf.c: Likewise.
19379         * stdio-common/isoc99_vsscanf.c: Likewise.
19380         * stdio-common/printf-prs.c: Likewise.
19381         * stdio-common/printf_fp.c: Likewise.
19382         * stdio-common/printf_fphex.c: Likewise.
19383         * stdio-common/printf_size.c: Likewise.
19384         * stdio-common/putw.c: Likewise.
19385         * stdio-common/scanf.c: Likewise.
19386         * stdio-common/sprintf.c: Likewise.
19387         * stdio-common/tmpfile.c: Likewise.
19388         * stdio-common/vfprintf.c: Likewise.
19389         * stdio-common/vfscanf.c: Likewise.
19390         * stdlib/strfmon_l.c: Likewise.
19391         * sunrpc/openchild.c: Likewise.
19392         * sunrpc/xdr_stdio.c: Likewise.
19393         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
19394         * sysdeps/mach/hurd/tmpfile.c: Likewise.
19395
19396 2012-05-24  Roland McGrath  <roland@hack.frob.com>
19397
19398         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
19399
19400         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
19401         in the third column, to generate for the shared library an IFUNC
19402         that uses _dl_vdso_vsym.
19403         * Makerules (COMPILE.c, compile-stdin.c): New variables.
19404         * Makeconfig (object-suffixes-noshared): New variable.
19405
19406         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
19407         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
19408         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
19409         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
19410
19411         [BZ #14132]
19412         * include/sys/time.h (__gettimeofday): Remove macro.
19413         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
19414         * time/gettimeofday.c (__gettimeofday): Remove #undef.
19415         Remove INTDEF.
19416         (__gettimeofday): Add libc_hidden_def.
19417         (gettimeofday): Add libc_hidden_weak.
19418         * sysdeps/mach/gettimeofday.c: Likewise.
19419         * sysdeps/posix/gettimeofday.c: Likewise.
19420         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
19421         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
19422         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
19423         (__gettimeofday_internal): Remove strong_alias.
19424         (__gettimeofday): Add libc_hidden_def.
19425         (gettimeofday): Add libc_hidden_weak.
19426         * sysdeps/unix/syscalls.list (gettimeofday):
19427         Remove __gettimeofday_internal alias.
19428
19429 2012-05-24  Daniel Jacobowitz  <drow@false.org>
19430             H.J. Lu  <hongjiu.lu@intel.com>
19431
19432         [BZ #12495]
19433         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
19434         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
19435         (largebin_index_32_big): New.
19436         (largebin_index): Use it for 16-byte alignment.
19437         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
19438         correction with front_misalign.
19439
19440 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
19441
19442         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
19443         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
19444         Likewise.
19445         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
19446         Likewise.
19447         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
19448         Likewise.
19449         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
19450         Likewise.
19451         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
19452         Likewise.
19453         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
19454         Likewise.
19455         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
19456         Likewise.
19457         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
19458         Likewise.
19459         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
19460         Likewise.
19461         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
19462         Likewise.
19463         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
19464         Likewise.
19465         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
19466         Likewise.
19467
19468         * scripts/data/c++-types-x32-linux-gnu.data: New file.
19469         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
19470
19471 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
19472
19473         [BZ #10846]
19474         [BZ #14036]
19475         * math/libm-test.inc (exp_test): Add test from bug 14036.
19476         (pow_test): Add test from bug 10846.
19477
19478         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
19479         and other flags.
19480         (special_function): Do not include flags in test name.
19481         (parse_args): Likewise.
19482         * sysdeps/i386/fpu/libm-test-ulps: Update.
19483         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
19484         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
19485         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
19486         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19487
19488         * math/gen-libm-test.pl (%beautify): Add entries for underflow
19489         exceptions.
19490         * math/libm-test.inc ("Philosophy"): Update comment about
19491         exception testing.
19492         (UNDERFLOW_EXCEPTION): New macro.
19493         (UNDERFLOW_EXCEPTION_OK): Likewise.
19494         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
19495         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
19496         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
19497         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
19498         (INVALID_EXCEPTION_OK): Update value.
19499         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
19500         (OVERFLOW_EXCEPTION_OK): Likewise.
19501         (IGNORE_ZERO_INF_SIGN): Likewise.
19502         (test_exceptions): Handle underflow exceptions.
19503         (acos_test): Update for underflow exception expectations.
19504         (cexp_test): Likewise.
19505         (clog_test): Likewise.
19506         (clog10_test): Likewise.
19507         (csqrt_test): Likewise.
19508         (ctan_test): Likewise.
19509         (ctanh_test): Likewise.
19510         (exp_test): Likewise.
19511         (exp10_test): Likewise.
19512         (exp2_test): Likewise.
19513         (expm1_test): Likewise.
19514         (fma_test): Likewise.
19515         (j0_test): Likewise.
19516         (jn_test): Likewise.
19517         (nexttoward_test): Likewise.
19518         (pow_test): Likewise.
19519         (scalbn_test): Likewise.
19520         (scalbln_test): Likewise.
19521         (tan_test): Likewise.
19522         (y1_test): Likewise.
19523         * sysdeps/i386/fpu/libm-test-ulps: Update.
19524         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19525
19526 2012-05-23  David S. Miller  <davem@davemloft.net>
19527
19528         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
19529         (__libc_sigaction): Remove unused local variables.
19530
19531 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
19532
19533         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
19534
19535 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19536
19537         mktime: avoid signed integer overflow
19538         * time/mktime.c (__mktime_internal): Do not mishandle the case
19539         where diff == INT_MIN.
19540
19541         mktime: simplify computation of average
19542         * time/mktime.c (ranged_convert): Use new time_t_avg function
19543         instead of rolling our own (probably-slower) code.
19544
19545         mktime: do not assume signed right shift propagates sign bit
19546         * time/mktime.c (isdst_differ): New static function.
19547         (__mktime_internal): No need to normalize tm_isdst now.
19548         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
19549         tm_isdst values.
19550
19551         mktime: merge another wrapv change from gnulib
19552         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
19553         from some compilers.
19554
19555         mktime: remove incorrect attempt at unusual arithmetics
19556         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
19557         The code didn't really work on such machines anyway.
19558         (TYPE_MINIMUM): Assume two's complement.
19559         (twos_complement_arithmetic): Verify that long_int and time_t
19560         are two's complement (or unsigned, in the latter case).
19561
19562         mktime: check signed shifts on long_int and time_t, too
19563         * time/mktime.c (SHR): Check that shifts work as desired
19564         on the types long_int and time_t too, as SHR is used on
19565         such types.
19566
19567         mktime: do not assume 'long' is wide enough
19568         * time/mktime.c (verify): Move decl up.
19569         (long_int): New type.
19570         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
19571         to remove assumption in the code that 'long' is wide enough to
19572         store year values.  This assumption is not true on x32 and on
19573         some non-glibc platforms.
19574
19575         mktime: merge wrapv change from gnulib
19576         * time/mktime.c (WRAPV): New macro.
19577         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
19578         (guess_time_tm, __mktime_internal): Do not assume that signed
19579         integer overflow wraps around; modern compilers generate code
19580         where this assumption is no longer valid.
19581
19582 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
19583
19584         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
19585         Replace "jmp L(pseudo_end)" with "ret".
19586         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
19587         Likewise.
19588
19589 2012-05-23  Andreas Jaeger  <aj@suse.de>
19590
19591         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
19592         * sysdeps/unix/sysv/linux/poll.c: Remove file.
19593
19594 2012-05-23  Andreas Jaeger  <aj@suse.de>
19595             Maximilian Attems  <max@stro.at>
19596
19597         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
19598         New macros.
19599
19600 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
19601
19602         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
19603         code so that pseudo_end is just ret and the stack pointer is
19604         correct also for static library in error case.
19605
19606 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
19607
19608         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
19609         move to syscalls.list.
19610         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
19611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
19612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
19613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
19614
19615         * manual/install.texi (Running make install): Do not mention Linux
19616         kernel version for which pt_chown is not needed.
19617         (Linux): Do not mention problems with nscd with 2.0 kernels.
19618         * INSTALL: Regenerated.
19619
19620 2012-05-23  Andreas Jaeger  <aj@suse.de>
19621
19622         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
19623         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
19624         macro.
19625         * sysdeps/unix/sysv/linux/s390/bits/mman.h
19626         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19627         * sysdeps/unix/sysv/linux/sh/bits/mman.h
19628         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19629         * sysdeps/unix/sysv/linux/i386/bits/mman.h
19630         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19631         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
19632         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19633         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
19634         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19635         * sysdeps/unix/sysv/linux/bits/in.h
19636         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
19637
19638 2012-05-22  Roland McGrath  <roland@hack.frob.com>
19639
19640         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
19641         (PREPARE_VERSION): Just use assert instead, it will be elided
19642         under [NDEBUG] anyway.
19643
19644 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19645
19646         * sysdeps/unix/sysv/linux/Makefile: Include
19647         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
19648         (sysdep_routines): Remove sysctl.
19649         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
19650         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
19651         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
19652         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
19653         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
19654
19655 2012-05-22  Andreas Jaeger  <aj@suse.de>
19656
19657         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
19658         that pseudo_end is just ret and the stack pointer is correct also
19659         for static library in error case.
19660
19661 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
19662
19663         [BZ #14122]
19664         * nss/nsswitch.c (defconfig_entries): New variable.
19665         (__nss_database_lookup): Don't leak defconfig entries.
19666         (nss_parse_service_list): Don't leak on error paths.
19667         (free_database_entries): New function.
19668         (free_defconfig): New function.
19669         (free_mem): Move common code to free_database_entries.
19670
19671 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19672
19673         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
19674         Add arch_prctl.
19675         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
19676
19677         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
19678         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
19679         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
19680         New macro.
19681         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
19682         (INTERNAL_SYSCALL_TYPES): Likewise.
19683         (LOAD_ARGS_TYPES_[1-6]): Likewise.
19684         (LOAD_REGS_TYPES_[1-6]): Likewise.
19685         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
19686         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
19687
19688 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19689
19690         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
19691         copysignl for GLIBC_2_0.
19692         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
19693         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
19694         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
19695         logbl for GLIBC_2_0.
19696         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
19697         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
19698
19699 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19700
19701         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
19702         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
19703
19704         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
19705         Use "neg %eax".
19706
19707         * time/mktime.c: Update copyright years.
19708
19709 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19710
19711         mktime: merge comment-quoting-style change from gnulib
19712         * time/mktime.c: Quote 'like this' in comments.
19713         The GNU coding standards suggest that we no longer quote `like this',
19714         as "`" and "'" are typically rendered asymmetrically nowadays.
19715         The typical gnulib style is to quote 'like this' when quoting
19716         code, and "like this" when quoting English.
19717
19718         * time/mktime.c (compile-command): Add "-I.".
19719
19720         mktime: merge mktime-internal.h change from gnulib
19721         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
19722
19723         mktime: merge time_r change from gnulib
19724         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
19725
19726         mktime: merge DEBUG change from gnulib
19727         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
19728         case system <time.h> has a #define.
19729
19730         mktime: merge <sys/types.h> change from gnulib
19731         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
19732         since <time.t> is now guaranteed to define time_t.
19733
19734         mktime: merge HAVE_CONFIG_H change from gnulib
19735         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
19736
19737 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19738
19739         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
19740         Use "neg %eax".
19741
19742         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
19743         __rlim_t cast.
19744         (struct rusage): Use anonymous union to pad each field to
19745         __syscall_slong_t.
19746
19747 2012-05-21  David S. Miller  <davem@davemloft.net>
19748
19749         * Makefules (o-iterator): Remove .s cases.
19750         (compile-command.s): Delete.
19751         (COMPILE.s): Delete.
19752         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
19753
19754 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
19755
19756         * configure.in (libc_cv_predef_stack_protector): Only consider
19757         "foobar" and "__stack_chk_fail" lines in libc_undefs.
19758         * configure: Regenerated.
19759
19760 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19761
19762         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
19763         New macro.  Use R*LP on int and pointer.
19764         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
19765         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
19766         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
19767         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
19768
19769         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
19770         [__WORDSIZE_TIME64_COMPAT32] instead of
19771         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
19772         (struct utmp): Likewise.
19773         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
19774         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
19775         Renamed to ...
19776         (__WORDSIZE_TIME64_COMPAT32): This.
19777         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
19778         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
19779         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
19780         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
19781         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
19782         (__WORDSIZE_TIME64_COMPAT32): New macro.
19783
19784 2012-05-21  Andreas Jaeger  <aj@suse.de>
19785
19786         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
19787         only if [SHARED]. Add prototype for __wcschr_ia32.
19788
19789 2012-05-21  Roland McGrath  <roland@hack.frob.com>
19790
19791         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
19792         of %rbp unmolested in the jmp_buf while mangling the low bits.
19793         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
19794         unmolested high bits of %rbp while demangling the low bits.
19795         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
19796
19797 2012-05-21  Andreas Jaeger  <aj@suse.de>
19798
19799         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
19800         * sunrpc/svc_simple.c: Use it for registerrpc.
19801         * sunrpc/xcrypt.c: Use it for passwd2des.
19802
19803         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
19804
19805 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19806
19807         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
19808         Don't define if [__SYSCALL_WORDSIZE != 32].
19809         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
19810         New macro.
19811
19812 2012-05-21  Bruno Haible  <bruno@clisp.org>
19813             Andreas Jaeger  <aj@suse.de>
19814
19815         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
19816         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
19817         inptr and inend for must_buffer_ch.
19818         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
19819         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
19820         * stdio-common/Makefile (tests): Remove bug15.
19821         (bug15-ENV): Remove macro.
19822         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
19823         anymore.
19824
19825 2012-05-19  Andreas Jaeger  <aj@suse.de>
19826             Roland McGrath  <roland@hack.frob.com>
19827
19828         * manual/contrib.texi: Completely rewritten. It contains now an
19829         alphabetical list of contributors and their contributions.
19830
19831 2012-05-21  Richard Henderson  <rth@twiddle.net>
19832
19833         * misc/getauxval.c (__getauxval): Use unsigned long int.
19834         * misc/sys/auxv.h: Include <sys/cdefs.h>.
19835         (getauxval): Use unsigned long int.
19836
19837 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19838
19839         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
19840
19841 2012-05-21  Roland McGrath  <roland@hack.frob.com>
19842
19843         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
19844         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
19845         __alignof__ (long double).
19846
19847 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19848
19849         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19850
19851 2012-05-20  Richard Henderson  <rth@twiddle.net>
19852
19853         * misc/getauxval.c: New file.
19854         * misc/sys/auxv.h: New file.
19855         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
19856         (routines): Add getauxval.
19857         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
19858         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
19859         * elf/dl-sysdep.c (_dl_auxv): Remove.
19860         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
19861         * elf/dl-support.c (_dl_auxv): New variable.
19862         (_dl_aux_init): Initialize it.
19863         * manual/startup.texi (Auxiliary Vector): New node.
19864         * sysdeps/generic/bits/hwcap.h: New file.
19865         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
19866         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
19867         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
19868         * sysdeps/sparc/sysdep.h: ... here.  Include it.
19869         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
19870         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
19871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
19872         Update.
19873         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
19874         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
19875         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
19876         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
19877         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
19878         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
19879         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
19880         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
19881
19882 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19883
19884         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19885
19886 2012-05-19  David S. Miller  <davem@davemloft.net>
19887
19888         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19889
19890 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
19891
19892         [BZ #14123]
19893         * math/s_ccosh.c: Include <float.h>
19894         (__ccosh): Avoid internal overflow calculating sinh and cosh
19895         values before multiplying by sin and cos values.
19896         * math/s_ccoshf.c: Likewise.
19897         * math/s_ccoshl.c: Likewise.
19898         * math/s_csin.c: Likewise.
19899         * math/s_csinf.c: Likewise.
19900         * math/s_csinl.c: Likewise.
19901         * math/s_csinh.c: Likewise.
19902         * math/s_csinhf.c: Likewise.
19903         * math/s_csinhl.c: Likewise.
19904         * math/libm-test.inc (ccos_test): Add more tests.
19905         (ccosh_test): Likewise.
19906         (csin_test): Likewise.
19907         (csinh_test): Likewise.
19908         * sysdeps/i386/fpu/libm-test-ulps: Update.
19909         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19910
19911 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
19912
19913         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
19914         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
19915
19916         * sysdeps/x86_64/x32/_itoa.h: Add comment.
19917
19918 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
19919
19920         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
19921         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
19922         * sysdeps/powerpc/soft-fp/Versions: Likewise.
19923         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
19924         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
19925         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
19926         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
19927         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
19928         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
19929         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
19930         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
19931         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
19932         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
19933         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
19934         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
19935         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
19936         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
19937         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
19938         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
19939         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
19940         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
19941         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
19942         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
19943         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
19944         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
19945         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
19946         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
19947         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
19948         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
19949         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
19950         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
19951
19952 2012-05-18  Andreas Jaeger  <aj@suse.de>
19953
19954         * csu/.gitignore: Delete.
19955
19956 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19957
19958         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
19959         (timex): Use __syscall_slong_t.
19960
19961 2012-05-18  Andreas Jaeger  <aj@suse.de>
19962             Carlos O'Donell  <carlos_odonell@mentor.com>
19963
19964         * manual/install.texi (Configuring and compiling): Update
19965         description about files modified in the source directory.
19966         * INSTALL: Regenerated.
19967
19968 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19969
19970         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
19971         value.  Use "or" to set return value to -1.
19972         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
19973         negate return value.
19974
19975 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19976
19977         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
19978         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
19979         failure if the compiler has Graphite support disabled.
19980         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
19981         Likewise.
19982         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
19983         CFLAGS-memmove.c): Likewise.
19984         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
19985         Likewise.
19986
19987 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
19988
19989         * sysdeps/x86_64/x32/_itoa.h: New file.
19990
19991         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
19992         getdents system call only if kernel and user dirents have the
19993         same d_ino and d_off.
19994
19995         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
19996         LLONG_MAX != LONG_MAX.
19997         (_itoa_word): Use _ITOA_WORD_TYPE on value.
19998         (_fitoa_word): Likewise.
19999
20000         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
20001         years.
20002         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
20003         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
20004         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
20005
20006         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
20007         include <bits/wordsize.h>.  Check __x86_64__ instead of
20008         __WORDSIZE.
20009         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
20010         if __x86_64__ is defined.  Use anonymous union on fpstate.
20011
20012         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
20013         anonymous union.
20014
20015 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
20016
20017         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
20018         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
20019         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
20020         Refer to _rtld_local_ro instead of _rtld_global_ro.
20021         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
20022         Likewise.
20023         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
20024         Likewise.
20025         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
20026         Likewise.
20027         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
20028         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
20029         of _rtld_global, and rtld_progname instead of _dl_argv[0].
20030
20031         * sysdeps/powerpc/powerpc32/dl-machine.c
20032         (__elf_machine_runtime_setup) [PROF]: Don't reference
20033         _dl_prof_resolve.
20034
20035 2012-05-18  Andreas Jaeger  <aj@suse.de>
20036
20037         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
20038         function only available for GCCs before 3.4 since GCC 3.4
20039         introduced a builtin.
20040         (lrint): Likewise.
20041         (llrintf): Likewise.
20042         (llrint): Likewise.
20043         (fmaxf): Likewise.
20044         (fmax): Likewise.
20045         (fminf): Likewise.
20046         (fmin): Likewise.
20047         (rint): Likewise.
20048         (rintf): Likewise.
20049         (nearbyint): Likewise.
20050         (nearbyintf): Likewise.
20051         (ceil): Likewise.
20052         (ceilf): Likewise.
20053         (floor): Likewise.
20054         (floorf): Likewise.
20055
20056 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
20057
20058         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
20059         on both fields and cast pointer to __syscall_ulong_t.
20060
20061         * bits/types.h (__fsword_t): New type.
20062         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
20063         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
20064         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20065         (__FSWORD_T_TYPE): Likewise.
20066         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
20067         (__FSWORD_T_TYPE): Likewise.
20068         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20069         (__FSWORD_T_TYPE): Likewise.
20070         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
20071         (__FSWORD_T_TYPE): Likewise.
20072         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
20073         __SWORD_TYPE with __fsword_t.
20074         (statfs64): Likewise.
20075
20076 2012-05-17  David S. Miller  <davem@davemloft.net>
20077
20078         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
20079
20080 2012-05-17  Andreas Jaeger  <aj@suse.de>
20081
20082         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
20083         warning.
20084
20085 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
20086
20087         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
20088
20089 2012-05-17  Andreas Jaeger  <aj@suse.de>
20090
20091         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
20092         when it is used.
20093
20094 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
20095
20096         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
20097
20098 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
20099
20100         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
20101         * sysdeps/x86_64/tst-mallocalign1.c: New file.
20102
20103 2012-05-17  Andreas Jaeger  <aj@suse.de>
20104             Carlos O'Donell  <carlos_odonell@mentor.com>
20105
20106         [BZ #14059]
20107         * sysdeps/x86_64/multiarch/init-arch.h
20108         (bit_YMM_Usable): Rename to...
20109         (bit_AVX_Usable): ... this.
20110         (bit_FMA4_Usable): New macro.
20111         (bit_XMM_state): New macro.
20112         (bit_YMM_state): New macro.
20113         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
20114         [__ASSEMBLER__] (index_AVX_Usable): ... this.
20115         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
20116         (CPUID_OSXSAVE): New macro.
20117         (CPUID_AVX): New macro.
20118         (CPUID_FMA4): New macro.
20119         (index_YMM_Usable): Rename to...
20120         (index_AVX_Usable): ... this.
20121         (HAS_AVX): Use HAS_ARCH_FEATURE.
20122         (HAS_FMA4): Likewise.
20123         (HAS_YMM_USABLE): Remove.
20124         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20125         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
20126         are present.
20127         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
20128         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
20129         * sysdeps/x86_64/multiarch/Makefile: Likewise.
20130         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
20131         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
20132
20133 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
20134
20135         * math/libm-test.c: Support platforms without multiple rounding modes.
20136         * math/bug-nextafter.c: Support platforms without FP exceptions.
20137         * math/bug-nexttoward.c: Likewise.
20138         * math/test-fenv.c: Likewise.
20139         * math/test-misc.c: Likewise.
20140         * stdlib/bug-getcontext.c: Likewise.
20141
20142 2012-05-17  Andreas Jaeger  <aj@suse.de>
20143
20144         * manual/examples/search.c (critter_cmp): Change signature to
20145         avoid warnings.
20146         * manual/string.texi (Collation Functions): Likewise.
20147
20148 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20149
20150         * bits/types.h: Fold copyright years.
20151         * bits/typesizes.h: Likewise.
20152         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
20153         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
20154         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
20155         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
20156         * time/time.h: Likewise.
20157
20158 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
20159
20160         [BZ #208]
20161         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
20162         in instead of returning them.  Return void.
20163         (__libc_mallinfo): Accumulate over all arenas.
20164         (__malloc_stats): Adjust for change in int_mallinfo interface.
20165
20166 2012-05-16  Roland McGrath  <roland@hack.frob.com>
20167
20168         [BZ #10375]
20169         * configure.in (NM): Add AC_CHECK_TOOL for it.
20170         (libc_extra_cflags): New substituted variable.
20171         Check for -fstack-protector being used implicitly.
20172         * configure: Regenerated.
20173         * config.make.in (config-extra-cflags): New variable,
20174         gets @libc_extra_cflags@.
20175         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
20176
20177         [BZ #10375]
20178         * configure.in: Check for _FORTIFY_SOURCE being predefined.
20179         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
20180         * configure: Regenerated.
20181         * config.make.in (CPPUNDEFS): New substituted variable.
20182         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
20183         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
20184         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
20185
20186 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20187
20188         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
20189         (mq_attr): Use __syscall_slong_t.
20190
20191 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20192
20193         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
20194         Check __x86_64__ instead of __WORDSIZE.
20195         (_STAT_VER_LINUX): Likewise.
20196         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
20197         __syscall_ulong_t and __syscall_slong_t.
20198         (stat64): Likewise.
20199
20200 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20201
20202         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
20203
20204 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20205
20206         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
20207
20208 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20209
20210         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
20211         __syscall_ulong_t.
20212
20213         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
20214         include <bits/wordsize.h>.  Check __x86_64__ instead of
20215         __WORDSIZE.
20216         (greg_t): Use "__extension__ long long int" if __x86_64__ is
20217         defined.
20218         (mcontext_t): Replace "unsigned long" with "unsigned long long".
20219
20220         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
20221         include <bits/wordsize.h>.  Check __x86_64__ instead of
20222         __WORDSIZE.
20223         (user_regs_struct): Use "__extension__ unsigned long long"
20224         instead of "unsigned long" if __x86_64__ is defined.
20225         (user): Likewise.  Pad after pointer field if __ILP32__ is
20226         defined.
20227
20228 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
20229
20230         * configure.in (makeinfo): Require version 4.5 or later.  Allow
20231         versions 5 to 9.
20232         * configure: Regenerated.
20233         * manual/install.texi (texinfo): Increase version requirement to
20234         4.5 or later.
20235         * INSTALL: Regenerated.
20236
20237         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
20238
20239 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20240
20241         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
20242
20243         * sysdeps/x86_64/x32/ffs.c: New file.
20244
20245         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
20246         __syscall_ulong_t.
20247         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
20248         defined.  Use __syscall_ulong_t.
20249         (shminfo): Use __syscall_ulong_t.
20250         (shm_info): Likewise.
20251
20252         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
20253         __syscall_ulong_t.
20254
20255         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
20256         <bits/wordsize.h>.
20257         (msgqnum_t): Use __syscall_ulong_t.
20258         (msglen_t): Likewise.
20259         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
20260         __syscall_ulong_t.
20261
20262         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
20263         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
20264
20265         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
20266
20267         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
20268         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
20269
20270         * sysvipc/sys/msg.h (msgbuf): Replace long int with
20271         __syscall_slong_t.
20272
20273         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
20274         include <bits/wordsize.h>.  Check __x86_64__ instead of
20275         __WORDSIZE.
20276
20277         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
20278         "unsigned long long int" if __x86_64__ is defined.
20279         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
20280
20281         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
20282         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
20283         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
20284
20285         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
20286         <stdint.h>.
20287         (GET_PC): Cast to uintptr_t first.
20288         (GET_FRAME): Likewise.
20289         (GET_STACK): Likewise.
20290
20291         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
20292         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
20293         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
20294         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
20295         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
20296         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
20297         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
20298         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
20299         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
20300         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
20301         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
20302         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
20303         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
20304         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
20305         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
20306         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
20307         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
20308         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
20309         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
20310         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
20311         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
20312         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
20313         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
20314         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
20315         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
20316         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
20317         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
20318         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
20319         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
20320
20321 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
20322
20323         * Makerules (+depfiles): Also collect depfiles from .oS in
20324         $(extra-objs).
20325         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
20326         .oS, $(libnldbl-routines)).
20327
20328         * Makerules (native-compile-mkdep-flags): Define.
20329         * sunrpc/Makefile (extra-objs): Add $(addprefix
20330         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
20331         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
20332         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
20333         calling $(make-target-directory).
20334
20335 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20336
20337         * bits/types.h (__snseconds_t): Removed.
20338         * time/time.h (struct timespec): Replace __snseconds_t with
20339         __syscall_slong_t.
20340         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
20341         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
20342         Likewise.
20343         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20344         (__SNSECONDS_T_TYPE): Likewise.
20345         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
20346         (__SNSECONDS_T_TYPE): Likewise.
20347         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20348         (__SNSECONDS_T_TYPE): Likewise.
20349
20350 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20351
20352         * sysdeps/mach/hurd/bits/typesizes.h
20353         (__SYSCALL_SLONG_TYPE): New macro.
20354         (__SYSCALL_ULONG_TYPE): Likewise.
20355
20356 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20357
20358         * bits/types.h (__syscall_slong_t): New type.
20359         (__syscall_ulong_t): Likewise.
20360
20361         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
20362         (__SYSCALL_ULONG_TYPE): Likewise.
20363         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20364         (__SYSCALL_SLONG_TYPE): Likewise.
20365         (__SYSCALL_ULONG_TYPE): Likewise.
20366         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
20367         (__SYSCALL_SLONG_TYPE): Likewise.
20368         (__SYSCALL_ULONG_TYPE): Likewise.
20369         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20370         (__SYSCALL_SLONG_TYPE): Likewise.
20371         (__SYSCALL_ULONG_TYPE): Likewise.
20372
20373 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20374
20375         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
20376         Add sigaltstack-offsets.sym.
20377         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
20378         <sigaltstack-offsets.h>.
20379         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
20380         longjmp_msg pointer.
20381         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
20382         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
20383         signal stack.
20384         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
20385
20386 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
20387
20388         * elf/stackguard-macros.h: Remove file.
20389         * sysdeps/generic/stackguard-macros.h: New file.
20390         * sysdeps/i386/stackguard-macros.h: Likewise.
20391         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
20392         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
20393         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
20394         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
20395         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
20396         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
20397         * sysdeps/x86_64/stackguard-macros.h: Likewise.
20398         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
20399         <elf/stackguard-macros.h>.
20400
20401         [BZ #14109]
20402         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
20403         __aligned__ in attribute.
20404         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
20405         (gregset_t): Likewise.
20406
20407 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20408
20409         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
20410         * sysdeps/x86_64/64/Implies-after: Here.  New file.
20411         * sysdeps/x86_64/x32/Implies-after: New file.
20412
20413 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20414
20415         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
20416         and access return value for _dl_profile_fixup.  Use R10_LP to
20417         load frame size.
20418
20419 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20420
20421         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
20422
20423 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20424
20425         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
20426         * sysdeps/x86_64/x32/sysdep.h: New file.
20427
20428 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20429
20430         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
20431         * sysdeps/x86_64/setjmp.S: Likewise.
20432
20433 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20434
20435         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
20436         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
20437         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
20438         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
20439         remove unused global constant.
20440
20441 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
20442
20443         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
20444         include of <not-cancel.h>.
20445
20446 2012-05-15  Roland McGrath  <roland@hack.frob.com>
20447
20448         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
20449
20450 2012-05-15  Jeff Law  <law@redhat.com>
20451             Andreas Jaeger  <aj@suse.de>
20452
20453         [BZ #13594]
20454         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
20455         out from...
20456         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
20457         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
20458         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
20459         code changing __hst_map_handle.map.
20460
20461 2012-05-15  Roland McGrath  <roland@hack.frob.com>
20462
20463         * configure.in (sysnames): Look for Implies-before and Implies-after
20464         files.
20465         * configure: Regenerated.
20466
20467 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20468
20469         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
20470         8-byte data alignment with LP_SIZE alignment.
20471
20472 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20473
20474         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
20475         into R10_LP.
20476
20477 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20478
20479         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
20480
20481 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20482
20483         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
20484         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
20485         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
20486         Likewise.
20487         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
20488
20489 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20490
20491         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
20492         (stackinfo_sub_sp): Likewise.
20493
20494 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20495
20496         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
20497         RAX_LP.
20498
20499 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20500
20501         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
20502         into R*_LP.
20503
20504 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20505
20506         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
20507         sizes into R*_LP.
20508
20509 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20510
20511         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
20512
20513 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20514
20515         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
20516         into R11_LP and load __x86_64_shared_cache_size_half into
20517         R8_LP.
20518
20519 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20520
20521         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
20522         R8_LP.
20523
20524 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20525
20526         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
20527         logb for POWER7.
20528         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
20529         logbf for POWER7.
20530         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
20531         logbl for POWER7.
20532         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
20533         powerpc32/power7/fpu/s_logb.c via #include.
20534         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
20535         powerpc32/power7/fpu/s_logbf.c via #include.
20536         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
20537         powerpc32/power7/fpu/s_logbl.c via #include.
20538
20539 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
20540
20541         * README.libm: Remove file.
20542
20543 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20544
20545         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
20546         count for x32.  Use R*_LP and omit operand-size suffix.
20547
20548 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20549
20550         * shlib-versions: Move x86_64-.*-linux.* entries to ...
20551         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
20552         * sysdeps/x86_64/x32/shlib-versions: New file.
20553
20554 2012-05-14  Roland McGrath  <roland@hack.frob.com>
20555
20556         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
20557         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
20558         Use _dl_fatal_printf instead.
20559
20560 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
20561
20562         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
20563         set if not set by the user.  Do not allow for being unset.
20564         * sysdeps/unix/sysv/linux/configure: Regenerated.
20565
20566 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20567
20568         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
20569         the `q' suffix from lea and replace .quad with ASM_ADDR.
20570
20571 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20572
20573         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
20574         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
20575         instead of $17.
20576         (PTR_DEMANGLE): Likewise.
20577
20578 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20579
20580         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
20581         (LP_OP): Likewise.
20582         (ASM_ADDR): Likewise.
20583         (RAX_LP): Likewise.
20584         (RBP_LP): Likewise.
20585         (RBX_LP): Likewise.
20586         (RCX_LP): Likewise.
20587         (RDI_LP): Likewise.
20588         (RSI_LP): Likewise.
20589         (RSP_LP): Likewise.
20590         (R8_LP): Likewise.
20591         (R9_LP): Likewise.
20592         (R10_LP): Likewise.
20593         (R10_LP): Likewise.
20594         (R11_LP): Likewise.
20595         (R12_LP): Likewise.
20596         (R13_LP): Likewise.
20597         (R14_LP): Likewise.
20598         (R15_LP): Likewise.
20599
20600 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20601
20602         * sysdeps/x86_64/x32/dl-machine.h: New file.
20603
20604 2012-05-14  Andreas Jaeger  <aj@suse.de>
20605
20606         * manual/Makefile (subdir): Remove export of subdir.
20607         (all): Remove target.
20608         (.PHONY): Remove all from list.
20609         (mkinstalldirs): Remove.
20610         (.PHONY): Remove installdirs from list.
20611         ($(inst_infodir)/libc.info): Use make-target-directory.
20612         (installdirs): Remove.
20613         (subdir_%): Remove.
20614         (glibc-targets): Remove.
20615         (lib): Remove.
20616         (stubs): Remove.
20617         ($(objpfx)stubs ../po/manual.pot): Remove.
20618         ($(objpfx)stamp%): Remove.
20619         (make-target-directory): Remove.
20620         (subdir_install): Remove.
20621         (routines): Remove.
20622         (aux): Remove.
20623         (sources): Remove.
20624         (objects): Remove.
20625         (headers): Remove.
20626
20627         [BZ #13750]
20628         * manual/.gitignore: Remove, it's not needed anymore.
20629         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
20630         all files in it.
20631         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
20632         directory.
20633         (texis): Renamed to $(objpfx)texis.
20634         (texis-path): New, contains path to generated files.
20635         (chapters.%): Use texis-path for complete path, add extra argument
20636         libc-texinfo.sh.
20637         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
20638         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
20639         (summary,texi, stamp-summary): Use complete path of
20640         files. Generate files in build dir.
20641         (dir-add.texi): Build in build dir.
20642         (libm-err.texi,stamp-libm-err): Likewise.
20643         (version.texi, stamp-version): Likewise.
20644         (.%c.texi): Likewise.
20645         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
20646         (mostlyclean): Remove target.
20647         (realclean): Remove target.
20648         (generated): Add new variable with contents from mostlyclean and
20649         realclean, remove entries duplicated in common-mostlyclean, add
20650         stamp-libm-err and stamp-version.
20651         (generated-dirs): Add libc directory.
20652         ($(inst_infodir)/libc.info): Install files from build dir.
20653
20654         * manual/install.texi (Configuring and compiling): Adjust since
20655         the info files are not part of the tar ball anymore.
20656
20657 2012-05-14  Andreas Jaeger  <aj@suse.de>
20658
20659         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
20660         variable.
20661
20662 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
20663
20664         [BZ #13717]
20665         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
20666         to 2.2.0 where earlier.
20667         * sysdeps/unix/sysv/linux/configure: Regenerated.
20668         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
20669         Remove conditional code.
20670         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
20671         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
20672         Remove conditional code.
20673         [!__NR_lchown]: Likewise.
20674         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
20675         [__NR_lchown]: Likewise.
20676         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
20677         comment referencing __ASSUME_LCHOWN_SYSCALL.
20678         * sysdeps/unix/sysv/linux/i386/sigaction.c
20679         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20680         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20681         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
20682         Remove conditional code.
20683         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
20684         (__protocol_available): Remove #if 0 code.
20685         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
20686         conditional code.
20687         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
20688         * sysdeps/unix/sysv/linux/kernel-features.h
20689         (__ASSUME_GETCWD_SYSCALL): Don't define.
20690         (__ASSUME_REALTIME_SIGNALS): Likewise.
20691         (__ASSUME_PREAD_SYSCALL): Likewise.
20692         (__ASSUME_PWRITE_SYSCALL): Likewise.
20693         (__ASSUME_POLL_SYSCALL): Likewise.
20694         (__ASSUME_LCHOWN_SYSCALL): Likewise.
20695         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
20696         non-SPARC.
20697         (__ASSUME_SIOCGIFNAME): Don't define.
20698         (__ASSUME_MSG_NOSIGNAL): Likewise.
20699         (__ASSUME_SENDFILE): Define unconditionally.
20700         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
20701         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
20702         conditional code.
20703         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
20704         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
20705         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
20706         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
20707         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
20708         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
20709         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
20710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
20711         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20712         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
20714         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20715         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
20717         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20718         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
20720         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20721         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
20723         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20724         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
20726         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20727         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
20729         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20730         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
20732         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20733         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20734         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
20735         Remove conditional code.
20736         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20737         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
20738         Remove conditional code.
20739         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20740         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
20741         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
20742         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
20743         Remove conditional code.
20744         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20745         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
20746         Remove conditional code.
20747         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20748         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
20749         Remove conditional code.
20750         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20751         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
20752         Remove conditional code.
20753         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20754         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
20755         Remove conditional code.
20756         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20757         * sysdeps/unix/sysv/linux/sh/pwrite64.c
20758         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20759         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20760         * sysdeps/unix/sysv/linux/sigaction.c
20761         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20762         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20763         * sysdeps/unix/sysv/linux/sigpending.c
20764         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20765         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20766         * sysdeps/unix/sysv/linux/sigprocmask.c
20767         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20768         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20769         * sysdeps/unix/sysv/linux/sigsuspend.c
20770         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20771         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20772         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
20773         (__libc_missing_rt_sigs): Remove.
20774         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
20775         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
20776         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
20777         Remove conditional code.
20778         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
20779         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
20780         return 1.
20781         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
20782         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
20783         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
20784         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
20785
20786 2012-05-14  Andreas Jaeger  <aj@suse.de>
20787
20788         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
20789         it's not used in glibc.
20790         (__coshm1): Likewise.
20791         (__acosh1p): Likewise.
20792         (__sgn): Likewise.
20793
20794         * manual/string.texi (Copying and Concatenation): Add missing
20795         variable in concat example.
20796         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
20797
20798 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20799
20800         [BZ #14103]
20801         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
20802         __builtin_clzl with __builtin_clzll.
20803
20804 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20805
20806         [BZ #14104]
20807         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
20808         libc_freeres_ptr.
20809
20810 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20811
20812         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
20813         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
20814         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
20815         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
20816
20817 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
20818
20819         * NEWS: Update ia64 info.
20820
20821 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
20822
20823         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
20824         used as bcopy.
20825
20826 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
20827
20828         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
20829         * sysdeps/unix/syscalls.list (dup3): Likewise.
20830         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
20831         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
20832
20833 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
20834
20835         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
20836         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
20837
20838 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
20839
20840         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
20841         thread pointer.
20842         (TLS_IE): Use mov/add instead of movq/addq to load thread
20843         pointer.
20844         (TLS_GD_PREFIX): New.
20845         (TLS_GD): Use it.
20846
20847 2012-05-11  David S. Miller  <davem@davemloft.net>
20848
20849         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
20850         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
20851         (_FPU_SETCW): Likewise.
20852
20853 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20854
20855         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
20856         is 32-byte aligned.
20857
20858 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
20859
20860         [BZ #11837]
20861         * iconvdata/gb18030.c: Update tables.
20862         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
20863         characters specially.
20864         (BODY for TO_LOOP): Add encoding of missing ranges.
20865
20866 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
20867
20868         [BZ #13673]
20869         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
20870         * sysdeps/mach/hurd/dup3.c: Likewise.
20871         * sysdeps/mach/hurd/readlinkat.c: Likewise.
20872         * sysdeps/powerpc/memmove.c:: Likewise.
20873
20874 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20875
20876         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
20877         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
20878
20879 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20880
20881         * elf/elf.h (R_X86_64_RELATIVE64): New.
20882         (R_X86_64_NUM): Updated.
20883         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
20884         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
20885         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
20886         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
20887         tst-quad1pie tst-quad2pie
20888         (modules-names): Add tst-quadmod1 tst-quadmod2.
20889         ($(objpfx)tst-quad1): New dependency.
20890         ($(objpfx)tst-quad2): Likewise.
20891         ($(objpfx)tst-quad1pie): Likewise.
20892         ($(objpfx)tst-quad2pie): Likewise.
20893         * sysdeps/x86_64/tst-quad1.c: New file.
20894         * sysdeps/x86_64/tst-quad1pie.c: New file.
20895         * sysdeps/x86_64/tst-quad2.c: Likewise.
20896         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
20897         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
20898         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
20899         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
20900         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
20901
20902 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20903
20904         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
20905         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
20906         * streams/stropts.h (t_scalar_t): Define type.
20907
20908         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
20909         (_PATH_PRESERVE): Set to "/var/lib".
20910         (_PATH_RWHODIR): Set to "/var/spool/rwho".
20911
20912         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
20913         instead of int.
20914
20915         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
20916         if __dir_mkfile succeeded.
20917
20918         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
20919         checking for _hurd_dtablesize.  Unlock it right after having
20920         finished _hurd_dtable allocation.
20921
20922 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
20923
20924         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
20925         * sysdeps/mach/hurd/configure: Regenerated.
20926         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
20927         special-casing to...
20928         * sysdeps/gnu/configure.in: ... this new file.
20929         * sysdeps/unix/sysv/linux/configure: Regenerated.
20930         * sysdeps/gnu/configure: New generated file.
20931
20932         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
20933         for Linux: use nsec instead of usec, as well as:
20934         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
20935         members of type struct timespec.
20936         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
20937         New macros.
20938         (struct stat64): Likewise.
20939         (_STATBUF_ST_NSEC): New macro.
20940         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
20941
20942         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
20943         __strtoul_internal rather than strtoul.
20944
20945 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20946
20947         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
20948         and reject them.
20949
20950 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20951
20952         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
20953         which preserves existing values.
20954         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
20955
20956 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20957
20958         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
20959         TIMEOUT values.  Return EINVAL for NFDS values either negative or
20960         greater than FD_SETSIZE.
20961
20962 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20963
20964         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
20965         allocated, call __vm_protect to finish enabling the existing space, and
20966         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
20967         allocate the remainder.
20968
20969 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
20970
20971         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
20972         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
20973
20974 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20975
20976         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
20977         sysdeps/mach/hurd/readlink.c.
20978
20979         * posix/tst-sysconf.c (posix_options): Only use
20980         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
20981         _POSIX_SYNCHRONIZED_IO when they are defined
20982         * sysdeps/mach/hurd/bits/posix_opt.h:
20983         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
20984         (_XOPEN_REALTIME): Undefine macro.
20985         (_XOPEN_REALTIME_THREADS): Undefine macro.
20986         (_XOPEN_SHM): Undefine macro.
20987         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
20988         macro to -1.
20989         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
20990         macro to -1.
20991         (_POSIX_ASYNC_IO): Undefine macro.
20992         (_POSIX_PRIORITIZED_IO): Undefine macro.
20993         (_POSIX_SPIN_LOCKS): Define macro to -1.
20994
20995         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
20996         SA_NODEFER, SA_RESETHAND.
20997         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
20998         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
20999         F_DUPFD_CLOEXEC.
21000
21001 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21002
21003         * elf/Makefile (pldd-modules): Define unconditionally.
21004
21005 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21006
21007         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
21008
21009 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21010
21011         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
21012         Return ENOENT when name is empty.
21013         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
21014
21015 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21016
21017         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
21018
21019         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
21020
21021 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21022
21023         Fix mlock in all cases except non-readable pages.
21024         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
21025         instead of VM_PROT_ALL as parameter to __vm_wire function.
21026
21027         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
21028         (__mkdir): When path is `/', just fail with EEXIST.
21029         * sysdeps/mach/hurd/mkdirat.c: Likewise.
21030
21031 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21032
21033         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
21034         <sys/uio.h> (for writev).
21035         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
21036         and <sys/param.h> (for MIN).
21037
21038 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
21039
21040         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
21041         REQUESTED_TIME.  Properly set the remaining time and return EINTR
21042         if interrupted.
21043
21044 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21045
21046         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
21047         Depend on against $(link-rpcuserlibs).
21048
21049 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21050
21051         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
21052         (__libc_stack_end): Do not use attribute_relro.
21053         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
21054         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
21055         to libthread-provided value.
21056         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
21057         attribute_relro.
21058
21059 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21060
21061         [BZ #3748]
21062         * bits/libc-lock.h (__libc_once_get): New macro.
21063         * sysdeps/mach/bits/libc-lock.h: Likewise.
21064         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
21065         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
21066         instead of using implementation details.
21067
21068         * libio/fileops.c: Unconditionally include <kernel-features.h>.
21069         * libio/freopen.c: Likewise.
21070         * libio/freopen64.c: Likewise.
21071         * misc/syslog.c: Likewise.
21072         * nscd/connections.c: Likewise.
21073         * nscd/netgroupcache.c: Likewise.
21074         * sysdeps/posix/getcwd.c: Likewise.
21075
21076 2012-05-10  Roland McGrath  <roland@hack.frob.com>
21077
21078         * math/w_ilogbf.c: Add #include <limits.h>.
21079
21080 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21081
21082         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
21083         path instead of returning without unlocking.
21084
21085         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
21086         immediate-write ioctls.
21087         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
21088
21089 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21090
21091         * sysdeps/mach/hurd/i386/init-first.c (init): Use
21092         __builtin_frame_address instead of making assumptions about the
21093         location of the return address relative to DATA.  Force early load of
21094         the return address.
21095         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
21096         __builtin_frame_address.
21097
21098         dup3 for GNU Hurd.
21099         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
21100         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
21101         implement dup3 and do some further code clean-ups.
21102         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
21103         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
21104
21105 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21106
21107         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
21108
21109         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
21110         HURD_CRITICAL_END around holding _hurd_dtable_lock.
21111         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
21112         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
21113         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
21114         d->port.lock.
21115
21116         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
21117         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
21118         when handler == SIG_ERR, not when handler != SIG_ERR.
21119
21120 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21121
21122         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
21123         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
21124         definitions.
21125
21126         accept4 for GNU Hurd.
21127         * include/sys/socket.h (__libc_accept4): New prototype.
21128         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
21129         to implement __libc_accept4.
21130         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
21131         __libc_accept4.
21132         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
21133
21134         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
21135         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
21136         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
21137         signal-defines.sym.
21138
21139 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21140
21141         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
21142
21143 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21144
21145         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
21146         assertion on O_CLOEXEC flag.
21147         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
21148         * hurd/intern-fd.c: Likewise.
21149         * hurd/port2fd.c: Likewise.
21150
21151 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21152
21153         [BZ #3906]
21154         * bits/in.h (IPV6_PKTINFO): Define new macro.
21155         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
21156
21157 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21158
21159         [BZ #13954]
21160         [BZ #13955]
21161         [BZ #13956]
21162         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
21163         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
21164         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
21165         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
21166         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
21167         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
21168         * math/libm-test.inc (logb_test) : Additional logb tests.
21169
21170 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
21171             Andreas Jaeger  <aj@suse.de>
21172
21173         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
21174         * configure: Regenerated.
21175         * config.h.in (LINK_OBSOLETE_RPC): New macro.
21176         * config.make.in (link-obsolete-rpc): New substituted variable.
21177         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
21178         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
21179         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
21180         (shared-only-routines): Don't set it under [link-obsolete-rpc],
21181         so that libc.a contains the symbols.
21182         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
21183         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
21184         * sunrpc/auth_none.c: Likewise.
21185         * sunrpc/auth_unix.c: Likewise.
21186         * sunrpc/authdes_prot.c: Likewise.
21187         * sunrpc/authuxprot.c: Likewise.
21188         * sunrpc/clnt_gen.c: Likewise.
21189         * sunrpc/clnt_perr.c: Likewise.
21190         * sunrpc/clnt_raw.c: Likewise.
21191         * sunrpc/clnt_simp.c: Likewise.
21192         * sunrpc/clnt_tcp.c: Likewise.
21193         * sunrpc/clnt_udp.c: Likewise.
21194         * sunrpc/clnt_unix.c: Likewise.
21195         * sunrpc/des_crypt.c: Likewise.
21196         * sunrpc/des_soft.c: Likewise.
21197         * sunrpc/get_myaddr.c: Likewise.
21198         * sunrpc/key_call.c: Likewise.
21199         * sunrpc/key_prot.c: Likewise.
21200         * sunrpc/netname.c: Likewise.
21201         * sunrpc/pm_getmaps.c: Likewise.
21202         * sunrpc/pm_getport.c: Likewise.
21203         * sunrpc/pmap_clnt.c: Likewise.
21204         * sunrpc/pmap_prot.c: Likewise.
21205         * sunrpc/pmap_prot2.c: Likewise.
21206         * sunrpc/pmap_rmt.c: Likewise.
21207         * sunrpc/publickey.c: Likewise.
21208         * sunrpc/rpc_cmsg.c: Likewise.
21209         * sunrpc/rpc_common.c: Likewise.
21210         * sunrpc/rpc_dtable.c: Likewise.
21211         * sunrpc/rpc_prot.c: Likewise.
21212         * sunrpc/rpc_thread.c: Likewise.
21213         * sunrpc/rtime.c: Likewise.
21214         * sunrpc/svc.c: Likewise.
21215         * sunrpc/svc_auth.c: Likewise.
21216         * sunrpc/svc_raw.c: Likewise.
21217         * sunrpc/svc_run.c: Likewise.
21218         * sunrpc/svc_tcp.c: Likewise.
21219         * sunrpc/svc_udp.c: Likewise.
21220         * sunrpc/svc_unix.c: Likewise.
21221         * sunrpc/svcauth_des.c: Likewise.
21222         * sunrpc/xcrypt.c: Likewise.
21223         * sunrpc/xdr.c: Likewise.
21224         * sunrpc/xdr_array.c: Likewise.
21225         * sunrpc/xdr_float.c: Likewise.
21226         * sunrpc/xdr_intXX_t.c: Likewise.
21227         * sunrpc/xdr_mem.c: Likewise.
21228         * sunrpc/xdr_rec.c: Likewise.
21229         * sunrpc/xdr_ref.c: Likewise.
21230         * sunrpc/xdr_sizeof.c: Likewise.
21231         * sunrpc/xdr_stdio.c: Likewise.
21232
21233 2012-05-10  Roland McGrath  <roland@hack.frob.com>
21234
21235         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
21236         change.  Update copyright years.
21237
21238 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
21239
21240         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
21241
21242 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
21243             Joseph Myers  <joseph@codesourcery.com>
21244             Paul Pluzhnikov  <ppluzhnikov@google.com>
21245
21246         [BZ #14012]
21247         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
21248         requiring rpcgen.
21249         [cross-compiling] (extra-libs): Likewise.
21250         [cross-compiling] (extra-libs-others): Likewise.
21251         [cross-compiling] (librpcsvc-routines): Likewise.
21252         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
21253         [cross-compiling] (omit-deps): Likewise.
21254         (sunrpc-CPPFLAGS): New variable.
21255         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
21256         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
21257         (cross-rpcgen-objs): New variable.
21258         (extra-objs): Append $(cross-rpcgen-objs).
21259         ($(cross-rpcgen-objs)): New rule.
21260         ($(objpfx)cross-rpcgen): Likewise.
21261         (rpcgen-cmd): Define to use $(built-program-file).  Expand
21262         comment.
21263         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
21264         ($(objpfx)x%.stmp): Likewise.
21265         * sunrpc/proto.h [IS_IN_build] (_): Define.
21266         [IS_IN_build] (_libc_intl_domainname): Likewise.
21267
21268 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
21269
21270         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
21271         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
21272         and R_X86_64_TPOFF64.
21273
21274 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
21275
21276         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
21277         sysdeps/unix/sysv/syscalls.list.
21278         (stime): Likewise.
21279         (utime): Likewise.
21280         * sysdeps/unix/sysv/syscalls.list: Remove file.
21281
21282 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
21283
21284         [BZ #3440]
21285         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
21286         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
21287         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
21288         (__LC_IDENTIFICATION): Make these macros useful in #if
21289         expressions, as required by C99.
21290
21291 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
21292
21293         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
21294         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
21295         after this.
21296
21297 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
21298
21299         * stdlib/longlong.h: Updated from GCC.
21300
21301 2012-05-09  Andreas Jaeger  <aj@suse.de>
21302
21303         * nscd/nscd.c (run_modes): Make named enum, reorder so that
21304         default is first entry.
21305         (run_mode): Set type.
21306         (main): Remove informal message about syslog.
21307         (options): Fix typo.
21308
21309         [BZ #14053]
21310         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
21311         to asm.
21312         (lrint): Likewise.
21313         (llrintf): Likewise.
21314         (llrint): Likewise.
21315         (rint): Likewise.
21316         (rintf): Likewise.
21317         (nearbyint): Likewise.
21318         (nearbyintf): Likewise.
21319
21320 2012-05-09  Andreas Jaeger  <aj@suse.de>
21321             Pedro Alves  <palves@redhat.com>
21322
21323         * nscd/nscd.c (run_mode): Use enum.
21324         (main): Cleanup coding style issue.
21325
21326 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
21327             Andreas Jaeger  <aj@suse.de>
21328
21329         * nscd/nscd.c (go_background): Replaced with...
21330         (run_mode): ... this.
21331         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
21332         (options): Add -F --foreground.
21333         (main): Implement it.
21334         (parse_opt): Parse it.
21335
21336 2012-05-09  Andreas Jaeger  <aj@suse.de>
21337
21338         [BZ #14083]
21339         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
21340         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
21341         -Wconversion warning.
21342         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
21343         Likewise.
21344
21345 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
21346
21347         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
21348         == 0.
21349         (LC_ALL): Use macro-int-constant.
21350         (LC_COLLATE): Likewise.
21351         (LC_CTYPE): Likewise.
21352         (LC_MESSAGES): Likewise.
21353         (LC_MONETARY): Likewise.
21354         (LC_NUMERIC): Likewise.
21355         (LC_TIME): Likewise.
21356         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
21357         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
21358         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21359         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
21360         Specify type.
21361         [C99-based standards] (float_t): Expect type.
21362         [C99-based standards] (double_t): Expect type.
21363         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
21364         type.
21365         [C99-based standards] (HUGE_VALL): Likewise.
21366         [C99-based standards] (INFINITY): Likewise.
21367         [C99-based standards] (NAN): Likewise.
21368         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
21369         [C99-based standards] (FP_NAN): Likewise.
21370         [C99-based standards] (FP_NORMAL): Likewise.
21371         [C99-based standards] (FP_SUBNORMAL): Likewise.
21372         [C99-based standards] (FP_ZERO): Likewise.
21373         [C99-based standards] (FP_FAST_FMA): Use
21374         optional-macro-int-constant.  Specify type.  Require == 1.
21375         [C99-based standards] (FP_FAST_FMAF): Likewise.
21376         [C99-based standards] (FP_FAST_FMAL): Likewise.
21377         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
21378         [C99-based standards] (FP_ILOGBNAN): Likewise.
21379         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
21380         Specify type.
21381         [C99-based standards] (MATH_ERREXCEPT): Likewise.
21382         [C99-based standards] (math_errhandling): Specify type.
21383         [ISO99 || ISO11] (signgam): Do not allow.
21384         [non-C99-based standards] (copysignf): Do not allow.
21385         [non-C99-based standards] (exp2f): Likewise.
21386         [non-C99-based standards] (log2f): Likewise.
21387         [non-C99-based standards] (modff): Allow.
21388         [non-C99-based standards] (erff): Do not allow.
21389         [non-C99-based standards] (erfcf): Likewise.
21390         [non-C99-based standards] (gammaf): Likewise.
21391         [non-C99-based standards] (hypotf): Likewise.
21392         [non-C99-based standards] (j0f): Likewise.
21393         [non-C99-based standards] (j1f): Likewise.
21394         [non-C99-based standards] (jnf): Likewise.
21395         [non-C99-based standards] (lgammaf): Likewise.
21396         [non-C99-based standards] (tgammaf): Likewise.
21397         [non-C99-based standards] (y0f): Likewise.
21398         [non-C99-based standards] (y1f): Likewise.
21399         [non-C99-based standards] (ynf): Likewise.
21400         [non-C99-based standards] (isnanf): Likewise.
21401         [non-C99-based standards] (acoshf): Likewise.
21402         [non-C99-based standards] (asinhf): Likewise.
21403         [non-C99-based standards] (atanhf): Likewise.
21404         [non-C99-based standards] (cbrtf): Likewise.
21405         [non-C99-based standards] (expm1f): Likewise.
21406         [non-C99-based standards] (ilogbf): Likewise.
21407         [non-C99-based standards] (log1pf): Likewise.
21408         [non-C99-based standards] (logbf): Likewise.
21409         [non-C99-based standards] (nextafterf): Likewise.
21410         [non-C99-based standards] (remainderf): Likewise.
21411         [non-C99-based standards] (rintf): Likewise.
21412         [non-C99-based standards] (scalbf): Likewise.
21413         [non-C99-based standards] (copysignl): Likewise.
21414         [non-C99-based standards] (exp2l): Likewise.
21415         [non-C99-based standards] (log2l): Likewise.
21416         [non-C99-based standards] (modfl): Allow.
21417         [non-C99-based standards] (erfl): Do not allow.
21418         [non-C99-based standards] (erfcl): Likewise.
21419         [non-C99-based standards] (gammal): Likewise.
21420         [non-C99-based standards] (hypotl): Likewise.
21421         [non-C99-based standards] (j0l): Likewise.
21422         [non-C99-based standards] (j1l): Likewise.
21423         [non-C99-based standards] (jnl): Likewise.
21424         [non-C99-based standards] (lgammal): Likewise.
21425         [non-C99-based standards] (tgammal): Likewise.
21426         [non-C99-based standards] (y0l): Likewise.
21427         [non-C99-based standards] (y1l): Likewise.
21428         [non-C99-based standards] (ynl): Likewise.
21429         [non-C99-based standards] (isnanl): Likewise.
21430         [non-C99-based standards] (acoshl): Likewise.
21431         [non-C99-based standards] (asinhl): Likewise.
21432         [non-C99-based standards] (atanhl): Likewise.
21433         [non-C99-based standards] (cbrtl): Likewise.
21434         [non-C99-based standards] (expm1l): Likewise.
21435         [non-C99-based standards] (ilogbl): Likewise.
21436         [non-C99-based standards] (log1pl): Likewise.
21437         [non-C99-based standards] (logbl): Likewise.
21438         [non-C99-based standards] (nextafterl): Likewise.
21439         [non-C99-based standards] (remainderl): Likewise.
21440         [non-C99-based standards] (rintl): Likewise.
21441         [non-C99-based standards] (scalbl): Likewise.
21442         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21443         [non-C99-based standards] (FP_*): Do not allow.
21444         [C99-based standards] (FP_*): Change to
21445         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
21446         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
21447         allow.
21448         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
21449         (SIG_ERR): Likewise.
21450         [X/Open-based standards] (SIG_HOLD): Likewise.
21451         (SIG_IGN): Likewise.
21452         (SIGABRT): Use macro-int-constant.  Specify type.  Require
21453         positive value.
21454         (SIGFPE): Likewise.
21455         (SIGILL): Likewise.
21456         (SIGINT): Likewise.
21457         (SIGSEGV): Likewise.
21458         (SIGTER): Likewise.
21459         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
21460         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
21461         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
21462         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
21463         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
21464         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
21465         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
21466         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
21467         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
21468         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
21469         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
21470         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
21471         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
21472         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
21473         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
21474         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
21475         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
21476         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
21477         [X/Open-based standards] (SIGTRAP): Likewise.
21478         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
21479         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
21480         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
21481         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
21482         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
21483         allow.
21484
21485 2012-05-08  Ian Wienand  <ianw@vmware.com>
21486
21487         [BZ #14080]
21488         * time/tzset.c (__tzset_parse_tz): Update default rules for
21489         daylight time changes in the Energy Policy Act of 2005.
21490
21491 2012-05-09  Andreas Jaeger  <aj@suse.de>
21492
21493         [BZ #13983]
21494         * elf/ldconfig.c (parse_conf): Change string to make clear that
21495         ldconfig only issued a warning if ld.so.conf does not exist.
21496
21497 2012-05-08  David S. Miller  <davem@davemloft.net>
21498
21499         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
21500         movxtod instead of popping the value on the stack.
21501
21502         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21503
21504 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
21505
21506         * config.h.in: Add HAVE_ARM_PCS_VFP.
21507
21508 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
21509
21510         [BZ #13979]
21511         * include/features.h: Warn if user requests __FORTIFY_SOURCE
21512         checking but the checks are disabled for any reason.
21513
21514 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
21515
21516         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
21517         and ELF64_R_TYPE with ELFW(R_TYPE).
21518
21519 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
21520
21521         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
21522         (ulimit): Likewise.
21523
21524         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
21525         (settimeofday): Likewise.
21526
21527 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
21528
21529         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
21530         a struct th_u2 inside the union, and move tu_block/tu_code into
21531         a new th_u3 union of tu_block/tu_code inside of that.  Move
21532         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
21533         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
21534         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
21535         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
21536         (th_stuff): Change to th_u1.tu_stuff.
21537         (th_data): Define.
21538         (th_msg): Change to th_u1.th_u2.tu_data.
21539
21540 2012-05-07  David S. Miller  <davem@davemloft.net>
21541
21542         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21543
21544         [BZ #14074]
21545         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
21546         (SETUP_PIC_REG): Use it.
21547         (SETUP_PIC_REG_LEAF): Use it.
21548
21549 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
21550
21551         [BZ #13885]
21552         [BZ #13923]
21553         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
21554         USE_AS_EXPM1L.
21555         (EXPL_FINITE): Likewise.
21556         (FLDLOG): Likewise.
21557         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
21558         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
21559         e_expl.S.
21560         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
21561         USE_AS_EXPM1L.
21562         (EXPL_FINITE): Likewise.
21563         (FLDLOG): Likewise.
21564         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
21565         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
21566         e_expl.S.
21567         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
21568         test of -max_value argument for long double.
21569         * sysdeps/i386/fpu/libm-test-ulps: Update.
21570         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21571
21572 2012-05-06  David S. Miller  <davem@davemloft.net>
21573
21574         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
21575         quad soft-float symbols whose references which are compiler
21576         generated.
21577         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
21578
21579 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
21580
21581         [BZ #13884]
21582         [BZ #13914]
21583         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
21584         USE_AS_EXP10L.
21585         (EXPL_FINITE): Likewise.
21586         (FLDLOG): Likewise.
21587         (c0): Likewise.
21588         (c1): Likewise.
21589         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
21590         Adjust comments for base varying.
21591         (__expl_finite): Change alias to EXPL_FINITE.
21592         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
21593         e_expl.S.
21594         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
21595         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
21596         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
21597         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
21598         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
21599         USE_AS_EXP10L.
21600         (EXPL_FINITE): Likewise.
21601         (FLDLOG): Likewise.
21602         (c0): Likewise.
21603         (c1): Likewise.
21604         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
21605         Adjust comments for base varying.
21606         (__expl_finite): Change alias to EXPL_FINITE.
21607         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
21608         tests for bugs.
21609         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21610
21611         [BZ #14064]
21612         * math/libm-test.inc (check_float_internal): Correct ulp
21613         calculation for subnormal expected results.
21614
21615 2012-05-06  Andreas Jaeger  <aj@suse.de>
21616
21617         * Makeconfig (+math-flags): New, set to -frounding-math.
21618         (+cflags): Add +math-flags so that all of glibc gets compiled with
21619         it.
21620
21621         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
21622
21623 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
21624
21625         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
21626         Disable one test.
21627
21628         [BZ #13787]
21629         [BZ #13922]
21630         [BZ #14036]
21631         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
21632         (__ieee754_expl): Allow for and saturate large arguments.
21633         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
21634         (u_threshold): Likewise.
21635         (__exp): Call __ieee754_exp before checking for overflow and
21636         underflow.
21637         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
21638         (u_threshold): Likewise.
21639         (__expf): Call __ieee754_expf before checking for overflow and
21640         underflow.
21641         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
21642         (u_threshold): Likewise.
21643         (__expl): Call __ieee754_expl before checking for overflow and
21644         underflow.
21645         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
21646         (__ieee754_expl): Allow for and saturate large arguments.
21647         * math/libm-test.inc (exp_test): Add another test.  Do not allow
21648         missing overflow exception on overflow.
21649         (expm1_test): Do not allow missing overflow exception on overflow.
21650
21651         * sysdeps/i386/fpu/e_expl.c: Move to ...
21652         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
21653         rather than using inline asm.
21654         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
21655         * sysdeps/x86_64/fpu/e_expl.S: Copy from
21656         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
21657
21658         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
21659         (nice): Likewise.
21660         (poll): Likewise.
21661         (signal): Likewise.
21662         (time): Likewise.
21663         (times): Likewise.
21664
21665 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
21666
21667         * sysdeps/unix/syscalls.list (adjtime): Add entry from
21668         sysdeps/unix/common/syscalls.list.
21669         (fchmod): Likewise.
21670         (fchown): Likewise.
21671         (ftruncate): Likewise.
21672         (getrusage): Likewise.
21673         (gettimeofday): Likewise.
21674         (setpgid): Likewise.
21675         (setregid): Likewise.
21676         (setreuid): Likewise.
21677         (sigaction): Likewise.
21678         (truncate): Likewise.
21679         (vhangup): Likewise.
21680         * sysdeps/unix/common/syscalls.list: Remove file.
21681         * sysdeps/unix/bsd/Implies: Don't include unix/common.
21682         * sysdeps/unix/sysv/linux/Implies: Likewise.
21683
21684 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
21685
21686         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
21687         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
21688         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
21689         Moved to ...
21690         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
21691         Here.
21692         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
21693         to ...
21694         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
21695         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
21696         to ...
21697         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
21698         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
21699         to ...
21700         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
21701         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
21702         to ...
21703         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
21704         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
21705         to ...
21706         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
21707         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
21708         to ...
21709         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
21710         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
21711         to ...
21712         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
21713         Here.
21714         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
21715         to ...
21716         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
21717         Here.
21718         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
21719         to ...
21720         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
21721         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
21722         Moved to ...
21723         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
21724         Here.
21725         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
21726         to ...
21727         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
21728
21729 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
21730
21731         * sysdeps/unix/common/bits/dirent.h: Remove file.
21732         * sysdeps/unix/common/bits/fcntl.h: Likewise.
21733
21734         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
21735         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
21736         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
21737         * sysdeps/unix/bsd/isatty.c: Likewise.
21738         * sysdeps/unix/bsd/tcdrain.c: Likewise.
21739         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
21740         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
21741
21742 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21743
21744         [BZ #13563]
21745         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
21746         long double comparison inaccuracies.
21747         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
21748         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21749
21750 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
21751
21752         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
21753         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
21754
21755 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
21756
21757         [BZ #14049]
21758         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
21759         nonzero digits before rounding a hex value.
21760         * stdlib/tst-strtod.c (tests): Add another test.
21761
21762 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21763
21764         * sysdeps/s390/fpu/libm-test-ulps: Update.
21765
21766 2012-05-03  Andreas Jaeger  <aj@suse.de>
21767
21768         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
21769         does not get optimized out.
21770         (malloc_opt_barrier): New.
21771
21772 2012-05-03  Andreas Jaeger  <aj@suse.de>
21773             Roland McGrath  <roland@hack.frob.com>
21774
21775         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
21776         intermediate file deletion.
21777         (generated): Add .symlist files.
21778
21779 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
21780
21781         [BZ #13775]
21782         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
21783         Redirect under this condition.
21784         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
21785         [__USE_GNU] (__dprintf_chk): Not under this condition.
21786         [__USE_GNU] (__vdprintf_chk): Likewise.
21787         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
21788         under this condition.
21789         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
21790         [__USE_XOPEN2K8] (dprintf): Define under this condition.
21791         [__USE_XOPEN2K8] (vdprintf): Likewise.
21792         [__USE_GNU] (__dprintf_chk): Not under this condition.
21793         [__USE_GNU] (__vdprintf_chk): Likewise.
21794         [__USE_GNU] (dprintf): Likewise.
21795         [__USE_GNU] (vdprintf): Likewise.
21796
21797 2012-05-03  Roland McGrath  <roland@hack.frob.com>
21798
21799         * elf/Makefile (common-generated): Set this instead of generated for
21800         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
21801         $(all-built-dso)-derived lists.
21802
21803 2012-05-03  Andreas Jaeger  <aj@suse.de>
21804
21805         * sysdeps/i386/fpu/libm-test-ulps: Update.
21806
21807         * FAQ: Removed.
21808         * FAQ.in: Likewise.
21809         * scripts/gen-FAQ.pl: Likewise.
21810         * manual/install.texi (Installation): Point to online location of
21811         FAQ.
21812         * Makefile (files-for-dist): Remove FAQ.
21813         (FAQ): Remove.
21814
21815 2012-05-02  Allan McRae  <allan@archlinux.org>
21816
21817         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
21818         (LDFLAGS-reldepmod5.so): Likewise.
21819         (LDFLAGS-reldep6mod1.so): Likewise.
21820         (LDFLAGS-reldep6mod4.so): Likewise.
21821         (LDFLAGS-reldep8mod3.so): Likewise.
21822         (LDFLAGS-unload4mod1.so): Likewise.
21823         (LDFLAGS-unload4mod2.so): Likewise.
21824         (LDFLAGS-tst-initorder): Likewise.
21825         (LDFLAGS-tst-initordera2.so): Likewise.
21826         (LDFLAGS-tst-initordera3.so): Likewise.
21827         (LDFLAGS-tst-initordera4.so): Likewise.
21828         (LDFLAGS-tst-initorderb2.so): Likewise.
21829         (LDFLAGS-noload): Likewise.
21830         (LDFLAGS-next): Likewise.
21831         (LDFLAGS-order2mod1.so): Likewise.
21832         (LDFLAGS-order2mod2.so): Likewise.
21833         (LDFLAGS-tst-initorder2): Likewise.
21834         (LDFLAGS-tst-initorder2a.so): Likewise.
21835         (LDFLAGS-tst-initorder2b.so): Likewise.
21836         (LDFLAGS-tst-initorder2c.so): Likewise.
21837         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
21838
21839 2012-05-02  David S. Miller  <davem@davemloft.net>
21840
21841         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21842
21843 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
21844
21845         [BZ #14055]
21846         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
21847
21848 2012-05-02  Andreas Jaeger  <aj@suse.de>
21849
21850         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
21851         since we manipulate rounding mode.
21852         (CPPFLAGS-test-idouble.c): Likewise.
21853         (CPPFLAGS-test-ifloat.c): Likewise.
21854         (CFLAGS-test-ldouble.c): Likewise.
21855         (CFLAGS-test-double.c): Likewise.
21856         (CFLAGS-test-float.c): Likewise.
21857         (CFLAGS-test-misc.c): Likewise.
21858         (CFLAGS-test-test-fenv.c): Likewise.
21859
21860 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21861
21862         [BZ #2550]
21863         [BZ #2570]
21864         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
21865         comparisons to determine direction to adjust input.
21866
21867 2012-05-01  Roland McGrath  <roland@hack.frob.com>
21868
21869         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
21870         output to the target.
21871
21872         * scripts/localplt.awk: New file.
21873         * elf/Makefile ($(objpfx)check-localplt): Target removed.
21874         (check-localplt-CFLAGS): Variable removed.
21875         ($(all-built-dso:=.jmprel)): New static pattern rule.
21876         (generated): Add those targets.
21877         (localplt-built-dso): New variable.
21878         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
21879
21880         * elf/check-localplt.c: File removed.
21881
21882         * scripts/check-execstack.awk: New file.
21883         * elf/Makefile ($(objpfx)check-execstack): Target removed.
21884         (check-execstack-CFLAGS): Variable removed.
21885         ($(objpfx)check-execstack.h): Target removed.
21886         ($(objpfx)execstack-default): New target.
21887         (generated): Add that instead of check-execstack.h.
21888         ($(all-built-dso:=.phdr)): New static pattern rule.
21889         (generated): Add those targets.
21890         * elf/check-execstack.c: File removed.
21891
21892         * scripts/check-textrel.awk: New file.
21893         * elf/Makefile ($(objpfx)check-textrel): Target removed.
21894         (check-textrel-CFLAGS): Variable removed.
21895         (all-built-dso): Use := to define.o
21896         ($(all-built-dso:=.dyn)): New static pattern rule.
21897         (generated): Add those targets.
21898         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
21899         * config.make.in (READELF): New substituted variable.
21900         * elf/check-textrel.c: File removed.
21901
21902 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
21903
21904         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
21905         allow.
21906         * conform/data/ctype.h-data [C99-based standards] (isblank):
21907         Expect function.
21908         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
21909         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
21910         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21911         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
21912         Specify type.  Require positive value.
21913         (EILSEQ): Likewise.
21914         (ERANGE): Likewise.
21915         [ISO || POSIX] (EILSEQ): Do not expect.
21916         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
21917         Specify type.  Require positive value.
21918         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
21919         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
21920         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
21921         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
21922         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
21923         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
21924         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
21925         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
21926         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
21927         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
21928         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
21929         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
21930         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
21931         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
21932         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
21933         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
21934         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
21935         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
21936         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
21937         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
21938         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
21939         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
21940         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
21941         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
21942         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
21943         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
21944         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
21945         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
21946         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
21947         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
21948         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
21949         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
21950         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
21951         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
21952         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
21953         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
21954         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
21955         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
21956         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
21957         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
21958         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
21959         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
21960         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
21961         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
21962         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
21963         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
21964         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
21965         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
21966         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
21967         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
21968         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
21969         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
21970         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
21971         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
21972         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
21973         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
21974         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
21975         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
21976         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
21977         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
21978         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
21979         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
21980         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
21981         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
21982         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
21983         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
21984         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
21985         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
21986         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
21987         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
21988         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
21989         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
21990         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
21991         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
21992         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
21993         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
21994         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
21995         Require >= 2.
21996         (FLT_ROUNDS): Expect as macro, not constant.
21997         (FLT_MANT_DIG): Use macro-int-constant.
21998         (DBL_MANT_DIG): Likewise.
21999         (LDBL_MANT_DIG): Likewise.
22000         (FLT_DIG): Likewise.
22001         (DBL_DIG): Likewise.
22002         (LDBL_DIG): Likewise.
22003         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
22004         (DBL_MIN_EXP): Likewise.
22005         (LDBL_MIN_EXP): Likewise.
22006         (FLT_MAX_EXP): Use macro-int-constant.
22007         (DBL_MAX_EXP): Likewise.
22008         (LDBL_MAX_EXP): Likewise.
22009         (FLT_MAX_10_EXP): Likewise.
22010         (DBL_MAX_10_EXP): Likewise.
22011         (LDBL_MAX_10_EXP): Likewise.
22012         (FLT_MAX): Use macro-constant.
22013         (DBL_MAX): Likewise.
22014         (LDBL_MAX): Likewise.
22015         (FLT_EPSILON): Use macro-constant.  Give upper bound.
22016         (DBL_EPSILON): Likewise.
22017         (LDBL_EPSILON): Likewise.
22018         (FLT_MIN): Likewise.
22019         (DBL_MIN): Likewise.
22020         (LDBL_MIN): Likewise.
22021         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
22022         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
22023         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
22024         [ISO11] (FLT_HAS_SUBNORM): Likewise.
22025         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
22026         [ISO11] (DBL_DECIMAL_DIG): Likewise.
22027         [ISO11] (FLT_DECIMAL_DIG): Likewise.
22028         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
22029         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
22030         [ISO11] (FLT_TRUE_MIN): Likewise.
22031         [ISO11] (LDBL_TRUE_MIN): Likewise.
22032         [ISO || ISO99 || ISO11] (*_t): Do not allow.
22033         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
22034         (SCHAR_MIN): Use macro-int-constant.  Specify type.
22035         (SCHAR_MAX): Likewise.
22036         (UCHAR_MAX): Likewise.
22037         (CHAR_MIN): Likewise.
22038         (CHAR_MAX): Likewise.
22039         (MB_LEN_MAX): Use macro-int-constant.
22040         (SHRT_MIN): Use macro-int-constant.  Specify type.
22041         (SHRT_MAX): Likewise.
22042         (USHRT_MAX): Likewise.
22043         (INT_MAX): Likewise.
22044         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
22045         bound negative.
22046         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
22047         bound with "U".
22048         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
22049         bound with "L".
22050         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
22051         bound negative.  Suffix upper bound with "L".
22052         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
22053         bound with "UL".
22054         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
22055         Specify type.
22056         [C99-based standards] (LLONG_MAX): Likewise.
22057         [C99-based standards] (ULLONG_MAX): Likewise.
22058         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
22059         == 0.
22060         [ISO11] (max_align_t): Require type.
22061         [ISO || ISO99 || ISO11] (*_t): Do not allow.
22062
22063         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
22064         from $CFLAGS, without defining away __attribute__ calls.
22065         (checknamespace): Use $CFLAGS_namespace.
22066
22067         * conform/conformtest.pl (@keywords): Only include C99 keywords
22068         for standards based on C99 or C11.
22069
22070         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
22071         Disable tests.
22072         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
22073         UNIX98]: Likewise.
22074
22075         * conform/conformtest.pl: Handle "macro-int-constant" and test for
22076         usability of symbols in #if.
22077
22078         * conform/conformtest.pl: If macro or constant types start
22079         "promoted:", expect the symbol to be of the following type
22080         promoted by the integer promotions.
22081
22082         * conform/conformtest.pl: Parse all "constant" and "macro" lines
22083         in one place.  Also handle "macro-constant".
22084
22085         * conform/conformtest.pl: Only accept expected macro values with
22086         "==".  Parse all "macro" lines in one place.
22087         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
22088
22089         * conform/conformtest.pl: Handle braced types on "constant" lines
22090         instead of handling "typed-constant".
22091         * conform/data/signal.h-data: Use "constant" instead of
22092         "typed-constant".
22093
22094         * conform/conformtest.pl: Handle "optional-" at start of lines in
22095         one place rather than duplicating several cases.  Handle each
22096         format of "macro" line with initial "optional-".
22097
22098         * conform/conformtest.pl: Only accept expected constant or
22099         optional-constant values with "==".  Parse all "constant" lines in
22100         one place.  Parse all "optional-constant" lines in one place.
22101         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
22102         * conform/data/fmtmsg.h-data: Likewise.
22103         * conform/data/netinet/in.h-data: Likewise.
22104         * conform/data/tar.h-data: Likewise.
22105         * conform/data/limits.h-data: Use "==" form on "constant" and
22106         "optional-constant" lines.
22107
22108         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
22109         Use -std=c99 for XOPEN2K.
22110         (@knownproblems): Remove.
22111         (newtoken): Don't check %isknown.
22112
22113         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
22114         Do not expect macro.
22115         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
22116         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
22117         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
22118         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
22119         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
22120         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
22121         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
22122         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
22123         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
22124         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
22125         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
22126         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
22127         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
22128         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
22129         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
22130         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
22131         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
22132         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
22133         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
22134         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
22135         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
22136         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
22137         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
22138         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
22139         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
22140         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
22141         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
22142         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
22143         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
22144         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
22145         [XPG3] (acosh): Likewise.
22146         [XPG3] (asinh): Likewise.
22147         [XPG3] (atanh): Likewise.
22148         [XPG3] (cbrt): Likewise.
22149         [XPG3] (expm1): Likewise.
22150         [XPG3] (ilogb): Likewise.
22151         [XPG3] (log1p): Likewise.
22152         [XPG3] (logb): Likewise.
22153         [XPG3] (nextafter): Likewise.
22154         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
22155         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
22156         [XPG3] (remainder): Likewise.
22157         [XPG3] (rint): Likewise.
22158         [XPG3 || XPG4 || UNIX98] (round): Likewise.
22159         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
22160         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
22161         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
22162         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
22163         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
22164         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
22165         [UNIX98 || XOPEN2K] (scalb): Expect.
22166         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
22167         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
22168         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
22169         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
22170         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
22171         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
22172         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
22173         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
22174         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
22175         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
22176         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
22177         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
22178         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
22179         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
22180         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
22181         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
22182         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
22183         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
22184         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
22185         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
22186         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
22187         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
22188         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
22189         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
22190         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
22191         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
22192         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
22193         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
22194         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
22195         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
22196         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
22197         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
22198         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
22199         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
22200         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
22201         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
22202         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
22203         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
22204         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
22205         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
22206         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
22207         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
22208         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
22209         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
22210         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
22211         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
22212         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
22213         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
22214         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
22215         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
22216         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
22217         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
22218         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
22219         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
22220         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
22221         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
22222         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
22223         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
22224         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
22225         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
22226         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
22227         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
22228         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
22229         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
22230         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
22231         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
22232         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
22233         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
22234         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
22235         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
22236         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
22237         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
22238         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
22239         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
22240         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
22241         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
22242         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
22243         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
22244         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
22245         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
22246         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
22247         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
22248         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
22249         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
22250         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
22251         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
22252         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
22253         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
22254         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
22255         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
22256         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
22257         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
22258         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
22259         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
22260         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
22261         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
22262         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
22263         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
22264         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
22265         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
22266         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
22267         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
22268         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
22269         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
22270         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
22271         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
22272         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
22273         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
22274         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
22275         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
22276         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
22277         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
22278         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
22279         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
22280         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
22281         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
22282         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
22283         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
22284         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
22285         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
22286         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
22287         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
22288         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
22289         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
22290         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
22291         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
22292         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
22293         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
22294         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
22295         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
22296         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
22297         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
22298         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
22299         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
22300         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
22301         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
22302         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
22303
22304         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
22305         _XOPEN_SOURCE_EXTENDED for XPG4.
22306
22307         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
22308
22309         * Makeconfig (localtime): Remove variable.
22310         (inst_localtime-file): Likewise.
22311
22312 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
22313
22314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
22315         Update.
22316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
22317         Update.
22318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
22319         Update.
22320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
22321         Update.
22322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
22323         Update.
22324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
22325         Update.
22326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
22327         Update.
22328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
22329         Update.
22330         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
22331         Update.
22332
22333 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
22334
22335         [BZ #2550]
22336         [BZ #2570]
22337         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
22338         comparisons to determine direction to adjust input.
22339         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
22340         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
22341         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
22342         Likewise.
22343         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
22344         Likewise.
22345         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
22346         Likewise.
22347         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
22348         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
22349         Likewise.
22350         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
22351         Likewise.
22352         * math/libm-test.inc (nexttoward_test): Add more tests.
22353
22354 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
22355
22356         [BZ #14040]
22357         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
22358         in version GLIBC_2.1, not GLIBC_2.0.
22359         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
22360         Likewise.
22361
22362 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
22363
22364         [BZ #13942]
22365         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
22366         (1 - x) * (1 + x).
22367         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
22368         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
22369         * math/libm-test.inc (acos_test): Add more tests.
22370         (asin_test): Likewise.
22371         * sysdeps/i386/fpu/libm-test-ulps: Update.
22372         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22373
22374         [BZ #14034]
22375         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
22376         of square root.
22377         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
22378         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
22379         * math/libm-test.inc (acos_test_tonearest): New function.
22380         (acos_test_towardzero): Likewise.
22381         (acos_test_downward): Likewise.
22382         (acos_test_upward): Likewise.
22383         (asin_test_tonearest): Likewise.
22384         (asin_test_towardzero): Likewise.
22385         (asin_test_downward): Likewise.
22386         (asin_test_upward): Likewise.
22387         (main): Call the new functions.
22388         * sysdeps/i386/fpu/libm-test-ulps: Update.
22389         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22390
22391         [BZ #13884]
22392         [BZ #13924]
22393         * math/e_exp10.c: Include <float.h>.
22394         (__ieee754_exp10): Handle underflow here rather than multiplying
22395         large negative argument by M_LN10.
22396         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
22397         of __ieee754_expf.
22398         * math/e_exp10l.c: Include <float.h>.
22399         (__ieee754_exp10l): Handle underflow here rather than multiplying
22400         large negative argument by M_LN10l.
22401         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
22402         spurious overflow exception on underflow.
22403
22404 2012-04-29  Marek Polacek  <polacek@redhat.com>
22405
22406         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
22407         (__fortify_function): New macro.
22408         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
22409         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
22410         __extern_always_inline.
22411         * libio/bits/stdio2.h: Likewise.
22412         * libio/bits/stdio.h: Likewise.
22413         * string/string.h: Likewise.
22414         * string/bits/string3.h: Likewise.
22415         * include/stdio.h: Likewise.
22416         * stdlib/bits/stdlib.h: Likewise.
22417         * stdlib/stdlib.h: Likewise.
22418         * rt/bits/mqueue2.h: Likewise.
22419         * rt/mqueue.h: Likewise.
22420         * posix/bits/unistd.h: Likewise.
22421         * posix/unistd.h: Likewise.
22422         * io/bits/poll2.h: Likewise.
22423         * io/bits/fcntl2.h: Likewise.
22424         * io/fcntl.h: Likewise.
22425         * io/sys/poll.h: Likewise.
22426         * misc/bits/syslog.h: Likewise.
22427         * misc/bits/syslog-ldbl.h: Likewise.
22428         * misc/sys/syslog.h: Likewise.
22429         * socket/bits/socket2.h: Likewise.
22430         * socket/sys/socket.h: Likewise.
22431         * debug/tst-chk1.c: Likewise.
22432         * wcsmbs/bits/wchar2.h: Likewise.
22433         * wcsmbs/bits/wchar-ldbl.h: Likewise.
22434         * wcsmbs/wchar.h: Likewise.
22435
22436 2012-04-29  Andreas Jaeger  <aj@suse.de>
22437
22438         * Makerules (tests): Remove enable-check-abi protection.
22439         (check-abi-warn): Remove.
22440         (check-abi-%): Remove check-abi-warn usage.
22441
22442         * configure.in: Remove check-abi configure option.
22443         * configure: Regenerated.
22444         * config.make.in (enable-check-abi): Remove.
22445
22446 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
22447
22448         [BZ #14033]
22449         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
22450         double functions to double *_finite functions.
22451
22452         [BZ #13941]
22453         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
22454         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
22455         LDBL_MIN_EXP.
22456         * stdio-common/Makefile (tests): Add tst-sprintf3.
22457         * stdio-common/tst-sprintf3.c: New file.
22458
22459         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
22460         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
22461
22462 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
22463
22464         * conform/conformtest.pl: Remove duplicate typed-constant
22465         handling.
22466
22467 2012-04-28  David S. Miller  <davem@davemloft.net>
22468
22469         * Makerules (%.abilist): Add vpath on sysdep_dirs.
22470         (check-abi-%): Remove AWK script prerequisite and explicit
22471         abilist directory.
22472         (check-abi): Rewrite to just diff the symlist with the abilist.
22473         (config-tls, config-abi-config): Delete, no longer used.
22474         (update-abi-%): Remove AWK script and explicit abilist directory.
22475         (update-abi): Rewrite to simply compare and conditionally copy the
22476         symlist and the sysdep abilist file.  Remove update-abi-config
22477         checks.
22478         * abilist/ld.abilist: Remove.
22479         * abilist/libBrokenLocale.abilist: Remove.
22480         * abilist/libanl.abilist: Remove.
22481         * abilist/libcrypt.abilist: Remove.
22482         * abilist/libdl.abilist: Remove.
22483         * abilist/librt.abilist: Remove.
22484         * abilist/libthread_db.abilist: Remove.
22485         * abilist/libutil.abilist: Remove.
22486         * scripts/extract-abilist.awk: Remove.
22487         * scripts/merge-abilist.awk: Remove.
22488         * sysdeps/generic/libcidn.abilist: New file.
22489         * sysdeps/generic/libnss_compat.abilist: New file.
22490         * sysdeps/generic/libnss_db.abilist: New file.
22491         * sysdeps/generic/libnss_dns.abilist: New file.
22492         * sysdeps/generic/libnss_files.abilist: New file.
22493         * sysdeps/generic/libnss_hesiod.abilist: New file.
22494         * sysdeps/generic/libnss_nis.abilist: New file.
22495         * sysdeps/generic/libnss_nisplus.abilist: New file.
22496         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
22497         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
22498         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
22499         file.
22500         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
22501         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
22502         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
22503         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
22504         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
22505         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
22506         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
22507         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
22508         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
22509         file.
22510         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
22511         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
22512         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
22513         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
22514         file.
22515         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
22516         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
22517         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
22518         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
22519         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
22520         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
22521         file.
22522         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
22523         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
22524         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
22525         file.
22526         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
22527         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
22528         New file.
22529         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
22530         New file.
22531         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
22532         New file.
22533         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
22534         New file.
22535         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
22536         New file.
22537         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
22538         New file.
22539         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
22540         New file.
22541         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
22542         New file.
22543         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
22544         New file.
22545         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
22546         New file.
22547         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
22548         New file.
22549         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
22550         New file.
22551         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
22552         New file.
22553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
22554         file.
22555         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
22556         New file.
22557         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
22558         New file.
22559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
22560         file.
22561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
22562         New file.
22563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
22564         New file.
22565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
22566         file.
22567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
22568         New file.
22569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
22570         New file.
22571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
22572         New file.
22573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
22574         New file.
22575         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
22576         New file.
22577         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
22578         New file.
22579         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
22580         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
22581         file.
22582         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
22583         New file.
22584         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
22585         file.
22586         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
22587         file.
22588         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
22589         file.
22590         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
22591         file.
22592         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
22593         file.
22594         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
22595         New file.
22596         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
22597         file.
22598         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
22599         file.
22600         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
22601         New file.
22602         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
22603         file.
22604         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
22605         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
22606         file.
22607         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
22608         New file.
22609         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
22610         file.
22611         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
22612         file.
22613         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
22614         file.
22615         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
22616         file.
22617         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
22618         file.
22619         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
22620         New file.
22621         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
22622         file.
22623         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
22624         file.
22625         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
22626         New file.
22627         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
22628         file.
22629         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
22630         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
22631         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
22632         file.
22633         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
22634         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
22635         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
22636         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
22637         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
22638         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
22639         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
22640         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
22641         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
22642         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
22643         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
22644         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
22645         file.
22646         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
22647         New file.
22648         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
22649         file.
22650         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
22651         file.
22652         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
22653         file.
22654         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
22655         file.
22656         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
22657         file.
22658         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
22659         New file.
22660         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
22661         New file.
22662         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
22663         file.
22664         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
22665         New file.
22666         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
22667         file.
22668         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
22669         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
22670         file.
22671         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
22672         New file.
22673         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
22674         file.
22675         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
22676         file.
22677         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
22678         file.
22679         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
22680         file.
22681         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
22682         file.
22683         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
22684         New file.
22685         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
22686         New file.
22687         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
22688         file.
22689         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
22690         New file.
22691         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
22692         file.
22693
22694 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
22695
22696         * conform/conformtest.pl: Fix typo in handling typed-constant from
22697         allow-header.
22698
22699 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
22700
22701         * README: Cut down references to pre-2.6 Linux kernels and
22702         Linuxthreads.  Update lists of configurations in libc and ports
22703         and sort alphabetically.  Say "or newer" with Linux kernel version
22704         requirements.
22705
22706         * config.h.in [IS_IN_build]: Allow compiling without optimization.
22707
22708 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22709
22710         [BZ #887]
22711         * math/libm-test.inc (logb_test_downward): New test to expose
22712         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
22713         rounding mode.
22714
22715 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
22716
22717         [BZ #14027]
22718         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
22719         to be done.
22720         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
22721         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
22722
22723 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
22724
22725         * sysdeps/unix/i386/brk.S: Remove file.
22726         * sysdeps/unix/i386/dl-brk.S: Likewise.
22727         * sysdeps/unix/i386/pipe.S: Likewise.
22728         * sysdeps/unix/i386/sigreturn.S: Likewise.
22729         * sysdeps/unix/i386/syscall.S: Likewise.
22730         * sysdeps/unix/i386/vfork.S: Likewise.
22731         * sysdeps/unix/i386/wait.S: Likewise.
22732
22733         * sysdeps/unix/common/tcsendbrk.c: Move to ...
22734         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
22735
22736         * configure.in (arm*-none*): Do not allow without
22737         --enable-hacker-mode.
22738         (netbsd*): Remove case setting base_os.
22739         (386bsd*): Likewise.
22740         (freebsd*): Likewise.
22741         (bsdi*): Likewise.
22742         (osf*): Likewise.
22743         (sunos*): Likewise.
22744         (ultrix*): Likewise.
22745         (newsos*): Likewise.
22746         (dynix*): Likewise.
22747         (*bsd*): Likewise.
22748         (sysv*): Likewise.
22749         (isc*): Likewise.
22750         (esix*): Likewise.
22751         (sco*): Likewise.
22752         (minix*): Likewise.
22753         (irix4*): Likewise.
22754         (irix6*): Likewise.
22755         (solaris[2-9]*): Likewise.
22756         (none): Likewise.
22757         * configure: Regenerated.
22758
22759 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22760
22761         [BZ #11521]
22762         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
22763         overflow or cancellation in calculating denominator.
22764         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
22765         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
22766         down expression to avoid unexpected rounding in newer GCCs.
22767         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
22768
22769 2012-04-26  David S. Miller  <davem@davemloft.net>
22770
22771         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
22772         long-double compat symbols.
22773         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
22774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
22775         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
22776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
22777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
22778         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
22779         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
22780         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
22781         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
22782         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
22783         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
22784         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
22785         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
22786
22787 2012-04-25  David S. Miller  <davem@davemloft.net>
22788
22789         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
22790         HWCAP_* values only after the memory barriers have been defined.
22791         (atomic_full_barrier): Define.
22792         (atomic_read_barrier): Define.
22793         (atomic_write_barrier): Define.
22794
22795 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
22796
22797         * shlib-versions: Add libgcc_s version information.
22798         * sysdeps/generic/libgcc_s.h: Remove.
22799         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
22800         libgcc_s.h.
22801         * sysdeps/gnu/unwind-resume.c: Likewise.
22802         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
22803
22804 2012-04-25  David S. Miller  <davem@davemloft.net>
22805
22806         * sysdeps/unix/sparc/brk.S: Delete.
22807         * sysdeps/unix/sparc/dl-brk.S: Delete.
22808         * sysdeps/unix/sparc/pipe.S: Delete.
22809         * sysdeps/unix/sparc/sysdep.S: Delete.
22810         * sysdeps/unix/sparc/sysdep.h: Delete.
22811         * sysdeps/unix/sparc/vfork.S: Delete.
22812         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
22813         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
22814         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
22815         ret_ERRVAL, r0, r1, MOVE): Define.
22816         (JUMPTARGET): Remove.
22817         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
22818         sysdeps/unix/sparc/sysdep.h
22819         (ENTRY, END): Remove.
22820         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
22821
22822 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
22823
22824         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
22825         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
22826         -DIS_IN_build.
22827
22828         * timezone/README: Update upstream location and email address for
22829         tzcode and tzdata.
22830         * timezone/zdump.c: Update from tzcode 2012b.
22831         * timezone/zic.c: Likewise.
22832
22833         * configure.in (libc_cv_as_needed): Remove test.
22834         * configure: Regenerated.
22835         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
22836         conditional definition.
22837         [$(have-as-needed) != yes] (no-as-needed): Likewise.
22838         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
22839         * config.make.in (have-as-needed): Remove variable.
22840
22841 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
22842             Paul Pluzhnikov  <ppluzhnikov@google.com>
22843
22844         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
22845         strings correctly.
22846
22847 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
22848
22849         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
22850         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
22851         * sysdeps/sh/strlen.S: Likewise.
22852
22853 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22854
22855         * sysdeps/unix/fork.S: Remove file.
22856         * sysdeps/unix/i386/fork.S: Likewise.
22857         * sysdeps/unix/sparc/fork.S: Likewise.
22858
22859         * sysdeps/unix/system.c: Remove file.
22860         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
22861
22862         * sysdeps/unix/getegid.S: Remove file.
22863         * sysdeps/unix/geteuid.S: Likewise.
22864
22865 2012-04-24  Roland McGrath  <roland@hack.frob.com>
22866
22867         * scripts/check-localplt.awk: New file.
22868         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
22869         of diff.
22870         * scripts/data/localplt-generic.data: Add a comment.
22871
22872         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
22873         NODE when __dir_mkfile failed.
22874         * sysdeps/mach/hurd/symlinkat.c: Likewise.
22875         Reported by Ludovic Courtès <ludo@gnu.org>.
22876
22877 2012-04-24  Andreas Jaeger  <aj@suse.de>
22878
22879         * Makerules (common-clean): Also remove gen-as-const-headers
22880         files.
22881
22882 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22883
22884         * Makerules (native-compile): Do not change working directory for
22885         build.  Use $(OUTPUT_OPTION) in command.
22886         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
22887
22888 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22889
22890         [BZ #13886]
22891         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
22892         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
22893         * math/libm-test.inc (floor_test): Add more tests.
22894         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
22895
22896 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22897
22898         * sysdeps/unix/getdents.c: Remove file.
22899         * sysdeps/unix/sysv/getdents.c: Likewise.
22900         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
22901
22902         * sysdeps/unix/syscalls.list (madvise): Add syscall from
22903         sysdeps/unix/mman/syscalls.list.
22904         (mmap): Likewise.
22905         (mprotect): Likewise.
22906         (msync): Likewise.
22907         (munmap): Likewise.
22908         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
22909         * sysdeps/unix/mman/syscalls.list: Remove.
22910         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
22911
22912         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
22913         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
22914         * configure: Regenerated.
22915         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
22916         $(libgcc_s_suffix).
22917         * config.make.in (libgcc_s_suffix): Remove variable.
22918
22919 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
22920
22921         * sysdeps/unix/sysv/gethostname.c: Move to ...
22922         * sysdeps/posix/gethostname.c: ... here.
22923
22924         * sysdeps/unix/execve.S: Remove file.
22925
22926         * sysdeps/unix/_exit.S: Remove file.
22927
22928 2012-04-23  Andreas Jaeger  <aj@suse.de>
22929
22930         [BZ #13739]
22931         * manual/Makefile: Remove make dist support, there's no
22932         need for a stand-alone documentation tar ball.
22933         (TEXI2DVI): Define always, it's not in Makeconfig.
22934         (dist): Removed.
22935         (tar-it): Removed.
22936         (edition): Removed.
22937         (glibc-doc-$(edition).tar): Removed
22938         (%.Z): Removed.
22939         (%.gz): Removed.
22940         (%.uu): Removed.
22941         (ETAGS): Remove, it's in Makeconfig.
22942         (move-if-change): Remove, it's in Makeconfig.
22943
22944 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
22945
22946         [BZ #13970]
22947         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
22948         (strtod, strtof, strtold, strtol, strtoul, strtoq)
22949         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
22950         (strtod_l, strtof_l, strtold_l): Remove __wur.
22951         It is not necessarily an error to ignore strtol's return value.
22952         One can reliably look at the stored endptr to decide whether
22953         the number had valid syntax.
22954
22955 2012-04-21  Andreas Jaeger  <aj@suse.de>
22956
22957         [BZ #13739]
22958         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
22959
22960 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
22961
22962         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
22963         * sysdeps/unix/sysv/Versions: Remove file.
22964
22965 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
22966
22967         [BZ #13927]
22968         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22969
22970 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
22971
22972         [BZ #7064]
22973         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
22974         version from __vm86.
22975
22976 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
22977
22978         * sysdeps/unix/common/lxstat.c: Remove file.
22979         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
22980
22981         * sysdeps/unix/sysv/Makefile: Remove file.
22982
22983         * sysdeps/unix/sysv/direct.h: Remove file.
22984
22985         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
22986         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
22987         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
22988         * sysdeps/unix/sysv/bits/signum.h: Likewise.
22989         * sysdeps/unix/sysv/bits/stat.h: Likewise.
22990         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
22991         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
22992
22993         * sysdeps/unix/sysv/setrlimit.c: Remove file.
22994
22995         * sysdeps/unix/xmknod.c: Remove file.
22996         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
22997
22998         * sysdeps/unix/sysv/settimeofday.c: Remove file.
22999
23000         * sysdeps/unix/sysv/i386/time.S: Remove file.
23001
23002         * sysdeps/unix/fxstat.c: Remove file.
23003         * sysdeps/unix/xstat.c: Likewise.
23004         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
23005
23006         * sysdeps/unix/sysv/sigaction.c: Remove file.
23007
23008         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
23009         (sysdep_headers): Remove variable.
23010         [termio.h not in sysdep_headers] (generated): Likewise.
23011         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
23012         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
23013         * sysdeps/unix/sysv/tcdrain.c: Likewise.
23014         * sysdeps/unix/sysv/tcflow.c: Likewise.
23015         * sysdeps/unix/sysv/tcflush.c: Likewise.
23016         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
23017         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
23018         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
23019         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
23020         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
23021
23022         * sysdeps/unix/siglist.c: Remove file.
23023
23024         * sysdeps/unix/getppid.S: Remove file.
23025
23026         * sysdeps/unix/mkdir.c: Remove file.
23027         * sysdeps/unix/rmdir.c: Likewise.
23028
23029 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
23030
23031         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
23032         ERR_MAX value.
23033         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
23034         errlist-compat value.
23035
23036 2012-04-18  David S. Miller  <davem@davemloft.net>
23037
23038         * sysdeps/generic/memcopy.h (reg_char): Delete.
23039         * debug/strcat_chk.c: Use char, not reg_char.
23040         * debug/strcpy_chk.c: Likewise.
23041         * debug/strncat_chk.c: Likewise.
23042         * debug/strncpy_chk.c: Likewise.
23043         * string/memchr.c: Likewise.
23044         * string/memrchr.c: Likewise.
23045         * string/rawmemchr.c: Likewise.
23046         * string/strcat.c: Likewise.
23047         * string/strchr.c: Likewise.
23048         * string/strchrnul.c: Likewise.
23049         * string/strcmp.c: Likewise.
23050         * string/strcpy.c: Likewise.
23051         * string/strncat.c: Likewise.
23052         * string/strncmp.c: Likewise.
23053         * string/strncpy.c: Likewise.
23054
23055 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
23056
23057         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
23058         __builtin_memcopy is called when src and dest ranges are known to not
23059         overlap.
23060
23061 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
23062
23063         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
23064         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
23065         fwd_align_merge macro call.
23066         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
23067         bwd_align_merge macro call.
23068         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
23069
23070 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
23071
23072         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
23073         bwd_align_merge macros.
23074         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
23075         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
23076         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
23077
23078 2012-04-18  David S. Miller  <davem@davemloft.net>
23079
23080         * sysdeps/sparc/sparc64/memcopy.h: Delete.
23081
23082 2012-04-18  Andreas Jaeger  <aj@suse.de>
23083
23084         [BZ# 6794]
23085         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
23086         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
23087         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
23088
23089         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
23090         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
23091         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
23092
23093         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
23094         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
23095         Adjust for changed ldbl-128 files.
23096
23097         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
23098         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
23099         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
23100
23101 2012-04-17  David S. Miller  <davem@davemloft.net>
23102
23103         * sysdeps/sparc/sparc32/memcopy.h: Delete.
23104
23105 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
23106
23107         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
23108         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
23109         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
23110         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
23111         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
23112         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
23113
23114 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23115
23116         [BZ #6794]
23117         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
23118         * math/libm-test.inc: Add ilogb errno and exception tests.
23119         * math/w_ilogb.c: New file: ilogb wrapper.
23120         * math/w_ilogbf.c: New file: ilogbf wrapper.
23121         * math/w_ilogbl.c: New file: ilogbl wrapper.
23122         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
23123         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
23124         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
23125         exception being thrown with 0.0 as argument.
23126         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
23127         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
23128         exception being thrown with 0.0 as argument.
23129         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
23130         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
23131         exception being thrown with 0.0 as argument.
23132         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
23133         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
23134         exception being thrown with 0.0 as argument.
23135         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
23136         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
23137         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
23138         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
23139         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
23140         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
23141         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
23142         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
23143         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
23144
23145 2012-04-17  Petr Baudis  <pasky@ucw.cz>
23146
23147         * include/sys/uio.h: Change __vector to __iovec to avoid clash
23148         with altivec.
23149
23150 2012-04-16  Marek Polacek  <polacek@redhat.com>
23151
23152         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
23153
23154 2012-04-16  Marek Polacek  <polacek@redhat.com>
23155
23156         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
23157         operands of fdivp instruction.
23158
23159 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
23160
23161         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
23162         * elf/tst-auditmod3b.c: Likewise.
23163         * elf/tst-auditmod4b.c: Likewise.
23164         * elf/tst-auditmod5b.c: Likewise.
23165         * elf/tst-auditmod6b.c: Likewise.
23166         * elf/tst-auditmod6c.c: Likewise.
23167         * elf/tst-auditmod7b.c: Likewise.
23168         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
23169         * sysdeps/x86_64/preconfigure.in: Likewise.
23170         * sysdeps/x86_64/preconfigure: Regenerated.
23171
23172 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
23173
23174         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
23175         __ILP32__.
23176
23177 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
23178
23179         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
23180         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
23181
23182 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
23183
23184         [BZ #13973]
23185         * locale/iso-639.def: Fix gl language name. Spotted by
23186         Yaron Shahrabani.
23187
23188 2012-04-12  Roland McGrath  <roland@hack.frob.com>
23189
23190         [BZ #2074]
23191         * libio/libio.h (__io_write_fn): Update comment.
23192
23193 2012-04-12  Petr Baudis  <pasky@ucw.cz>
23194
23195         [BZ #2074]
23196         * stdio.texi (Hook Functions): The user provided writer function
23197         is not allowed to return -1.
23198
23199 2012-04-11  David S. Miller  <davem@davemloft.net>
23200
23201         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23202
23203 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
23204
23205         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
23206         Add a leading slash to rtkaio.
23207
23208 2012-04-11  Jim Meyering  <meyering@redhat.com>
23209
23210         [BZ #11959]
23211         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
23212         It is not necessarily an error to ignore fwrite's return
23213         value.  One can reliably use ferror to test for errors after
23214         the fact.
23215
23216 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
23217
23218         * bits/types.h (__snseconds_t): New type.
23219         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
23220
23221         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
23222         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
23223         (__SNSECONDS_T_TYPE): Likewise.
23224         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
23225         (__SNSECONDS_T_TYPE): Likewise.
23226         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
23227         (__SNSECONDS_T_TYPE): Likewise.
23228
23229 2012-04-10  Andreas Jaeger  <aj@suse.de>
23230
23231         [BZ #2636]
23232         * manual/time.texi (Processor Time): Return type of times is
23233         elapsed real time since an arbitrary point in the past.
23234         (CPU Time): Move CLK_TCK from here...
23235         (Processor Time): ...to here.  Correct description.
23236         * manual/conf.texi (Constants for Sysconf): Correct description of
23237         _SC_CLK_TCK.
23238
23239 2012-04-10  David S. Miller  <davem@davemloft.net>
23240
23241         [BZ #13967]
23242         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
23243         where the is a gap between DT_REL(A) and DT_JMPREL.
23244
23245 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
23246
23247         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
23248         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
23249         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
23250
23251 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
23252
23253         * elf/dl-support.c (_dl_inhibit_cache): New variable.
23254         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
23255         (dl_main): Handle --inhibit-cache.
23256         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
23257         _dl_inhibit_cache.
23258         * elf/dl-load.c (_dl_map_object): Use it.
23259         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
23260
23261 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
23262
23263         [BZ #13872]
23264         * sysdeps/i386/fpu/e_powl.S (p78): New object.
23265         (__ieee754_powl): Saturate large exponents rather than testing for
23266         overflow of y*log2(x).
23267         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
23268         * math/libm-test.inc (pow_test): Do not permit spurious overflow
23269         exceptions.
23270
23271         [BZ #11521]
23272         * math/s_ctan.c: Include <float.h>.
23273         (__ctan): Avoid internal overflow or cancellation in calculating
23274         denominator.
23275         * math/s_ctanf.c: Likewise.
23276         * math/s_ctanl.c: Likewise.
23277         * math/s_ctanh.c: Likewise.
23278         * math/s_ctanhf.c: Likewise.
23279         * math/s_ctanhl.c: Likewise.
23280         * math/libm-test.inc (ctan_test): Add more tests.
23281         (ctanh_test): Likewise.
23282         * sysdeps/i386/fpu/libm-test-ulps: Update.
23283         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23284
23285 2012-04-09  Andreas Jaeger  <aj@suse.de>
23286
23287         [BZ #6894]
23288         * manual/filesys.texi (Directory Entries): Mention that d_namlen
23289         is an optional BSD extension.
23290
23291         [BZ #10254]
23292         * manual/stdio.texi (Opening Streams): Document additional fopen
23293         parameters.
23294
23295 2012-04-09  Roland McGrath  <roland@hack.frob.com>
23296
23297         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
23298         %eax without telling the compiler.
23299
23300 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
23301
23302         [BZ # 13963]
23303         * manual/install.texi: Use sourceware.org.
23304
23305 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
23306
23307         [BZ #13873]
23308         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
23309         (__ieee754_pow): Generate overflow and underflow using huge*huge
23310         and tiny*tiny rather than just returning constant infinity or zero
23311         for large exponents.
23312         * math/libm-test.inc (pow_test): Require overflow exceptions for
23313         applicable cases of large exponents.
23314
23315         [BZ #706]
23316         * sysdeps/i386/fpu/e_pow.S (p10): New object.
23317         (__ieee754_pow): Use iterative multiplication algorithm only for
23318         integer exponents with absolute value below 1024.  Check for odd
23319         integer exponents when using algorithm for real exponents.
23320         * math/libm-test.inc (pow_test): Add more tests.
23321         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23322
23323 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
23324
23325         [BZ #13705]
23326         * math/libm-test.inc (exp_test): Do not allow overflow exception
23327         on underflow test.
23328
23329 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
23330
23331         [BZ #13705]
23332         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
23333         instead of __kernel_standard_f.
23334
23335 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
23336
23337         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
23338         * sysdeps/x86_64/memset_chk.S: Likewise.
23339
23340 2012-04-08  Andreas Jaeger  <aj@suse.de>
23341
23342         [BZ #10153]
23343         * manual/startup.texi (Environment Access): Describe return value
23344         for putenv and setenv.
23345
23346         [BZ #6895]
23347         * manual/filesys.texi (Directory Entries): Add description for
23348         DT_LNK.
23349
23350         [BZ #6890]
23351         * manual/filesys.texi (Directory Entries): Clarify that it's file
23352         system not operating system in the description of DT_UNKNOWN.
23353
23354         [BZ #6578]
23355         * manual/syslog.texi (closelog): Fix reference, it's openlog.
23356
23357 2012-04-08  Stephen Compall  <s11@member.fsf.org>
23358
23359         [BZ #6649]
23360         * manual/llio.texi (Opening and Closing Files): Add cross
23361         reference to explain mode argument.
23362
23363 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
23364
23365         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
23366         * sysdeps/x86_64/memset_chk.S: Likewise.
23367
23368 2012-04-07  David S. Miller  <davem@davemloft.net>
23369
23370         * elf/elf.h (R_SPARC_WDISP10): Define.
23371         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
23372         R_SPARC_SIZE32.
23373         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
23374         R_SPARC_SIZE64 and R_SPARC_H34.
23375
23376 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
23377
23378         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
23379         conditions and remove no longer applicable assertion.
23380
23381 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
23382
23383         * bits/byteswap.h: Include <features.h>.
23384         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
23385         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
23386
23387 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
23388
23389         * bits/byteswap.h (__bswap_16): Removed.
23390         Include <bits/byteswap-16.h> to get __bswap_16.
23391         * sysdeps/i386/bits/byteswap.h: Likewise.
23392         * sysdeps/s390/bits/byteswap.h: Likewise.
23393         * sysdeps/x86_64/bits/byteswap.h: Likewise.
23394         * bits/byteswap-16.h: New file.
23395         * sysdeps/i386/bits/byteswap-16.h: Likewise.
23396         * sysdeps/s390/bits/byteswap-16.h: Likewise.
23397         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
23398         * string/Makefile (headers): Add bits/byteswap-16.h.
23399
23400 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
23401
23402         [BZ #13895]
23403         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
23404         extra indirection.
23405         * nss/Makefile (tests-static, tests): Add tst-nss-static.
23406         * nss/tst-nss-static.c: New.
23407
23408 2012-04-06  Robert Millan  <rmh@gnu.org>
23409
23410         [BZ #6486]
23411         * manual/llio.texi (File Position Primitive): lseek
23412         refers to WHENCE when it really means OFFSET.
23413
23414 2012-04-06  Andreas Jaeger  <aj@suse.de>
23415
23416         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
23417         strncmp declarations.
23418
23419         * abilist/libc.abilist: Add __poll and __ppoll.
23420
23421 2012-04-05  David S. Miller  <davem@davemloft.net>
23422
23423         * scripts/check-local-headers.sh: Accept a host triplet in the
23424         path matched by the exclude regexp.
23425
23426         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
23427         definition.
23428         * sysdeps/powerpc/powerpc32/dl-machine.h
23429         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
23430         * sysdeps/s390/s390-32/dl-machine.h
23431         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
23432         * sysdeps/sparc/sparc32/dl-machine.h
23433         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
23434         * sysdeps/sparc/sparc64/dl-machine.h
23435         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
23436
23437         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
23438         lazy binding.
23439         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
23440         undefined symbol errors.
23441
23442         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
23443         DT_NEEDED entries.
23444
23445 2012-04-05  Michael Matz  <matz@suse.de>
23446
23447         [BZ #13592]
23448         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
23449
23450 2012-04-05  Andreas Jaeger  <aj@suse.de>
23451
23452         [BZ #13908]
23453         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
23454         comment.
23455
23456 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
23457
23458         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
23459         which ROUND is no valid rounding mode.
23460
23461 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
23462
23463         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
23464         read again.
23465         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
23466
23467 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
23468
23469         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
23470         an exception using FPU order intentionally.
23471
23472 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
23473
23474         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
23475         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
23476         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
23477         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
23478
23479 2012-04-05  Simon Josefsson  <simon@josefsson.org>
23480
23481         [BZ #12340]
23482         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
23483         EINVAL when BUFLEN is too smal.
23484
23485 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
23486
23487         [BZ #13553]
23488         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
23489         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
23490
23491 2012-04-03  Andreas Jaeger  <aj@suse.de>
23492
23493         [BZ #13938]
23494         * manual/setjmp.texi (System V contexts): Fix sentence.
23495
23496         [BZ #13926]
23497         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
23498         New macro for this case.
23499         [!__GNUC__] (__bswap_64): New inline function for this case.
23500         * sysdeps/x86_64/bits/byteswap.h: Likewise.
23501         * bits/byteswap.h: Likewise.
23502         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
23503         ull, guard with __GLIBC_HAVE_LONG_LONG.
23504
23505         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
23506         __GLIBC_HAVE_LONG_LONG.
23507
23508         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
23509         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
23510
23511 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23512
23513         [BZ #13691]
23514         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
23515         inptr and inend, rather than using last_ch.
23516
23517 2012-04-02  David S. Miller  <davem@davemloft.net>
23518
23519         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
23520         * stdio-common/printf-parse.h (read_int): Change return type to
23521         'int', return -1 on INT_MAX overflow.
23522         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
23523         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
23524         overflows INT_MAX.  Check for overflow of in-format-string precision
23525         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
23526         SIZE_MAX not INT_MAX for integer overflow test.
23527         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
23528         skip the construct in the format string but do not record anything.
23529         * stdio-common/bug22.c: Adjust to test both width/prevision
23530         INT_MAX overflow as well as total length INT_MAX overflow.  Check
23531         explicitly for proper errno values.
23532
23533 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
23534
23535         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
23536         CHAR_MAX.
23537         * string/test-strcmp.c [! WIDE]: Likewise.
23538         * time/tst-mktime2.c: Likewise for INT_MAX.
23539         * string/test-string.h: #include <sys/param.h> for MIN.
23540
23541         * csu/init-first.c (__libc_init_first): Call __ctype_init.
23542         * sysdeps/i386/init-first.c (init): Likewise.
23543         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
23544         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
23545         * sysdeps/sh/init-first.c (init): Likewise.
23546
23547 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
23548
23549         * po/ru.po: Update from translation team.
23550         * po/vi.po: Likewise.
23551
23552 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
23553
23554         * resolv/nss_dns/dns-host.c: Merge copyright years.
23555
23556 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23557
23558         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
23559         Optimize memcpy with prefetch if
23560         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
23561         src, dst pointers have unequal 16 byte alignments.
23562
23563 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
23564
23565         [BZ #13928]
23566         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
23567         from a CNAME entry and return the minimum ttl for the query.
23568         (gaih_getanswer_slice): Likewise.
23569
23570 2012-03-30  Jeff Law  <law@redhat.com>
23571
23572         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
23573         due to long keys.
23574         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
23575         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
23576
23577         * resolv/nss_dns/dns-host.c: Update copyright year.
23578
23579 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
23580
23581         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
23582         requests to save a system call.  Fix check that all bytes are sent.
23583
23584         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
23585         comments for sendmmsg.
23586
23587 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23588
23589         [BZ #13691]
23590         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
23591         with only 1 character between 0x0041 and 0x01b0.
23592         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
23593         * wcsmbs/tst-mbsnrtowcs.c: New file.
23594
23595 2012-03-29  David S. Miller  <davem@davemloft.net>
23596
23597         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
23598         small copies by hand.
23599
23600 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23601
23602         [BZ #13761]
23603         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
23604         _nss_compat_initgroups_dyn): Fall back to malloc/free
23605         for large group memberships.
23606
23607 2012-03-28  David S. Miller  <davem@davemloft.net>
23608
23609         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
23610         that branches into memcpy.
23611         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
23612         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
23613         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
23614         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
23615         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
23616         bits.
23617         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
23618         implementation too.
23619         * sysdeps/sparc/mempcpy.S: New file.
23620
23621         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
23622         the IFUNC routine in the libc case.
23623         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
23624
23625         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
23626         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
23627         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
23628         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
23629         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
23630         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
23631         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
23632         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
23633
23634         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
23635         loop to 256 bytes instead of 64 bytes and fix test signedness.
23636
23637         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
23638         * sysdeps/sparc/sparc32/Makefile: rather than here...
23639         * sysdeps/sparc/sparc64/Makefile: and here.
23640
23641 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
23642
23643         * malloc/mallocbug.c: Avoid warnings about unused variables.
23644
23645 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
23646
23647         [BZ #13760]
23648         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
23649         in the right place. Discard and retry query if response is
23650         larger than input buffer size.
23651
23652 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
23653
23654         [BZ #369]
23655         [BZ #2678]
23656         [BZ #3866]
23657         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
23658         x for large integer exponent.
23659         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
23660         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
23661         sign of result as needed afterwards.
23662         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
23663         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
23664         result for underflowing pow the same as for overflow.
23665         (__kernel_standard_l): Handle powl overflow and underflow here
23666         rather than calling __kernel_standard.
23667         * math/libm-test.inc (pow_test): Add more tests.
23668
23669         [BZ #3868]
23670         [BZ #13879]
23671         [BZ #13910]
23672         [BZ #13911]
23673         [BZ #13912]
23674         [BZ #13913]
23675         [BZ #13915]
23676         [BZ #13916]
23677         [BZ #13917]
23678         [BZ #13918]
23679         [BZ #13919]
23680         [BZ #13920]
23681         [BZ #13921]
23682         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
23683         * sysdeps/ieee754/k_standard.c: Include <float.h>.
23684         (__kernel_standard_l): New function.
23685         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
23686         __kernel_standard.
23687         * math/w_acosl.c (__acosl): Likewise.
23688         * math/w_asinl.c (__asinl): Likewise.
23689         * math/w_atan2l.c (__atan2l): Likewise.
23690         * math/w_atanhl.c (__atanhl): Likewise.
23691         * math/w_coshl.c (__coshl): Likewise.
23692         * math/w_exp10l.c (__exp10l): Likewise.
23693         * math/w_exp2l.c (__exp2l): Likewise.
23694         * math/w_fmodl.c (__fmodl): Likewise.
23695         * math/w_hypotl.c (__hypotl): Likewise.
23696         * math/w_j0l.c (__j0l, __y0l): Likewise.
23697         * math/w_j1l.c (__j1l, __y1l): Likewise.
23698         * math/w_jnl.c (__jnl, __ynl): Likewise.
23699         * math/w_lgammal.c (__lgammal): Likewise.
23700         * math/w_log10l.c (__log10l): Likewise.
23701         * math/w_log2l.c (__log2l): Likewise.
23702         * math/w_logl.c (__logl): Likewise.
23703         * math/w_powl.c (__powl): Likewise.
23704         * math/w_remainderl.c (__remainderl): Likewise.
23705         * math/w_scalbl.c (sysv_scalbl): Likewise.
23706         * math/w_sinhl.c (__sinhl): Likewise.
23707         * math/w_sqrtl.c (__sqrtl): Likewise.
23708         * math/w_tgammal.c (__tgammal): Likewise.
23709         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
23710         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
23711         * math/libm-test.inc (acos_test): Add more tests.
23712         (acosh_test): Likewise.
23713         (asin_test): Likewise.
23714         (atanh_test): Likewise.
23715         (exp_test): Likewise.
23716         (exp10_test): Likewise.
23717         (exp2_test): Likewise.
23718         (expm1_test): Likewise.
23719         (lgamma_test): Likewise.
23720         (log_test): Likewise.
23721         (log10_test): Likewise.
23722         (log1p_test): Likewise.
23723         (log2_test): Likewise.
23724         (pow_test): Do not allow some spurious overflow exceptions.
23725         (sqrt_test): Add more tests.
23726         (tgamma_test): Likewise.
23727         (y0_test): Likewise.
23728         (y1_test): Likewise.
23729         (yn_test): Likewise.
23730
23731 2012-03-27  Anton Blanchard  <anton@samba.org>
23732
23733         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
23734         MAP_HUGETLB.
23735         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
23736         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
23737         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
23738
23739 2012-03-27  David S. Miller  <davem@davemloft.net>
23740
23741         * conform/Makefile: Run run-conformtest.sh using $(BASH).
23742
23743         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
23744         have-as-vis3 check.
23745
23746 2012-03-27  Andreas Jaeger  <aj@suse.de>
23747
23748         * sysdeps/x86_64/elf/configure.in: Moved to ...
23749         * sysdeps/x86_64/configure.in: ... here.
23750         * sysdeps/x86_64/elf/start.S: Moved to ...
23751         * sysdeps/x86_64/start.S: ... here.
23752         * sysdeps/x86_64/elf/configure: Delete.
23753
23754         * sysdeps/x86_64/configure.in: Merge contents from
23755         sysdeps/i386/configure.in (without i686 check).
23756
23757         * sysdeps/i386/elf/Versions: Merge into ...
23758         * sysdeps/i386/Versions: ... this.
23759         * sysdeps/i386/elf/Versions: Delete file.
23760         * sysdeps/i386/elf/start.S: Moved to ...
23761         * sysdeps/i386/start.S: ...here.
23762         * sysdeps/i386/elf/configure.in: Merge into...
23763         * sysdeps/i386/configure.in: ...here.
23764         * sysdeps/i386/elf/configure.in: Delete file.
23765         * sysdeps/i386/elf/configure: Delete file.
23766
23767         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
23768         * debug/backtracesyms.c: ... here.
23769         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
23770         * debug/backtracesymsfd.c: ... here.
23771         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
23772         * sysdeps/generic/ifunc-sel.h: ... here.
23773
23774         * sysdeps/unix/i386/start.c: Delete file.
23775         * sysdeps/unix/sparc/start.c: Delete file.
23776         * sysdeps/unix/start.c: Delete file.
23777
23778         * sysdeps/sh/elf/configure.in: Moved to ...
23779         * sysdeps/sh/configure.in: ... here.
23780         * sysdeps/sh/elf/start.S: Moved to ...
23781         * sysdeps/sh/start.S: ... here.
23782         * sysdeps/sh/elf/configure: Delete file.
23783
23784         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
23785         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
23786         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
23787         * sysdeps/powerpc/powerpc64/entry.h: ... here.
23788         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
23789         * sysdeps/powerpc/powerpc64/start.S: here.
23790         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
23791         * sysdeps/powerpc/powerpc64/Makefile: ... this.
23792         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
23793         * sysdeps/powerpc/powerpc64/configure.in: ... this.
23794         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
23795
23796         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
23797         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
23798         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
23799         * sysdeps/powerpc/powerpc32/start.S: ... here.
23800         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
23801         * sysdeps/powerpc/powerpc32/configure.in: ... this.
23802         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
23803
23804         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
23805         * sysdeps/powerpc/ifunc-sel.h: ... here.
23806         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
23807         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
23808
23809         * sysdeps/sparc/elf/configure.in: Moved to ...
23810         * sysdeps/sparc/configure.in: ... here.
23811         * sysdeps/sparc/elf/configure: Delete file.
23812         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
23813         * sysdeps/sparc/sparc32/start.S: ... here.
23814         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
23815         * sysdeps/sparc/sparc64/start.S: ... here.
23816         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
23817         * sysdeps/sparc/sparc32/Makefile: ... this.
23818         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
23819         * sysdeps/sparc/sparc64/Makefile: ... this.
23820
23821         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
23822         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
23823         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
23824         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
23825         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
23826         * sysdeps/s390/s390-32/setjmp.S: ... here.
23827         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
23828         * sysdeps/s390/s390-32/configure.in: ... here.
23829         * sysdeps/s390/s390-32/elf/configure: Delete file.
23830         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
23831         * sysdeps/s390/s390-32/start.S: ... here.
23832
23833         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
23834         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
23835         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
23836         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
23837         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
23838         * sysdeps/s390/s390-64/setjmp.S: ... here.
23839         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
23840         * sysdeps/s390/s390-64/configure.in: ... here
23841         * sysdeps/s390/s390-64/elf/configure: Delete file.
23842         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
23843         * sysdeps/s390/s390-64/start.S: ... here.
23844         * sysdeps/s390/s390-64/elf/configure: Delete.
23845
23846         * configure.in: Remove support for elf directories in sysdeps.
23847
23848         * configure: Regenerated.
23849         * sysdeps/i386/configure: Regenerated.
23850         * sysdeps/powerpc/powerpc32/configure: Regenerated.
23851         * sysdeps/powerpc/powerpc64/configure: Regenerated.
23852         * sysdeps/s390/s390-32/configure: Regenerated.
23853         * sysdeps/s390/s390-64/configure: Regenerated.
23854         * sysdeps/sh/configure: Regenerated.
23855         * sysdeps/sparc/configure: Regenerated.
23856         * sysdeps/x86_64/configure: Regenerated.
23857
23858 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
23859
23860         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23861
23862         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
23863         denormal result into account.
23864
23865 2012-03-25  Roland McGrath  <roland@hack.frob.com>
23866
23867         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
23868         Reported by Allan McRae <allan@archlinux.org>.
23869
23870 2012-03-23  Jeff Law  <law@redhat.com>
23871
23872         * nss/getnssent.c (__nss_getent): Fix typo.
23873
23874 2012-03-23  David S. Miller  <davem@davemloft.net>
23875
23876         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23877
23878 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
23879
23880         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
23881         to pad to uint64_t for each field.
23882         (dl_tls_index): Replace unsigned long with uint64_t.
23883
23884 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
23885         Paul Pluzhnikov  <ppluzhnikov@google.com>
23886
23887         [BZ #6528]
23888         * grp/Makefile (otherlibs): Don't set it.
23889         * inet/Makefile (otherlibs): Likewise.
23890         * login/Makefile (otherlibs): Likewise.
23891         * nscd/Makefile (otherlibs): Likewise.
23892         * posix/Makefile (otherlibs): Likewise.
23893         * pwd/Makefile (otherlibs): Likewise.
23894         * rt/Makefile (otherlibs): Likewise.
23895         * sunrpc/Makefile (otherlibs): Likewise.
23896         * nss/Makefile (otherlibs): Likewise.
23897         Add libnss_files to routines and static-only-routines.
23898         ($(objpfx)getent): Remove rule.
23899         * resolv/Makefile: Add libnss_dns and libresolv to routines and
23900         static-only-routines.
23901
23902 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
23903
23904         [BZ #13892]
23905         * math/s_cexp.c: Include <float.h>.
23906         (__cexp): Handle exp result overflowing not necessarily
23907         overflowing both real and imaginary parts of result.
23908         * math/s_cexpf.c: Likewise.
23909         * math/s_cexpl.c: Likewise.
23910         * math/libm-test.inc (cexp_test): Add more tests.
23911         * sysdeps/i386/fpu/libm-test-ulps: Update.
23912         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23913
23914 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23915
23916         * include/link.h (ELFW): New macro.
23917         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
23918         Replace ELF64_R_TYPE with ELFW(R_TYPE).
23919
23920 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23921
23922         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
23923         with uint64_t.
23924
23925 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23926
23927         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
23928         declaration.
23929         (struct La_x32_retval): Likewise.
23930
23931 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
23932
23933         * sysdeps/x86_64/preconfigure.in: New file.
23934         * sysdeps/x86_64/preconfigure: New generated file.
23935
23936 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
23937
23938         [BZ #13824]
23939         * math/e_exp2l.c: Include <float.h>.
23940         (__ieee754_exp2l): Handle overflow and underflow cases
23941         separately.  Only pass fractional part of argument to
23942         __ieee754_expl.
23943         * math/libm-test.inc (exp2_test): Add more tests.
23944
23945         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
23946         negating x to take absolute value.
23947         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
23948         Likewise.
23949         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
23950         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
23951         Likewise.
23952         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
23953         computing low part if x was negated.
23954         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
23955
23956 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
23957
23958         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
23959         la_x32_gnu_pltexit.
23960         (pltexit): Cast int_retval to ptrdiff_t.
23961         * elf/tst-auditmod3b.c: Likewise.
23962         * elf/tst-auditmod4b.c: Likewise.
23963         * elf/tst-auditmod5b.c: Likewise.
23964         * elf/tst-auditmod6b.c: Likewise.
23965         * elf/tst-auditmod6c.c: Likewise.
23966         * elf/tst-auditmod7b.c: Likewise.
23967
23968         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
23969         and x32_gnu_pltexit.
23970
23971         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
23972         __ELF_NATIVE_CLASS.
23973         (La_x32_regs): New macro.
23974         (La_x32_retval): Likewise.
23975         (la_x32_gnu_pltenter): New function prototype.
23976         (la_x32_gnu_pltexit): Likewise.
23977
23978 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
23979
23980         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
23981         exponent.
23982
23983         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23984
23985         * configure.in (libc_cv_cc_nofma): Check for option to disable
23986         generation of FMA instructions.
23987         * configure: Regenerate.
23988         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
23989         * sysdeps/ieee754/dbl-64/Makefile: New file.
23990         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
23991         Remove brandred-fma4.
23992         (CFLAGS-brandred-fma4.c): Remove.
23993         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
23994         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
23995         define.
23996         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
23997         define.
23998
23999 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
24000
24001         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
24002         LLONG_MAX != LONG_MAX.
24003         (_itoa_word): Use _ITOA_WORD_TYPE on value.
24004         (_fitoa_word): Likewise.
24005         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
24006         LLONG_MAX != LONG_MAX.
24007         * stdio-common/_itowa.h: Include <_itoa.h>.
24008         (_itowa_word): Use _ITOA_WORD_TYPE on value.
24009         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
24010         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
24011         only if not defined.
24012         (_ITOA_WORD_TYPE): Likewise.
24013         (_itoa_word): Use _ITOA_WORD_TYPE on value.
24014         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
24015
24016 2012-03-21  David S. Miller  <davem@davemloft.net>
24017
24018         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24019
24020 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
24021
24022         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
24023         of x86_64 when setting libc_cv_slibdir, libdir and
24024         libc_cv_localedir.
24025         * sysdeps/unix/sysv/linux/configure: Regenerated.
24026
24027 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
24028
24029         * manual/lang.texi (Old Varargs): Remove section.
24030         (How Variadic): Update menu.
24031         (va_start): Do not mention varargs.h.
24032
24033 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
24034             Joseph Myers  <joseph@codesourcery.com>
24035
24036         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
24037         link test.
24038         * configure: Regenerated.
24039
24040 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
24041
24042         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
24043         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
24044         conformtest.pl
24045
24046 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
24047
24048         * NOTES: Remove.
24049         * Makefile (files-for-dist): Remove NOTES.
24050         (NOTES): Remove rule.
24051         * README: Don't refer to NOTES.
24052         * manual/creature.texi: Don't include macros.texi.
24053         * manual/intro.texi (creature.texi): Remove comment referring to
24054         NOTES.
24055
24056         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
24057         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
24058         * configure: Regenerated.
24059         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
24060         LIBC_TRY_CC_OPTION.
24061         (libc_cv_as_i686): Likewise.
24062         (libc_cv_cc_avx): Likewise.
24063         (libc_cv_cc_sse2avx): Likewise.
24064         (libc_cv_cc_fma4): Likewise.
24065         (libc_cv_cc_novzeroupper): Likewise.
24066         * sysdeps/i386/configure: Regenerated.
24067
24068         [BZ #13883]
24069         * sysdeps/i386/fpu/s_cexp.S: Remove.
24070         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
24071         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
24072         * math/libm-test.inc (cexp_test): Add more tests.
24073         * sysdeps/i386/fpu/libm-test-ulps: Update.
24074         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24075
24076 2012-03-21  Allan McRae  <allan@archlinux.org>
24077
24078         * timezone/Makefile: Do not install iso3166.tab and zone.tab
24079
24080 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
24081
24082         [BZ #13871]
24083         * math/w_exp2.c: Do not include <float.h>.
24084         (o_threshold, u_threshold): Remove.
24085         (__exp2): Calculate result before checking finiteness and calling
24086         __kernel_standard.
24087         * math/w_exp2f.c: Likewise.
24088         * math/w_exp2l.c: Likewise.
24089         * math/libm-test.inc (exp2_test): Require overflow exception for
24090         1e6 input.
24091
24092         [BZ #3866]
24093         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
24094         range of signed 64-bit integers before using fistpll.  Remove
24095         checks for whether integers fit in mantissa bits.
24096         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
24097         the range of signed 32-bit integers before using fistpl.  Remove
24098         checks for whether integers fit in mantissa bits.
24099         * sysdeps/i386/fpu/e_powl.S (p64): New object.
24100         (__ieee754_powl): Test for y outside the range of signed 64-bit
24101         integers before using fistpll.  Reduce 64-bit values to 63-bit
24102         ones as needed.
24103         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
24104         divide-by-zero is raised for zero to large negative powers.
24105         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
24106         (__ieee754_powl): Test for y outside the range of signed 64-bit
24107         integers before using fistpll.  Reduce 64-bit values to 63-bit
24108         ones as needed.
24109         * math/libm-test.inc (pow_test): Add more tests.
24110
24111 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
24112
24113         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
24114         <stdio-common/_itoa.h>.
24115         * debug/segfault.c: Likewise.
24116         * elf/dl-cache.c: Likewise.
24117         * elf/dl-minimal.c: Likewise.
24118         * elf/dl-misc.c: Likewise.
24119         * elf/dl-sysdep.c: Likewise.
24120         * elf/dl-version.c: Likewise.
24121         * elf/rtld.c: Likewise.
24122         * hurd/hurdsock.c: Likewise.
24123         * hurd/lookup-retry.c: Likewise.
24124         * malloc/malloc.c: Likewise.
24125         * malloc/mtrace.c: Likewise.
24126         * nscd/nscd_getgr_r.c: Likewise.
24127         * nscd/nscd_getpw_r.c: Likewise.
24128         * nscd/nscd_getserv_r.c: Likewise.
24129         * posix/getopt_init.c: Likewise.
24130         * posix/wordexp.c: Likewise.
24131         * stdio-common/_itoa.c: Likewise.
24132         * stdio-common/printf_fphex.c: Likewise.
24133         * stdio-common/vfprintf.c: Likewise.
24134         * string/_strerror.c: Likewise.
24135         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
24136         * sysdeps/i386/i686/hp-timing.h: Likewise.
24137         * sysdeps/mach/_strerror.c: Likewise.
24138         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
24139         * sysdeps/mach/hurd/sethostid.c: Likewise.
24140         * sysdeps/mach/hurd/xmknodat.c: Likewise.
24141         * sysdeps/mach/xpg-strerror.c: Likewise.
24142         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
24143         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
24144         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
24145         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
24146         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
24147         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
24148         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
24149         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
24150         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
24151         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
24152         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
24153         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
24154         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
24155         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
24156         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
24157         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
24158         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
24159         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
24160         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
24161         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
24162         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
24163
24164         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
24165
24166         * stdio-common/_itoa.h: Moved to ...
24167         * sysdeps/generic/_itoa.h: Here.
24168
24169         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
24170
24171         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
24172         instead of "_itoa.h" and "_itowa.h".
24173         * stdio-common/vfprintf.: Likewise.
24174
24175 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
24176
24177         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
24178         <bits/wordsize.h>.
24179         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
24180         (__signbit): Likwise.
24181         (llrintf): Likwise.
24182         (llrint): Likwise.
24183
24184 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
24185
24186         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
24187         __WORDSIZE != 64.
24188
24189 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
24190
24191         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
24192         OVERFLOW_EXCEPTION_OK.
24193         * math/libm-test.inc ("Philosophy"): Update comment about
24194         exception testing.
24195         (OVERFLOW_EXCEPTION): Define.
24196         (OVERFLOW_EXCEPTION_OK): Likewise.
24197         (INVALID_EXCEPTION_OK): Renumber.
24198         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
24199         (IGNORE_ZERO_INF_SIGN): Likewise.
24200         (test_exceptions): Handle FE_OVERFLOW.
24201         (exp10_test): Expect overflow exceptions.
24202         (exp2_test): Likewise.
24203         (expm1_test): Likewise.
24204         (nextafter_test): Likewise.
24205         (pow_test): Likewise.
24206         (scalbn_test): Likewise.
24207         (scalbln_test): Likewise.
24208
24209 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24210
24211         * sysdeps/x86_64/bits/atomic.h
24212         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
24213         64bit integer.
24214         (atomic_exchange_acq): Likewise.
24215         (__arch_exchange_and_add_body): Likewise.
24216         (__arch_add_body): Likewise.
24217         (atomic_add_negative): Likewise.
24218         (atomic_add_zero): Likewise.
24219
24220 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24221
24222         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
24223         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
24224
24225 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24226
24227         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
24228         Check __x86_64__ instead of __WORDSIZE.
24229
24230 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24231
24232         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
24233
24234 2012-03-19  David S. Miller  <davem@davemloft.net>
24235
24236         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24237
24238         * sysdeps/sparc/fpu/fenv_private.h: New file.
24239         * sysdeps/sparc/fpu/math_private.h: Use it.
24240         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
24241         Remove.
24242         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
24243         (libc_feholdexcept_setroundl): Remove.
24244         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
24245         Remove.
24246         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
24247         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
24248
24249 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24250
24251         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
24252         int64_t instead of long int.
24253         (INSERT_WORDS64): Likwise.
24254
24255 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24256
24257         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
24258         _Unwind_GetCFA return to _Unwind_Ptr first.
24259
24260 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
24261
24262         [BZ #13629]
24263         * math/s_clog.c: Include <float.h>.
24264         (__clog): Scale large or subnormal inputs.
24265         * math/s_clogf.c: Likewise.
24266         * math/s_clogl.c: Likewise.
24267         * math/s_clog10.c: Include <float.h>.
24268         (M_LOG10_2): Define.
24269         (__clog10): Scale large or subnormal inputs.
24270         * math/s_clog10f.c: Likewise.
24271         * math/s_clog10l.c: Likewise.
24272         * math/libm-test.inc (clog_test): Add more tests.
24273         (clog10_test): Likewise.
24274         * sysdeps/i386/fpu/libm-test-ulps: Update.
24275         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24276
24277         [BZ #11451]
24278         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
24279         x and y.
24280         * math/libm-test.inc (atan2_test): Add another test.
24281
24282         * Makerules (common-objdir-compile): Remove.
24283         * sysdeps/unix/Makefile (config-generated): Do not add
24284         $(unix-generated) to variable.
24285         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
24286         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
24287         Remove rule.
24288         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
24289         Likewise.
24290         [generic bits/local_lim.h] (before-compile): Do not append to
24291         variable.
24292         [generic bits/local_lim.h] (common-generated): Likewise.
24293         [generic sys/param.h] (before-compile): Do not append to variable.
24294         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
24295         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
24296         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
24297         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
24298         include.
24299         [generic sys/param.h] (sys/param.h-includes): Remove variable.
24300         [generic sys/param.h] (sys/param.h-includes): Remove rule.
24301         [generic sys/param.h] ($(addprefix
24302         $(common-objpfx),$(sys/param.h-includes))): Likewise.
24303         [generic sys/param.h] (common-generated): Do not append to
24304         variable.
24305         [generic sys/param.h] (sysdep_headers): Likewise.
24306         [generic bits/errno.h] (before-compile): Do not append to
24307         variable.
24308         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
24309         rule.
24310         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
24311         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
24312         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
24313         [generic bits/errno.h] (common-generated): Do not append to
24314         variable.
24315         [generic bits/ioctls.h] (before-compile): Do not append to
24316         variable.
24317         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
24318         rule.
24319         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
24320         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
24321         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
24322         rule.
24323         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
24324         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
24325         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
24326         [generic bits/ioctls.h] (common-generated): Do not append to
24327         variable.
24328         [generic sys/syscall.h] (syscall.h): Remove variable.
24329         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
24330         rule.
24331         [generic sys/syscall.h] (before-compile): Do not append to
24332         variable.
24333         [generic sys/syscall.h] (common-generated): Likewise.
24334         * sysdeps/unix/errnos-tmpl.c: Remove file.
24335         * sysdeps/unix/errnos.awk: Likewise.
24336         * sysdeps/unix/ioctls-tmpl.c: Likewise.
24337         * sysdeps/unix/ioctls.awk: Likewise.
24338         * sysdeps/unix/mk-local_lim.c: Likewise.
24339         * sysdeps/unix/snarf-ioctls: Likewise.
24340
24341 2012-03-19  Richard Henderson  <rth@twiddle.net>
24342
24343         * sysdeps/i386/fpu/fenv_private.h: New file.
24344         * sysdeps/i386/fpu/math_private.h: Use it.
24345         (math_opt_barrier, math_force_eval): Remove.
24346         (libc_feholdexcept_setround_53bit): Remove.
24347         (libc_feupdateenv_53bit): Remove.
24348         * sysdeps/x86_64/fpu/math_private.h: Likewise.
24349         (math_opt_barrier, math_force_eval): Remove.
24350         (libc_feholdexcept): Remove.
24351         (libc_feholdexcept_setround): Remove.
24352         (libc_fetestexcept, libc_fesetenv): Remove.
24353         (libc_feupdateenv_test): Remove.
24354         (libc_feupdateenv, libc_feholdsetround): Remove.
24355         (libc_feresetround): Remove.
24356
24357         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
24358         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
24359
24360         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
24361         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
24362         (libc_feupdateenv_testl): New.
24363         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
24364         (libc_feupdateenv_testf): New.
24365         (libc_feupdateenv): Use libc_feupdateenv_test.
24366         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
24367         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
24368
24369         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
24370         (libc_feholdsetroundf, libc_feholdsetroundl): New.
24371         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
24372         (libc_feresetround_noex): New.
24373         (libc_feresetround_noexf): New.
24374         (libc_feresetround_noexl): New.
24375         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
24376         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
24377         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
24378         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
24379         SET_RESTORE_ROUND.
24380         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
24381         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
24382         (__cos): Likewise.
24383         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
24384         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
24385         SET_RESTORE_ROUND_NOEX.
24386         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
24387         SET_RESTORE_ROUND_NOEXF.
24388         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
24389         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
24390         (libc_feholdsetroundf): New.
24391         (libc_feresetround, libc_feresetroundf): New.
24392
24393         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
24394         (libc_feholdexcept_setround_53bit): Convert from macro to function.
24395         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
24396
24397         * sysdeps/generic/math_private.h: Include <fenv.h>.
24398         (default_libc_feholdexcept): New.
24399         (default_libc_feholdexcept_setround): New.
24400         (default_libc_fesetenv, default_libc_feupdateenv): New.
24401         (libc_feholdexcept): Only define if undefined.
24402         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
24403         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
24404         (libc_feholdexcept_setroundl): Likewise.
24405         (libc_feholdexcept_setround_53bit): Likewise.
24406         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
24407         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
24408         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
24409         (libc_feupdateenv_53bit): Likewise.
24410         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
24411         (libc_feholdexcept): Convert from macro to inline function.
24412         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
24413         (libc_fesetenv, libc_feupdateenv): Likewise.
24414
24415         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
24416         not previously defined.
24417         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
24418         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
24419         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
24420         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
24421         * sysdeps/ieee754/flt-32/math_private.h: New file.
24422         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
24423         math_private.h below SET_FLOAT_WORD.
24424         (__isnan, __isinf_ns, __finite): Remove.
24425         (__isnanf, __isinf_nsf, __finitef): Remove.
24426
24427 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
24428
24429         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24430
24431 2012-03-17  David S. Miller  <davem@davemloft.net>
24432
24433         [BZ #6471]
24434         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
24435         for 2.16.
24436
24437 2012-03-16  David S. Miller  <davem@davemloft.net>
24438
24439         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
24440         warnings.
24441
24442         [BZ #6471]
24443         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
24444         properly.
24445         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
24446         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
24447         sysdep_routines when subdir is sysvipc.
24448         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
24449         __getshmlba helper.
24450
24451         * sysdeps/sparc/fpu/libm-test/ulps: Update.
24452
24453 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24454
24455         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
24456         [__LP64__].
24457
24458 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24459
24460         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
24461         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
24462         (__lround): Renamed to ...
24463         (__llround): This.  Replace long int with long long int.
24464         Define lround functions as aliases of llround functions.
24465         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
24466
24467 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24468
24469         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
24470         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
24471         adresses to uintptr_t.  Replace "long int" and "unsigned long
24472         int" with "greg_t" on va_arg.
24473
24474 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24475
24476         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
24477         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
24478
24479         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
24480         Move e_machine check before EI_CLASS check.  Handle x32
24481         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
24482         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
24483         SKIP_EM_IA_64 and include
24484         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
24485
24486         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
24487         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
24488         (add_system_dir): New macro.
24489
24490         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
24491         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
24492
24493 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
24494
24495         [BZ #2551]
24496         [BZ #2552]
24497         [BZ #2553]
24498         [BZ #2554]
24499         [BZ #2562]
24500         [BZ #2563]
24501         [BZ #2565]
24502         [BZ #2566]
24503         [BZ #2576]
24504         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
24505         (y0): Likewise.
24506         * math/w_j0f.c (j0f): Likewise.
24507         (y0f): Likewise.
24508         * math/w_j0l.c (__j0l): Likewise.
24509         (__y0l): Likewise.
24510         * math/w_j1.c (j1): Likewise.
24511         (y1): Likewise.
24512         * math/w_j1f.c (j1f): Likewise.
24513         (y1f): Likewise.
24514         * math/w_j1l.c (__j1l): Likewise.
24515         (__y1l): Likewise.
24516         * math/w_jn.c (jn): Likewise.
24517         (yn): Likewise.
24518         * math/w_jnf.c (jnf): Likewise.
24519         (ynf): Likewise.
24520         * math/w_jnl.c (__jnl): Likewise.
24521         (__ynl): Likewise.
24522         * math/libm-test.inc (j0_test): Add more tests.
24523         (j1_test): Likewise.
24524         (jn_test): Likewise.  Add trailing semicolon to existing test.
24525         (y0_test): Likewise.
24526         (y1_test): Likewise.
24527         * sysdeps/i386/fpu/libm-test-ulps: Update.
24528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24529
24530         [BZ #13851]
24531         [BZ #13854]
24532         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
24533         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
24534         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
24535         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
24536         (__tanl): Set errno for infinite argument.
24537         * sysdeps/i386/fpu/mptan.c: Remove.
24538         * sysdeps/i386/fpu/s_tan.S: Likewise.
24539         * sysdeps/i386/fpu/s_tanl.S: Likewise.
24540         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
24541         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
24542         * math/libm-test.inc (tan_test): Add more tests and enable more
24543         tests for double and long double.
24544         * sysdeps/i386/fpu/libm-test-ulps: Update.
24545         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24546
24547 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
24548
24549         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
24550         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
24551
24552 2012-03-16  Roland McGrath  <roland@hack.frob.com>
24553
24554         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
24555         * configure.in: Use it for both main tree and add-ons.
24556         * configure: Regenerated.
24557
24558 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24559
24560         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
24561
24562 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
24563
24564         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
24565         in comment.
24566
24567         [BZ #13851]
24568         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
24569         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
24570         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
24571         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
24572         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
24573         infinite argument.
24574         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
24575         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
24576         != 0 for prec == 2.
24577         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
24578         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
24579         * sysdeps/i386/fpu/s_cosl.S: Likewise.
24580         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
24581         * sysdeps/i386/fpu/s_sinl.S: Likewise.
24582         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
24583         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
24584         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
24585         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
24586         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
24587         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
24588         * math/libm-test.inc (cos_test): Add more tests and enable more
24589         tests for long double.
24590         (sin_test): Likewise.
24591         (sincos_test): Likewise.
24592         * sysdeps/i386/fpu/libm-test-ulps: Update.
24593         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24594
24595 2012-03-16  David S. Miller  <davem@davemloft.net>
24596
24597         * sysdeps/sparc/fpu/math_private.h: New file.
24598
24599 2012-03-15  David S. Miller  <davem@davemloft.net>
24600
24601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
24602         file.
24603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
24604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
24605         file.
24606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
24607         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
24608         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
24609         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
24610         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
24611         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
24612         sysdep routines.
24613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
24614
24615         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
24616         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
24617
24618         * sysdeps/sparc/sparc-ifunc.h: New file.
24619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
24620         sparc-ifunc.h
24621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
24622         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
24623         Likewise.
24624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
24625         Likewise.
24626         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
24627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
24628         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
24629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
24630         Likewise.
24631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
24632         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
24633         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
24634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
24635         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
24636         Likewise.
24637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
24638         Likewise.
24639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
24640         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
24641         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
24642         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
24643         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
24644         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
24645         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
24646         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
24647         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
24648         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
24649         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
24650         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
24651         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
24652         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
24653         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
24654         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
24655         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
24656         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
24657         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
24658         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
24659         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
24660         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
24661         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
24662         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
24663
24664 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
24665
24666         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
24667         scaling.
24668         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24669
24670 2012-03-15  Andreas Jaeger  <aj@suse.de>
24671
24672         [BZ #13852]
24673         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
24674         ieee754/flt-32 implementation for sin, cos and sincos.
24675         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
24676         * sysdeps/i386/fpu/s_cosf.S: Likewise.
24677         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
24678         * sysdeps/i386/fpu/s_sinf.S: Likewise.
24679         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
24680         ieee754/flt-32 implementation for tan.
24681
24682         * math/libm-test.inc (cos_test): Enable some large input tests for
24683         float as well
24684         (sin_test): Likewise.
24685         (sincos_test): Likewise.
24686         (tan_test): Add tests for large input.
24687
24688         * sysdeps/i386/fpu/libm-test-ulps: Update.
24689
24690 2012-03-15  Andreas Jaeger  <aj@suse.de>
24691
24692         [BZ #13658]
24693         * math/libm-test.inc (cos_test): Add more test cases.
24694         (sin_test): Likewise.
24695         (sincos_test): Likewise.
24696
24697 2012-03-15  Andreas Jaeger  <aj@suse.de>
24698
24699         [BZ #13837]
24700         * math/libm-test.inc (cos_test): Add a test case for large input
24701         value.
24702         (sin_test): Likewise.
24703         (sincos_test): Likewise.
24704
24705 2012-03-15  Andreas Jaeger  <aj@suse.de>,
24706         Joseph Myers  <joseph@codesourcery.com>
24707
24708         [BZ #13658]
24709         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
24710         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
24711         * sysdeps/i386/fpu/branred.c: Likewise.
24712         * sysdeps/i386/fpu/dosincos.c: Likewise.
24713         * sysdeps/i386/fpu/mpa.c: Likewise.
24714         * sysdeps/i386/fpu/s_cos.S: Likewise.
24715         * sysdeps/i386/fpu/s_sin.S: Likewise.
24716         * sysdeps/i386/fpu/s_sincos.S: Likewise.
24717         * sysdeps/i386/fpu/sincos32.c: Likewise.
24718
24719         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
24720         Define.
24721         (libc_feupdateenv_53bit): Define.
24722         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
24723         Define.
24724         (libc_feupdateenv_53bit): Define.
24725
24726         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
24727         53 bit (without extend i386 double precision).
24728
24729         * math/libm-test.inc (sincos_test): Add tests for large input.
24730         (sin): Likewise.
24731         (cos): Likewise.
24732
24733         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
24734
24735 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
24736
24737         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24738
24739 2012-03-15  David S. Miller  <davem@davemloft.net>
24740
24741         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
24742         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
24743         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
24744         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
24745         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
24746         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
24747         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
24748         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
24749         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
24750         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
24751         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
24752         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
24753         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
24754         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
24755         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
24756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
24757         file.
24758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
24759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
24760         file.
24761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
24762         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
24763         file.
24764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
24765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
24766         file.
24767         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
24768         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
24769         fmin/fmax sysdep routines.
24770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
24771
24772 2012-03-14  David S. Miller  <davem@davemloft.net>
24773
24774         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
24775         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
24776         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
24777         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
24778         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
24779         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
24780         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
24781         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
24782         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
24783         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
24784         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
24785         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
24786         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
24787         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
24788         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
24789         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
24790         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
24791         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
24792         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
24793         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
24794         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
24795         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
24796         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
24797         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
24798         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
24799         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
24800         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
24801         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
24802         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
24803         routines.
24804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
24805         file.
24806         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
24807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
24808         file.
24809         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
24810         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
24811         file.
24812         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
24813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
24814         file.
24815         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
24816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
24817         file.
24818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
24819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
24820         file.
24821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
24822         file.
24823         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
24824         file.
24825         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
24826         file.
24827         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
24828         New file.
24829         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
24830         file.
24831         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
24832         file.
24833         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
24834         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
24835         file.
24836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
24837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
24838         file.
24839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
24840         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
24841         file.
24842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
24843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
24844         VIS3 routines.
24845
24846         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
24847         New file.
24848
24849         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24850
24851         * sysdeps/sparc/configure.in: New file.
24852         * sysdeps/sparc/configure: Generate.
24853         * configure.in (libc_cv_sparc_as_vis3): Substitute.
24854         * configure: Regenerate.
24855         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
24856         * config.make.in (have-as-vis3): New.
24857         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
24858         available use -Av9d instead of -Av9a.
24859         * sysdeps/sparc/sparc64/Makefile: Likewise.
24860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
24861         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
24862         New file.
24863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
24864         file.
24865         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
24866         New file.
24867         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
24868         file.
24869         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
24870         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
24871         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
24872         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
24873         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
24874
24875         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
24876         fzeros/fnegs to load 0x80000000 into a float register instead of
24877         using the stack.
24878         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
24879
24880 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
24881
24882         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24883         bits/syscall.h.
24884         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
24885         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
24886         ($(inst_includedir)/bits/syscall.h): Remove rule.
24887         ($(objpfx)bits/syscall.d): Include instead of
24888         $(objpfx)syscall-list.d.
24889         (generated): Change syscall-list.h and syscall-list.d to
24890         bits/syscall.h and bits/syscall.d.
24891
24892 2012-03-14  Roland McGrath  <roland@hack.frob.com>
24893
24894         [BZ #13846]
24895         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
24896
24897 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
24898
24899         [BZ #13841]
24900         * math/s_csqrt.c: Include <float.h>.
24901         (__csqrt): Scale large or subnormal inputs.
24902         * math/s_csqrtf.c: Likewise.
24903         * math/s_csqrtl.c: Likewise.
24904         * math/libm-test.inc (csqrt_test): Add more tests.
24905         * sysdeps/i386/fpu/libm-test-ulps: Update.
24906         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24907
24908         [BZ #13840]
24909         * math/libm-test.inc (hypot_test): Add more tests.
24910
24911 2012-03-13  David S. Miller  <davem@davemloft.net>
24912
24913         [BZ #13840]
24914         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
24915         double-precision for the calculation instead of scaling.
24916
24917 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
24918
24919         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
24920         manipulate bits before adding and subtracting TWO52[sx].
24921         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
24922         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
24923         Likewise.
24924         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
24925
24926 2012-03-13  David S. Miller  <davem@davemloft.net>
24927
24928         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
24929         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
24930         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
24931         rtld-global-offsets.h
24932         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24933
24934         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
24935         large parameters.
24936
24937         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
24938
24939         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
24940         'err' in the ifdef scope in which it is actually used.
24941
24942         * nss/nss_db/db-init.c: Include string.h
24943
24944 2012-03-12  David S. Miller  <davem@davemloft.net>
24945
24946         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
24947         masking out of the most significant byte of random value used.
24948         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
24949         Fix coding style in previous change.
24950
24951         * sysdeps/unix/sysv/linux/kernel-features.h
24952         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
24953         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
24954         expression.
24955         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
24956         later.
24957
24958 2012-03-11  David S. Miller  <davem@davemloft.net>
24959
24960         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
24961         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
24962         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
24963         for 'resultvar' otherwise things get truncated on 64-bit.
24964
24965         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
24966         Fix masking out of the most significant byte of random value used.
24967
24968         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24969
24970 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
24971
24972         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24973
24974 2012-03-09  David S. Miller  <davem@davemloft.net>
24975
24976         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
24977         variables with appropriate CPP guards.
24978         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
24979         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
24980         on resulting framesize and the management of the outregs buffer for pltexit.
24981         Preserve floating point return values across _dl_call_pltexit call.
24982         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
24983         framesize and the management of the outregs buffer for pltexit.
24984         Preserve floating point return values across _dl_call_pltexit
24985         call.
24986         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
24987         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
24988         (print_exit): Fix format string for return register value.
24989
24990 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
24991
24992         * sunrpc/Makefile (others): Add rpcgen.
24993         ($(objpfx)rpcgen): Remove special build rule and dependency on
24994         libc.
24995         * sunrpc/rpcgen.c: New file.
24996
24997 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
24998
24999         [BZ #13673]
25000         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
25001         * stdio-common/bug-vfprintf-nargs.c: Likewise.
25002         * sysdeps/i386/crti.S: Likewise.
25003         * sysdeps/i386/crtn.S: Likewise.
25004         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
25005         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
25006         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
25007         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
25008         * sysdeps/sh/crti.S: Likewise.
25009         * sysdeps/sh/crtn.S: Likewise.
25010         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
25011
25012         [BZ #13673]
25013         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
25014         with URL.
25015         * locale/programs/locfile-kw.gperf: Likewise.
25016         * locale/programs/charmap-kw.h: Regenerated.
25017         * locale/programs/locfile-kw.h: Likewise.
25018
25019         [BZ #13673]
25020         * intl/plural.y: Replace FSF snail mail address with URL.
25021         * intl/plural.c: Regenerated.
25022
25023 2012-03-09  Richard Henderson  <rth@twiddle.net>
25024
25025         * include/math_private.h: Remove file.
25026         * math/math_private.h: Move file ...
25027         * sysdeps/generic/math_private.h: ... here.
25028
25029         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
25030         * sysdeps/powerpc/fpu/math_private.h: Likewise.
25031         * sysdeps/x86_64/fpu/math_private.h: Likewise.
25032
25033         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
25034         and <math_private.h>.
25035         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
25036         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
25037         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
25038         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
25039         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
25040         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
25041         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
25042         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
25043         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
25044         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
25045         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
25046         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
25047         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
25048         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
25049         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
25050         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
25051         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
25052         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
25053         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
25054         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
25055         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
25056         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
25057         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
25058         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
25059         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
25060         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
25061         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
25062         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
25063         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
25064         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
25065         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
25066         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
25067         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
25068         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
25069         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
25070         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
25071         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
25072         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
25073         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
25074         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
25075         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
25076         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
25077         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
25078         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
25079         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
25080         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
25081         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
25082         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
25083         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
25084         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
25085         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
25086         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
25087         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
25088         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
25089         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
25090         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
25091         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
25092         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
25093         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
25094         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
25095         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
25096         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
25097         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
25098         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
25099         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
25100         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
25101         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
25102         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
25103         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
25104         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
25105         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
25106         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
25107         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
25108         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
25109         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
25110         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
25111         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
25112         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
25113         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
25114         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
25115         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
25116         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
25117         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
25118         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
25119         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
25120         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
25121         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
25122         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
25123         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
25124         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
25125         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
25126         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
25127         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
25128         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
25129         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
25130         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
25131         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
25132         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
25133         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
25134         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
25135         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
25136         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
25137         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
25138         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
25139         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
25140         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
25141         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
25142         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
25143         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
25144         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
25145         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
25146         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
25147         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
25148         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
25149         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
25150         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
25151         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
25152         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
25153         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
25154         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
25155         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
25156         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
25157         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
25158         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
25159         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
25160         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
25161         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
25162         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
25163         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
25164         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
25165         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
25166         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
25167         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
25168         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
25169         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
25170         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
25171         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
25172         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
25173         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
25174         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
25175         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
25176         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
25177         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
25178         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
25179         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
25180         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
25181         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
25182         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
25183         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
25184         * sysdeps/ieee754/k_standard.c: Likewise.
25185         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
25186         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
25187         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
25188         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
25189         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
25190         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
25191         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
25192         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
25193         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
25194         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
25195         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
25196         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
25197         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
25198         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
25199         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
25200         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
25201         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
25202         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
25203         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
25204         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
25205         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
25206         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
25207         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
25208         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
25209         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
25210         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
25211         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
25212         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
25213         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
25214         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
25215         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
25216         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
25217         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
25218         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
25219         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
25220         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
25221         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
25222         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
25223         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
25224         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
25225         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
25226         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
25227         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
25228         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
25229         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
25230         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
25231         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
25232         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
25233         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
25234         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
25235         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
25236         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
25237         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
25238         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
25239         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
25240         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
25241         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
25242         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
25243         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
25244         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
25245         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
25246         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
25247         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
25248         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
25249         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
25250         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
25251         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
25252         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
25253         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
25254         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
25255         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
25256         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
25257         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
25258         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
25259         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
25260         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
25261         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
25262         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
25263         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
25264         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
25265         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
25266         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
25267         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
25268         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
25269         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
25270         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
25271         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
25272         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
25273         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
25274         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
25275         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
25276         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
25277         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
25278         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
25279         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
25280         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
25281         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
25282         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
25283         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
25284         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
25285         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
25286         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
25287         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
25288         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
25289         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
25290         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
25291         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
25292         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
25293         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
25294         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
25295         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
25296         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
25297         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
25298         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
25299         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
25300         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
25301         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
25302         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
25303         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
25304         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
25305         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
25306         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
25307         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
25308         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
25309         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
25310         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
25311         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
25312         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
25313         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
25314         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
25315         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
25316         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
25317         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
25318         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
25319         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
25320         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
25321         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
25322         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
25323         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
25324         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
25325         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
25326         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
25327         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
25328         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
25329         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
25330         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
25331         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
25332         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
25333         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
25334         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
25335         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
25336         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
25337         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
25338         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
25339         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
25340         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
25341         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
25342         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
25343         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
25344         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
25345         * sysdeps/ieee754/s_lib_version.c: Likewise.
25346         * sysdeps/ieee754/s_matherr.c: Likewise.
25347         * sysdeps/ieee754/s_signgam.c: Likewise.
25348         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
25349         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
25350         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
25351         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
25352         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
25353         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
25354         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
25355         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
25356         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
25357         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
25358         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
25359         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
25360         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
25361         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
25362         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
25363         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
25364         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
25365         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
25366         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
25367         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
25368         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
25369
25370 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
25371
25372         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
25373         * sunrpc/rpc_main.c: Likewise.
25374         * sunrpc/rpc_svcout.c: Likewise.
25375
25376 2012-03-09  David S. Miller  <davem@davemloft.net>
25377
25378         * include/math_private.h: New file.
25379
25380 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
25381
25382         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
25383         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
25384         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
25385         from <bits/socket_type.h>.
25386         (enum __socket_type): Don't define here.
25387         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
25388         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25389         bits/socket_type.h.
25390
25391         [BZ #13566]
25392         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
25393         checking __USE_GNU.
25394
25395         * Makerules ($(inst_includedir)/%.h): New rule.
25396         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
25397         (install-others): Remove variable setting.
25398         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
25399
25400 2012-03-08  Richard Henderson  <rth@twiddle.net>
25401
25402         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
25403         from macro to inline function; merge with the
25404         !__LIBC_INTERNAL_MATH_INLINES version.
25405         (__ieee754_sqrtf): Likewise.
25406
25407         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
25408         to inline function.
25409         (__rintf, __floor, __floorf): Likewise.
25410
25411         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
25412         macro to inline function.
25413         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
25414
25415         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
25416         not <math/math_private.h>.
25417
25418 2012-03-08  David S. Miller  <davem@davemloft.net>
25419
25420         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
25421         copyright year.
25422         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
25423
25424 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
25425
25426         * resolv/gai_misc.c (handle_requests): Fix struct timespec
25427         normalization.
25428         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
25429         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
25430
25431 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
25432
25433         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
25434         be defined individually, they must be defined as a block.  Define
25435         S for printing a string instead of hidint the different by using a
25436         macro for adding the 'l'.
25437         * stdio-common/tst-fphex-wide.c: Adjust.
25438
25439 2012-03-07  Marek Polacek  <polacek@redhat.com>
25440
25441         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
25442
25443 2012-03-08  Marek Polacek  <polacek@redhat.com>
25444
25445         [BZ #13806]
25446         * stdio-common/Makefile (tests): Add tst-fphex-wide.
25447         * stdio-common/tst-fphex.c: Define a few macros to make the
25448         test reusable.  Use them.
25449         * stdio-common/tst-fphex-wide.c: New file.
25450
25451 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
25452
25453         [BZ #6911]
25454         * manual/macros.texi (gnusystems): New macro.
25455         (nongnusystems): Likewise.
25456         (gnulinuxhurdsystems): Likewise.
25457         (gnuhurdsystems): Likewise..
25458         (gnulinuxsystems): Likewise.
25459         * manual/charset.texi: Use new macros or @theglibc{} to refer to
25460         variants of the GNU system, not "GNU system".
25461         * manual/conf.texi: Likewise.
25462         * manual/errno.texi: Likewise.  Update example of errno macro
25463         expansion.
25464         * manual/filesys.texi: Likewise.
25465         (getumask): Document as specific to GNU/Hurd.
25466         * manual/install.texi: Likewise.  Reword some references to
25467         GNU/Linux.
25468         * manual/intro.texi: Likewise.
25469         * manual/io.texi: Likewise.
25470         (File Name Portability): Detail which constraints are inapplicable
25471         to all GNU systems and which are only inapplicable to GNU/Hurd.
25472         * manual/job.texi: Likewise.
25473         * manual/llio.texi: Likewise.
25474         (O_NOCTTY): Document as present on GNU/Linux.
25475         * manual/maint.texi: Likewise.
25476         * manual/memory.texi: Likewise.
25477         * manual/pattern.texi: Likewise.
25478         * manual/pipe.texi: Likewise.
25479         * manual/process.texi: Likewise.
25480         * manual/resource.texi: Likewise.
25481         (RUSAGE_CHILDREN): Remove statement about specifying a particular
25482         child on GNU/Hurd.
25483         * manual/setjmp.texi: Likewise.
25484         * manual/signal.texi: Likewise.
25485         * manual/startup.texi: Likewise.
25486         * manual/stdio.texi: Likewise.
25487         * manual/terminal.texi: Likewise.
25488         (ONLCR): Document as POSIX.
25489         (OXTABS): Document availability on GNU/Linux as XTABS.
25490         (ONOEOT): Document availability separately from other bits.
25491         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
25492         * manual/time.texi: Likewise.
25493         * manual/users.texi: Likewise.
25494         * INSTALL: Regenerated.
25495         * sysdeps/gnu/errlist.c: Regenerated.
25496
25497         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
25498         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
25499         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
25500         puts.
25501         * configure: Regenerated.
25502
25503 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
25504
25505         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
25506         default includes instead of AC_HEADER_CHECK.
25507         * sysdeps/i386/configure: Regenerated.
25508
25509         [BZ #10716]
25510         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
25511         * math/s_cacoshf.c (__cacoshf): Likewise.
25512         * math/s_cacoshl.c (__cacoshl): Likewise.
25513         * math/s_casinh.c (__casinh): Set signs of result from argument.
25514         * math/s_casinhf.c (__casinhf): Likewise.
25515         * math/s_casinhl.c (__casinhl): Likewise.
25516         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
25517         (casinh_test): Add more tests.
25518         * sysdeps/i386/fpu/libm-test-ulps: Update.
25519         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25520
25521 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
25522
25523         * po/zh_TW.po: Update from translation team.
25524
25525         * login/Makefile (distribute): Remove variable.
25526         * catgets/Makefile: Likewise.
25527         * mach/Makefile: Likewise.
25528         * malloc/Makefile: Likewise.
25529         * misc/Makefile: Likewise.
25530         * iconv/Makefile: Likewise.
25531         * nscd/Makefile: Likewise.
25532         * hurd/Makefile: Likewise.
25533         * manual/Makefile: Likewise.
25534         * locale/Makefile: Likewise.
25535         * intl/Makefile: Likewise.
25536         * conform/Makefile: Likewise.
25537         * nss/Makefile: Likewise.
25538         * time/Makefile: Likewise.
25539         * soft-fp/Makefile: Likewise.
25540         * dirent/Makefile: Likewise.
25541         * gmon/Makefile: Likewise.
25542         * po/Makefile: Likewise.
25543         * rt/Makefile: Likewise.
25544         * socket/Makefile: Likewise.
25545         * math/Makefile: Likewise.
25546         * signal/Makefile: Likewise.
25547         * debug/Makefile: Likewise.
25548         * elf/Makefile: Likewise.
25549         * timezone/Makefile: Likewise.
25550         * stdlib/Makefile: Likewise.
25551         * iconvdata/Makefile: Likewise.
25552         * sunrpc/Makefile: Likewise.
25553         * io/Makefile: Likewise.
25554         * argp/Makefile: Likewise.
25555         * inet/Makefile: Likewise.
25556         * hesiod/Makefile: Likewise.
25557         * grp/Makefile: Likewise.
25558         * csu/Makefile: Likewise.
25559         * wctype/Makefile: Likewise.
25560         * crypt/Makefile: Likewise.
25561         * libio/Makefile: Likewise.
25562         * string/Makefile: Likewise.
25563         * nis/Makefile: Likewise.
25564         * resolv/Makefile: Likewise.
25565         * stdio-common/Makefile: Likewise.
25566         * wcsmbs/Makefile: Likewise.
25567         * dlfcn/Makefile: Likewise.
25568         * posix/Makefile: Likewise.
25569
25570         [BZ #6959]
25571         * timezone/Makefile: Don't install timezone files, just the programs
25572         and scripts.
25573
25574 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
25575
25576         * nss/databases.def: Add missing gshadow entry.
25577
25578         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
25579
25580 2012-03-06  Marek Polacek  <polacek@redhat.com>
25581
25582         [BZ #13726]
25583         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
25584         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
25585         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
25586         * stdio-common/tst-long-dbl-fphex.c: New file.
25587
25588 2012-03-06  David S. Miller  <davem@davemloft.net>
25589
25590         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
25591         (set_obp_int): New function.
25592         (get_obp_int): New function.
25593         (__get_clockfreq_via_dev_openprom): Likewise.
25594         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
25595         Avoid unused variable warnings on 'val' and use builtin_expect.
25596         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
25597         __builtin_expect.
25598         (INLINE_CLONE_SYSCALL): Likewise.
25599
25600 2012-03-05  David S. Miller  <davem@davemloft.net>
25601
25602         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25603
25604 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
25605
25606         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25607
25608         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
25609         only for |x| >= 40.
25610         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
25611
25612 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
25613
25614         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
25615         Replace gettimeofday with __vdso_gettimeofday.
25616
25617         * sysdeps/unix/sysv/linux/x86_64/init-first.c
25618         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
25619         __vdso_clock_gettime and __vdso_getcpu.
25620
25621         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
25622         time with __vdso_time.
25623
25624 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
25625
25626         * manual/lang.texi (size_t): Note types to which size_t may be
25627         equivalent with the GNU C Library, but do not describe when
25628         differences between them are significant.
25629
25630 2012-03-05  Andreas Jaeger  <aj@suse.de>
25631
25632         * sysdeps/i386/fpu/libm-test-ulps: Update.
25633
25634 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
25635
25636         [BZ #3976]
25637         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
25638         (__ieee754_pow): Save and restore rounding mode and use
25639         round-to-nearest for main computations.
25640         * math/libm-test.inc (pow_test_tonearest): New function.
25641         (pow_test_towardzero): Likewise.
25642         (pow_test_downward): Likewise.
25643         (pow_test_upward): Likewise.
25644         (main): Call the new functions.
25645         * sysdeps/i386/fpu/libm-test-ulps: Update.
25646         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25647
25648         [BZ #3976]
25649         * math/libm-test.inc (cosh_test_tonearest): New function.
25650         (cosh_test_towardzero): Likewise.
25651         (cosh_test_downward): Likewise.
25652         (cosh_test_upward): Likewise.
25653         (sinh_test_tonearest): Likewise.
25654         (sinh_test_towardzero): Likewise.
25655         (sinh_test_downward): Likewise.
25656         (sinh_test_upward): Likewise.
25657         (main): Call the new functions.
25658         * sysdeps/i386/fpu/libm-test-ulps: Update.
25659         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25660
25661 2012-03-05  Tom de Vries  <tom@codesourcery.com>
25662
25663         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
25664         default stack guard is set in last bytes.
25665         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
25666
25667 2012-03-05  Kees Cook  <keescook@chromium.org>
25668
25669         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
25670
25671         [BZ #13656]
25672         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
25673         possibly allocate from heap instead of stack.
25674         * stdio-common/bug-vfprintf-nargs.c: New file.
25675         * stdio-common/Makefile (tests): Add nargs overflow test.
25676
25677 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
25678
25679         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25680
25681 2012-03-03  Marek Polacek  <polacek@redhat.com>
25682
25683         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
25684         * math/math_private.h: Likewise.
25685         * stdlib/tst-strtod.c: Likewise.
25686         * sysdeps/i386/i486/bits/atomic.h: Likewise.
25687         * sysdeps/x86_64/bits/atomic.h: Likewise.
25688
25689 2012-03-02  David S. Miller  <davem@davemloft.net>
25690
25691         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
25692         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
25693         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
25694         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
25695         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
25696         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
25697         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
25698         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
25699
25700 2012-03-02  Roland McGrath  <roland@hack.frob.com>
25701
25702         [BZ #13792]
25703         * manual/examples/README: New file, says the example source files
25704         can be used under GPL>=2.
25705         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
25706         line containing just "*/".
25707         * manual/examples/add.c: Add copyright header (GPL>=2).
25708         * manual/examples/argp-ex1.c: Likewise.
25709         * manual/examples/argp-ex2.c: Likewise.
25710         * manual/examples/argp-ex3.c: Likewise.
25711         * manual/examples/argp-ex4.c: Likewise.
25712         * manual/examples/atexit.c: Likewise.
25713         * manual/examples/db.c: Likewise.
25714         * manual/examples/dir.c: Likewise.
25715         * manual/examples/dir2.c: Likewise.
25716         * manual/examples/execinfo.c: Likewise.
25717         * manual/examples/filecli.c: Likewise.
25718         * manual/examples/filesrv.c: Likewise.
25719         * manual/examples/fmtmsgexpl.c: Likewise.
25720         * manual/examples/genpass.c: Likewise.
25721         * manual/examples/inetcli.c: Likewise.
25722         * manual/examples/inetsrv.c: Likewise.
25723         * manual/examples/isockad.c: Likewise.
25724         * manual/examples/longopt.c: Likewise.
25725         * manual/examples/memopen.c: Likewise.
25726         * manual/examples/memstrm.c: Likewise.
25727         * manual/examples/mkfsock.c: Likewise.
25728         * manual/examples/mkisock.c: Likewise.
25729         * manual/examples/mygetpass.c: Likewise.
25730         * manual/examples/pipe.c: Likewise.
25731         * manual/examples/popen.c: Likewise.
25732         * manual/examples/rprintf.c: Likewise.
25733         * manual/examples/search.c: Likewise.
25734         * manual/examples/select.c: Likewise.
25735         * manual/examples/setjmp.c: Likewise.
25736         * manual/examples/sigh1.c: Likewise.
25737         * manual/examples/sigusr.c: Likewise.
25738         * manual/examples/stpcpy.c: Likewise.
25739         * manual/examples/strdupa.c: Likewise.
25740         * manual/examples/strftim.c: Likewise.
25741         * manual/examples/strncat.c: Likewise.
25742         * manual/examples/subopt.c: Likewise.
25743         * manual/examples/swapcontext.c: Likewise.
25744         * manual/examples/termios.c: Likewise.
25745         * manual/examples/testopt.c: Likewise.
25746         * manual/examples/testpass.c: Likewise.
25747         * manual/examples/timeval_subtract.c: Likewise.
25748
25749         [BZ #13792]
25750         * manual/time.texi (Elapsed Time): Move timeval_subtract example
25751         function to ...
25752         * manual/timeval_subtract.c.texi: ... here, new file.
25753
25754 2012-03-02  David S. Miller  <davem@davemloft.net>
25755
25756         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
25757
25758 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
25759
25760         [BZ #3976]
25761         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
25762         (__sin): Save and restore rounding mode and use round-to-nearest
25763         for all computations.
25764         (__cos): Save and restore rounding mode and use round-to-nearest
25765         for all computations.
25766         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
25767         <fenv.h>.
25768         (tan): Save and restore rounding mode and use round-to-nearest for
25769         all computations.
25770         * math/libm-test.inc (cos_test_tonearest): New function.
25771         (cos_test_towardzero): Likewise.
25772         (cos_test_downward): Likewise.
25773         (cos_test_upward): Likewise.
25774         (sin_test_tonearest): Likewise.
25775         (sin_test_towardzero): Likewise.
25776         (sin_test_downward): Likewise.
25777         (sin_test_upward): Likewise.
25778         (tan_test_tonearest): Likewise.
25779         (tan_test_towardzero): Likewise.
25780         (tan_test_downward): Likewise.
25781         (tan_test_upward): Likewise.
25782         (main): Call the new functions.
25783         * sysdeps/i386/fpu/libm-test-ulps: Update.
25784         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25785
25786         [BZ #10135]
25787         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
25788         small n, then large n, before computing and testing k+n.
25789         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
25790         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
25791         Likewise.
25792         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
25793         Likewise.
25794         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
25795         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
25796         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
25797         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
25798         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
25799         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
25800         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
25801         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
25802         * math/libm-test.inc (scalbn_test): Add more tests.
25803         (scalbln_test): Likewise.
25804
25805         * manual/filesys.texi (mode_t): Describe constraints on size and
25806         signedness, not exact equivalence to a particular type.
25807         (ino_t): Likewise.
25808         (ino64_t): Likewise.
25809         (dev_t): Likewise.
25810         (nlink_t): Likewise.
25811         (blkcnt_t): Likewise.
25812         (blkcnt64_t): Likewise.
25813         * manual/llio.texi (off_t): Likewise.
25814
25815         [BZ #3976]
25816         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
25817         (__ieee754_exp): Save and restore rounding mode and use
25818         round-to-nearest for all computations.
25819         * math/libm-test.inc (exp_test_tonearest): New function.
25820         (exp_test_towardzero): Likewise.
25821         (exp_test_downward): Likewise.
25822         (exp_test_upward): Likewise.
25823         (main): Call the new functions.
25824         * sysdeps/i386/fpu/libm-test-ulps: Update.
25825         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25826
25827 2012-03-01  Chris Demetriou  <cgd@google.com>
25828
25829         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
25830         have predictable order.
25831
25832 2012-03-01  David S. Miller  <davem@davemloft.net>
25833
25834         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
25835
25836         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
25837         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
25838         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
25839         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
25840
25841         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
25842         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
25843         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
25844         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
25845         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
25846         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
25847         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
25848         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
25849         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
25850
25851         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25852
25853         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
25854         * sysdeps/sparc/fpu/libm-test-ulps: to here.
25855         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
25856
25857         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
25858         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
25859         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
25860         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
25861         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
25862         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
25863         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
25864         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
25865         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
25866         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
25867         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
25868         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
25869         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
25870         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
25871         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
25872         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
25873         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
25874         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
25875         * sysdeps/sparc/elf/configure: Regenerated.
25876
25877 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
25878
25879         * configure.in (AS, LD): Require binutils 2.20 or later.
25880         * configure: Regenerated.
25881         * manual/install.texi (Tools for Compilation): Give binutils 2.20
25882         as required minimum version.
25883         * INSTALL: Regenerated.
25884
25885         [BZ #2541]
25886         [BZ #4108]
25887         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
25888         before squaring exponent.
25889         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
25890         bottom long double and 27 bits of top long double before squaring
25891         exponent.
25892         * math/libm-test.inc (erfc_test): Add more tests.
25893         * sysdeps/i386/fpu/libm-test-ulps: Update.
25894         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
25895         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25896
25897 2012-03-01  Kai Tietz  <ktietz@redhat.com>
25898
25899         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
25900         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
25901         containing bit-fields.
25902         * soft-fp/extended.h (_FP_UNION_E): Likewise.
25903         * soft-fp/single.h (_FP_UNION_S): Likewise.
25904         * soft-fp/double.h (_FP_UNION_D): Likewise.
25905
25906 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
25907
25908         [BZ #13786]
25909         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
25910         not include ../strcmp.S.
25911         [USE_AS_STRNCASECMP_L]: Likewise.
25912         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
25913         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
25914         * sysdeps/i386/i686/multiarch/strncase_l-c.c
25915         (__strncasecmp_l_ia32): Define as alias to
25916         __strncasecmp_l_nonascii.
25917
25918         [BZ #5794]
25919         * math/libm-test.inc (expm1_test): Add test for bug 5794.
25920         * sysdeps/i386/fpu/libm-test-ulps: Update.
25921         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25922
25923         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
25924         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25925
25926 2012-02-29  Jeff Law  <law@redhat.com>
25927
25928         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
25929         out of bounds read.
25930
25931 2012-02-29  Marek Polacek  <polacek@redhat.com>
25932
25933         [BZ #13706]
25934         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
25935         * elf/Makefile: Add rules to run tst-unused-dep.out.
25936
25937 2012-02-28  David S. Miller  <davem@davemloft.net>
25938
25939         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
25940         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
25941         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
25942         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
25943         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
25944         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
25945
25946 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
25947
25948         * math/libm-test.inc (llround_test): Move one test from
25949         lround_test.  Use TEST_f_L in moved test.
25950         (lround_test): Move misplaced test to llround_test.  Add testcase
25951         from bug 2561.
25952
25953 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
25954
25955         * sysdeps/x86_64/fpu/e_expf.S: New file.
25956         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
25957
25958 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
25959
25960         [BZ #13637]
25961         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
25962         of remain_len that may cause incomplete multi-byte character and
25963         false match.
25964         * posix/bug-regex33.c: New file.
25965         * posix/Makefile (tests): Add bug-regex33.
25966
25967 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
25968
25969         * manual/macros.texi: New file.
25970         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
25971         * manual/libc.texinfo: Include macros.texi.
25972         * manual/creatute.texi: Likewise.
25973         * manual/install.texi: Likewise.
25974         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
25975         @glibcadj{} in references to the GNU C Library.
25976         * manual/charset.texi: Likewise.
25977         * manual/conf.texi: Likewise.
25978         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
25979         when not using those macros.
25980         * manual/creature.texi: Likewise.
25981         * manual/crypt.texi: Likewise.
25982         * manual/errno.texi: Likewise.
25983         * manual/filesys.texi: Likewise.
25984         * manual/header.texi: Likewise.
25985         * manual/install.texi: Likewise.
25986         * manual/intro.texi: Likewise.
25987         * manual/io.texi: Likewise.
25988         * manual/job.texi: Likewise.
25989         * manual/lang.texi: Likewise.
25990         * manual/libc.texiinfo: Likewise.
25991         * manual/llio.texi: Likewise.
25992         * manual/locale.texi: Likewise.
25993         * manual/maint.texi: Likewise.
25994         * manual/math.texi: Likewise.
25995         * manual/memory.texi: Likewise.
25996         * manual/message.texi: Likewise.
25997         * manual/nss.texi: Likewise.
25998         * manual/pattern.texi: Likewise.
25999         * manual/process.texi: Likewise.
26000         * manual/resource.texi: Likewise.
26001         * manual/search.texi: Likewise.
26002         * manual/setjmp.texi: Likewise.
26003         * manual/signal.texi: Likewise.
26004         * manual/socket.texi: Likewise.
26005         * manual/startup.texi: Likewise.
26006         * manual/stdio.texi: Likewise.
26007         * manual/string.texi: Likewise.
26008         * manual/sysinfo.texi: Likewise.
26009         * manual/syslog.texi: Likewise.
26010         * manual/terminal.texi: Likewise.
26011         * manual/time.texi: Likewise.
26012         * manual/users.texi: Likewise.
26013         * INSTALL: Regenerated.
26014         * NOTES: Regenerated.
26015         * sysdeps/gnu/errlist.c: Regenerated.
26016
26017 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
26018
26019         * include/dirent.h: Include <dirstream.h> before
26020         <dirent/dirent.h>.
26021
26022 2012-02-28  David S. Miller  <davem@davemloft.net>
26023
26024         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
26025         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
26026         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
26027         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
26028
26029 2012-02-27  David S. Miller  <davem@davemloft.net>
26030
26031         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
26032         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
26033         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
26034         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
26035
26036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
26037         frame pointer instead of stack pointer relative arg slot.
26038         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
26039         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
26040         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
26041
26042 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
26043
26044         [BZ #3992]
26045         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
26046
26047 2012-02-27  David S. Miller  <davem@davemloft.net>
26048
26049         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
26050         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
26051         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
26052         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
26053         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
26054         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
26055         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
26056         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
26057
26058 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
26059
26060         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
26061         later.  Allow versions 5-9.
26062         * configure: Regenerated.
26063         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
26064         required minimum version and 4.6 as recommended version.  Do not
26065         mention bugs in GCC 2.7 and 2.8.
26066         * INSTALL: Regenerated.
26067
26068 2012-02-27  David S. Miller  <davem@davemloft.net>
26069
26070         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
26071         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
26072         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
26073         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
26074         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
26075         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
26076         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
26077         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
26078
26079         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
26080         manipulate bits before adding and subtracting TWO112[sx].
26081         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
26082
26083 2012-02-27  Roland McGrath  <roland@hack.frob.com>
26084
26085         [BZ #13775]
26086         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
26087         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
26088         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
26089         being in POSIX, because they are in 1003.1-2008.
26090
26091         * rt/tst-aio.c: Include <fcntl.h>.
26092         * rt/tst-aio7.c: Likewise.
26093         * rt/tst-aio64.c: Likewise.
26094
26095         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
26096
26097 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
26098
26099         * manual/install.texi (--with-headers): Describe headers as
26100         interface headers, not private headers.
26101         (Specific advice for GNU/Linux systems): Describe use of headers
26102         from "make headers_install", not private headers from older
26103         kernels.
26104         * INSTALL: Regenerated.
26105         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
26106         Change to 2.6.19.
26107         * sysdeps/unix/sysv/linux/configure: Regenerated.
26108
26109         * manual/llio.texi (fclean): Remove documentation.
26110
26111         * manual/Makefile (libc-texi-generated): New variable.  Include
26112         version.texi.
26113         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
26114         $(libc-texi-generated), not duplicated list of files.
26115         (version.texi, stamp-version): New rules.
26116         (realclean): Remove $(libc-texi-generated), not individual files
26117         from that list.  Do not remove dir-add.texinfo.
26118         * manual/libc.texinfo: Comment out uses of edition numbers and
26119         references to printed manual.  Remove last-updated dates.
26120         (EDITION): Comment out.
26121         (ISBN): Likewise.
26122         (VERSION, UPDATED): Remove.
26123         (version.texi): Include.
26124
26125 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
26126
26127         * sysdeps/posix/spawni.c: Include <signal.h>.
26128         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
26129         * sysdeps/pthread/aio_fsync.c: Likewise.
26130
26131 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
26132
26133         * conform/Makefile (tests): Run only when not cross-compiling and
26134         when fast-check is not defined.
26135
26136         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
26137         * conform/data/limits.h-data: Fixes for POSIX2008.
26138         * conform/run-conformtest.sh: Run all tests.
26139         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
26140         headers.
26141         * include/bits/dlfcn.h: Likewise.
26142         * include/langinfo.h: Likewise.
26143         * include/monetary.h: Likewise.
26144         * include/sys/poll.h: Likewise.
26145
26146         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
26147         for __USE_GNU.
26148         * posix/spawn.h: Define __need_sigset_t.
26149         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
26150         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
26151         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
26152         to get sigevent_t only.
26153         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
26154         only for __USE_GNU.
26155         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
26156         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
26157         process_vm_writev only for __USE_GNU.
26158         * termios/termios.h: Declare tcgetsid also for POSIX2008.
26159
26160         * conform/Makefile: For now ignore errors from run-conformtest.
26161         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
26162         POSIX to avoid namespace pollution.  Don't prepend headers.
26163         * conform/data/aio.h-data: Fixes for POSIX testing.
26164         * conform/data/fcntl.h-data: Likewise.
26165         * conform/data/glob.h-data: Likewise.
26166         * conform/data/grp.h-data: Likewise.
26167         * conform/data/pthread.h-data: Likewise.
26168         * conform/data/pwd.h-data: Likewise.
26169         * conform/data/signal.h-data: Likewise.
26170         * conform/data/spawn.h-data: Likewise.
26171         * conform/data/stdio.h-data: Likewise.
26172         * conform/data/stdlib.h-data: Likewise.
26173         * conform/data/stropts.h-data: Likewise.
26174         * conform/data/sys/mman.h-data: Likewise.
26175         * conform/data/sys/stat.h-data: Likewise.
26176         * conform/data/sys/types.h-data: Likewise.
26177         * conform/data/sys/wait.h-data: Likewise.
26178         * conform/data/time.h-data: Likewise.
26179         * conform/data/unistd.h-data: Likewise.
26180         * conform/data/utime.h-data: Likewise.
26181
26182         * io/sys/stat.h: fchmod was always in POSIX.
26183         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
26184         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
26185         * rt/aio.h: Define __need_timespec before including <time.h>.
26186         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
26187         struct.  Add forward declaration of pthread_attr_t and use it in
26188         sigevent.
26189         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
26190         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
26191         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
26192         always remove CLK_TCK definition.
26193
26194 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
26195
26196         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
26197
26198 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
26199
26200         * conform/run-conformtest.sh: New file.
26201         * conform/Makefile: Run run-conformtest for tests.
26202         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
26203         support.
26204
26205         * conform/data/uchar.h-data: New file.
26206         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
26207         * conform/data/arpa/inet.h-data: Likewise.
26208         * conform/data/assert.h-data: Likewise.
26209         * conform/data/complex.h-data: Likewise.
26210         * conform/data/cpio.h-data: Likewise.
26211         * conform/data/ctype.h-data: Likewise.
26212         * conform/data/dirent.h-data: Likewise.
26213         * conform/data/dlfcn.h-data: Likewise.
26214         * conform/data/errno.h-data: Likewise.
26215         * conform/data/fcntl.h-data: Likewise.
26216         * conform/data/float.h-data: Likewise.
26217         * conform/data/fmtmsg.h-data: Likewise.
26218         * conform/data/fnmatch.h-data: Likewise.
26219         * conform/data/ftw.h-data: Likewise.
26220         * conform/data/glob.h-data: Likewise.
26221         * conform/data/grp.h-data: Likewise.
26222         * conform/data/iconv.h-data: Likewise.
26223         * conform/data/inttypes.h-data: Likewise.
26224         * conform/data/langinfo.h-data: Likewise.
26225         * conform/data/libgen.h-data: Likewise.
26226         * conform/data/limits.h-data: Likewise.
26227         * conform/data/locale.h-data: Likewise.
26228         * conform/data/math.h-data: Likewise.
26229         * conform/data/monetary.h-data: Likewise.
26230         * conform/data/mqueue.h-data: Likewise.
26231         * conform/data/ndbm.h-data: Likewise.
26232         * conform/data/net/if.h-data: Likewise.
26233         * conform/data/netdb.h-data: Likewise.
26234         * conform/data/netinet/in.h-data: Likewise.
26235         * conform/data/nl_types.h-data: Likewise.
26236         * conform/data/poll.h-data: Likewise.
26237         * conform/data/pthread.h-data: Likewise.
26238         * conform/data/pwd.h-data: Likewise.
26239         * conform/data/regex.h-data: Likewise.
26240         * conform/data/sched.h-data: Likewise.
26241         * conform/data/search.h-data: Likewise.
26242         * conform/data/semaphore.h-data: Likewise.
26243         * conform/data/setjmp.h-data: Likewise.
26244         * conform/data/signal.h-data: Likewise.
26245         * conform/data/spawn.h-data: Likewise.
26246         * conform/data/stdarg.h-data: Likewise.
26247         * conform/data/stdio.h-data: Likewise.
26248         * conform/data/stdlib.h-data: Likewise.
26249         * conform/data/string.h-data: Likewise.
26250         * conform/data/strings.h-data: Likewise.
26251         * conform/data/stropts.h-data: Likewise.
26252         * conform/data/sys/ipc.h-data: Likewise.
26253         * conform/data/sys/mman.h-data: Likewise.
26254         * conform/data/sys/msg.h-data: Likewise.
26255         * conform/data/sys/resource.h-data: Likewise.
26256         * conform/data/sys/select.h-data: Likewise.
26257         * conform/data/sys/sem.h-data: Likewise.
26258         * conform/data/sys/shm.h-data: Likewise.
26259         * conform/data/sys/socket.h-data: Likewise.
26260         * conform/data/sys/stat.h-data: Likewise.
26261         * conform/data/sys/statvfs.h-data: Likewise.
26262         * conform/data/sys/time.h-data: Likewise.
26263         * conform/data/sys/timeb.h-data: Likewise.
26264         * conform/data/sys/times.h-data: Likewise.
26265         * conform/data/sys/types.h-data: Likewise.
26266         * conform/data/sys/uio.h-data: Likewise.
26267         * conform/data/sys/un.h-data: Likewise.
26268         * conform/data/sys/utsname.h-data: Likewise.
26269         * conform/data/sys/wait.h-data: Likewise.
26270         * conform/data/syslog.h-data: Likewise.
26271         * conform/data/tar.h-data: Likewise.
26272         * conform/data/termios.h-data: Likewise.
26273         * conform/data/utime.h-data: Likewise.
26274         * conform/data/utmpx.h-data: Likewise.
26275         * conform/data/varargs.h-data: Likewise.
26276         * conform/data/wchar.h-data: Likewise.
26277         * conform/data/wctype.h-data: Likewise.
26278         * conform/data/wordexp.h-data: Likewise.
26279
26280         * include/stropts.h: New file.
26281         * include/uchar.h: New file.
26282         * include/aio.h: Changes to allow conformtest.pl to use the headers.
26283         * include/assert.h: Likewise.
26284         * include/ctype.h: Likewise.
26285         * include/dirent.h: Likewise.
26286         * include/dlfcn.h: Likewise.
26287         * include/fcntl.h: Likewise.
26288         * include/fnmatch.h: Likewise.
26289         * include/glob.h: Likewise.
26290         * include/grp.h: Likewise.
26291         * include/libio.h: Likewise.
26292         * include/locale.h: Likewise.
26293         * include/math.h: Likewise.
26294         * include/net/if.h: Likewise.
26295         * include/netdb.h: Likewise.
26296         * include/netinet/in.h: Likewise.
26297         * include/pthread.h: Likewise.
26298         * include/pwd.h: Likewise.
26299         * include/regex.h: Likewise.
26300         * include/sched.h: Likewise.
26301         * include/search.h: Likewise.
26302         * include/setjmp.h: Likewise.
26303         * include/signal.h: Likewise.
26304         * include/stdio.h: Likewise.
26305         * include/stdlib.h: Likewise.
26306         * include/string.h: Likewise.
26307         * include/sys/cdefs.h: Likewise.
26308         * include/sys/mman.h: Likewise.
26309         * include/sys/msg.h: Likewise.
26310         * include/sys/resource.h: Likewise.
26311         * include/sys/select.h: Likewise.
26312         * include/sys/socket.h: Likewise.
26313         * include/sys/stat.h: Likewise.
26314         * include/sys/statvfs.h: Likewise.
26315         * include/sys/time.h: Likewise.
26316         * include/sys/times.h: Likewise.
26317         * include/sys/uio.h: Likewise.
26318         * include/sys/utsname.h: Likewise.
26319         * include/sys/wait.h: Likewise.
26320         * include/termios.h: Likewise.
26321         * include/time.h: Likewise.
26322         * include/ulimit.h: Likewise.
26323         * include/unistd.h: Likewise.
26324         * include/utime.h: Likewise.
26325         * include/wchar.h: Likewise.
26326         * include/wctype.h: Likewise.
26327         * include/wordexp.h: Likewise.
26328
26329         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
26330
26331         * time/time.h: TIME_UTC must be a macro.
26332         Make timespec_get available for ISO C11 only as well.
26333
26334 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
26335
26336         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
26337         Reported by Peng Haitao <penght@cn.fujitsu.com>.
26338
26339 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
26340
26341         * configure.in: Use -o not -a in test for unsupported multi-arch.
26342
26343 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
26344
26345         * manual/texinfo.tex: Update to version 2012-01-19.16.
26346
26347 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
26348
26349         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
26350
26351 2012-02-24  Roland McGrath  <roland@hack.frob.com>
26352
26353         [BZ #13738]
26354         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
26355         * manual/fdl-1.3.texi: New file.
26356         * manual/fdl-1.1.texi: File removed.
26357
26358         [BZ #13738]
26359         * manual/libc.texinfo (FDL_VERSION): New @set.
26360         Use it for mention of FDL in cover text.
26361         (Documentation License): Use it in @include file name.
26362
26363 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
26364             Roland McGrath  <roland@hack.frob.com>
26365
26366         [BZ #5461]
26367         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
26368         not LONG_LONG_MAX and LONG_LONG_MIN.
26369         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
26370         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
26371         name.
26372         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
26373
26374 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
26375
26376         [BZ #2547]
26377         [BZ #11365]
26378         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
26379         manipulate bits before adding and subtracting TWO23[sx].
26380         * math/libm-test.inc (nearbyint_test): Add more tests.
26381
26382 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
26383
26384         [BZ #2548]
26385         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
26386         bits before adding and subtracting TWO23[sx].
26387         * math/libm-test.inc (rint_test): Add more tests.
26388         (rint_test_tonearest): Likewise.
26389         (rint_test_towardzero): Likewise.
26390         (rint_test_downward): Likewise.
26391         (rint_test_upward: Likewise.
26392
26393 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
26394
26395         [BZ #10110]
26396         * include/stdc-predef.h: New file.  Extracted from features.h.
26397         * include/features.h: Include stdc-predef.h.
26398         * Makefile (headers): Add stdc-predef.h.
26399         * CONFORMANCE (Compiler limitations): Update.
26400
26401 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
26402
26403         * manual/libc.texinfo (VERSION, UPDATED): Revert.
26404
26405 2012-02-21  David S. Miller  <davem@davemloft.net>
26406
26407         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
26408         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
26409
26410 2012-02-20  David S. Miller  <davem@davemloft.net>
26411
26412         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
26413         using a normal save/restore sequence, rather than allocating a
26414         dummy stack frame just to store a frame pointer and restore.
26415         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
26416
26417 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
26418
26419         * manual/install.texi: Fix stray word in line-wrapped comment.
26420
26421 2012-02-20  David S. Miller  <davem@davemloft.net>
26422
26423         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
26424         both binutils and gcc support GOTDATA.
26425
26426         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
26427         "rd %pc" in the PIC register setup sequences.
26428
26429         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
26430         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
26431         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
26432         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
26433         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
26434         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
26435         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26436         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
26437         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
26438         (SYSCALL_ERROR_HANDLER): Likewise.
26439         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
26440         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
26441         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
26442         (SYSCALL_ERROR_HANDLER): Likewise.
26443
26444         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
26445         (HAVE_GCC_GOTDATA): New.
26446         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
26447         relocation support in both binutils and gcc.
26448         * sysdeps/sparc/elf/configure: Regenerate.
26449
26450         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
26451         * sysdeps/sparc/sparc32/elf/configure: Delete.
26452         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
26453         * sysdeps/sparc/sparc64/elf/configure: Delete.
26454         * sysdeps/sparc/elf/configure.in: New file.
26455         * sysdeps/sparc/elf/configure: Generate.
26456
26457         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
26458         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
26459         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
26460         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
26461         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
26462
26463 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
26464
26465         * manual/install.texi: Do not mention specific glibc version
26466         numbers.
26467         * manual/libc.texinfo (VERSION, UPDATED): Update.
26468         (@copying): Use @copyright{} and range of years.
26469
26470 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
26471
26472         [BZ #13695]
26473         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
26474         [crti.S not in sysdirs] (generated): Do not append.
26475         [crti.S not in sysdirs] (omit-deps): Likewise.
26476         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
26477         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
26478         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
26479         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
26480         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
26481         Likewise.
26482         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
26483         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
26484         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
26485         * csu/defs.awk: Remove file.
26486         * sysdeps/generic/initfini.c: Likewise.
26487         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
26488         variable.
26489         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
26490         Likewise.
26491
26492 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
26493
26494         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
26495         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
26496         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
26497         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
26498         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
26499         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
26500         <bits/epoll.h>.
26501         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
26502         (__EPOLL_PACKED): Define to empty if not defined by
26503         <bits/epoll.h>.
26504         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
26505         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26506         bits/epoll.h.
26507
26508 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
26509
26510         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
26511         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
26512         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
26513         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
26514         <bits/timerfd.h>.
26515         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
26516         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26517         bits/timerfd.h.
26518
26519 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
26520
26521         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
26522         in C locale.
26523         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
26524         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
26525         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
26526         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26527
26528 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
26529
26530         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
26531         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
26532
26533 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
26534
26535         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
26536         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
26537         defined.
26538         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
26539         Likewise.
26540         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
26541         entry for 2.16.
26542
26543 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
26544
26545         * math/w_acos.c: Use non-signaling floating-point comparisons.
26546         * math/w_acosf.c: Likewise.
26547         * math/w_acosh.c: Likewise.
26548         * math/w_acoshf.c: Likewise.
26549         * math/w_acoshl.c: Likewise.
26550         * math/w_acosl.c: Likewise.
26551         * math/w_asin.c: Likewise.
26552         * math/w_asinf.c: Likewise.
26553         * math/w_asinl.c: Likewise.
26554         * math/w_atanh.c: Likewise.
26555         * math/w_atanhf.c: Likewise.
26556         * math/w_atanhl.c: Likewise.
26557         * math/w_exp2.c: Likewise.
26558         * math/w_exp2f.c: Likewise.
26559         * math/w_exp2l.c: Likewise.
26560         * math/w_j0.c: Likewise.
26561         * math/w_j0f.c: Likewise.
26562         * math/w_j0l.c: Likewise.
26563         * math/w_j1.c: Likewise.
26564         * math/w_j1f.c: Likewise.
26565         * math/w_j1l.c: Likewise.
26566         * math/w_jn.c: Likewise.
26567         * math/w_jnf.c: Likewise.
26568         * math/w_log.c: Likewise.
26569         * math/w_log10.c: Likewise.
26570         * math/w_log10f.c: Likewise.
26571         * math/w_log10l.c: Likewise.
26572         * math/w_log2.c: Likewise.
26573         * math/w_log2f.c: Likewise.
26574         * math/w_log2l.c: Likewise.
26575         * math/w_logf.c: Likewise.
26576         * math/w_logl.c: Likewise.
26577         * math/w_sqrt.c: Likewise.
26578         * math/w_sqrtf.c: Likewise.
26579         * math/w_sqrtl.c: Likewise.
26580         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
26581         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
26582         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
26583         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
26584         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
26585
26586 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
26587
26588         [BZ #9739]
26589         * manual/string.texi (strnlen): Use correct parameter name in
26590         equivalent expression.
26591
26592 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
26593
26594         [BZ #11174]
26595         * manual/users.texi (seteuid): Consistently use neweuid for
26596         argument name.
26597
26598 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
26599
26600         [BZ #13704]
26601         * manual/nss.texi (Services in the NSS configuration): Correct
26602         list of services in example configuration file.
26603
26604 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
26605
26606         [BZ #11322]
26607         * manual/arith.texi: Remove statements about negative zero
26608         behaving identically to zero.
26609
26610 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
26611
26612         [BZ #5993]
26613         * manual/install.texi: Do not document upgrading from libc5.
26614
26615 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
26616
26617         [BZ #4596]
26618         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
26619
26620 2012-02-18  David S. Miller  <davem@davemloft.net>
26621
26622         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
26623         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
26624         %o7 across the call.
26625         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
26626         instead.
26627         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
26628         SETUP_PIC_REG_LEAF.
26629         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26630         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
26631         * sysdeps/sparc/crtn.S: Likewise.
26632
26633 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
26634
26635         * aout/Makefile: Remove.
26636
26637 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
26638
26639         [BZ #13058]
26640         * manual/examples/argp-ex1.c (main): Format definition in GNU
26641         style.
26642         * manual/examples/argp-ex2.c (main): Likewise.
26643         * manual/examples/argp-ex3.c (main): Likewise.
26644         * manual/examples/argp-ex4.c (main): Likewise.
26645         * manual/examples/longopt.c (main): Use new-style prototype
26646         definition.
26647         * manual/examples/strncat.c (main): Specify return type and use
26648         (void) for arguments.
26649         * manual/examples/subopt.c (main): Use char **argv argument.
26650
26651 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26652
26653         [BZ #5077]
26654         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
26655         rounding modes.
26656
26657 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
26658
26659         [BZ #6907]
26660         * manual/string.texi (strchr): Change when strchrnul is
26661         recommended.
26662
26663 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
26664
26665         [BZ #174]
26666         * manual/locale.texi (setlocale): Document LOCPATH.
26667
26668 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26669
26670         [BZ #10210]
26671         * manual/process.texi (execle): Move @dots{} before last argument.
26672
26673 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
26674
26675         [BZ #12047]
26676         * manual/charset.texi (Generic Charset Conversion): Fix typo
26677         (LC_TYPE -> LC_CTYPE).
26678
26679 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
26680
26681         [BZ #5805]
26682         * manual/arith.texi (scalbn): Use @var{} on parameter names.
26683         (scalbnf): Likewise.
26684         (scalbnl): Likewise.
26685         (scalbln): Likewise.
26686         (scalblnf): Likewise.
26687         (scalblnl): Likewise.
26688         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
26689         (vwarnx): Likewise.
26690         (verr): Likewise.
26691         (verrx): Likewise.
26692         * manual/filesys.texi (telldir): Use braces around return type.
26693         * manual/llio.texi (mmap): Add space after comma.
26694         (mmap64): Likewise.
26695         * manual/math.texi (jn): Use @var{} on parameter names.
26696         (jnf): Likewise.
26697         (jnl): Likewise.
26698         (yn): Likewise.
26699         (ynf): Likewise.
26700         (ynl): Likewise.
26701         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
26702         line.
26703         * manual/resource.texi (ulimit): Use @dots{} instead of literal
26704         "...".
26705         (sched_get_priority_min): Remove semicolon on @deftypefun line.
26706         (sched_get_priority_max): Likewise.
26707         * manual/signal.texi (sigvec): Add space after comma.
26708         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
26709         names.
26710         (if_indextoname): Likewise.
26711         (if_freenameindex): Likewise.
26712         (sendto): Use ',' instead of '.' in prototype.
26713         * manual/startup.texi (syscall): Use @dots{} instead of literal
26714         "...".
26715         * manual/stdio.texi (__fpending): Separate initial words of
26716         paragraph from @deftypefun line.
26717         * manual/syslog.texi (syslog): Use @dots{} instead of literal
26718         "...".
26719         (vsyslog): Use @var{} on parameter names.
26720         * manual/terminal.texi (stty): Use @var{} on parameter names.
26721         * manual/users.texi (getutmp): Use @var{} on parameter names.
26722         (getutmpx): Likewise.
26723
26724 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26725
26726         [BZ #6884]
26727         * manual/stdio.texi (fopen): Fix typos in description of
26728         ",ccs=STRING".
26729
26730 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
26731
26732         [BZ #4026]
26733         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
26734         get clock_id definition.
26735
26736 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
26737
26738         [BZ #4822]
26739         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
26740         (madvise): Cast every argument to void on its own.
26741
26742 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26743
26744         [BZ #9902]
26745         * manual/startup.texi (Exit Status): Fix typo.
26746
26747 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26748
26749         [BZ #10140]
26750         * manual/examples/argp-ex1.c: Include <stdlib.h>.
26751         * manual/examples/argp-ex2.c: Likewise.
26752         * manual/examples/argp-ex3.c: Likewise.
26753
26754 2012-02-16  Richard Henderson  <rth@redhat.com>
26755
26756         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
26757         * sysdeps/s390/s390-32/initfini.c: Remove.
26758         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
26759         * sysdeps/s390/s390-64/initfini.c: Remove.
26760
26761 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
26762
26763         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
26764         compiler output for sysdeps/generic/initfini.c.
26765         * sysdeps/sh/elf/initfini.c: Remove file.
26766
26767 2012-02-16  David S. Miller  <davem@davemloft.net>
26768
26769         [BZ #11494]
26770         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
26771
26772         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
26773         * sysdeps/sparc/crti.S: New file.
26774         * sysdeps/sparc/crtn.S: New file.
26775         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
26776         * sysdeps/sparc/sparc64/Makefile: Likewise.
26777
26778 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
26779
26780         [BZ #3335]
26781         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
26782
26783 2012-02-15  Roland McGrath  <roland@hack.frob.com>
26784
26785         [BZ #4822]
26786         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
26787
26788         * mach/devstream.c (cookie_io_functions_t): Macro removed.
26789         (write, read, close): Likewise.
26790         Patch by Aurelien Jarno <aurelien@aurel32.net>.
26791
26792 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
26793
26794         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
26795         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
26796         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
26797         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
26798         <bits/signalfd.h>.
26799         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
26800         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26801         bits/signalfd.h.
26802
26803 2012-02-14  Marek Polacek  <polacek@redhat.com>
26804
26805         * sysdeps/x86_64/crti.S: New file.
26806         * sysdeps/x86_64/crtn.S: New file.
26807         * sysdeps/x86_64/elf/initfini.c: Remove file.
26808
26809 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
26810
26811         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
26812         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
26813         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
26814         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
26815         <bits/inotify.h>.
26816         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
26817         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26818         bits/inotify.h.
26819
26820 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
26821
26822         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
26823         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
26824         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
26825         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
26826         <bits/eventfd.h>.
26827         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
26828         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26829         bits/eventfd.h.
26830
26831 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
26832
26833         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
26834         __feraiseexcept instead of feraiseexcept.
26835
26836         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
26837         nanosleep invocations.
26838         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
26839         strings, and add error checking for a nanosleep invocations.
26840
26841 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
26842
26843         Replace FSF snail mail address with URLs, as per GNU coding standards.
26844         Most of the snail mail addresses were wrong anyway, and omitting
26845         them makes the source code easier to maintain.  Almost all of the
26846         changes are to license notices and to locale LC_IDENTIFICATION
26847         addresses, except for this one:
26848         * manual/libc.texinfo: In "Published by", give the FSF's URL,
26849         not its snail mail address.
26850
26851 2012-02-09  Richard Henderson  <rth@twiddle.net>
26852
26853         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
26854         of kernel-features.h.
26855
26856         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
26857
26858 2012-02-08  Marek Polacek  <polacek@redhat.com>
26859
26860         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
26861         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
26862         * sysdeps/gnu/_G_config.h: Likewise.
26863         * sysdeps/generic/_G_config.h: Likewise.
26864
26865 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
26866
26867         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
26868         tests.
26869         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26870
26871         * sysdeps/powerpc/powerpc32/crti.S: New file.
26872         * sysdeps/powerpc/powerpc32/crtn.S: New file.
26873         * sysdeps/powerpc/powerpc64/crti.S: New file.
26874         * sysdeps/powerpc/powerpc64/crtn.S: New file.
26875
26876         * Makeconfig (have-initfini): Don't set.
26877         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
26878         * configure.in (nopic_initfini): Don't substitute.
26879         * config.h.in (HAVE_INITFINI): Don't #undef.
26880         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
26881         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
26882
26883 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
26884
26885         Support crti.S and crtn.S provided directly by architectures.
26886         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
26887         [crti.S in sysdirs] (omit-deps): Likewise.
26888         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
26889         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
26890         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
26891         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
26892         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
26893         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
26894         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
26895         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
26896         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
26897         compiler output for sysdeps/generic/initfini.c.
26898         * sysdeps/i386/elf/Makefile: Remove file.
26899         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
26900
26901 2012-02-07  Marek Polacek  <polacek@redhat.com>
26902
26903         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
26904         * sysdeps/gnu/_G_config.h: Likewise.
26905         * sysdeps/mach/hurd/_G_config.h: Likewise.
26906
26907 2012-02-07  Marek Polacek  <polacek@redhat.com>
26908
26909         * math/Makefile (tests): Add tst-CMPLX2.
26910         * math/tst-CMPLX2.c: New file.
26911
26912 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
26913
26914         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
26915
26916         * math/libm-test.inc (jn_test): Add missing L suffix.
26917
26918 2012-02-06  Marek Polacek  <polacek@redhat.com>
26919
26920         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
26921         * sysdeps/i386/fpu/e_powf.S: Likewise.
26922         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
26923         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
26924         * sysdeps/i386/fpu/e_acosh.S: Likewise.
26925         * sysdeps/i386/fpu/e_pow.S: Likewise.
26926         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
26927         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
26928         * sysdeps/i386/fpu/s_expm1.S: Likewise.
26929         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
26930         * sysdeps/i386/fpu/e_log2.S: Likewise.
26931         * sysdeps/i386/fpu/e_log2l.S: Likewise.
26932         * sysdeps/i386/fpu/e_scalb.S: Likewise.
26933         * sysdeps/i386/fpu/e_powl.S: Likewise.
26934         * sysdeps/i386/fpu/s_log1p.S: Likewise.
26935         * sysdeps/i386/fpu/e_log10f.S: Likewise.
26936         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
26937         * sysdeps/i386/fpu/e_logl.S: Likewise.
26938         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
26939         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
26940         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
26941         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
26942         * sysdeps/i386/fpu/e_log2f.S: Likewise.
26943         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
26944         * sysdeps/i386/fpu/e_log.S: Likewise.
26945         * sysdeps/i386/fpu/s_cexp.S: Likewise.
26946         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
26947         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
26948         * sysdeps/i386/fpu/e_logf.S: Likewise.
26949         * sysdeps/i386/fpu/e_log10l.S: Likewise.
26950         * sysdeps/i386/fpu/e_atanh.S: Likewise.
26951         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
26952         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
26953         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
26954         * sysdeps/i386/fpu/e_log10.S: Likewise.
26955         * sysdeps/i386/fpu/s_frexp.S: Likewise.
26956         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
26957         * sysdeps/i386/fpu/s_asinh.S: Likewise.
26958         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
26959         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
26960         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
26961         * sysdeps/i386/asm-syntax.h: Likewise.
26962         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
26963         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
26964         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
26965         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
26966         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
26967         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
26968         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
26969         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
26970         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
26971         * sysdeps/powerpc/sysdep.h: Likewise.
26972         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
26973         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
26974
26975 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
26976
26977         [BZ #411]
26978         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
26979
26980 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
26981
26982         * sysdeps/i386/sysdep.h: Include <features.h>.
26983         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
26984         version.
26985
26986 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
26987
26988         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
26989         Define.
26990         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
26991         LOAD_PIC_REG_STR.
26992
26993 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
26994
26995         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
26996         (SETUP_PIC_REG): Use GET_PC_THUNK.
26997         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
26998         macro.
26999
27000 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
27001
27002         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
27003         for non-PIC compilation.
27004         (SETUP_PIC_REG): Add .p2align directive.
27005         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
27006         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
27007         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27008         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27009         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
27010         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27011         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
27012         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
27013         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27014         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27015         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27016         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27017         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27018         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27019         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27020         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
27021         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
27022         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27023         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27024         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27025         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
27026         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
27027         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27028         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27029         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
27030         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
27031         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27032         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
27033         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27034         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27035         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27036         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27037         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27038         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27039         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27040         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27041         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27042         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27043         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27044         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27045         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27046
27047 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
27048
27049         * math/tst-CMPLX.c: Include <stdio.h>.
27050
27051 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
27052
27053         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
27054         float.
27055         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
27056         * sysdeps/sparc/bits/mathdef.h: Likewise.
27057
27058 2012-01-31  Marek Polacek  <polacek@redhat.com>
27059
27060         * libio/libio.h: Don't define _PARAMS.
27061         * locale/programs/config.h: Don't define PARAMS.
27062         * stdlib/strtol_l.c: Likewise.
27063         (__strtol_l): Remove PARAMS from the prototype.
27064
27065 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
27066
27067         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
27068         names.  Just use the correct names.  Remove unnecessary wrapper
27069         functions.
27070         * malloc/arena.c: Likewise.
27071         * malloc/hooks.c: Likewise.
27072
27073         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
27074         ARENA_TEST says not to.  Simplify test for creation of a new arena.
27075         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
27076
27077 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
27078
27079         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
27080         into tail calls.
27081         (update_get_addr): New function.
27082         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
27083         GET_ADDR_MODULE parameter.
27084
27085 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
27086
27087         * crypt/cert.c: Remove __STDC__ conditionals.
27088         * crypt/crypt-entry.c: Likewise.
27089         * crypt/crypt_util.c: Likewise.
27090         * libio/filedoalloc.c: Likewise.
27091         * libio/fileops.c: Likewise.
27092         * libio/genops.c: Likewise.
27093         * libio/iofclose.c: Likewise.
27094         * libio/iofdopen.c: Likewise.
27095         * libio/iofopen.c: Likewise.
27096         * libio/iofopen64.c: Likewise.
27097         * libio/iogetdelim.c: Likewise.
27098         * libio/iopopen.c: Likewise.
27099         * libio/obprintf.c: Likewise.
27100         * libio/oldfileops.c: Likewise.
27101         * libio/oldiofclose.c: Likewise.
27102         * libio/oldiofdopen.c: Likewise.
27103         * libio/oldiofopen.c: Likewise.
27104         * libio/oldiopopen.c: Likewise.
27105         * libio/wfiledoalloc.c: Likewise.
27106         * libio/wgenops.c: Likewise.
27107         * locale/programs/xmalloc.c: Likewise.
27108         * misc/syslog.c: Likewise.
27109         * stdio-common/xbug.c: Likewise.
27110         * string/memchr.c: Likewise.
27111         * string/memcmp.c: Likewise.
27112         * string/memrchr.c: Likewise.
27113         * string/rawmemchr.c: Likewise.
27114         * sysdeps/posix/getcwd.c: Likewise.
27115         * time/strftime_l.c: Likewise.
27116
27117 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
27118
27119         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
27120         * config.make.in (config-cflags-sse2avx): Define.
27121         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
27122         Fix typo.
27123
27124 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
27125
27126         * scripts/config.guess: Update from upstream config git repository.
27127         * scripts/config.sub: Likewise.
27128
27129 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
27130
27131         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
27132         (EM_NUM): Update.
27133         (R_TILEPRO_*, R_TILEGX_*): New macros.
27134
27135         * scripts/firstversions.awk: Fix bug in version range handling.
27136
27137         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
27138
27139         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
27140
27141         * include/sys/epoll.h: New file.
27142         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
27143         libc_hidden_def.
27144
27145 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
27146
27147         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
27148         Avoid unnecessary __WORDSIZE == 64 test.
27149         (fmaxf): Use VEX format if possible.
27150         (fmax): Likewise.
27151         (fminf): Likewise.
27152         (fmin): Likewise.
27153
27154         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
27155         * math/math_private.h: Remove libc_fegetround* and
27156         libc_fesetround*.
27157         * sysdeps/i386/configure.in: Check for -msse2avx.
27158         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
27159         also if SSE2AVX is defined.
27160         Remove libc_fegetround* and libc_fesetround*.
27161         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
27162         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
27163         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
27164         of HAS_YMM_USABLE.
27165         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
27166         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
27167         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
27168         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
27169         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
27170
27171         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
27172
27173 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27174
27175         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
27176         size is not set.
27177         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
27178
27179 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
27180
27181         [BZ #13618]
27182         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
27183         relocation.
27184         * Makeconfig (libm): Define.
27185         * elf/Makefile: Add rules to build and run tst-relsort1.
27186         * elf/tst-relsort1.c: New file.
27187         * elf/tst-relsort1mod1.c: New file.
27188         * elf/tst-relsort1mod2.c: New file.
27189
27190 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
27191
27192         * math/s_ldexp.c: Remove __STDC__ conditionals.
27193         * math/s_ldexpf.c: Likewise.
27194         * math/s_ldexpl.c: Likewise.
27195         * math/s_nextafter.c: Likewise.
27196         * math/s_nexttowardf.c: Likewise.
27197         * math/s_significand.c: Likewise.
27198         * math/s_significandf.c: Likewise.
27199         * math/s_significandl.c: Likewise.
27200         * math/w_jnl.c: Likewise.
27201         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
27202         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
27203         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
27204         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
27205         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
27206         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
27207         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
27208         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
27209         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
27210         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
27211         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
27212         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
27213         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
27214         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
27215         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
27216         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
27217         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
27218         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
27219         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
27220         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
27221         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
27222         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
27223         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
27224         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
27225         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
27226         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
27227         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
27228         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
27229         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
27230         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
27231         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
27232         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
27233         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
27234         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
27235         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
27236         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
27237         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
27238         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
27239         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
27240         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
27241         * sysdeps/ieee754/k_standard.c: Likewise.
27242         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
27243         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
27244         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
27245         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
27246         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
27247         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
27248         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
27249         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
27250         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
27251         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
27252         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
27253         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
27254         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
27255         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
27256         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
27257         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
27258         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
27259         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
27260         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
27261         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
27262         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
27263         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
27264         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
27265         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
27266         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
27267         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
27268         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
27269         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
27270         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
27271         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
27272         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
27273         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
27274         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
27275         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
27276         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
27277         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
27278         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
27279         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
27280         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
27281         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
27282         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
27283         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
27284         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
27285         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
27286         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
27287         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
27288         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
27289         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
27290         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
27291         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
27292         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
27293         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
27294         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
27295         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
27296         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
27297         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
27298         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
27299         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
27300         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
27301         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
27302         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
27303         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
27304         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
27305         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
27306         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
27307         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
27308         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
27309         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
27310         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
27311         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
27312         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
27313         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
27314         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
27315         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
27316         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
27317         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
27318         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
27319         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
27320         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
27321         * sysdeps/ieee754/s_matherr.c: Likewise.
27322         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
27323         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
27324         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
27325         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
27326
27327 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
27328
27329         * crypt/md5.h: Remove __STDC__ conditionals.
27330         * libio/libioP.h: Likewise.
27331         * locale/programs/config.h: Likewise.
27332         * sysdeps/generic/sysdep.h: Likewise.
27333         * sysdeps/i386/asm-syntax.h: Likewise.
27334         * sysdeps/s390/asm-syntax.h: Likewise.
27335         * sysdeps/unix/sysdep.h: Likewise.
27336         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27338
27339 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
27340
27341         * libio/libio.h: Remove __STDC__ conditionals.
27342         * malloc/obstack.h: Likewise.
27343         * math/complex.h: Likewise.
27344         * math/math.h: Likewise.
27345         * sysdeps/generic/_G_config.h: Likewise.
27346         * sysdeps/gnu/_G_config.h: Likewise.
27347         * sysdeps/mach/hurd/_G_config.h: Likewise.
27348         * sysdeps/powerpc/bits/mathdef.h: Likewise.
27349         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
27350         * sysdeps/sparc/bits/mathdef.h: Likewise.
27351
27352 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
27353
27354         [BZ #13583]
27355         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
27356         Clean up HAS_* macros.
27357         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
27358         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
27359         possible.
27360         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
27361         HAS_AVX.
27362         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
27363         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
27364         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
27365         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
27366         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
27367
27368 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
27369
27370         * elf/tst-unique3.cc (gets): Remove declaration.
27371         * elf/tst-unique3lib.cc (gets): Likewise.
27372         * elf/tst-unique3lib2.cc (gets): Likewise.
27373         * elf/tst-unique4.cc (gets): Likewise.
27374
27375 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
27376
27377         * include/stdio.h: Add C++ protection.  Add gets declarations and
27378         definitions.
27379         * debug/tst-chk1.c: Don't declare gets here.
27380         * stdio-common/tst-gets.c: Likewise.
27381
27382 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
27383
27384         * posix/glob: Remove directory.
27385
27386 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
27387
27388         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
27389
27390 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
27391
27392         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
27393         of the non-standard EPFNOSUPPORT.
27394
27395 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27396
27397         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
27398         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
27399         ANYWHERE set to 1 only on KERN_NO_SPACE error.
27400
27401 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
27402
27403         * wcsmbs/uchar.h: Test __STDC_VERSION__.
27404
27405 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
27406
27407         * nscd/aicache.c (addhstaiX): Do not cache negative results of
27408         transient errors.
27409         * nscd/grpcache.c (cache_addgr): Likewise.
27410         * nscd/hstcache.c (cache_addhst): Likewise.
27411         * nscd/initgrcache.c (addinitgroupsX): Likewise.
27412         * nscd/pwdcache.c (cache_addpw): Likewise.
27413         * nscd/servicescache.c (cache_addserv): Likewise.
27414
27415 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
27416
27417         * malloc/malloc.c: Various cleanups.
27418         * malloc/hooks.c: Likewise.
27419
27420         * stdlib/Makefile (tests): Add bug-fmtmsg1.
27421         * stdlib/bug-fmtmsg1.c: New file.
27422
27423         * stdlib/fmtmsg.c (init): Add missing unlock.
27424         Patch by Peng Haitao <penght@cn.fujitsu.com>.
27425
27426 2012-01-12  Marek Polacek  <polacek@redhat.com>
27427
27428         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
27429         and _GNU_SOURCE.
27430
27431 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
27432
27433         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
27434         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
27435         macro to ensure uniqueness of label name.
27436         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
27437         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
27438
27439 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
27440
27441         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
27442
27443         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
27444         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
27445         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
27446         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
27447
27448 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
27449
27450         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
27451
27452         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
27453         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
27454         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
27455
27456         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
27457
27458         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
27459         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
27460         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
27461         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
27462
27463         * math/bits/math-finite.h: Add ldexp support.
27464
27465 2012-01-10  Marek Polacek  <polacek@redhat.com>
27466
27467         * locale/programs/localedef.h (show_archive_content): Add noreturn
27468         attribute.
27469
27470 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
27471
27472         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
27473
27474 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
27475
27476         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
27477
27478         * io/Makefile (headers): Add bits/poll2.h.
27479
27480 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
27481
27482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
27483         typo #include statement.
27484
27485 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
27486
27487         * include/sys/cdefs.h: Define __attribute_alloc_size.
27488         * catgets/gencat.c: Add alloc_size attribute and apply consistently
27489         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
27490         * elf/pldd.c: Likewise.
27491         * iconv/iconv_charmap.c: Likewise.
27492         * iconv/iconvconfig.c: Likewise.
27493         * iconv/strtab.c: Likewise.
27494         * locale/programs/locale.c: Likewise.
27495         * locale/programs/localedef.h: Likewise.
27496         * locale/programs/simple-hash.c: Likewise.
27497         * nscd/nscd.h: Likewise.
27498         * nss/makedb.c: Likewise.
27499         * sysdeps/generic/ldconfig.h: Likewise.
27500         * locale/programs/localedef.c: Remove xmalloc prototype.
27501         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
27502
27503 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
27504
27505         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
27506         appropriate.
27507
27508 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
27509
27510         * math/Makefile (tests): Add tst-CMPLX.
27511         * math/tst-CMPLX.c: New file.
27512
27513         * math/complex.h (CMPLXL): Fix typo.
27514
27515         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
27516         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
27517         GLIBC_2.16.
27518         * debug/tst-chk1.c: Add poll and ppoll tests.
27519         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
27520         * include/sys/poll.h: Add hidden proto for ppoll.
27521         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
27522         * sysdeps/mach/hurd/ppoll.c: Likewise.
27523         * io/ppoll.c: Likewise.
27524         * debug/poll_chk.c: New file.
27525         * debug/ppoll_chk.c: New file.
27526         * include/bits/poll2.h: New file.
27527         * io/bits/poll2.h: New file.
27528
27529         [BZ #1350]
27530         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
27531
27532         * configure.in: static is always set to yes.  Remove.
27533         * config.make.in: Don't set build-static.
27534         * Makeconfig: Remove use of build-static.
27535         * dlfcn/Makefile: Likewise.
27536         * elf/Makefile: Likewise.
27537         * math/Makefile: Likewise.
27538         * misc/Makefile: Likewise.
27539         * nptl/Makefile: Likewise.
27540         * sysdeps/mach/hurd/Makefile: Likewise.
27541
27542         * configure.in: PWD_P is not used anymore.
27543         * config.make.in: Remove PWD_P entry.
27544
27545         * configure.in: Remove last remnants of RANLIB.
27546         No need to check for signed size_t anymore.
27547         Don't set libc_commonpagesize and libc_relro_required here for Alpha
27548         and IA-64.
27549         Remove __builtin_expect test because we require at least gcc 3.4.
27550         * aclocal.m4: Likewise.
27551
27552         * wcsmbs/mbrtoc16.c: Implement using towc function.
27553         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
27554         * wcsmbs/wcsmbsload.c: Likewise.
27555         * iconv/gconv_simple.c: Likewise.
27556         * iconv/gconv_int.h: Likewise.
27557         * iconv/gconv_builtin.h: Likewise.
27558         * iconv/iconv_prog.c: Remove CHAR16 handling.
27559
27560         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
27561
27562         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
27563
27564         * configure.in: Remove --with-elf and --enable-bounded options.
27565         Dont set base_machine for ia64.  More non-ELF conditions removed.
27566         Remove testing and setting of leading underscore information.
27567         * config.make.in (build-bounded): Set to no.
27568         * config.h.in: Remove NO_UNDERSCORES entry.
27569         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
27570         them.
27571         * csu/start.c: Remove !NO_UNDERSCORE code.
27572         * locale/localeinfo.h: Likewise.
27573         * sysdeps/generic/machine-gmon.h: Likewise.
27574         * sysdeps/generic/sysdep.h: Likewise.
27575         * sysdeps/i386/sysdep.h: Likewise.
27576         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
27577         * sysdeps/mach/sysdep.h: Likewise.
27578         * sysdeps/s390/s390-32/sysdep.h: Likewise.
27579         * sysdeps/s390/s390-64/sysdep.h: Likewise.
27580         * sysdeps/sh/sysdep.h: Likewise.
27581         * sysdeps/sparc/sparc32/alloca.S: Likewise.
27582         * sysdeps/unix/i386/sysdep.S: Likewise.
27583         * sysdeps/unix/sparc/start.c: Likewise.
27584         * sysdeps/unix/sparc/sysdep.S: Likewise.
27585         * sysdeps/unix/sparc/sysdep.h: Likewise.
27586         * sysdeps/unix/start.c: Likewise.
27587         * sysdeps/unix/x86_64/sysdep.S: Likewise.
27588         * sysdeps/x86_64/sysdep.h: Likewise.
27589
27590 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
27591
27592         [BZ #13553]
27593         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
27594         for non-gcc.
27595         * argp/argp-fmtstream.h: Use const instead __const.
27596         * argp/argp.h: Likewise.
27597         * assert/assert.h: Likewise.
27598         * bits/fenv.h: Likewise.
27599         * bits/sched.h: Likewise.
27600         * bits/sigset.h: Likewise.
27601         * bits/sigthread.h: Likewise.
27602         * catgets/nl_types.h: Likewise.
27603         * conform/data/pthread.h-data: Likewise.
27604         * crypt/crypt-private.h: Likewise.
27605         * crypt/crypt.h: Likewise.
27606         * crypt/crypt_util.c: Likewise.
27607         * ctype/ctype.h: Likewise.
27608         * debug/execinfo.h: Likewise.
27609         * debug/mbsnrtowcs_chk.c: Likewise.
27610         * debug/mbsrtowcs_chk.c: Likewise.
27611         * debug/wcsnrtombs_chk.c: Likewise.
27612         * debug/wcsrtombs_chk.c: Likewise.
27613         * debug/wcstombs_chk.c: Likewise.
27614         * dirent/dirent.h: Likewise.
27615         * dlfcn/dlfcn.h: Likewise.
27616         * elf/neededtest4.c: Likewise.
27617         * grp/grp.h: Likewise.
27618         * gshadow/gshadow.h: Likewise.
27619         * iconv/gconv.h: Likewise.
27620         * iconv/gconv_int.h: Likewise.
27621         * iconv/gconv_simple.c: Likewise.
27622         * iconv/iconv.h: Likewise.
27623         * iconv/loop.c: Likewise.
27624         * iconv/skeleton.c: Likewise.
27625         * include/aio.h: Likewise.
27626         * include/aliases.h: Likewise.
27627         * include/argz.h: Likewise.
27628         * include/arpa/inet.h: Likewise.
27629         * include/assert.h: Likewise.
27630         * include/dirent.h: Likewise.
27631         * include/dlfcn.h: Likewise.
27632         * include/execinfo.h: Likewise.
27633         * include/fcntl.h: Likewise.
27634         * include/fenv.h: Likewise.
27635         * include/glob.h: Likewise.
27636         * include/grp.h: Likewise.
27637         * include/libintl.h: Likewise.
27638         * include/mntent.h: Likewise.
27639         * include/netdb.h: Likewise.
27640         * include/pwd.h: Likewise.
27641         * include/rpc/netdb.h: Likewise.
27642         * include/sched.h: Likewise.
27643         * include/search.h: Likewise.
27644         * include/shadow.h: Likewise.
27645         * include/signal.h: Likewise.
27646         * include/stdio.h: Likewise.
27647         * include/stdlib.h: Likewise.
27648         * include/string.h: Likewise.
27649         * include/sys/socket.h: Likewise.
27650         * include/sys/stat.h: Likewise.
27651         * include/sys/statfs.h: Likewise.
27652         * include/sys/statvfs.h: Likewise.
27653         * include/sys/syslog.h: Likewise.
27654         * include/sys/time.h: Likewise.
27655         * include/sys/uio.h: Likewise.
27656         * include/time.h: Likewise.
27657         * include/unistd.h: Likewise.
27658         * include/utmp.h: Likewise.
27659         * include/wchar.h: Likewise.
27660         * include/wctype.h: Likewise.
27661         * inet/aliases.h: Likewise.
27662         * inet/arpa/inet.h: Likewise.
27663         * inet/netinet/ether.h: Likewise.
27664         * inet/netinet/in.h: Likewise.
27665         * intl/libintl.h: Likewise.
27666         * io/bits/fcntl2.h: Likewise.
27667         * io/fcntl.h: Likewise.
27668         * io/ftw.h: Likewise.
27669         * io/sys/poll.h: Likewise.
27670         * io/sys/stat.h: Likewise.
27671         * io/sys/statfs.h: Likewise.
27672         * io/sys/statvfs.h: Likewise.
27673         * io/utime.h: Likewise.
27674         * libio/bits/stdio.h: Likewise.
27675         * libio/bits/stdio2.h: Likewise.
27676         * libio/libio.h: Likewise.
27677         * libio/libioP.h: Likewise.
27678         * libio/stdio.h: Likewise.
27679         * locale/lc-ctype.c: Likewise.
27680         * locale/locale.h: Likewise.
27681         * login/utmp.h: Likewise.
27682         * malloc/arena.c: Likewise.
27683         * malloc/malloc.c: Likewise.
27684         * malloc/malloc.h: Likewise.
27685         * malloc/mcheck.c: Likewise.
27686         * malloc/mtrace.c: Likewise.
27687         * math/bits/mathcalls.h: Likewise.
27688         * math/fenv.h: Likewise.
27689         * math/math_private.h: Likewise.
27690         * misc/bits/error.h: Likewise.
27691         * misc/bits/syslog.h: Likewise.
27692         * misc/err.h: Likewise.
27693         * misc/error.h: Likewise.
27694         * misc/fstab.h: Likewise.
27695         * misc/mntent.h: Likewise.
27696         * misc/regexp.h: Likewise.
27697         * misc/search.h: Likewise.
27698         * misc/sgtty.h: Likewise.
27699         * misc/sys/mman.h: Likewise.
27700         * misc/sys/syslog.h: Likewise.
27701         * misc/sys/uio.h: Likewise.
27702         * misc/sys/xattr.h: Likewise.
27703         * misc/ttyent.h: Likewise.
27704         * nis/rpcsvc/ypclnt.h: Likewise.
27705         * nss/nss.h: Likewise.
27706         * posix/bits/unistd.h: Likewise.
27707         * posix/fnmatch.h: Likewise.
27708         * posix/glob.h: Likewise.
27709         * posix/sched.h: Likewise.
27710         * posix/spawn.h: Likewise.
27711         * posix/sys/wait.h: Likewise.
27712         * posix/unistd.h: Likewise.
27713         * posix/wordexp.h: Likewise.
27714         * pwd/pwd.h: Likewise.
27715         * resolv/netdb.h: Likewise.
27716         * resource/sys/resource.h: Likewise.
27717         * rt/aio.h: Likewise.
27718         * rt/bits/mqueue2.h: Likewise.
27719         * rt/mqueue.h: Likewise.
27720         * shadow/shadow.h: Likewise.
27721         * signal/signal.h: Likewise.
27722         * socket/send.c: Likewise.
27723         * socket/sendto.c: Likewise.
27724         * socket/sys/socket.h: Likewise.
27725         * stdio-common/printf.h: Likewise.
27726         * stdlib/bits/stdlib.h: Likewise.
27727         * stdlib/fmtmsg.h: Likewise.
27728         * stdlib/monetary.h: Likewise.
27729         * stdlib/stdlib.h: Likewise.
27730         * stdlib/ucontext.h: Likewise.
27731         * streams/stropts.h: Likewise.
27732         * string/argz.h: Likewise.
27733         * string/bits/string2.h: Likewise.
27734         * string/string.h: Likewise.
27735         * string/strings.h: Likewise.
27736         * sunrpc/rpc/auth.h: Likewise.
27737         * sunrpc/rpc/auth_des.h: Likewise.
27738         * sunrpc/rpc/clnt.h: Likewise.
27739         * sunrpc/rpc/netdb.h: Likewise.
27740         * sunrpc/rpc/pmap_clnt.h: Likewise.
27741         * sunrpc/rpc/xdr.h: Likewise.
27742         * sysdeps/generic/inttypes.h: Likewise.
27743         * sysdeps/generic/net/if.h: Likewise.
27744         * sysdeps/generic/sys/swap.h: Likewise.
27745         * sysdeps/gnu/net/if.h: Likewise.
27746         * sysdeps/gnu/utmpx.h: Likewise.
27747         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
27748         * sysdeps/i386/i486/bits/string.h: Likewise.
27749         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
27750         * sysdeps/s390/bits/string.h: Likewise.
27751         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
27752         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
27753         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27754         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
27755         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
27756         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
27757         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
27758         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
27759         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
27760         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27761         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
27762         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
27763         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
27764         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
27765         * sysdeps/unix/sysv/linux/readv.c: Likewise.
27766         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
27767         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
27768         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
27769         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
27770         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
27771         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
27772         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
27773         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
27774         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
27775         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
27776         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
27777         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
27778         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
27779         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
27780         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
27781         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
27782         * sysvipc/sys/ipc.h: Likewise.
27783         * sysvipc/sys/msg.h: Likewise.
27784         * sysvipc/sys/sem.h: Likewise.
27785         * sysvipc/sys/shm.h: Likewise.
27786         * termios/termios.h: Likewise.
27787         * time/sys/time.h: Likewise.
27788         * time/time.h: Likewise.
27789         * wcsmbs/bits/wchar2.h: Likewise.
27790         * wcsmbs/uchar.h: Likewise.
27791         * wcsmbs/wchar.h: Likewise.
27792         * wctype/wctype.h: Likewise.
27793
27794         [BZ #13551]
27795         * Makeconfig: Remove all but ELF support including AIX support.
27796         * Makerules: Likewise.
27797         * config.h.in: Likewise.
27798         * config.make.in: Likewise.
27799         * configure: Likewise.
27800         * configure.in: Likewise.
27801         * csu/Makefile: Likewise.
27802         * csu/version.c: Likewise.
27803         * debug/Makefile: Likewise.
27804         * dlfcn/Makefile: Likewise.
27805         * elf/Makefile: Likewise.
27806         * extra-lib.mk: Likewise.
27807         * iconv/Makefile: Likewise.
27808         * include/libc-symbols.h: Likewise.
27809         * include/shlib-compat.h: Likewise.
27810         * resolv/Makefile: Likewise.
27811         * resolv/res_libc.c: Likewise.
27812         * rt/Makefile: Likewise.
27813         * sysdeps/i386/asm-syntax.h: Likewise.
27814         * sysdeps/i386/sysdep.h: Likewise.
27815         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
27816         * sysdeps/mach/sysdep.h: Likewise.
27817         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
27818         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
27819         * sysdeps/s390/asm-syntax.h: Likewise.
27820         * sysdeps/s390/s390-32/sysdep.h: Likewise.
27821         * sysdeps/s390/s390-64/sysdep.h: Likewise.
27822         * sysdeps/sh/sysdep.h: Likewise.
27823         * sysdeps/unix/sparc/sysdep.h: Likewise.
27824         * sysdeps/wordsize-32/divdi3.c: Likewise.
27825         * sysdeps/x86_64/sysdep.h: Likewise.
27826
27827         * argp/Versions: Remove _argp_unlock_xxx.
27828
27829         [BZ #13559]
27830         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
27831         * abilist/libBrokenLocale.abilist: Likewise.
27832         * abilist/libanl.abilist: Likewise.
27833         * abilist/libc.abilist: Likewise.
27834         * abilist/libcrypt.abilist: Likewise.
27835         * abilist/libdl.abilist: Likewise.
27836         * abilist/libm.abilist: Likewise.
27837         * abilist/libnsl.abilist: Likewise.
27838         * abilist/libpthread.abilist: Likewise.
27839         * abilist/libresolv.abilist: Likewise.
27840         * abilist/librt.abilist: Likewise.
27841         * abilist/libthread_db.abilist: Likewise.
27842         * abilist/libutil.abilist: Likewise.
27843         * abilist/libnss_db.abilist: New file.
27844
27845         * scripts/abilist.awk: Add support for indirect functions.
27846
27847         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
27848
27849         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
27850
27851         * shlib-versions: Remove entries for ports architectures.
27852
27853         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
27854         files in ports.
27855         * elf/stackguard-macros.h: Remove support for IA-64.
27856         * elf/tst-auditmod1.c: Likewise.
27857         * sysdeps/generic/ldsodefs.h: Likewise.
27858
27859         * sysdeps/unix/sysv/linux/configure.in: Ports should define
27860         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
27861         configure files.
27862
27863         [BZ #13552]
27864         * configure.in: Remove --enable-omitfp support.
27865         * FAQ.in: Adjust.
27866         * config.make.in: Likewise.
27867         * Makeconfig: Likewise.
27868         * manual/install.texi: Likewise.
27869
27870         In case anyone cares, the IA-64 architecture could move to ports.
27871         * sysdeps/ia64/*: Removed.
27872         * sysdeps/unix/sysv/linux/ia64/*: Removed.
27873         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
27874
27875         [BZ #13555]
27876         * configure.in: Remove entries for unsupported architectures.
27877
27878         [BZ #13533]
27879         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
27880         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
27881         routines.
27882         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
27883         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
27884         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
27885         fall back to using wcrtomb.
27886         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
27887         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
27888         renaming.
27889         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
27890         * wcsmbs/tst-c16c32-1.c: New file.
27891
27892         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
27893         local variable.
27894
27895         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
27896
27897         * elf/tst-unique3.cc: Add explicit declaration of gets.
27898         * elf/tst-unique3lib.cc: Likewise.
27899         * elf/tst-unique3lib2.cc: Likewise.
27900         * elf/tst-unique4.cc: Likewise.
27901
27902         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
27903
27904 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
27905
27906         [BZ #13566]
27907         * assert/assert.h (static_assert): Don't define for C++.
27908         * libio/stdio.h (gets): Do declare for C++ <= C++11.
27909         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
27910
27911 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
27912
27913         * iconv/loop.c (single loop): Fix assertion in storing of
27914         remaining bytes.
27915
27916         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
27917
27918 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
27919
27920         * posix/getconf.c: Update copyright year.
27921         * nss/getent.c: Likewise.
27922         * nss/makedb.c: Likewise.
27923         * iconv/iconvconfig.c: Likewise.
27924         * iconv/iconv_prog.c: Likewise.
27925         * elf/ldconfig.c: Likewise.
27926         * elf/pldd.c: Likewise.
27927         * elf/sotruss.ksh: Likewise.
27928         * catgets/gencat.c: Likewise.
27929         * csu/version.c: Likewise.
27930         * elf/ldd.bash.in: Likewise.
27931         * elf/sprof.c (print_version): Likewise.
27932         * locale/programs/locale.c: Likewise.
27933         * locale/programs/localedef.c: Likewise.
27934         * login/programs/pt_chown.c: Likewise.
27935         * nscd/nscd.c (print_version): Likewise.
27936         * debug/xtrace.sh: Likewise.
27937         * malloc/memusage.sh: Likewise.
27938         * malloc/mtrace.pl: Likewise.
27939         * debug/catchsegv.sh: Likewise.
27940
27941 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
27942
27943         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
27944         pure attribute.
27945
27946 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
27947
27948         [BZ #13533]
27949         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
27950         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
27951         transformations.
27952         * iconv/gconv_int.h: Likewise.
27953         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
27954         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
27955         from libc for GLIBC_2.16.
27956         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
27957         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
27958         * wcsmbs/uchar.h: Really define mbstate_t.
27959         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
27960         * wcsmbs/c16rtomb.c: New file.
27961         * wcsmbs/mbrtoc16.c: New file.
27962         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
27963         for C/POSIX locale.
27964         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
27965         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
27966
27967         * wcsmbs/wchar.h: Add missing __restrict.
27968
27969 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
27970
27971         [BZ #13532]
27972         * time/Makefile (routines): Add timespec_get.
27973         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
27974         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
27975         timespec for ISO C11.
27976         * time/timespec_get.c: New file.
27977         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
27978         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
27979
27980         [BZ #13531]
27981         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
27982         * stdlib/stdlib.h: Declare aligned_alloc.
27983         * Versions.def: Add GLIBC_2.16 for libc.
27984         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
27985
27986         [BZ 13527]
27987         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
27988         ISO C11.
27989
27990         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
27991         code.
27992
27993         [BZ #13528]
27994         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
27995
27996         [BZ #13529]
27997         * assert/assert.h (static_assert): Define.
27998
27999         * version.h: Update for 2.16 development version.
28000
28001         [BZ #13526]
28002         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
28003         _ISOC11_SOURCE.
28004
28005         * version.h (RELEASE): Bump for 2.15 release.
28006         * include/features.h (__GLIBC_MINOR__): Bump to 15.
28007
28008         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
28009         Patch by Marek Polacek <mpolacek@redhat.com>.
28010
28011         * bits/byteswap.h: Protect long long constants with __extension__.
28012         * sysdeps/i386/bits/byteswap.h: Likewise.
28013         * sysdeps/ia64/bits/byteswap.h: Likewise.
28014         * sysdeps/s390/bits/byteswap.h: Likewise.
28015         * sysdeps/x86_64/bits/byteswap.h: Likewise.
28016
28017 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28018
28019         [BZ #13540]
28020         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
28021         destination buffer.
28022         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
28023
28024 2011-12-23  Marek Polacek  <polacek@redhat.com>
28025
28026         * elf/dl-addr.c (determine_info): Add inline keyword.
28027         * elf/tst-auditmod4b.c (check_avx): Likewise.
28028         * elf/tst-auditmod6b.c (check_avx): Likewise.
28029         * elf/tst-auditmod6c.c (check_avx): Likewise.
28030         * elf/tst-auditmod7b.c (check_avx): Likewise.
28031
28032 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
28033
28034         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
28035         !__SSE_MATH__.
28036
28037 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28038
28039         [BZ #13540]
28040         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
28041         processing for last bytes.
28042
28043 2011-08-06  Bruno Haible  <bruno@clisp.org>
28044
28045         [BZ #13061]
28046         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
28047         U+0385, not to U+1FEE.
28048
28049         [BZ #13062]
28050         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
28051         entry for U+00A5 U+0301.
28052
28053 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
28054
28055         [BZ #13166]
28056         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
28057         buffer for the output is too small.
28058
28059         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
28060         optimization.
28061
28062         [BZ #13185]
28063         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
28064         SSE flags if possible.
28065
28066 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28067
28068         [BZ #13540]
28069         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
28070         processing for last bytes.
28071
28072 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
28073
28074         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
28075         (syscall-list-default-options, syscall-list-default-condition)
28076         (syscall-list-includes): Define.
28077         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
28078         list of ABIs and options and #if conditions for each ABI.  Do not
28079         handle common syscalls between ABIs specially.
28080         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
28081         Remove.
28082         (syscall-list-variants, syscall-list-32bit-options)
28083         (syscall-list-32bit-condition, syscall-list-64bit-options)
28084         (syscall-list-64bit-condition): Define.
28085         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
28086         (syscall-list-variants, syscall-list-32bit-options)
28087         (syscall-list-32bit-condition, syscall-list-64bit-options)
28088         (syscall-list-64bit-condition): Define.
28089         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
28090         Remove.
28091         (syscall-list-variants, syscall-list-32bit-options)
28092         (syscall-list-32bit-condition, syscall-list-64bit-options)
28093         (syscall-list-64bit-condition): Define.
28094         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
28095         Remove.
28096         (syscall-list-variants, syscall-list-32bit-options)
28097         (syscall-list-32bit-condition, syscall-list-64bit-options)
28098         (syscall-list-64bit-condition): Define.
28099
28100 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
28101
28102         * locale/iso-639.def: Add brx entry.
28103
28104         [BZ #13328]
28105         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
28106         Proposed by Mariusz_Cukr <marcukr@op.pl>.
28107
28108         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
28109         __feraiseexcept_renamed.
28110
28111 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
28112
28113         [BZ #13538]
28114         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
28115         EPOLLET with unsigned values.
28116         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
28117         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
28118
28119         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
28120         to large cancellation.
28121         * math/s_cacoshf.c: Likewise.
28122         * math/s_cacoshl.c: Likewise.
28123
28124 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
28125
28126         [BZ #13305]
28127         [BZ #12786]
28128         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
28129         * math/s_cacoshf.c: Likewise.
28130         * math/s_cacoshl.c: Likewise.
28131
28132 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
28133
28134         [BZ #13439]
28135         * iconv/gconv.h: Define __GCONV_SWAP.
28136         * iconvdata/unicode.c: The swap bit must be stored in __flags.
28137         * iconvdata/utf-16.c: Likewise.
28138         * iconvdata/utf-32.c: Likewise.
28139
28140 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
28141
28142         [BZ #13524]
28143         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
28144         numerator after shifting it by one limb.
28145
28146 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
28147
28148         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
28149         under [__USE_EXTERN_INLINES].
28150
28151 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
28152
28153         [BZ #13446]
28154         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
28155
28156 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28157
28158         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
28159         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
28160         optimized code.
28161         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
28162         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
28163         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
28164         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
28165         for strncasecmp/strncasecmp_l compilation.
28166         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
28167         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
28168
28169 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
28170
28171         [BZ #13484]
28172         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
28173         of __asm__.
28174
28175 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
28176
28177         [BZ #13506]
28178         * time/tzfile.c (__tzfile_read): Check values from file header.
28179
28180 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
28181
28182         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
28183         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
28184         * powerpc/powerpc32/dl-start.S: Likewise.
28185         * powerpc/powerpc32/elf/start.S: Likewise.
28186         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
28187         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
28188         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
28189         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
28190         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
28191         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
28192         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
28193         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
28194         * powerpc/powerpc32/fpu/s_round.S: Likewise.
28195         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
28196         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
28197         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
28198         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
28199         * powerpc/powerpc32/memset.S: Likewise.
28200         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
28201         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
28202         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
28203         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
28204         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
28205         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
28206         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
28207         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
28208         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
28209         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
28210         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
28211         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
28212         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
28213
28214 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28215
28216         * math/libm-test.inc: Added more nearbyint tests.
28217         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
28218         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
28219         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
28220         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
28221
28222 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
28223
28224         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
28225         FD_CLOEXEC.
28226
28227 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28228
28229         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
28230         Add wcscpy-ssse3 wcscpy-c.
28231         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
28232         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
28233         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
28234         * sysdeps/x86_64/wcschr.S: New file.
28235         * sysdeps/x86_64/wcsrchr.S: New file.
28236         * string/test-strcmp.c: Remove checking of wcscmp function for
28237         wrong alignments.
28238         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
28239         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
28240         wcsrchr-sse2 wcsrchr-c.
28241         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
28242         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
28243         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
28244         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
28245         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
28246         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
28247         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
28248         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
28249         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
28250         * wcsmbc/wcschr.c (WCSCHR): New macro.
28251
28252 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28253
28254         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
28255         * wcsmbs/test-wcsrchr.c: New file.
28256         * string/test-strrchr.c: Add wcsrchr support.
28257         (WIDE): New macro.
28258         * wcsmbs/test-wcscpy.c: New file.
28259         * string/test-strcpy.c: Add wcscpy support.
28260         (WIDE): New macro.
28261
28262 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
28263
28264         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
28265         the inner loop.
28266
28267 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
28268
28269         [BZ #13472]
28270         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
28271
28272 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
28273
28274         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
28275         Minor optimizations.
28276
28277         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
28278         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
28279         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
28280
28281 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
28282
28283         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
28284         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
28285         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
28286         for gcc to avoid warnings.
28287         * inet/Makefile (tests): Add tst-checks.
28288         * inet/tst-checks.c: New file.
28289
28290         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
28291         warning.
28292
28293         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
28294         __wmemcmp_sse2.
28295
28296         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
28297         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
28298
28299         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
28300
28301 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
28302
28303         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
28304         problem.
28305
28306         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
28307
28308 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
28309
28310         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
28311         conditional on GCC version.
28312         (__arch_compare_and_exchange_val_8_acq)
28313         (__arch_compare_and_exchange_val_16_acq)
28314         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
28315         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
28316         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
28317
28318 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
28319
28320         * sysdeps/sh/backtrace.c: New file.
28321
28322 2011-12-02  Andreas Schwab  <schwab@redhat.com>
28323
28324         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
28325         parenthesis.
28326
28327 2011-12-01  Andreas Schwab  <schwab@redhat.com>
28328
28329         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
28330         falling back to utime.
28331
28332 2011-11-30  Andreas Schwab  <schwab@redhat.com>
28333
28334         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
28335         expectations for float.
28336
28337 2011-11-29  Andreas Schwab  <schwab@redhat.com>
28338
28339         * locale/weight.h (findidx): Add parameter len.
28340         * locale/weightwc.h (findidx): Likewise.
28341         * posix/fnmatch_loop.c (FCT): Adjust caller.
28342         * posix/regcomp.c (build_equiv_class): Likewise.
28343         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
28344         * posix/regexec.c (check_node_accept_bytes): Likewise.
28345         * string/strcoll_l.c (STRCOLL): Likewise.
28346         * string/strxfrm_l.c (STRXFRM): Likewise.
28347
28348 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
28349
28350         * Makefile.in: Remove CVSOPT handling.
28351         * configure.in: Remove use of AC_REVISION.
28352         * iconvdata/Makefile (distribute): No need to filter out CVS.
28353         * scripts/list-sources.sh: Remove CVS, subversion and monotone
28354         handling.
28355
28356 2011-11-16  Andreas Schwab  <schwab@redhat.com>
28357
28358         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
28359         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
28360         [USE_AS_STRNCASECMP_L]: Likewise.
28361         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
28362         NO_TLS_DIRECT_SEG_REFS.
28363         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
28364         Fix argument offsets for non-PIC.
28365         [USE_AS_STRNCASECMP_L]: Likewise.
28366         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
28367         NO_TLS_DIRECT_SEG_REFS.
28368
28369 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
28370
28371         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
28372         O_CLOEXEC.
28373         * locale/loadlocale.c (_nl_load_locale): Likewise.
28374
28375 2011-11-15  Andreas Schwab  <schwab@redhat.com>
28376
28377         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
28378         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
28379         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
28380         (SYSCALL_GETTIME): Set errno on error.
28381
28382         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
28383         count references to noai6ai_cached.
28384
28385 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
28386
28387         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
28388
28389         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
28390         FD_CLOEXEC for /proc/self/maps.
28391
28392         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
28393         FD_CLOEXEC for /proc/meminfo.
28394
28395         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
28396         gai.conf.
28397
28398         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
28399         FD_CLOEXEC for given file.
28400
28401         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
28402
28403         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
28404         FD_CLOEXEC for /etc/hosts.
28405         (_gethtent): Likewise.
28406
28407         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
28408
28409         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
28410         cancellation and set FD_CLOEXEC for /etc/netgroup.
28411
28412         * nss/nss_files/files-key.c (search): Don't allow cancellation when
28413         reading /etc/publickey.
28414
28415         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
28416         allow cancellation when reading /etc/group.
28417
28418         * nss/nss_files/files-alias.c (internal_setent): Don't allow
28419         cancellation.
28420         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
28421
28422         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
28423         when using data file.
28424
28425         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
28426
28427         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
28428         (write_nis_obj): Use "c" and "e" in fopen.
28429
28430         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
28431
28432         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
28433
28434         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
28435
28436         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
28437
28438         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
28439         locale.alias.
28440
28441         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
28442
28443         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
28444
28445         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
28446
28447         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
28448         file parsing and set FD_CLOEXEC.
28449
28450 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
28451
28452         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
28453
28454 2011-11-14  Andreas Schwab  <schwab@redhat.com>
28455
28456         * malloc/arena.c (arena_get2): Don't call reused_arena when
28457         _int_new_arena failed.
28458
28459 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
28460
28461         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
28462         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
28463         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
28464         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
28465         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
28466         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
28467         to compile strcasecmp and strncasecmp.
28468         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
28469         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
28470
28471         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
28472
28473 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
28474
28475         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
28476         locale-defines.sym to gen-as-const-headers.
28477         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
28478         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
28479         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
28480         to compile strcasecmp and strncasecmp.
28481         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
28482         strcasecmp_l and strncasecmp_l.
28483         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
28484         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
28485         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
28486         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
28487         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
28488         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
28489         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
28490         * sysdeps/i386/i686/multiarch/strncase.S: New file.
28491         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
28492         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
28493         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
28494
28495 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
28496
28497         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
28498         result of SYSDEP_GETTIME_CPU to retval.
28499         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
28500         parameter list to macro.  Remove trailing semicolon.  Adjust users.
28501
28502         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
28503         variable.
28504
28505         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
28506         mantissa words.
28507         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
28508
28509         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
28510         from unused variable.
28511
28512         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
28513         DWARF definitions.
28514         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
28515         for assembling.
28516
28517         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
28518         over namespaces.
28519
28520         * sunrpc/rpc_prot.c (rejected): Fix case value.
28521
28522         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
28523         unsigned long long int to avoid warnings in shift.
28524
28525         * posix/regex_internal.c (re_string_reconstruct): Actually use result
28526         of use of trans.
28527         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
28528         variable tmp.
28529
28530         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
28531         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
28532         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
28533
28534         * nis/nis_table.c (nis_list): Use variable of correct type for
28535         result of __follow_path call.
28536
28537 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28538
28539         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
28540         of math functions ceil, trunc, floor, round, and sqrt, when
28541         avaliable on the platform.
28542         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
28543         name clash.
28544         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
28545         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
28546         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
28547
28548 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
28549
28550         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
28551         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
28552
28553 2011-11-11  Roland McGrath  <roland@hack.frob.com>
28554
28555         * include/unistd.h: Fix __readlink return type.
28556         Reported by Chris Metcalf <cmetcalf@tilera.com>.
28557
28558 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
28559
28560         * stdlib/ucontext.h: Undo last change for makecontext.
28561
28562 2011-11-11  Andreas Schwab  <schwab@redhat.com>
28563
28564         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
28565
28566         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
28567         * setjmp/setjmp.h: Mark functions as non-leaf.
28568         * setjmp/bits/setjmp2.h: Likewise.
28569         * stdlib/ucontext.h: Likewise.
28570
28571 2011-11-10  Andreas Schwab  <schwab@redhat.com>
28572
28573         * malloc/arena.c (_int_new_arena): Don't increment narenas.
28574         (reused_arena): Don't check arena limit.
28575         (arena_get2): Atomically check arena limit.
28576
28577 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
28578
28579         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
28580         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
28581
28582         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
28583         instructions.
28584
28585 2011-11-07  Andreas Schwab  <schwab@redhat.com>
28586
28587         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
28588         handler when locking.
28589
28590         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
28591         Fix size of allocated buffer.
28592
28593 2011-11-04  Andreas Schwab  <schwab@redhat.com>
28594
28595         [BZ #10103]
28596         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
28597         declarations for long double functions.
28598         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
28599
28600         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
28601
28602 2011-11-03  Andreas Schwab  <schwab@redhat.com>
28603
28604         * nscd/nscd.c (main): Don't start AVC thread until credentials are
28605         installed.
28606
28607         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
28608         is disabled.
28609
28610 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28611
28612         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
28613
28614 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
28615
28616         * include/alloca.h (stackinfo_alloca_round): Define.
28617         (extend_alloca): Use it.
28618         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
28619         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
28620         here.
28621
28622         * scripts/check-local-headers.sh: Ignore libaudit.h.
28623
28624         * nscd/Makefile (extra-objs): Make recursively expanded.
28625
28626 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
28627
28628         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
28629         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
28630
28631         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
28632         * posix/tst-rfc3484-2.c: Likewise.
28633         * posix/tst-rfc3484-3.c: Likewise.
28634
28635         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
28636         process_vm_writev.
28637         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
28638         process_vm_writev.
28639         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
28640         process_vm_writev from libc using GLIBC_2.15 version.
28641
28642         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
28643
28644 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
28645
28646         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
28647         stack usage.
28648
28649 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
28650
28651         [BZ #13367]
28652         * nss/getent.c (initgroups_keys): Show error message in case no group
28653         names are given.
28654
28655         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
28656         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
28657         __bump_nl_timestamp.
28658         * nscd/connections (nscd_init): When host database is served open
28659         netlink socket and request notification about configuration changes.
28660         (main_loop_poll): Track netlink file descriptor and bump timestamp
28661         in case data becomes available.
28662         (main_loop_epoll): Likewise.
28663         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
28664         (database_pers_head): Add extra_data fileds.
28665         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
28666         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
28667         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
28668         Adjust caller.
28669         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
28670         in6ai data, call __free_in6ai.
28671         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
28672         Add -DHAVE_NETLINK.
28673         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
28674         interface information.  Reuse previous data if netlink timestamp
28675         is not changed.
28676         (__bump_nl_timestamp): New function.
28677         (__free_in6ai): New function.
28678
28679 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
28680
28681         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
28682         close_not_cancel_no_status here.
28683         (__check_pf): Reorganize code a bit to not call close twice if OOM.
28684
28685 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
28686
28687         [BZ #13276]
28688         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
28689         return value.
28690
28691         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
28692         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
28693         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
28694
28695 2011-07-03  Andreas Jaeger  <aj@suse.de>
28696
28697         [BZ #10709]
28698         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
28699         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
28700         * math/libm-test.inc (sin_test): Add test case.
28701
28702 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
28703
28704         [BZ #13337]
28705         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
28706         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
28707
28708         * elf/chroot_canon.c (chroot_canon): Cleanups.
28709
28710         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
28711
28712         [BZ #13335]
28713         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
28714         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
28715
28716         * string/test-strchr.c: Make usable for strchrnul testing.
28717         * string/test-strchrnul.c: New file.
28718         * string/Makefile (strop-tests): Add strchrnul.
28719
28720         * po/it.po: Update from translation team.
28721         * po/es.po: Likewise.
28722
28723 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
28724
28725         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
28726         the three constants needed as parameters.  Drop the others.
28727         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
28728         __m128i_strloadu_tolower.
28729         Create and initialize variable zero and use it in all the places
28730         where _mm_setzero_si128 was used.
28731
28732         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
28733         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
28734         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
28735         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
28736         anymore.
28737         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
28738         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
28739         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
28740         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
28741         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
28742         __mpranred, __mptan.
28743         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
28744         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
28745         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
28746         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
28747         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
28748         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
28749         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
28750         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
28751         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
28752
28753 2011-10-28  Andreas Schwab  <schwab@redhat.com>
28754
28755         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
28756         redefine if SHARED.
28757         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
28758
28759         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
28760         wide char related routines to wcsmbs subdir.
28761
28762 2011-10-27  Andreas Schwab  <schwab@redhat.com>
28763
28764         [BZ #13344]
28765         * misc/sys/cdefs.h (__THROWNL): Define.
28766         * posix/unistd.h: Use __THREADNL instead of __THREAD
28767         for memory synchronization functions.
28768
28769 2011-10-26  Roland McGrath  <roland@hack.frob.com>
28770
28771         [BZ #13349]
28772         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
28773         doesn't exist.
28774         * manual/stdio.texi (Obstack Streams): Node removed.
28775
28776 2011-10-26  Andreas Schwab  <schwab@redhat.com>
28777
28778         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
28779         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
28780         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
28781
28782         * math/math_private.h (math_force_eval): Allow non-addressable
28783         arguments.
28784         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
28785
28786 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28787
28788         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
28789         file is not needed.
28790
28791         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
28792         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
28793         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
28794         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
28795         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
28796         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
28797         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
28798         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
28799         Add AVX variants.
28800         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
28801         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
28802         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
28803         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
28804         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
28805         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
28806         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
28807         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
28808         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
28809         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
28810         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
28811         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
28812         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
28813         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
28814         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
28815         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
28816         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
28817         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
28818         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
28819
28820         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
28821         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
28822
28823         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
28824         place.  Use VEX encoding when compiling for AVX.
28825
28826 2011-10-25  Andreas Schwab  <schwab@redhat.com>
28827
28828         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
28829         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
28830
28831         * string/test-strchr.c (do_test): Don't generate NUL bytes.
28832
28833 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28834
28835         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
28836         useless if() expression.
28837         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
28838         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
28839         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
28840         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
28841         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
28842         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
28843         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
28844         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
28845         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
28846         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
28847         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
28848         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
28849         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
28850         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
28851         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
28852         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
28853         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
28854         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
28855         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
28856
28857         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
28858
28859 2011-10-25  Andreas Schwab  <schwab@redhat.com>
28860
28861         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
28862         condition.
28863         * elf/dl-fini.c (_dl_sort_fini): Likewise.
28864
28865 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28866
28867         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
28868         .text section.  Avoid duplicate constants.
28869         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
28870         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28871         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
28872         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28873         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28874         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28875         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28876         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28877         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
28878         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
28879         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
28880         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
28881         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
28882         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
28883         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
28884         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
28885         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
28886         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
28887         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
28888         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28889         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
28890         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
28891         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
28892         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
28893         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
28894         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
28895         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
28896         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
28897         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
28898         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
28899         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
28900         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
28901         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
28902         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
28903         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
28904         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
28905         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
28906         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
28907         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
28908         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
28909         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
28910         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
28911         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
28912         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
28913         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
28914
28915 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
28916
28917         * sysdeps/x86_64/dla.h: Move to ...
28918         * sysdeps/x86_64/fpu/dla.h: ...here.
28919         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
28920         situations.  Use __builtin_fma only for gcc 4.6 and up.
28921
28922         * config.make.in: Add have-mfma4 entry.
28923         * configure.in: Substitute libc_cv_cc_fma4.
28924         * math/Makefile (dbl-only-routines): Add sincostab.
28925         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
28926         Use __sincostab not sincos.
28927         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
28928         name is a macro.
28929         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28930         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28931         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28932         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
28933         using __copysign.
28934         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
28935         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
28936         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
28937         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
28938         and __inv.
28939         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
28940         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
28941         __copysign.
28942         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
28943         define aliases when function name is a macro.
28944         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
28945         sysdeps/ieee754/dbl-64/sincos.tbl.
28946         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
28947         fma4-enabled routines.
28948         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
28949         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
28950         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
28951         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
28952         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
28953         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
28954         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
28955         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
28956         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
28957         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
28958         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
28959         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
28960         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
28961         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
28962         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
28963         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
28964         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
28965         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
28966         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
28967         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
28968         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
28969         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
28970         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
28971         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
28972         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
28973         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
28974         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
28975         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
28976         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
28977         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
28978
28979         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
28980         rename.
28981         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28982         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28983         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28984         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28985         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28986         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28987         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
28988         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
28989
28990 2011-10-24  Andreas Schwab  <schwab@redhat.com>
28991
28992         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
28993
28994 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
28995
28996         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
28997
28998         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
28999         prediction.
29000         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
29001
29002         * string/strnlen.c: Don't define STRNLEN, reverse logic.
29003         Remove unused variable magic_bits.
29004         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
29005
29006         * string/strnlen.c: Define and use STRNLEN macro.
29007         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
29008         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
29009         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
29010         * wcsmbs/wcslen.c: Define and use WCSLEN.
29011         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
29012         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
29013         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
29014         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
29015         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
29016         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
29017         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
29018
29019 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29020
29021         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29022         strnlen-sse2-no-bsf.
29023         Rename strlen-no-bsf to strlen-sse2-no-bsf.
29024         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
29025         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
29026         Add strnlen support.
29027         (USE_AS_STRNLEN): New macro.
29028         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
29029         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
29030         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
29031         * sysdeps/x86_64/wcslen.S: New file.
29032
29033 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
29034
29035         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
29036         XMM-moves are used for copying on small sizes.
29037
29038 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29039
29040         * wcsmbs/Makefile (strop-tests): Add wcschr.
29041         * wcsmbs/test-wcschr.c: New file.
29042         * string/test-strchr.c: Update.
29043         Add wcschr support.
29044         (WIDE): New macro.
29045
29046 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29047
29048         * wcsmbs/Makefile (strop-tests): Add wcslen.
29049         * wcsmbs/test-wcslen.c: New file.
29050         * string/test-strlen.c: Update.
29051         Add wcslen support.
29052         (WIDE): New macro.
29053
29054 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
29055
29056         * po/it.po: Update from translation team.
29057
29058 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29059
29060         * sysdeps/x86_64/wcscmp.S: Update.
29061         Fix wrong comparison semantics.
29062         wcscmp shall use signed comparison not unsigned.
29063         Don't use substraction to avoid overflow bug.
29064         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
29065         * wcsmbc/wcscmp.c: Likewise.
29066         * string/test-strcmp.c: Likewise.
29067         Add new tests to check cases with negative values.
29068
29069 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
29070
29071         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
29072         * sysdeps/x86_64/dla.h: ...here.  New file.
29073         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
29074         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
29075         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29076         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29077         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29078         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
29079         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29080         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
29081         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
29082
29083 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
29084
29085         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
29086         __ynl_finite aliases.
29087
29088 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
29089
29090         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29091
29092         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
29093         define DLA_FMA.
29094         [DLA_FMA] (EMULV): Use DLA_FMA.
29095         [DLA_FMA] (MUL12): Use EMULV.
29096         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
29097         that are not needed.
29098         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
29099         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29100         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29101         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29102         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29103         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
29104         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
29105
29106 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
29107
29108         * math/s_nan.c: Undef __nan.
29109         * math/s_nanf.c: Undef __nanf.
29110         * math/s_nanl.c: Undef __nanl.
29111         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
29112         "math_private.h".
29113
29114 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
29115
29116         * math/s_catan.c: Add branch predictions.
29117         * math/s_catanf.c: Likewise.
29118         * math/s_catanh.c: Likewise.
29119         * math/s_catanhf.c: Likewise.
29120         * math/s_catanhl.c: Likewise.
29121         * math/s_catanl.c: Likewise.
29122         * math/s_cexp.c: Likewise.
29123         * math/s_cexpf.c: Likewise.
29124         * math/s_cexpl.c: Likewise.
29125         * math/s_clog.c: Likewise.
29126         * math/s_clog10.c: Likewise.
29127         * math/s_clog10f.c: Likewise.
29128         * math/s_clog10l.c: Likewise.
29129         * math/s_clogf.c: Likewise.
29130         * math/s_clogl.c: Likewise.
29131         * math/s_csqrt.c: Likewise.
29132         * math/s_csqrtf.c: Likewise.
29133         * math/s_csqrtl.c: Likewise.
29134         * math/s_ctanf.c: Likewise.
29135         * math/s_ctanh.c: Likewise.
29136         * math/s_ctanhf.c: Likewise.
29137         * math/s_ctanhl.c: Likewise.
29138         * math/s_ctanl.c: Likewise.
29139
29140         * math/math_private.h: Define __nan, __nanf, __nanl.
29141         * math/s_cacosh.c: Include <math_private.h>.
29142         * math/s_cacoshl.c: Likewise.
29143         * math/s_casinh.c: Likewise.
29144         * math/s_casinhf.c: Likewise.
29145         * math/s_casinhl.c: Likewise.
29146         * math/s_ccos.c: Rely entire on ccosh.
29147         * math/s_ccosf.c: Rely entire on ccoshf.
29148         * math/s_ccosl.c: Rely entirely on ccoshl.
29149         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
29150         Remove tests for FE_INVALID.
29151         * math/s_ccoshf.c: Likewise.
29152         * math/s_ccoshl.c: Likewise.
29153         * math/s_csin.c: Likewise.
29154         * math/s_csinf.c: Likewise.
29155         * math/s_csinh.c Likewise.
29156         * math/s_csinhf.c: Likewise.
29157         * math/s_csinhl.c: Likewise.
29158         * math/s_csinl.c: Likewise.
29159         * math/s_ctan.c: Likewise.
29160         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
29161         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
29162         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
29163
29164 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
29165
29166         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
29167         compilation problems.
29168
29169         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
29170         __builtin_expect.
29171
29172 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
29173
29174         * sysdeps/i386/configure.in: Test for -mfma4 option.
29175         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
29176         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
29177         COMMON_CPUID_INDEX_80000001.
29178         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
29179         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
29180         use it if FMA3 is not supported.
29181         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
29182
29183         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
29184         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
29185
29186 2011-10-20  Andreas Schwab  <schwab@redhat.com>
29187
29188         [BZ #12892]
29189         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
29190         it would create a cycle with a link time dependency.
29191
29192 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
29193
29194         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
29195         instruction.
29196         * string/Makefile (strop-tests): Add rawmemchr.
29197         * string/test-rawmemchr.c: New file.
29198
29199         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
29200         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
29201         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
29202         when compiling str{,n}casecmp and when AVX is available.  Hook up
29203         new optimized code in initializers.
29204
29205 2011-10-19  Andreas Schwab  <schwab@redhat.com>
29206
29207         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
29208         __feraiseexcept instead of feraiseexcept.
29209
29210 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
29211
29212         * math/math_private.h: Define defaults for libc_fetestexcept and
29213         libc_feupdateenv.
29214         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
29215         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
29216         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
29217         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
29218         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
29219         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
29220         libc_fetestexcept and libc_feupdateenv.
29221
29222         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
29223         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
29224         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
29225         * sysdeps/x86_64/fpu/math_private.h: Define special version of
29226         libc_feholdexcept_setround.
29227
29228         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
29229         Add s_nearbyint-c and s_nearbyintf-c.
29230         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
29231         nearbyintf inlines.
29232         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
29233         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
29234         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
29235         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
29236
29237         * math/math_private.h: Define defaults for libc_fegetround,
29238         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
29239         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
29240         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
29241         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
29242         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
29243         standard functions.
29244         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
29245         Remove comments and hacks for old compiler versions.
29246         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
29247         libc_fegetround, libc_fesetround, libc_feholdexcept, and
29248         libc_feholdexceptl.
29249
29250 2011-10-18  Andreas Schwab  <schwab@redhat.com>
29251
29252         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
29253         (__feraiseexcept_renamed): Add __NTH.
29254         (feraiseexcept): Add __NTH.  Rename local variables to fix
29255         namespace violations.
29256
29257 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
29258
29259         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
29260
29261         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
29262
29263         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
29264         recently added interfaces.
29265         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
29266
29267         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
29268         about macro parameter expansion.
29269
29270         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
29271         __NO_MATH_INLINES is defined.  Cleanups.
29272
29273         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
29274         and __floorf is target has SSE4.1.
29275         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
29276         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
29277         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
29278         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
29279
29280         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
29281         name.
29282         (floorf): Likewise.
29283
29284         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
29285
29286 2011-10-17  Andreas Schwab  <schwab@redhat.com>
29287
29288         * misc/sys/cdefs.h: Fix last change.
29289
29290         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
29291         database lookup.
29292
29293 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
29294
29295         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
29296
29297         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
29298         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
29299         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
29300         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
29301         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
29302         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
29303         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
29304         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
29305         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
29306         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
29307         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
29308         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
29309         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
29310         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
29311         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
29312         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
29313         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
29314         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
29315         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
29316         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
29317         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
29318         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
29319
29320         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
29321         ceil, ceilf, floor, floorf.
29322
29323         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
29324         Perform IRELATIVE relocations last.
29325
29326         * elf/do-rel.h: Add another parameter nrelative, replacing the
29327         local variable with the same name.  Change name of the function
29328         to end in Rel or Rela (uppercase).
29329         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
29330         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
29331         elf_dynamic_do_##reloc function.
29332
29333 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
29334
29335         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
29336         is sufficient, at least on modern CPUs.
29337
29338         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
29339
29340         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
29341         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
29342
29343         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
29344         __expl_finite.
29345         * math/bits/math-finite.h: Add entries for exp.
29346         * math/e_expl.c: Add __*_finite alias.
29347         * sysdeps/i386/fpu/e_exp.S: Likewise.
29348         * sysdeps/i386/fpu/e_expf.S: Likewise.
29349         * sysdeps/i386/fpu/e_expl.c: Likewise.
29350         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
29351         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
29352         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
29353         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
29354         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
29355         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
29356         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
29357
29358         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
29359         is sufficient, at least on modern CPUs.
29360
29361         * ctype/ctype-info.c (__ctype_init): Define.
29362         * include/ctype.h (__ctype_init): Declare.
29363         (__ctype_b_loc): The variable is always initialized.
29364         (__ctype_toupper_loc): Likewise.
29365         (__ctype_tolower_loc): Likewise.
29366         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
29367         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
29368
29369 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
29370
29371         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
29372
29373         * configure.in: Also look in $cxxmachine/include for C++ system
29374         headers.
29375
29376 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29377
29378         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
29379         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
29380         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
29381         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
29382         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
29383         (USE_AS_WMEMCMP): New macro.
29384         Fixing indents.
29385         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
29386         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
29387         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
29388         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
29389         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29390         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
29391         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
29392         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
29393         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
29394         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
29395         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
29396         (USE_AS_WMEMCMP): New macro.
29397         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
29398         * sysdeps/string/test-memcmp.c: Update.
29399         Fix simple_wmemcmp.
29400         Add new tests.
29401         * wcsmbs/wmemcmp.c: Update.
29402         (WMEMCMP): New macro.
29403         Fix overflow bug.
29404
29405 2011-10-12  Andreas Jaeger  <aj@suse.de>
29406
29407         [BZ #13268]
29408         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
29409
29410 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
29411
29412         * libio/iofwide.c (do_length): Avoid warning.
29413
29414         * ctype/ctype.h (__isctype_f): Add missing __THROW.
29415
29416 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
29417
29418         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
29419
29420         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
29421         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
29422         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
29423         * sysdeps/i386/i686/fpu/e_log.S: New file.
29424         * sysdeps/i386/i686/fpu/e_logf.S: New file.
29425         * sysdeps/i386/i686/fpu/e_logl.S: New file.
29426
29427         * ctype/ctype.h: Add support for inlined isXXX functions when
29428         compiling C++ code.
29429
29430 2011-10-14  Andreas Schwab  <schwab@redhat.com>
29431
29432         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
29433
29434         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
29435
29436 2011-10-13  Roland McGrath  <roland@hack.frob.com>
29437
29438         [BZ #13291]
29439         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
29440
29441 2011-10-13  Andreas Schwab  <schwab@redhat.com>
29442
29443         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
29444         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
29445         feraiseexcept.
29446
29447         * sysdeps/x86_64/memrchr.S: Check for zero size.
29448
29449         * string/stratcliff.c: Add memrchr tests.
29450
29451 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29452
29453         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29454         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
29455         rawmemchr-sse2 rawmemchr-sse2-bsf.
29456         * sysdeps/i386/i686/multiarch/memchr.S: New file.
29457         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
29458         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
29459         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
29460         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
29461         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
29462         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
29463         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
29464         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
29465         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
29466         * string/memrchr.c (MEMRCHR): New macro.
29467
29468 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
29469
29470         Add integration with gcc's -ffinite-math-only and optimize wrapper
29471         functions in libm.
29472         * Versions.def: Define GLIBC_2.15 version for libm.
29473         * math/Makefile (headers): Add bits/math-finite.h.
29474         * math/bits/math-finite.h: New file.
29475         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
29476         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
29477         * math/e_acoshl.c: Add __*_finite alias.
29478         * math/e_acosl.c: Likewise.
29479         * math/e_asinl.c: Likewise.
29480         * math/e_atan2l.c: Likewise.
29481         * math/e_atanhl.c: Likewise.
29482         * math/e_coshl.c: Likewise.
29483         * math/e_exp10.c: Likewise.
29484         * math/e_exp10f.c: Likewise.
29485         * math/e_exp10l.c: Likewise.
29486         * math/e_exp2l.c: Likewise.
29487         * math/e_fmodl.c: Likewise.
29488         * math/e_gammal_r.c: Likewise.
29489         * math/e_hypotl.c: Likewise.
29490         * math/e_j0l.c: Likewise.
29491         * math/e_j1l.c: Likewise.
29492         * math/e_jnl.c: Likewise.
29493         * math/e_lgammal_r.c: Likewise.
29494         * math/e_log10l.c: Likewise.
29495         * math/e_log2l.c: Likewise.
29496         * math/e_logl.c: Likewise.
29497         * math/e_powl.c: Likewise.
29498         * math/e_sinhl.c: Likewise.
29499         * math/e_sqrtl.c: Likewise.
29500         * math/e_scalb.c: Completely rewritten and optimized.
29501         * math/e_scalbf.c: Likewise.
29502         * math/e_scalbl.c: Likewise.
29503         * math/w_acos.c: Likewise.
29504         * math/w_acosf.c: Likewise.
29505         * math/w_acosl.c: Likewise.
29506         * math/w_acosh.c: Likewise.
29507         * math/w_acoshf.c: Likewise.
29508         * math/w_acoshl.c: Likewise.
29509         * math/w_asin.c: Likewise.
29510         * math/w_asinf.c: Likewise.
29511         * math/w_asinl.c: Likewise.
29512         * math/w_atan2.c: Likewise.
29513         * math/w_atan2f.c: Likewise.
29514         * math/w_atan2l.c: Likewise.
29515         * math/w_atanh.c: Likewise.
29516         * math/w_atanhf.c: Likewise.
29517         * math/w_atanhl.c: Likewise.
29518         * math/w_exp10.c: Likewise.
29519         * math/w_exp10f.c: Likewise.
29520         * math/w_exp10l.c: Likewise.
29521         * math/w_fmod.c: Likewise.
29522         * math/w_fmodf.c: Likewise.
29523         * math/w_fmodl.c: Likewise.
29524         * math/w_j0.c: Likewise.
29525         * math/w_j0f.c: Likewise.
29526         * math/w_j0l.c: Likewise.
29527         * math/w_j1.c: Likewise.
29528         * math/w_j1f.c: Likewise.
29529         * math/w_j1l.c: Likewise.
29530         * math/w_jn.c: Likewise.
29531         * math/w_jnf.c: Likewise.
29532         * math/w_log.c: Likewise.
29533         * math/w_logf.c: Likewise.
29534         * math/w_logl.c: Likewise.
29535         * math/w_log10.c: Likewise.
29536         * math/w_log10f.c: Likewise.
29537         * math/w_log10l.c: Likewise.
29538         * math/w_log2.c: Likewise.
29539         * math/w_log2f.c: Likewise.
29540         * math/w_log2l.c: Likewise.
29541         * math/w_pow.c: Likewise.
29542         * math/w_powf.c: Likewise.
29543         * math/w_powl.c: Likewise.
29544         * math/w_remainder.c: Likewise.
29545         * math/w_remainderf.c: Likewise.
29546         * math/w_remainderl.c: Likewise.
29547         * math/w_scalb.c: Likewise.
29548         * math/w_scalbf.c: Likewise.
29549         * math/w_scalbl.c: Likewise.
29550         * math/w_sqrt.c: Likewise.
29551         * math/w_sqrtf.c: Likewise.
29552         * math/w_sqrtl.c: Likewise.
29553         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
29554         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
29555         used.
29556         * math/math_private.h: Declare __kernel_standard_f.
29557         * math/w_cosh.c: Remove cruft and optimize a bit.
29558         * math/w_coshf.c: Likewise.
29559         * math/w_coshl.c: Likewise.
29560         * math/w_exp2.c: Likewise.
29561         * math/w_exp2f.c: Likewise.
29562         * math/w_exp2l.c: Likewise.
29563         * math/w_hypot.c: Likewise.
29564         * math/w_hypotf.c: Likewise.
29565         * math/w_hypotl.c: Likewise.
29566         * math/w_lgamma.c: Likewise.
29567         * math/w_lgamma_r.c: Likewise.
29568         * math/w_lgammaf.c: Likewise.
29569         * math/w_lgammaf_r.c: Likewise.
29570         * math/w_lgammal.c: Likewise.
29571         * math/w_lgammal_r.c: Likewise.
29572         * math/w_sinh.c: Likewise.
29573         * math/w_sinhf.c: Likewise.
29574         * math/w_sinhl.c: Likewise.
29575         * math/w_tgamma.c: Likewise.
29576         * math/w_tgammaf.c: Likewise.
29577         * math/w_tgammal.c: Likewise.
29578         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
29579         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
29580         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
29581         Minor optimizations.  Pretty printing.  Remove cruft.
29582         * sysdeps/i386/fpu/e_acosf.S: Likewise.
29583         * sysdeps/i386/fpu/e_acosh.S: Likewise.
29584         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
29585         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
29586         * sysdeps/i386/fpu/e_acosl.c: Likewise.
29587         * sysdeps/i386/fpu/e_asin.S: Likewise.
29588         * sysdeps/i386/fpu/e_asinf.S: Likewise.
29589         * sysdeps/i386/fpu/e_atan2.S: Likewise.
29590         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
29591         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
29592         * sysdeps/i386/fpu/e_atanh.S: Likewise.
29593         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
29594         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
29595         * sysdeps/i386/fpu/e_exp10.S: Likewise.
29596         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
29597         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
29598         * sysdeps/i386/fpu/e_exp2.S: Likewise.
29599         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
29600         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
29601         * sysdeps/i386/fpu/e_fmod.S: Likewise.
29602         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
29603         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
29604         * sysdeps/i386/fpu/e_hypot.S: Likewise.
29605         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
29606         * sysdeps/i386/fpu/e_log.S: Likewise.
29607         * sysdeps/i386/fpu/e_log10.S: Likewise.
29608         * sysdeps/i386/fpu/e_log10f.S: Likewise.
29609         * sysdeps/i386/fpu/e_log10l.S: Likewise.
29610         * sysdeps/i386/fpu/e_log2.S: Likewise.
29611         * sysdeps/i386/fpu/e_log2f.S: Likewise.
29612         * sysdeps/i386/fpu/e_log2l.S: Likewise.
29613         * sysdeps/i386/fpu/e_logf.S: Likewise.
29614         * sysdeps/i386/fpu/e_logl.S: Likewise.
29615         * sysdeps/i386/fpu/e_pow.S: Likewise.
29616         * sysdeps/i386/fpu/e_powf.S: Likewise.
29617         * sysdeps/i386/fpu/e_powl.S: Likewise.
29618         * sysdeps/i386/fpu/e_remainder.S: Likewise.
29619         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
29620         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
29621         * sysdeps/i386/fpu/e_scalb.S: Likewise.
29622         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
29623         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
29624         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
29625         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
29626         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
29627         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
29628         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
29629         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29630         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
29631         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
29632         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
29633         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
29634         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
29635         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
29636         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
29637         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
29638         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
29639         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29640         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
29641         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
29642         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29643         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
29644         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
29645         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
29646         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29647         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
29648         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
29649         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
29650         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
29651         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
29652         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
29653         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
29654         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
29655         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
29656         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
29657         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
29658         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
29659         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
29660         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
29661         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
29662         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
29663         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
29664         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
29665         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
29666         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
29667         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
29668         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
29669         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
29670         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
29671         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
29672         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
29673         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
29674         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
29675         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
29676         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
29677         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
29678         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
29679         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
29680         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
29681         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
29682         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
29683         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
29684         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
29685         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
29686         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
29687         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
29688         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
29689         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
29690         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
29691         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
29692         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
29693         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
29694         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
29695         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
29696         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
29697         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
29698         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
29699         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
29700         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
29701         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
29702         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29703         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
29704         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
29705         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
29706         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
29707         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
29708         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
29709         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
29710         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
29711         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
29712         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
29713         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
29714         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
29715         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
29716         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
29717         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
29718         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
29719         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
29720         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
29721         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
29722         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
29723         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
29724         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
29725         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
29726         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
29727         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
29728         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
29729         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
29730         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
29731         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
29732         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
29733         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
29734         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
29735         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
29736         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
29737         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
29738         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
29739         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
29740         (__isnanf): Likewise.
29741         (__isinf_ns): Likewise.
29742         (__isinf_nsf): Likewise.
29743         (__finite): Likewise.
29744         (__finitef): Likewise.
29745         (__ieee754_sqrt): Define as macro.
29746         (__ieee754_sqrtf): Define as macro.
29747         (__ieee754_sqrtl): Define as macro.
29748         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
29749         inlined copy.
29750         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
29751         __FINITE_MATH_ONLY__ consistent.
29752         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
29753
29754 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
29755
29756         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
29757         of rawmemchr.
29758
29759         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
29760
29761 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
29762
29763         * po/ja.po: Update from translation team.
29764
29765 2011-10-08  Roland McGrath  <roland@hack.frob.com>
29766
29767         * locale/programs/locarchive.c (prepare_address_space): New function.
29768         (create_archive, enlarge_archive, open_archive): Use it.
29769
29770         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
29771         inside [SHARED], where it is used.
29772
29773         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
29774
29775         * nss/getent.c (netgroup_keys): Remove unused variable.
29776         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
29777
29778 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
29779
29780         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
29781         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
29782         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
29783         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
29784         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
29785         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
29786         * math/Makefile (libm-calls): Add s_isinf_ns.
29787         * math/divtc3.c: Use __isinf_nsl instead of isinf.
29788         * math/multc3.c: Likewise.
29789         * math/s_casin.c: Likewise.
29790         * math/s_casinf.c: Likewise.
29791         * math/s_casinl.c: Likewise.
29792         * math/s_ccos.c: Likewise.
29793         * math/s_ccosf.c: Likewise.
29794         * math/s_ccosl.c: Likewise.
29795         * math/s_ctan.c: Likewise.
29796         * math/s_ctanf.c: Likewise.
29797         * math/s_ctanh.c: Likewise.
29798         * math/s_ctanhf.c: Likewise.
29799         * math/s_ctanhl.c: Likewise.
29800         * math/s_ctanl.c: Likewise.
29801         * math/w_fmod.c: Likewise.
29802         * math/w_fmodf.c: Likewise.
29803         * math/w_fmodl.c: Likewise.
29804         * math/w_remainder.c: Likewise.
29805         * math/w_remainderf.c: Likewise.
29806         * math/w_remainderl.c: Likewise.
29807         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
29808         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
29809         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
29810         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
29811         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
29812         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
29813         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
29814         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
29815
29816         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
29817         of the number.
29818         * stdio-common/printf_fphex.c: Likewise.
29819         * stdio-common/printf_size.c: Likewise.
29820
29821         * math/e_exp10.c: Include math_private.h using <...> not "...".
29822         * math/e_exp10f.c: Likewise.
29823         * math/e_exp10l.c: Likewise.
29824         * math/e_exp2l.c: Likewise.
29825         * math/e_j0l.c: Likewise.
29826         * math/e_j1l.c: Likewise.
29827         * math/e_jnl.c: Likewise.
29828         * math/e_lgammal_r.c: Likewise.
29829         * math/e_rem_pio2l.c: Likewise.
29830         * math/e_scalb.c: Likewise.
29831         * math/e_scalbf.c: Likewise.
29832         * math/e_scalbl.c: Likewise.
29833         * math/k_cosl.c: Likewise.
29834         * math/k_sinl.c: Likewise.
29835         * math/k_tanl.c: Likewise.
29836         * math/s_cacoshf.c: Likewise.
29837         * math/s_catan.c: Likewise.
29838         * math/s_catanf.c: Likewise.
29839         * math/s_catanh.c: Likewise.
29840         * math/s_catanhf.c: Likewise.
29841         * math/s_catanhl.c: Likewise.
29842         * math/s_catanl.c: Likewise.
29843         * math/s_ccosh.c: Likewise.
29844         * math/s_ccoshf.c: Likewise.
29845         * math/s_ccoshl.c: Likewise.
29846         * math/s_cexp.c: Likewise.
29847         * math/s_cexpf.c: Likewise.
29848         * math/s_cexpl.c: Likewise.
29849         * math/s_clog.c: Likewise.
29850         * math/s_clog10.c: Likewise.
29851         * math/s_clog10f.c: Likewise.
29852         * math/s_clog10l.c: Likewise.
29853         * math/s_clogf.c: Likewise.
29854         * math/s_clogl.c: Likewise.
29855         * math/s_csin.c: Likewise.
29856         * math/s_csinf.c: Likewise.
29857         * math/s_csinh.c: Likewise.
29858         * math/s_csinhf.c: Likewise.
29859         * math/s_csinhl.c: Likewise.
29860         * math/s_csinl.c: Likewise.
29861         * math/s_csqrt.c: Likewise.
29862         * math/s_csqrtf.c: Likewise.
29863         * math/s_csqrtl.c: Likewise.
29864         * math/s_ctan.c: Likewise.
29865         * math/s_ctanf.c: Likewise.
29866         * math/s_ctanh.c: Likewise.
29867         * math/s_ctanhf.c: Likewise.
29868         * math/s_ctanhl.c: Likewise.
29869         * math/s_ctanl.c: Likewise.
29870         * math/s_ldexp.c: Likewise.
29871         * math/s_ldexpf.c: Likewise.
29872         * math/s_ldexpl.c: Likewise.
29873         * math/s_significand.c: Likewise.
29874         * math/s_significandf.c: Likewise.
29875         * math/s_significandl.c: Likewise.
29876         * math/w_acos.c: Likewise.
29877         * math/w_acosf.c: Likewise.
29878         * math/w_acosh.c: Likewise.
29879         * math/w_acoshf.c: Likewise.
29880         * math/w_acoshl.c: Likewise.
29881         * math/w_acosl.c: Likewise.
29882         * math/w_asin.c: Likewise.
29883         * math/w_asinf.c: Likewise.
29884         * math/w_asinl.c: Likewise.
29885         * math/w_atan2.c: Likewise.
29886         * math/w_atan2f.c: Likewise.
29887         * math/w_atan2l.c: Likewise.
29888         * math/w_atanh.c: Likewise.
29889         * math/w_atanhf.c: Likewise.
29890         * math/w_atanhl.c: Likewise.
29891         * math/w_cosh.c: Likewise.
29892         * math/w_coshf.c: Likewise.
29893         * math/w_coshl.c: Likewise.
29894         * math/w_dremf.c: Likewise.
29895         * math/w_exp10.c: Likewise.
29896         * math/w_exp10f.c: Likewise.
29897         * math/w_exp10l.c: Likewise.
29898         * math/w_exp2.c: Likewise.
29899         * math/w_exp2f.c: Likewise.
29900         * math/w_fmod.c: Likewise.
29901         * math/w_fmodf.c: Likewise.
29902         * math/w_fmodl.c: Likewise.
29903         * math/w_hypot.c: Likewise.
29904         * math/w_hypotf.c: Likewise.
29905         * math/w_hypotl.c: Likewise.
29906         * math/w_j0.c: Likewise.
29907         * math/w_j0f.c: Likewise.
29908         * math/w_j0l.c: Likewise.
29909         * math/w_j1.c: Likewise.
29910         * math/w_j1f.c: Likewise.
29911         * math/w_j1l.c: Likewise.
29912         * math/w_jn.c: Likewise.
29913         * math/w_jnf.c: Likewise.
29914         * math/w_jnl.c: Likewise.
29915         * math/w_lgamma.c: Likewise.
29916         * math/w_lgamma_r.c: Likewise.
29917         * math/w_lgammaf.c: Likewise.
29918         * math/w_lgammaf_r.c: Likewise.
29919         * math/w_lgammal.c: Likewise.
29920         * math/w_lgammal_r.c: Likewise.
29921         * math/w_log.c: Likewise.
29922         * math/w_log10.c: Likewise.
29923         * math/w_log10f.c: Likewise.
29924         * math/w_log10l.c: Likewise.
29925         * math/w_log2.c: Likewise.
29926         * math/w_log2f.c: Likewise.
29927         * math/w_log2l.c: Likewise.
29928         * math/w_logf.c: Likewise.
29929         * math/w_logl.c: Likewise.
29930         * math/w_pow.c: Likewise.
29931         * math/w_powf.c: Likewise.
29932         * math/w_powl.c: Likewise.
29933         * math/w_remainder.c: Likewise.
29934         * math/w_remainderf.c: Likewise.
29935         * math/w_remainderl.c: Likewise.
29936         * math/w_scalb.c: Likewise.
29937         * math/w_scalbf.c: Likewise.
29938         * math/w_scalbl.c: Likewise.
29939         * math/w_sinh.c: Likewise.
29940         * math/w_sinhf.c: Likewise.
29941         * math/w_sinhl.c: Likewise.
29942         * math/w_sqrt.c: Likewise.
29943         * math/w_sqrtf.c: Likewise.
29944         * math/w_sqrtl.c: Likewise.
29945         * math/w_tgamma.c: Likewise.
29946         * math/w_tgammaf.c: Likewise.
29947         * math/w_tgammal.c: Likewise.
29948
29949         * po/ja.po: Update from translation team.
29950
29951 2011-09-29  Andreas Jaeger  <aj@suse.de>
29952
29953         [BZ #13179]
29954         * sunrpc/netname.c (netname2host): Fix logic.
29955
29956         [BZ #6779]
29957         [BZ #6783]
29958         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
29959         correctly.
29960         * math/w_remainder.c (__remainder): Likewise.
29961         * math/w_remainderf.c (__remainderf): Likewise.
29962         * math/libm-test.inc (remainder_test): Add test cases.
29963
29964 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29965
29966         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
29967         sdiv_qrnnd.
29968
29969 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
29970
29971         * string/test-memcmp.c: Avoid unncessary #defines.
29972         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
29973
29974 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29975
29976         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
29977         Use new sse2 version for core i3 - i7 as it's faster
29978         than sse42 version.
29979         (bit_Prefer_PMINUB_for_stringop): New.
29980         * sysdeps/x86_64/rawmemchr.S: Update.
29981         Replace with faster SSE2 version.
29982         * sysdeps/x86_64/memrchr.S: New file.
29983         * sysdeps/x86_64/memchr.S: Update.
29984         Replace with faster SSE2 version.
29985
29986 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
29987
29988         * elf/dl-load.c (lose): Add cast to avoid warning.
29989
29990 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
29991
29992         * po/ca.po: Update from translation team.
29993
29994         * inet/getnetgrent_r.c: Hook up nscd.
29995         * nscd/Makefile (routines): Add nscd_netgroup.
29996         (nscd-modules): Add netgroupcache.
29997         (CFLAGS-netgroupcache.c): Define.
29998         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
29999         (cache_search): Add const to second parameter.
30000         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
30001         INNETGR.
30002         (dbs): Add netgrdb entry.
30003         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
30004         (verify_persistent_db): Handle netgrdb.
30005         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
30006         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
30007         GETFDNETGR.
30008         (netgroup_response_header): Define.
30009         (innetgroup_response_header): Define.
30010         (datahead): Add netgroup_response_header and innetgroup_response_header
30011         elements.
30012         * nscd/nscd.conf: Add entries for netgroup cache.
30013         * nscd/nscd.h (dbtype): Add netgrdb.
30014         (_PATH_NSCD_NETGROUP_DB): Define.
30015         (netgroup_iov_disabled): Declare.
30016         (xmalloc, xcalloc, xrealloc): Move declarations here.
30017         (cache_search): Adjust prototype.
30018         Add netgroup-related prototypes.
30019         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
30020         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
30021         (__nscd_innetgr): Declare.
30022         * nscd/selinux.c (perms): Use access_vector_t as element type and
30023         add netgroup-related initializers.
30024         * nscd/netgroupcache.c: New file.
30025         * nscd/nscd_netgroup.c: New file.
30026         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
30027         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
30028         For four parameters use innetgr.
30029         * nss/nss_files/files-init.c: Add definition and callback for netgr.
30030         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
30031         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
30032         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
30033
30034         * nscd/connections.c (register_traced_file): Don't register file
30035         for disabled databases.
30036
30037 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
30038
30039         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
30040
30041         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
30042         from tree and freeing node.
30043
30044 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
30045
30046         * nss/nsswitch.c (__nss_database_lookup): Handle
30047         nss_parse_service_list out of memory case.
30048
30049 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
30050
30051         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
30052         out of memory case.
30053
30054 2011-10-04  Andreas Schwab  <schwab@redhat.com>
30055
30056         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
30057         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
30058         pass it down.
30059         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
30060         elf_machine_rela, elf_machine_lazy_rel.
30061         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
30062         (ELF_DYNAMIC_DO_REL): Likewise.
30063         (ELF_DYNAMIC_DO_RELA): Likewise.
30064         (ELF_DYNAMIC_RELOCATE): Likewise.
30065         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
30066         to ELF_DYNAMIC_DO_REL.
30067         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
30068         (dl_main): In trace mode always set __RTLD_NOIFUNC.
30069         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
30070         elf_machine_rela.
30071         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
30072         skip_ifunc, don't call ifunc function if non-zero.
30073         (elf_machine_rela): Likewise.
30074         (elf_machine_lazy_rel): Likewise.
30075         (elf_machine_lazy_rela): Likewise.
30076         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
30077         (elf_machine_lazy_rel): Likewise.
30078         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
30079         Likewise.
30080         (elf_machine_lazy_rel): Likewise.
30081         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
30082         Likewise.
30083         (elf_machine_lazy_rel): Likewise.
30084         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
30085         (elf_machine_lazy_rel): Likewise.
30086         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
30087         (elf_machine_lazy_rel): Likewise.
30088         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
30089         (elf_machine_lazy_rel): Likewise.
30090         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
30091         (elf_machine_lazy_rel): Likewise.
30092         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
30093         (elf_machine_lazy_rel): Likewise.
30094         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
30095         (elf_machine_lazy_rel): Likewise.
30096
30097 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
30098
30099         * nss/nss_files/files-init.c (_nss_files_init): Use static
30100         initialization for all the *_traced_file variables.
30101
30102 2011-09-28  Andreas Schwab  <schwab@redhat.com>
30103
30104         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30105
30106 2011-09-27  Roland McGrath  <roland@hack.frob.com>
30107
30108         [BZ #13226]
30109         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
30110
30111 2011-09-27  Andreas Schwab  <schwab@redhat.com>
30112
30113         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
30114         Reread the line before reparsing it.
30115
30116 2011-09-26  Andreas Schwab  <schwab@redhat.com>
30117
30118         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
30119
30120 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
30121             Maxim Kuvyrkov  <maxim@codesourcery.com>
30122             Joseph Myers  <joseph@codesourcery.com>
30123
30124         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
30125         if needed for __stack_chk_guard.
30126
30127 2011-09-19  Roland McGrath  <roland@hack.frob.com>
30128
30129         * sysdeps/posix/spawni.c (script_execute): Always define it.
30130         It will be optimized away if unused.
30131         (maybe_script_execute): New function.
30132         (__spawni): Call it.
30133
30134         * Makerules: Don't include tls.make.
30135         (config-tls): Always set to thread.
30136         * tls.make.c: File removed.
30137
30138 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
30139
30140         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
30141         * config.make.in (CPPFLAGS-config): New substituted variable.
30142
30143 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
30144
30145         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
30146
30147         [BZ #13192]
30148         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
30149         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
30150
30151 2011-09-15  Roland McGrath  <roland@hack.frob.com>
30152
30153         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
30154         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
30155         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
30156         (CALL_FAIL): Likewise.
30157         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
30158         (CALL_FAIL): Macro removed.
30159         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
30160
30161 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
30162
30163         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
30164         for __FINITE_MATH_ONLY__ == 1.
30165
30166 2011-09-15  Andreas Schwab  <schwab@redhat.com>
30167
30168         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
30169         __ieee754_sqrt instead of sqrt.
30170         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
30171         __ieee754_sqrtf instead of sqrtf.
30172         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
30173         __floorf instead of floorf.
30174         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
30175         __floorf, __truncf instead of floorf, truncf.
30176
30177 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
30178
30179         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
30180
30181         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
30182         __extern_always_inline.
30183         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
30184         32-bit.
30185
30186 2011-09-14  Andreas Schwab  <schwab@redhat.com>
30187
30188         * elf/rtld.c (dl_main): Also relocate in dependency order when
30189         doing symbol dependency testing.
30190
30191 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
30192
30193         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
30194         Always define `refsym'.
30195
30196 2011-09-13  Andreas Schwab  <schwab@redhat.com>
30197
30198         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
30199         (__FD_ELT): Renamed from __FDELT.
30200         * misc/bits/select2.h (__FD_ELT): Likewise.
30201         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
30202         __FD_MASK instead of __FDELT, __FDMASK.
30203         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
30204         Likewise.
30205         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
30206         Likewise.
30207
30208         * elf/Makefile (gen-ldd): Fix pattern.
30209
30210         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
30211         (init_tls): Likewise.
30212
30213 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
30214
30215         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
30216
30217 2011-09-12  Andreas Schwab  <schwab@redhat.com>
30218
30219         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
30220         `struct cmsghdr *' instead of `void *'.
30221         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
30222         Likewise.
30223
30224 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
30225
30226         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
30227         if non-absolute.
30228         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
30229         ldd_rewrite_script.
30230
30231 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
30232
30233         * configure.in: Remove --with-tls option.
30234         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
30235         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
30236         out in case it is missing.
30237         * sysdeps/ia64/elf/configure.in: Likewise.
30238         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
30239         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
30240         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
30241         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
30242         * sysdeps/sh/elf/configure.in: Likewise.
30243         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
30244         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
30245         * sysdeps/x86_64/elf/configure.in: Likewise.
30246         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
30247         * sysdeps/mach/hurd/tls.h: Likewise.
30248
30249         [BZ #13067]
30250         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
30251
30252         [BZ #13090]
30253         * configure.in: Fix use of AC_INIT.
30254
30255         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
30256
30257 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
30258
30259         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
30260         __set_errno.
30261         * malloc/hooks.c: Likewise.
30262
30263         [BZ #11929]
30264         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
30265         variables statically.
30266         (narenas): Initialize.
30267         (list_lock): Initialize.
30268         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
30269         initializtion of main_arena and list_lock.  Small cleanups.
30270         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
30271         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
30272         Add initializers to main_arena and mp_.
30273         (malloc_state): Remove pagesize member.  Change all users to use
30274         GLRO(dl_pagesize).
30275
30276         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
30277         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
30278         is always initialized.
30279
30280         * malloc/malloc.c: Removed unused configurations and dead code.
30281         * malloc/arena.c: Likewise.
30282         * malloc/hooks.c: Likewise.
30283         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
30284
30285         * include/tls.h: Removed.  USE___THREAD must always be defined.
30286         * bits/libc-tsd.h: Don't handle !USE___THREAD.
30287         * elf/dl-libc.c: Likewise.
30288         * elf/dl-tsd.c: Likewise.
30289         * include/errno.h: Likewise.
30290         * include/netdb.h: Likewise.
30291         * include/resolv.h: Likewise.
30292         * inet/herrno-loc.c: Likewise.
30293         * inet/herrno.c: Likewise.
30294         * malloc/arena.c: Likewise.
30295         * malloc/hooks.c: Likewise.
30296         * malloc/malloc.c: Likewise.
30297         * resolv/res-state.c: Likewise.
30298         * resolv/res_libc.c: Likewise.
30299         * sysdeps/i386/dl-machine.h: Likewise.
30300         * sysdeps/ia64/dl-machine.h: Likewise.
30301         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
30302         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
30303         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
30304         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
30305         * sysdeps/sh/dl-machine.h: Likewise.
30306         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
30307         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
30308         * sysdeps/unix/i386/sysdep.S: Likewise.
30309         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30310         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
30311         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
30312         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
30313         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
30314         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
30315         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
30316         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30317         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30318         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
30319         * sysdeps/unix/x86_64/sysdep.S: Likewise.
30320         * sysdeps/x86_64/dl-machine.h: Likewise.
30321         * tls.make.c: Likewise.
30322
30323         * configure.in: Remove --with-__thread option.  Make tests for
30324         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
30325         tls_model attribute fail if no support is available.  Remove
30326         USE_IN_LIBIO.
30327         * Makeconfig: Adjust for dropped configure option.  All features are
30328         now mandatory.
30329         * Makerules: Likewise.
30330         * Versions.def: Likewise.
30331         * argp/argp-fmtstream.c: Likewise.
30332         * argp/argp-fmtstream.h: Likewise.
30333         * argp/argp-help.c: Likewise.
30334         * assert/assert.c: Likewise.
30335         * config.h.in: Likewise.
30336         * config.make.in: Likewise.
30337         * configure: Likewise.
30338         * configure.in: Likewise.
30339         * csu/Versions: Likewise.
30340         * csu/init.c: Likewise.
30341         * elf/tst-audit2.c: Likewise.
30342         * elf/tst-tls10.c: Likewise.
30343         * elf/tst-tls10.h: Likewise.
30344         * elf/tst-tls11.c: Likewise.
30345         * elf/tst-tls12.c: Likewise.
30346         * elf/tst-tls14.c: Likewise.
30347         * elf/tst-tlsmod11.c: Likewise.
30348         * elf/tst-tlsmod12.c: Likewise.
30349         * elf/tst-tlsmod13.c: Likewise.
30350         * elf/tst-tlsmod13a.c: Likewise.
30351         * elf/tst-tlsmod14a.c: Likewise.
30352         * elf/tst-tlsmod15b.c: Likewise.
30353         * elf/tst-tlsmod16a.c: Likewise.
30354         * elf/tst-tlsmod16b.c: Likewise.
30355         * elf/tst-tlsmod7.c: Likewise.
30356         * elf/tst-tlsmod8.c: Likewise.
30357         * elf/tst-tlsmod9.c: Likewise.
30358         * gmon/gmon.c: Likewise.
30359         * grp/fgetgrent_r.c: Likewise.
30360         * grp/putgrent.c: Likewise.
30361         * hurd/fopenport.c: Likewise.
30362         * include/libc-symbols.h: Likewise.
30363         * include/tls.h: Likewise.
30364         * intl/gettextP.h: Likewise.
30365         * intl/loadinfo.h: Likewise.
30366         * locale/global-locale.c: Likewise.
30367         * locale/localeinfo.h: Likewise.
30368         * mach/devstream.c: Likewise.
30369         * malloc/arena.c: Likewise.
30370         * malloc/set-freeres.c: Likewise.
30371         * misc/err.c: Likewise.
30372         * misc/getttyent.c: Likewise.
30373         * misc/mntent_r.c: Likewise.
30374         * posix/getopt.c: Likewise.
30375         * posix/wordexp.c: Likewise.
30376         * pwd/fgetpwent_r.c: Likewise.
30377         * resolv/Versions: Likewise.
30378         * resolv/res_hconf.c: Likewise.
30379         * shadow/fgetspent_r.c: Likewise.
30380         * shadow/putspent.c: Likewise.
30381         * stdio-common/printf_fphex.c: Likewise.
30382         * stdio-common/tmpfile.c: Likewise.
30383         * stdlib/abort.c: Likewise.
30384         * stdlib/fmtmsg.c: Likewise.
30385         * sunrpc/auth_unix.c: Likewise.
30386         * sunrpc/clnt_perr.c: Likewise.
30387         * sunrpc/clnt_tcp.c: Likewise.
30388         * sunrpc/clnt_udp.c: Likewise.
30389         * sunrpc/clnt_unix.c: Likewise.
30390         * sunrpc/openchild.c: Likewise.
30391         * sunrpc/svc_simple.c: Likewise.
30392         * sunrpc/svc_tcp.c: Likewise.
30393         * sunrpc/svc_udp.c: Likewise.
30394         * sunrpc/svc_unix.c: Likewise.
30395         * sunrpc/xdr.c: Likewise.
30396         * sunrpc/xdr_array.c: Likewise.
30397         * sunrpc/xdr_rec.c: Likewise.
30398         * sunrpc/xdr_ref.c: Likewise.
30399         * sunrpc/xdr_stdio.c: Likewise.
30400
30401 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
30402
30403         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30404
30405 2011-07-03  Andreas Jaeger  <aj@suse.de>
30406
30407         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
30408         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
30409         regenerate with gen-libm-tests.pl.
30410
30411 2010-05-12  Petr Baudis  <pasky@suse.cz>
30412
30413         [BZ #11589]
30414         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
30415         around j0() zero points by switching to j1().
30416         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
30417         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
30418         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
30419         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
30420
30421 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
30422
30423         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
30424         instead of 0.
30425         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
30426         instead of 0.
30427         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
30428         Patch in part by Pavel Roskin <proski@gnu.org>.
30429
30430         [BZ #13138]
30431         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
30432         realloc.
30433         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
30434         Free memory block if necessary.
30435
30436         [BZ #12847]
30437         * libio/genops.c (INTDEF): For string streams the _lock pointer can
30438         be NULL.  Don't lock in this case.
30439
30440 2011-09-09  Roland McGrath  <roland@hack.frob.com>
30441
30442         * elf/elf.h (ELFOSABI_GNU): New macro.
30443         (ELFOSABI_LINUX): Define to that.
30444
30445 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
30446
30447         * string/strncat.c (strncat): Undef the symbol in case it has been
30448         defined in bits/string.h.
30449
30450 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
30451
30452         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
30453
30454         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
30455         link map.
30456
30457 2011-08-17  Andreas Jaeger  <aj@suse.de>
30458
30459         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
30460
30461 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
30462             Ian Lance Taylor  <iant@google.com>
30463
30464         * math/libm-test.inc (lround_test): New testcase.
30465         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
30466
30467 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
30468
30469         * Makefile: Remove support for automatic cvs check-ins.
30470         * Makerules: Likewise.
30471         * config.make.in: Likewise.
30472         * configure.in: Likewise.
30473         * intl/Makefile: Likewise.
30474         * locale/Makefile: Likewise.
30475         * po/Makefile: Likewise.
30476         * posix/Makefile: Likewise.
30477         * sysdeps/gnu/Makefile: Likewise.
30478         * sysdeps/mach/hurd/Makefile: Likewise.
30479         * sysdeps/sparc/sparc32/Makefile: Likewise.
30480
30481         [BZ #13118]
30482         * posix/Makefile (bug-regex32-ENV): Define.
30483         Patch by John Stanley <jpsinthemix@verizon.net>.
30484
30485         * misc/Makefile (headers): Add bits/select2.h.
30486         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
30487         * misc/bits/select2.h: New file.
30488         * include/bits/select2.h: New file.
30489         * debug/Makefile (routines): Add fdelt_chk.
30490         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
30491         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
30492         FD_ISSET.
30493         * debug/fdelt_chk.c: New file.
30494
30495         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
30496         * wcsmbs/test-wmemcmp.c: Likewise.
30497         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
30498         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
30499
30500 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30501
30502         * string/Makefile (strop-tests): Add memcmp.
30503         * string/test-wmemcmp.c: New file.
30504         * string/test-memcmp.c: Add wmemcmp support.
30505
30506 2011-09-08  Roland McGrath  <roland@hack.frob.com>
30507
30508         [BZ #13153]
30509         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
30510         2011-07-19 change.
30511
30512         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
30513         garbage value in a __mach_port_mod_refs call in the cases of the
30514         task-self and thread-self ports.
30515
30516 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30517
30518         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
30519
30520 2011-09-08  Andreas Schwab  <schwab@redhat.com>
30521
30522         * elf/dl-load.c (lose): Check for non-null L.
30523
30524 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
30525
30526         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
30527
30528         * elf/dl-libc.c (dlerror_run): Pass back error code from
30529         dl_catch_error.
30530
30531         [BZ #13123]
30532         * elf/dl-load.c (lose): Free l_origin if it is valid.
30533
30534         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
30535         names.
30536         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
30537         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
30538         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
30539         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
30540         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
30541         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
30542
30543 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30544
30545         * sysdeps/powerpc/fpu/e_hypot.c: New file.
30546         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
30547         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
30548         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
30549         * sysdeps/powerpc/fpu/k_cosf.c: New file.
30550         * sysdeps/powerpc/fpu/k_sinf.c: New file.
30551         * sysdeps/powerpc/fpu/s_cosf.c: New file.
30552         * sysdeps/powerpc/fpu/s_sinf.c: New file.
30553         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
30554         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
30555
30556 2011-08-15  Alan Modra  <amodra@gmail.com>
30557
30558         [BZ #13092]
30559         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
30560         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
30561         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
30562         ppc_mcount to static-only-routines.
30563         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
30564         __mcount_internal.
30565         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
30566         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
30567
30568 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
30569
30570         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
30571         for finite and infinity parameters.
30572
30573 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
30574
30575         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
30576         and add nop instructions for throughput optimization.
30577         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
30578
30579 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
30580
30581         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
30582         aligned copy for power7 with vector-scalar instructions.
30583         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
30584
30585 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
30586
30587         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
30588         AVX check.
30589
30590 2011-09-07  Andreas Schwab  <schwab@redhat.com>
30591
30592         [BZ #13144]
30593         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
30594         last change.
30595
30596 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
30597
30598         * sysdeps/unix/sysv/linux/x86_64/init-first.c
30599         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
30600         syscall wrapper around clock_gettime in __vdso_clock_gettime.
30601         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
30602         clock_gettime.
30603
30604 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
30605
30606         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
30607         Forgot to demangle the pointer.
30608
30609         * sysdeps/i386/sysdep.h: Define atom_text_section.
30610         * sysdeps/x86_64/sysdep.h: Likewise.
30611         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
30612         section with atom_text_section.
30613         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
30614         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
30615         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
30616         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
30617         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
30618
30619         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
30620         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
30621         already be defined.  Change to take two parameters and don't assign
30622         result to variable.  Adjust all users.
30623         Define INTERNAL_GETTIME if not already defined.
30624         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
30625         call.
30626         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
30627         HAVE_CLOCK_GETTIME_VSYSCALL.
30628         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
30629
30630         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
30631         gettimeofday vsyscall, just use time.
30632
30633 2011-09-06  Andreas Schwab  <schwab@redhat.com>
30634
30635         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
30636         <errno.h>.
30637
30638 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
30639
30640         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
30641         syscall on x86-64.
30642         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
30643         syscall.
30644         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
30645         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
30646         syscall if possible.
30647
30648 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
30649
30650         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
30651         e_ident.  Don't pass to find_mapsXX.
30652         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
30653
30654 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30655
30656         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
30657         strchr-sse2-no-bsf strrchr-sse2-no-bsf
30658         * sysdeps/x86_64/multiarch/strchr.S: Update.
30659         Check bit_slow_BSF bit.
30660         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
30661         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
30662         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
30663
30664 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
30665
30666         [BZ #13134]
30667         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
30668         before glibc 2.15.
30669         (tryshell): Define.
30670         (__spawni): Change last parameter to be flag.  Test
30671         SPAWN_XFLAGS_USE_PATH flag to use path or not.
30672         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
30673         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
30674         * posix/spawni.c: Likewise.
30675         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
30676         * posix/spawnp.c: Likewise.  Change normal version to use
30677         SPAWN_XFLAGS_USE_PATH.
30678         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
30679         SPAWN_XFLAGS_TRY_SHELL.
30680
30681         [BZ #13150]
30682         * posix/glob.h: Remove gcc 1.x support.
30683
30684         [BZ #13068]
30685         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
30686
30687 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30688
30689         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
30690         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
30691         strrchr-sse2-bsf
30692         * sysdeps/i386/i686/multiarch/strchr.S: New file.
30693         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
30694         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
30695         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
30696         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
30697         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
30698
30699 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30700
30701         * sysdeps/x86_64/wcscmp.S: New file.
30702
30703         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
30704         wcscmp-c wcscmp-sse2
30705         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
30706         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
30707         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
30708         * wcsmbs/wcscmp.c: Allow renaming.
30709
30710 2011-09-05  David S. Miller  <davem@davemloft.net>
30711
30712         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
30713         stack slot, rather than the struct return pointer slot.
30714         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
30715         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
30716         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
30717         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
30718
30719 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
30720
30721         * po/ja.po: Update from translation team.
30722
30723         [BZ #13144]
30724         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
30725         kernel in 64-bit binaries.
30726
30727 2011-09-01  David S. Miller  <davem@davemloft.net>
30728
30729         * elf/elf.h (HWCAP_SPARC_*): Move to..
30730         * sysdeps/sparc/sysdep.h: this new file and add new values.
30731         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
30732         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
30733         _DL_HWCAP_COUNT to 24.
30734         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
30735         entries.
30736         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
30737         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
30738         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
30739         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
30740         instead of magic constants.
30741         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30742
30743 2011-08-31  David S. Miller  <davem@davemloft.net>
30744
30745         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
30746         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
30747         Reimplement to do errno handling inline.
30748         (SYSCALL_ERROR_HANDLER): New macro.
30749         (__SYSCALL_STRING): Do not do errno handling in asm.
30750         (__CLONE_SYSCALL_STRING): Delete.
30751         (__INTERNAL_SYSCALL_STRING): Delete.
30752         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
30753         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
30754         (PSEUDO): Reimplement to do errno handling inline.
30755         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
30756         (SYSCALL_ERROR_HANDLER): New macro.
30757         (__SYSCALL_STRING): Do not do errno handling in asm.
30758         (__CLONE_SYSCALL_STRING): Delete.
30759         (__INTERNAL_SYSCALL_STRING): Delete.
30760         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
30761         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
30762         i386.
30763         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
30764         (inline_syscall*): Add 'err' argument.
30765         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
30766         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
30767         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
30768         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
30769
30770         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
30771         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
30772
30773 2011-08-30  Andreas Schwab  <schwab@redhat.com>
30774
30775         * elf/rtld.c (dl_main): Relocate objects in dependency order.
30776
30777 2011-08-29  Jiri Olsa <jolsa@redhat.com>
30778
30779         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
30780         directive.
30781
30782 2011-08-24  David S. Miller  <davem@davemloft.net>
30783
30784         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
30785
30786 2011-08-24  Andreas Schwab  <schwab@redhat.com>
30787
30788         * elf/Makefile: Add rules to build and run unload8 test.
30789         * elf/unload8.c: New file.
30790         * elf/unload8mod1.c: New file.
30791         * elf/unload8mod1x.c: New file.
30792         * elf/unload8mod2.c: New file.
30793         * elf/unload8mod3.c: New file.
30794
30795         * elf/dl-close.c (_dl_close_worker): Reset private search list if
30796         it wasn't used.
30797
30798 2011-08-23  David S. Miller  <davem@davemloft.net>
30799
30800         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
30801         subtract stack bias.
30802         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
30803         %sp not %fp in calculations.
30804         (_JMPBUF_UNWINDS_ADJ): Likewise.
30805
30806         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
30807         (aio_suspend): Call it to force an exception region around the
30808         AIO_MISC_WAIT() invocation.
30809
30810 2011-08-23  Andreas Schwab  <schwab@redhat.com>
30811
30812         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
30813         backslash.
30814
30815 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
30816
30817         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
30818         protection macro.
30819         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
30820         and <dl-machine.h>.
30821         (Elf64_FuncDesc): Remove.
30822
30823 2011-08-22  David S. Miller  <davem@davemloft.net>
30824
30825         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
30826         sigaltstack check, add missing cfi directives.
30827         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
30828         missing cfi directives, and sigaltstack handling.
30829
30830 2011-08-16  Andreas Schwab  <schwab@redhat.com>
30831
30832         [BZ #11724]
30833         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
30834         object is seen twice.
30835         * elf/dl-fini.c (_dl_sort_fini): Likewise.
30836
30837         * elf/Makefile (distribute): Add tst-initorder2.c.
30838         (tests): Add tst-initorder2.
30839         (modules-names): Add tst-initorder2a tst-initorder2b
30840         tst-initorder2c tst-initorder2d.  Add rules to build them.
30841         ($(objpfx)tst-initorder2.out): New rule.
30842         * elf/tst-initorder2.c: New file.
30843         * elf/tst-initorder2.exp: New file.
30844
30845 2011-08-22  Andreas Schwab  <schwab@redhat.com>
30846
30847         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
30848
30849         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
30850         dependencies back to end of function.
30851
30852         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
30853         $(elfobjdir)/ld.so.
30854
30855 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
30856
30857         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
30858         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
30859         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
30860         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
30861         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
30862         of __vdso_gettimeofday.
30863         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
30864         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
30865         attribute_hidden.
30866         (_libc_vdso_platform_setup): Remove initialization of
30867         __vdso_gettimeofday and __vdso_time.
30868
30869 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
30870
30871         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
30872         and fgetc_unlocked.
30873         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
30874         getc_unlocked.
30875
30876         * elf/dl-open.c (add_to_global): Report additions to the global scope
30877         for LD_DEBUG=scopes.
30878         (dl_open_worker): Also print scope of newly loaded dependencies.
30879         (_dl_show_scope): Indicate if there is no scope.
30880
30881         [BZ #13114]
30882         * stdio-common/Makefile (tests): Add bug24.
30883         * stdio-common/bug24.c: New file.
30884
30885 2011-08-19  Andreas Jaeger  <aj@suse.de>
30886
30887         [BZ #13114]
30888         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
30889         non-existant file when using close-on-exec mode.
30890
30891 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
30892
30893         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
30894         the very first instruction.
30895
30896         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
30897         the CFI state in the end.
30898         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
30899         inclusion of dl-trampoline.h.
30900         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
30901
30902 2011-08-19  Andreas Schwab  <schwab@redhat.com>
30903
30904         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
30905         expectations for long double.
30906
30907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
30908         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
30909
30910 2011-08-14  David S. Miller  <davem@davemloft.net>
30911
30912         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
30913         artificual limit depends upon the system page size.
30914
30915 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
30916
30917         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
30918         * resolv/Makefile: Define CFLAGS-libresolv.
30919
30920 2011-08-17  Andreas Schwab  <schwab@redhat.com>
30921
30922         * nss/makedb.c (compute_tables): Make variables used in nested
30923         function static.
30924
30925 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
30926
30927         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
30928         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
30929         if buffer was too small.
30930
30931         * elf/pldd.c (main): Attach to all threads in the process.
30932         Rewrite /proc handling to use *at functions.
30933
30934 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
30935
30936         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
30937         specifies first scope to show.
30938         (dl_open_worker): Update callers.  Move printing scope of new
30939         object to before the relocation.
30940         * elf/rtld.c (dl_main): Update _dl_show_scope call.
30941         * sysdeps/generic/ldsodefs.h: Update declaration.
30942
30943         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
30944         string for the scope number.
30945
30946 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
30947
30948         * nscd/servicescache.c (cache_addserv): Make sure written is always
30949         initialized.
30950
30951 2011-08-14  Roland McGrath  <roland@hack.frob.com>
30952
30953         * sysdeps/i386/i486/bits/atomic.h
30954         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
30955         statement expression, so as to suppress "set but not used" warning.
30956         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
30957
30958         * string/strncat.c (STRNCAT): Use prototype definition.
30959
30960         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
30961         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
30962         -Iprograms here.
30963         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
30964         (localedef-modules): Add localedef.
30965         (locale-modules): Add locale.
30966
30967         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
30968         * elf/rtld.c (dl_main): Invert order of assignment in last change,
30969         to avoid a warning.
30970
30971 2011-08-14  David S. Miller  <davem@davemloft.net>
30972
30973         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
30974         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
30975
30976 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
30977
30978         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
30979         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
30980         * elf/rtld.c (dl_main): Set l_name of vDSO.
30981         Call _dl_show_scope when DL_DEBUG_SCOPES.
30982         (process_dl_debug): Recognize scopes flag and also set it for all.
30983         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
30984         Declare _dl_show_scope.
30985
30986         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
30987         (do_dlopen): Pass caller_dlopen to dl_open.
30988         (__libc_dlopen_mode): Initialize caller_dlopen.
30989
30990         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
30991         of libc.  Make tolower call locale-independent.  Optimize a bit by
30992         using isdigit instead of isalnum.
30993         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
30994
30995 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
30996
30997         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
30998         was a dependency or dynamically loaded.
30999
31000 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
31001
31002         * intl/l10nflist.c: Allow architecture-specific pop function.
31003         * sysdeps/x86_64/l10nflist.c: New file.
31004
31005         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
31006         classification.
31007
31008 2011-08-10  Andreas Schwab  <schwab@redhat.com>
31009
31010         * include/dirent.h: Add libc_hidden_proto for scandirat and
31011         scandirat64.  Don't declare __scandirat64.
31012         * dirent/scandirat.c: Add libc_hidden_def.
31013         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
31014         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
31015
31016 2011-08-10  David S. Miller  <davem@davemloft.net>
31017
31018         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
31019         enum.
31020         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31021         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31022         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31023
31024 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
31025
31026         * Versions.def [libc]: Add GLIBC_2.15.
31027         * dirent/Makefile (routines): Add scandirat and scandirat64.
31028         * dirent/Versions [libc]: Export scandirat and scandirat64 for
31029         GLIBC_2.15.
31030         * dirent/dirent.h: Declare scandirat and scandirat64.
31031         * dirent/scandirat.c: New file.
31032         * dirent/scandirat64.c: New file.
31033         * sysdeps/wordsize-64/scandirat.c: New file.
31034         * sysdeps/wordsize-64/scandirat64.c: New file.
31035         * dirent/opendir.c: Define opendirat.
31036         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
31037         using scandirat.
31038         * dirent/scandir64.c: Adjust for scandir.c change.
31039         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
31040         __scandirat64, and __scandir_cancel_handler.
31041         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
31042         additional parameter and use openat instead of open (outside of ld.so).
31043         Add new __opendir as wrapper around __opendirat.
31044         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
31045         here without requiring old scandirat implementation.
31046
31047 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
31048
31049         * dirent/scandir.c (cancel_handler): Renamed to
31050         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
31051         defined.  Adjust users.
31052         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
31053         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
31054
31055 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
31056
31057         * string/test-string.h (IMPL): Use __STRING to expand name and then
31058         stringify it.
31059
31060         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
31061         of cleanups.
31062
31063 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31064
31065         * string/Makefile: Update.
31066         (strop-tests): Append strncat.
31067         * string/test-wcscmp.c: New file.
31068         New comprehensive test for wcscmp.
31069         * string/test-strcmp.c: Update.
31070         (WIDE): New define.
31071
31072 2011-07-22  Andreas Schwab  <schwab@redhat.com>
31073
31074         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
31075         line.
31076
31077 2011-07-26  Andreas Schwab  <schwab@redhat.com>
31078
31079         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
31080         encoding to ACE if AI_IDN.
31081
31082 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
31083
31084         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
31085         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
31086
31087 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
31088
31089         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
31090         Fix overflow bug in strncat.
31091         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
31092
31093         * string/test-strncat.c: Update.
31094         Add new tests for checking overflow bugs.
31095
31096 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
31097
31098         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31099         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
31100         * sysdeps/i386/i686/multiarch/strcat.S: New file.
31101         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
31102         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
31103         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
31104         * sysdeps/i386/i686/multiarch/strncat.S: New file.
31105         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
31106         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
31107
31108         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
31109         (USE_AS_STRCAT): Define.
31110         Add strcat and strncat support.
31111         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
31112
31113 2011-07-25  Andreas Schwab  <schwab@redhat.com>
31114
31115         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
31116         __n bigger than INT_MAX+1.
31117         (__strncmp_g): Likewise.
31118
31119 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
31120
31121         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
31122         * libio/stido.h: Likewise.
31123
31124         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
31125         (AF_NFC): Define.
31126         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
31127         (AF_NFC): Define.
31128
31129         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
31130         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31131         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31132         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31133         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31134
31135         [BZ #13021]
31136         * scripts/test-installation.pl: Don't expect libnss_test1 to be
31137         installed.
31138
31139         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
31140         typo.
31141         (_dl_x86_64_save_sse): Likewise.
31142
31143 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
31144
31145         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
31146         OSXSAVE.
31147         (_dl_x86_64_save_sse): Likewise.
31148
31149         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
31150
31151         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
31152
31153 2011-07-21  Andreas Schwab  <schwab@redhat.com>
31154
31155         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
31156         change.
31157         (_dl_x86_64_save_sse): Use correct AVX check.
31158
31159 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31160
31161         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
31162         bug in strncpy/strncat.
31163         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
31164
31165 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
31166
31167         * string/tester.c (test_strcat): Add tests for different alignments
31168         of source and destination.
31169         (test_strncat): Likewise.
31170
31171 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
31172
31173         [BZ #12852]
31174         * posix/glob.c (glob): Check passed in values before using them in
31175         expressions to avoid some overflows.
31176         (glob_in_dir): Likewise.
31177
31178         [BZ #13007]
31179         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
31180         check for AVX enablement so that we don't crash with old kernels and
31181         new hardware.
31182         * elf/tst-audit4.c: Add same checks here.
31183         * elf/tst-audit6.c: Likewise.
31184
31185         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
31186
31187 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
31188
31189         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
31190
31191 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
31192
31193         * po/cs.po: Update from translation team.
31194         * po/bg.po: Likewise.
31195
31196 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
31197
31198         * misc/sys/cdefs.h: Add support for const attribute.
31199         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
31200         to gnu_dev_{major,minor,makedev} functions.
31201
31202 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
31203
31204         * intl/dcigettext.c (get_output_charset): Add missing bracket.
31205
31206 2011-07-20  Andreas Schwab  <schwab@redhat.com>
31207
31208         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
31209         strlen results.
31210
31211 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31212
31213         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
31214         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
31215         register in order to avoid conflicts with the soft frame pointer
31216         being held in r11 when necessary.
31217         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
31218         (INTERNAL_VSYSCALL_NCS): Likewise.
31219
31220 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
31221
31222         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
31223         * elf/dl-fini.c (_dl_fini): Adjust caller.
31224         * elf/dl-close.c (_dl_close_worker): Likewise.
31225         * sysdeps/generic/ldsodefs.h: Adjust declaration.
31226
31227 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
31228
31229         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
31230         "aux_cache->nlibs < 0".
31231
31232         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
31233         in the reload-count case.
31234
31235 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
31236
31237         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31238         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
31239         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
31240         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
31241         * sysdeps/x86_64/multiarch/strcat.S: New file.
31242         * sysdeps/x86_64/multiarch/strncat.S: New file.
31243         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
31244         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
31245         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
31246         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
31247         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
31248         (USE_AS_STRCAT): Define.
31249         Add strcat and strncat support.
31250         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
31251         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
31252         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
31253         * string/strncat.c: Update.
31254         (USE_AS_STRNCAT): Define.
31255         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31256         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
31257         and i7.
31258         * sysdeps/x86_64/multiarch/init-arch.h
31259         (bit_Prefer_PMINUB_for_stringop): New.
31260         (index_Prefer_PMINUB_for_stringop): Likewise.
31261         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
31262         bit_Prefer_PMINUB_for_stringop.
31263
31264 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
31265
31266         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
31267         buffer64.
31268         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
31269         of casting of buffer.
31270         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
31271         buffer32 and buffer64.
31272         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
31273         writes instead of casting of buffer.
31274         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
31275         buffer32.
31276         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
31277         casting of buffer.
31278
31279 2011-07-19  Andreas Schwab  <schwab@redhat.com>
31280
31281         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
31282
31283 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
31284
31285         * nscd/nscd.c (termination_handler): Don't do anything for a database
31286         if it has not yet been initialized.
31287
31288 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
31289
31290         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
31291
31292 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
31293
31294         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
31295
31296 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
31297
31298         * po/nl.po: Update from translation team.
31299         * po/sv.po: Likewise.
31300
31301 2011-07-16  Roland McGrath  <roland@hack.frob.com>
31302
31303         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
31304         now disallowed by GCC.
31305
31306         * configure.in (use-default-link): Default to yes if a test -shared
31307         link meets our qualifications.
31308         * configure: Regenerated.
31309
31310         * config.make.in (output-format): New variable.
31311         * configure.in: Check for ld --print-output-format support.
31312         * configure: Regenerated.
31313         * Makerules ($(common-objpfx)format.lds)
31314         [$(output-format) != unknown]: Just use $(output-format),
31315         instead of the linker-script munging.
31316
31317 2011-07-14  Roland McGrath  <roland@hack.frob.com>
31318
31319         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
31320         of $(common-objpfx)shlib.lds.
31321         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
31322
31323         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
31324         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
31325
31326         * configure.in (-z relro check): Adjust test code to add a large
31327         writable data section after it.
31328         * configure: Regenerated.
31329
31330 2011-07-11  Roland McGrath  <roland@hack.frob.com>
31331
31332         * configure.in (-z relro check): Fix test code to make the variable
31333         truly const.
31334         * configure: Regenerated.
31335
31336 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
31337
31338         * nscd/nscd.h (struct traced_file): Define.
31339         (struct database_dyn): Remove inotify_descr, reset_res, and filename
31340         elements.  Add traced_files.
31341         (inotify_fd): Declare.
31342         (register_traced_file): Declare.
31343         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
31344         (inotify_fd): Export.
31345         (resolv_conf_descr): Remove.
31346         (nscd_init): Move inotify descriptor creation to main.
31347         Don't register files for notification here.
31348         (register_traced_file): New function.
31349         (invalidate_cache): Don't use reset_res to determine whether to call
31350         res_init, go through the list of registered files.
31351         (main_loop_poll): The inotify descriptors are now stored in the
31352         structures for the traced files.
31353         (main_loop_epoll): Likewise
31354         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
31355         to __nss_disable_nscd.
31356         * nscd/cache.c (prune_cache): There is no single inotify descriptor
31357         for a database anymore.  Check the records for all the registered
31358         files instead.
31359         * nss/Makefile (libnss_files-routines): Add files-init.
31360         (libnss_db-routines): Add db-init.
31361         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
31362         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
31363         * nss/nss_db/db-init.c: New file.
31364         * nss/nss_files/files-init.c: New file.
31365         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
31366         __nss_lookup_function.
31367         (__nss_lookup_function): Call nss_load_library.
31368         (nss_load_all_libraries): New function.
31369         (__nss_disable_nscd): Take parameter with callback function for files
31370         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
31371         used for the cached services.
31372         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
31373         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
31374         options for features to all the files in nscd.
31375
31376         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
31377
31378 2011-07-10  Roland McGrath  <roland@hack.frob.com>
31379
31380         * csu/elf-init.c (__libc_csu_init): Comment typo.
31381
31382 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
31383
31384         * po/pl.po: Update from translation team.
31385         * po/ja.po: Likewise.
31386         * po/ru.po: Likewise.
31387         * po/ko.po: Likewise.
31388         * po/fr.po: Likewise.
31389
31390 2011-07-09  Roland McGrath  <roland@hack.frob.com>
31391
31392         * configure.in (.ctors/.dtors header and trailer check):
31393         Use an empirical test on a built program.
31394         * configure: Regenerated.
31395
31396         * configure.in (-z relro check): Use an empirical test on a built DSO.
31397         Detect, but do not require, on ia64.
31398         * configure: Regenerated.
31399
31400         * configure.in (READELF): Find it with AC_CHECK_TOOL.
31401         Update tests that use readelf to use $READELF instead.
31402         * configure: Regenerated.
31403
31404 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
31405
31406         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
31407         if the result is not used.
31408
31409 2011-07-05  Andreas Jaeger  <aj@suse.de>
31410
31411         [BZ#9696]
31412         * stdlib/tst-strtod.c: Add testcase.
31413
31414 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
31415
31416         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
31417         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
31418         The latter has a higher limit.  Take additional parameter to pass to
31419         the new function.
31420         (__pathconf): Pass file to __statfs_link_max.
31421         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
31422         __statfs_link_max.
31423         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
31424         __statfs_link_max.
31425
31426         [BZ #12868]
31427         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
31428         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
31429         Handle Lustre.
31430         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
31431         (__statfs_filesize_max): Likewise.
31432         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
31433
31434 2011-07-05  Andreas Jaeger  <aj@suse.de>
31435
31436         * resolv/res_comp.c (dn_skipname): Remove unused variable.
31437
31438 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
31439
31440         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
31441         `status' variable.
31442         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
31443         Likewise.
31444
31445 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
31446
31447         * Makefile (strop-tests): Add strncat.
31448         * string/test-strncat.c: New file.
31449
31450 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
31451
31452         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
31453
31454 2011-06-21  Andreas Jaeger  <aj@suse.de>
31455
31456         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
31457         Copy rule from iconvdata/Makefile.
31458
31459 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
31460
31461         [BZ #12922]
31462         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
31463         but no long options are defined, just return 'W'.
31464
31465 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
31466
31467         [BZ #9696]
31468         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
31469
31470 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
31471
31472         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
31473         netgroups to read.
31474         (innetgr): Likewise.
31475
31476 2011-07-05  Roland McGrath  <roland@hack.frob.com>
31477
31478         * config.make.in (install_root): Default to $(DESTDIR).
31479
31480 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
31481
31482         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
31483
31484 2011-07-02  Roland McGrath  <roland@hack.frob.com>
31485
31486         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
31487
31488         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
31489         containing directory rather than embedding absolute directory names.
31490
31491         * scripts/check-local-headers.sh: Rewritten using awk.
31492         Match by word, not by line.  Print error messages for matches.
31493         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
31494
31495         * Makerules [shlib-lds-flags empty]:
31496         ($(common-objpfx)libc_pic.opts): New target.
31497         ($(common-objpfx)libc_pic.os.clean): New target.
31498         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
31499
31500         * config.make.in (OBJCOPY): New variable.
31501         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
31502         * configure: Regenerated.
31503
31504         * config.make.in (use-default-link): New variable.
31505         * configure.in (use_default_link): Grok --with-default-link to set it.
31506         * configure: Regenerated.
31507         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
31508         (shlib-lds, shlib-lds-flags): Define to empty.
31509
31510         * Makerules (shlib-lds): New variable.
31511         (shlib-lds-flags): New variable.
31512         (build-shlib, build-moduile, build-module-asneeded): Use it.
31513         ($(common-objpfx)libc.so): Use $(shlib-lds).
31514         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
31515         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
31516
31517         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
31518         DT_FLAGS/DT_FLAGS_1 with zero flags.
31519
31520         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
31521         linker script munging.
31522
31523 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
31524
31525         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
31526         as 128-bit value.
31527         * crypt/sha512.c (sha512_process_block): Perform total addition using
31528         128-bit if possible.
31529         (__sha512_finish_ctx): Likewise.
31530         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
31531         as 64-bit value.
31532         * crypt/sha256.c (SWAP64): Define.
31533         (sha256_process_block): Perform total addition using 64-bit if
31534         possible.
31535         (__sha256_finish_ctx): Likewise.
31536
31537 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
31538
31539         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
31540         * nscd/initgrcache.c (addinitgroupsX): Likewise.
31541         * nscd/hstcache.c (cache_addhst): Likewise.
31542         * nscd/grpcache.c (cache_addgr): Likewise.
31543         * nscd/aicache.c (addhstaiX): Likewise
31544         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
31545
31546 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
31547
31548         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
31549         * nscd/initgrcache.c (addinitgroupsX): Likewise.
31550         * nscd/hstcache.c (cache_addhst): Likewise.
31551         * nscd/grpcache.c (cache_addgr): Likewise.
31552         * nscd/aicache.c (addhstaiX): Likewise
31553
31554 2011-07-01  Andreas Schwab  <schwab@redhat.com>
31555
31556         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
31557         domain only when needed.
31558
31559 2011-06-30  Andreas Schwab  <schwab@redhat.com>
31560
31561         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
31562         is always restored.
31563
31564 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
31565
31566         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
31567         are re-adding the entry.
31568         * nscd/servicescache.c (cache_addserv): Likewise.
31569
31570 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
31571
31572         * sysdeps/generic/dl-irel.h: fix protection against multiple
31573         inclusions.
31574         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
31575
31576 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
31577
31578         [BZ #12935]
31579         * malloc/memusage.sh: Fix quoting in message.
31580         * debug/xtrace.sh: Likewise.
31581
31582         * configure.in: Remove support for --experimental-malloc option, make
31583         it the default.
31584         * config.make.in: Likewise.
31585         * malloc/Makefile: Likewise.
31586
31587 2011-06-27  Andreas Schwab  <schwab@redhat.com>
31588
31589         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
31590         two-byte characters.
31591
31592 2011-06-27  Roland McGrath  <roland@hack.frob.com>
31593
31594         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
31595         AC_CACHE_CHECK invocation.
31596         * configure: Regenerated.
31597
31598         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
31599
31600 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
31601
31602         [BZ #12350]
31603         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
31604         bit from old_res_options.
31605
31606         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
31607
31608         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
31609         value type for setfct.
31610
31611 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
31612
31613         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
31614         __gettimeofday instead of gettimeofday.
31615
31616 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
31617
31618         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
31619
31620 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
31621
31622         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
31623
31624         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
31625         info.
31626
31627 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
31628
31629         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31630         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
31631         strcpy-sse2-unaligned strncpy-sse2-unaligned
31632         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
31633         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
31634         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
31635         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
31636         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
31637         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
31638         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
31639         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
31640         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
31641         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
31642         (STRCPY): Support SSE2 and SSSE3 versions.
31643
31644 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
31645
31646         [BZ #12874]
31647         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
31648         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
31649         kernels which artificially limit size of requests.
31650
31651 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
31652
31653         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31654         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
31655         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
31656         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
31657         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
31658         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
31659         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
31660         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
31661         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
31662         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
31663         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
31664         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
31665         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
31666         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
31667         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
31668         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31669         Enable unaligned load optimization for Intel Core i3, i5 and i7
31670         processors.
31671         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
31672         Define.
31673         (index_Fast_Unaligned_Load): Define.
31674         (HAS_FAST_UNALIGNED_LOAD): Define.
31675
31676 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
31677
31678         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
31679
31680 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
31681
31682         [BZ #12907]
31683         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
31684         until it is clear that the information is realy needed.
31685         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
31686
31687 2011-06-22  Andreas Schwab  <schwab@redhat.com>
31688
31689         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
31690
31691 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
31692
31693         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
31694         /sys/devices/system/cpu/online if it is usable.
31695
31696         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
31697         reading the information from the /proc filesystem to once a second.
31698
31699 2011-06-21  Andreas Jaeger  <aj@suse.de>
31700
31701         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
31702         NULL after inclusion of kernel headers.
31703
31704 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
31705
31706         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
31707         calls to internal_setent.
31708
31709         [BZ #12885]
31710         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
31711         addresses using gethostbyname4_r ignore IPv4 addresses.
31712
31713         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
31714         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
31715
31716         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
31717
31718 2011-06-20  David S. Miller  <davem@davemloft.net>
31719
31720         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
31721         inclusions.
31722         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
31723
31724         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
31725         (elf_irel): Use it.
31726         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
31727         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
31728         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
31729         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
31730         * sysdeps/x86_64/dl-irel.h: Likewise.
31731
31732         * elf/dl-runtime.c: Use elf_ifunc_invoke.
31733         * elf/dl-sym.c: Likewise.
31734
31735 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
31736
31737         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
31738         need to dereference resplen2.
31739
31740 2011-06-14  Andreas Schwab  <schwab@redhat.com>
31741
31742         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
31743
31744 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
31745
31746         * Makeconfig: Define vardbdir and inst_vardbdir.
31747         * nss/Makefile: Add rules to install db-Makefile.
31748
31749         * nss/nss_db/db-XXX.c: Cleanup.
31750
31751         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
31752         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
31753         GLIBC_PRIVATE.
31754         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
31755         * nss/makedb.c: Implement -g option to specify that value strings
31756         are generated and should not be added to table iterated over for
31757         get*ent calls.
31758         * nss/nss_db/db-initgroups.c: New file.
31759
31760         * nss/getent.c: Add support for initgroups lookups through getgrouplist
31761         interface.
31762
31763         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
31764         (internal_getgrouplist): Adjust to name change.
31765         Update use_initgroups_entry if this is not the first call.
31766         * nss/databases.def: Add initgroups entry.
31767
31768         * nss/makedb.c (compute_tables): Check result of multiple hash table
31769         sizes to minimize maximum chain length.
31770
31771 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
31772
31773         * Versions.def: Add entry for libnss_db.
31774         * shlib-versions: Likewise.
31775         * nss/Makefile: Add rules to build libnss_db.
31776         * nss/Versions: Add libnss_db information.  Organize libnss_files
31777         entries better.
31778         * nss/db-Makefile: Add gshadow support.  Change rules for the new
31779         makedb progra.  Some minor improvements to generate smaller files.
31780         * nss/nss_db/nss_db.h: Move NSS database header data structures to
31781         here from...
31782         * nss/makedb.c: ...here.
31783         Improve database format to be smaller and require less memory at
31784         runtime.
31785         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
31786         db anymore.
31787         * nss/nss_db/db-netgrp.c: Likewise.
31788         * nss/nss_db/db-open.c: Likewise.
31789         * nss/nss_files/flies-XXX.x: Adjust comments.
31790         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
31791         * nss/nss_files/files-grp.c: Likewise.
31792         * nss/nss_files/files-hosts.c: Likewise.
31793         * nss/nss_files/files-network.c: Likewise.
31794         * nss/nss_files/files-proto.c: Likewise.
31795         * nss/nss_files/files-pwd.c: Likewise.
31796         * nss/nss_files/files-rpc.c: Likewise.
31797         * nss/nss_files/files-service.c: Likewise.
31798         * nss/nss_files/files-sgrp.c: Likewise.
31799         * nss/nss_files/files-spwd.c: Likewise.
31800         * nss/nss_db/db-alias.c: Removed.
31801         * nss/nss_db/dummy-db.h: Removed.
31802
31803 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
31804
31805         * nss/makedb.c: Rewritten to not use database library.
31806         * nss/Makefile: Update to build new makedb program.
31807
31808 2011-06-14  Andreas Jaeger  <aj@suse.de>
31809
31810         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
31811         memset declaration.
31812
31813 2011-06-10  Andreas Schwab  <schwab@redhat.com>
31814
31815         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
31816         tmpbuf.
31817
31818 2011-06-10  Roland McGrath  <roland@hack.frob.com>
31819
31820         * Makerules (shlib.lds): Fail if the linker script comes out empty.
31821         * elf/Makefile ($(objpfx)ld.so): Likewise.
31822
31823         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
31824         Don't list ld.so twice in dependencies.
31825
31826         * posix/bug-regex31.c: Include <stdlib.h>.
31827
31828         * nscd/hstcache.c (cache_addhst): Remove unused variable.
31829
31830         * nis/nss_compat/compat-spwd.c
31831         (getspent_next_nss_netgr): Remove unused variable.
31832         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
31833
31834         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
31835         nonmembers" output to use the right array.
31836
31837         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
31838
31839         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
31840
31841         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
31842         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
31843         * catgets/gencat.c (read_input_file): Likewise.
31844         * locale/programs/locarchive.c (enlarge_archive): Likewise.
31845
31846         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
31847         variable definition inside #if's controlling its use.
31848
31849         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
31850
31851         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
31852
31853         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
31854
31855         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
31856         unreachable code.
31857
31858         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
31859
31860         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
31861         * configure: Regenerated.
31862
31863         * Makerules: Revert last change.
31864         * elf/Makefile: Likewise.
31865
31866 2011-06-09  Roland McGrath  <roland@hack.frob.com>
31867
31868         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
31869         * elf/Makefile ($(objpfx)librtld.os): Likewise.
31870         (reloc-link): Likewise.
31871
31872 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
31873
31874         * elf/Makefile: Add rules to build pldd.
31875         * elf/pldd.c: New file.
31876         * elf/pldd-xx.c: New file.
31877
31878 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
31879
31880         * version.h: Update for 2.15 development version.
31881
31882 2011-06-07  David S. Miller  <davem@davemloft.net>
31883
31884         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
31885         ifuncs.
31886         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
31887         elf_machine_lazy_rel): Likewise.
31888         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
31889         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
31890         elf_machine_lazy_rel): Likewise.
31891         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
31892         dl_hwcap via passed in argument.
31893         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
31894         Likewise.
31895
31896 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31897
31898         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
31899
31900 2011-06-06  Roland McGrath  <roland@hack.frob.com>
31901
31902         [BZ #12849]
31903         * manual/fdl-1.1.texi: New file, verbatim from:
31904         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
31905         * manual/lgpl-2.1.texi: New file, verbatim from:
31906         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
31907         * manual/Makefile (licenses): New variable, list those new file names.
31908         (texis): Use it.
31909         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
31910
31911         * manual/fdl.texi: File removed.
31912         * manual/lesser.texi: File removed.
31913         * manual/libc.texinfo (Copying, Documentation License):
31914         Use new @include file names, put @appendix directive before @include.
31915
31916 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
31917
31918         [BZ #12841]
31919         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
31920         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
31921         (mq_open): Add __NTH.
31922
31923 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
31924
31925         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31926         Assume Intel Core i3/i5/i7 processor if AVX is available.
31927
31928 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
31929
31930         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
31931         typo.
31932
31933 2011-05-31  Andreas Schwab  <schwab@redhat.com>
31934
31935         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
31936         memory.  Use alloca_account.  Fix memory leak when retrying.
31937
31938 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
31939
31940         * version.h (RELEASE): Bump for 2.14 release.
31941         * include/features.h (__GLIBC_MINOR__): Bump to 14.
31942
31943         * config.make.in (RANLIB): Remove entry.
31944
31945 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
31946
31947         * po/Makefile (po-sed-cmd): Add ksh to extensions.
31948         (libc.pot): Work around missing support for .ksh extension in xgettext.
31949
31950         [BZ #12684]
31951         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
31952         if both request failed.
31953         (send_dg): In case of server errors clear resplen or *resplen2.
31954
31955         [BZ #12454]
31956         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
31957         when there are multiple maps.
31958         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
31959         (_dl_fini): Remove test here.
31960
31961         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
31962
31963 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
31964
31965         [BZ #12350]
31966         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
31967         bit from old_res_options.
31968         (gaih_inet): Likewise.
31969
31970         [BZ #11099]
31971         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
31972         as signed.
31973
31974         * resolv/res_init.c (res_setoptions): Make the code more compact.
31975
31976         [BZ #11558]
31977         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
31978         set RES_USEVC.
31979
31980         [BZ #11634]
31981         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
31982
31983         * malloc/malloc.h: Mark malloc hook variables as deprecated.
31984
31985         [BZ #11781]
31986         * malloc/malloc.h: Declare malloc hook variables as volatile.
31987
31988         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
31989         in last patch.
31990
31991         [BZ #11799]
31992         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
31993         raise in the comment.
31994         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
31995         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
31996         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
31997
31998 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
31999
32000         [BZ #12811]
32001         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
32002         grow the buffers more if it already has to be sufficient.
32003         (build_wcs_upper_buffer): Likewise.
32004         * posix/regexec.c (check_matching): Likewise.
32005         (clean_state_log_if_needed): Likewise.
32006         (extend_buffers): Don't enlarge buffers beyond size of the input
32007         buffer.
32008         Patches mostly by Emil Wojak <emil@wojak.eu>.
32009         * posix/bug-regex32.c: New file.
32010         * posix/Makefile (tests): Add bug-regex32.
32011
32012         * locale/findlocale.c (_nl_find_locale): Return right away if
32013         _nl_explode_name failed.
32014         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
32015
32016         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
32017
32018         * debug/xtrace.sh: Unify messages.
32019         * malloc/memusage.sh: Likewise.
32020
32021         [BZ #12813]
32022         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
32023         time symbol from vDSO.  Substitute with vsyscall if not available.
32024         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
32025         __vdso_time.
32026
32027         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
32028         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
32029         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
32030         Add sendmmsg and internal_sendmmsg.
32031         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
32032         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
32033         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
32034
32035         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
32036         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
32037         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
32038
32039 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
32040
32041         [BZ #12813]
32042         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
32043         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
32044         available.
32045         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
32046         __vdso_getcpu.
32047
32048         [BZ #12814]
32049         * iconvdata/Makefile (tests): Add bug-iconv9.
32050         * iconvdata/bug-iconv9.c: New file.
32051
32052 2011-05-27  Andreas Schwab  <schwab@redhat.com>
32053
32054         [BZ #12814]
32055         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
32056
32057 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
32058
32059         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
32060         (struct user_regs_struct): Change intcs field back to cs.
32061
32062 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
32063
32064         * po/ja.po: Update from translation team.
32065
32066 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
32067
32068         [BZ #12795]
32069         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
32070         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
32071
32072 2011-05-20  Andreas Schwab  <schwab@redhat.com>
32073
32074         * stdlib/longlong.h: Update from GCC.
32075
32076 2011-05-23  Andreas Schwab  <schwab@redhat.com>
32077
32078         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
32079         parameter name.
32080         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
32081         Add parameter name.
32082         (__sysconf): Pass it down.
32083
32084 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
32085
32086         [BZ #12671]
32087         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
32088         some situations.
32089         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
32090         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
32091         add in in __libc_use_alloca calls.  Adjust callers.
32092         (glob): Use malloc in some situations.
32093
32094         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
32095         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
32096         pltexit.
32097
32098 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
32099
32100         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
32101         and CLOCK_BOOTTIME_ALARM.
32102
32103         [BZ #12782]
32104         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
32105         is returned.
32106
32107         * string/_strerror.c (__strerror_r): Print negative errors as signed
32108         numbers.
32109
32110         [BZ #12777]
32111         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
32112         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
32113         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
32114
32115         * configure.in: Fix typo in redirection and correct removal of test
32116         files in two cases.
32117
32118         [BZ #12788]
32119         * locale/setlocale.c (new_composite_name): Fix test to check for
32120         identical name of all categories.
32121
32122         [BZ #12792]
32123         * libio/filedoalloc.c (local_isatty): New function.
32124         (_IO_file_doallocate): Use local_isatty.
32125         * stdio-common/perror.c (perror): In case a new stream is used
32126         forward the stream error.
32127         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
32128         error flag.
32129
32130 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
32131
32132         [BZ #11869]
32133         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
32134         alloca.
32135         * include/alloca.h (extend_alloca_account): Define.
32136
32137         [BZ #11857]
32138         * posix/regex.h: Fix comments with documentation of user-accessible
32139         fields after compilation and describe correct free'ing of pattern
32140         after re_compile_pattern.
32141         Patch by Reuben Thomas <rrt@sc3d.org>.
32142
32143 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
32144
32145         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
32146         and -mno-altivec to prevent the compiler from using Altivec and/or
32147         VSX instructions when the corresponding registers are not available.
32148
32149 2011-05-19  Andreas Schwab  <schwab@redhat.com>
32150
32151         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
32152
32153 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
32154
32155         * libio/freopen.c (freopen): Use __dup2, not dup2.
32156         * libio/freopen64.c (freopen64): Likewise.
32157
32158 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32159
32160         [BZ #12775]
32161         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
32162         * math/Makefile (tests): Add test-powl.
32163         (CFLAGS-test-powl.c): Define.
32164         * math/test-powl.c: New file.
32165
32166 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32167
32168         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
32169
32170 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
32171
32172         [BZ #11837]
32173         * iconvdata/gb18030.c: Update to GB18020-2005.
32174
32175 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
32176
32177         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
32178         RE_SYNTAX_POSIX_AWK): Update to match recent development.
32179         Patch by Aharon Robbins <arnold@skeeve.com>.
32180
32181         [BZ #11892]
32182         * stdlib/putenv.c (putenv): Don't always create copy of the variable
32183         on the stack.
32184
32185         [BZ #11895]
32186         * misc/pselect.c (__pselect): Handle timeout value errors hidden
32187         through underflows.
32188
32189         [BZ #12766]
32190         * misc/error.c (error_at_line): Ensure file_name and old_file_name
32191         point to strings before performing equality test for error_one_per_line
32192         mode.
32193
32194         [BZ #11697]
32195         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
32196
32197         [BZ #11820]
32198         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
32199         (struct user_fpregs_struct): Avoid __uint*_t types.
32200
32201         [BZ #6420]
32202         * malloc/mtrace.c (tr_where): Add additional parameter to point to
32203         symbol info.  Use it instead of calling _dl_addr locally.
32204         (lock_and_info): New function.
32205         (tr_freehook): Call lock_and_info and pass symbol info as additional
32206         parameter to tr_where.
32207         (tr_mallochook): Likewise.
32208         (tr_reallochook): Likewise.
32209         (tr_memalignhook): Likewise.
32210
32211         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
32212         used and couldn't be at all thread-safe.
32213
32214 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
32215
32216         * libio/freopen.c (freopen): Don't close old file descriptor
32217         before the new one is opened.  Instead dup the new file descriptor
32218         to the old one after the new stream is created.
32219         * libio/freopen64.c (freopen64): Likewise.
32220         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
32221         * libio/fileops.c (_IO_new_file_close_it): Handle new
32222         _IO_FLAGS2_NOCLOSE flag.
32223         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
32224         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
32225         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
32226         _IO_FLAGS2_NOCLOSE flag.
32227         * include/unistd.h: Add hidden_proto for dup3.
32228         Define __have_dup3.
32229         * io/dup3.c: Define hidden symbol.
32230         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
32231
32232         [BZ #7101]
32233         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
32234         when an incomplete long option is used.
32235         * posix/tst-getopt_long1.c: New file.
32236         * posix/Makefile (tests): Add tst-getopt_long1.
32237
32238         [BZ #10138]
32239         * scripts/config.guess: Update from autoconf-2.68.
32240         * scripts/config.sub: Likewise.
32241
32242         [BZ #10157]
32243         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
32244         tests into ...
32245         (has_cpuclock): ...this.  New function.
32246         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
32247         macro here based on has_cpuclock code.
32248
32249         [BZ #10149]
32250         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
32251         First byte (not low byte) is now always NUL.
32252         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
32253
32254         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
32255         Use non-cancelable interfaces.
32256
32257         [BZ #9809]
32258         * locale/iso-639.def: Add entry for Sorani.
32259
32260         [BZ #11901]
32261         * include/stdlib.h: Move include protection to the right place.
32262         Define abort_msg_s.  Declare __abort_msg with it.
32263         * stdlib/abort.c (__abort_msg): Adjust type.
32264         * assert/assert.c (__assert_fail_base): New function.  Majority
32265         of code from __assert_fail.  Allocate memory for __abort_msg with
32266         mmap.
32267         (__assert_fail): Now call __assert_fail_base.
32268         * assert/assert-perr.c: Remove bulk of implementation.  Use
32269         __assert_fail_base.
32270         * include/assert.hL Declare __assert_fail_base.
32271         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
32272         mmap.
32273         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
32274
32275 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
32276
32277         [BZ #11952]
32278         [BZ #12453]
32279         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
32280         until all modules are registered in the DTV.
32281         * elf/Makefile: Add rules to build and run tst-tls19.
32282         * elf/tst-tls19.c: New file.
32283         * elf/tst-tls19mod1.c: New file.
32284         * elf/tst-tls19mod2.c: New file.
32285         * elf/tst-tls19mod3.c: New file.
32286         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
32287
32288         [BZ #12083]
32289         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
32290         correctly.
32291
32292         [BZ #12601]
32293         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
32294         two-byte sequence errors.
32295         * iconvdata/Makefile (tests): Add bug-iconv8.
32296         * iconvdata/bug-iconv8.c: New file.
32297
32298         [BZ #12626]
32299         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
32300         buf2 definition.
32301
32302         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
32303
32304         [BZ #12432]
32305         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
32306         (dummy_getcfa): New function.
32307         (init): Get _Unwind_GetCFA address, use dummy if not found.
32308         (backtrace_helper): In recursion check, also check whether CFA changes.
32309         (__backtrace): Completely initialize arg.
32310
32311         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
32312         storing incomplete byte sequence in state object.  Avoid testing for
32313         guaranteed too small input if we know there is enough data available.
32314
32315 2011-05-11  Andreas Schwab  <schwab@redhat.com>
32316
32317         * Makeconfig (+link-pie): Indent.
32318         * Rules (binaries-pie): Define if $(have-fpie) and
32319         $(build-shared).
32320         (binaries-shared): Also filter out $(binaries-pie).
32321         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
32322         * nscd/Makefile (others-pie): Add nscd.
32323         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
32324         ($(objpfx)nscd): Remove command override.
32325         * login/Makefile (others-pie): Add pt_chown.
32326         ($(objpfx)pt_chown): Remove command override.
32327         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
32328         remove command overrides.
32329
32330 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
32331
32332         * libio/tst_putwc.c: Fix error messages.
32333
32334         [BZ #12724]
32335         * libio/fileops.c (_IO_new_file_close_it): Always flush when
32336         currently writing and seek to current position when not.
32337         * libio/Makefile (tests): Add bug-fclose1.
32338         * libio/bug-fclose1.c: New file.
32339
32340 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
32341
32342         [BZ #12511]
32343         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
32344         don't set DF_1_NODELETE here.
32345         (do_lookup_x): When entering new entry test for copy relocation
32346         and if necessary set DF_1_NODELETE flag.
32347         * elf/tst-unique4.cc: New file.
32348         * elf/tst-unique4.h: New file.
32349         * elf/tst-unique4lib.cc: New file.
32350         * elf/Makefile: Add rules to build and run tst-unique4.
32351         Patch by Piotr Bury <pbury@goahead.com>.
32352
32353 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
32354
32355         [BZ #12052]
32356         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
32357
32358         [BZ #12625]
32359         * misc/mntent_r.c (addmntent): Flush the stream after the output
32360
32361         [BZ #12393]
32362         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
32363         (is_trusted_path_normalize): Skip initial colon.  Append slash
32364         to empty buffer.  Duplicate is_trusted_path code but allow
32365         constructed patch to be prefix.
32366         (is_dst): Allow $ORIGIN followed by /.
32367         (_dl_dst_substitute): Correct clearing of check_for_trusted.
32368         Correct testing of result of is_trusted_path_normalize
32369         (decompose_rpath): Fix warning.
32370
32371 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
32372
32373         [BZ #11257]
32374         * grp/initgroups.c (internal_getgrouplist): When we found the service
32375         list through the initgroups entry in nsswitch.conf do not always
32376         continue on a successful lookup.  Don't always use the
32377         __nss_group_database value if it is set.
32378         * nss/nsswitch.conf (initgroups): Change action for successful db
32379         lookup to continue for compatibility.
32380
32381 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
32382
32383         [BZ #11532]
32384         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
32385         and CP774 modules.
32386         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
32387         and CP774 modules.
32388         * iconvdata/tst-tables.sh: Likewise.
32389         * iconvdata/cp770.c: New file.
32390         * iconvdata/cp771.c: New file.
32391         * iconvdata/cp772.c: New file.
32392         * iconvdata/cp773.c: New file.
32393         * iconvdata/cp774.c: New file.
32394         * iconvdata/testdata/CP770: New file.
32395         * iconvdata/testdata/CP770..UTF8: New file.
32396         * iconvdata/testdata/CP771: New file.
32397         * iconvdata/testdata/CP771..UTF8: New file.
32398         * iconvdata/testdata/CP772: New file.
32399         * iconvdata/testdata/CP772..UTF8: New file.
32400         * iconvdata/testdata/CP773: New file.
32401         * iconvdata/testdata/CP773..UTF8: New file.
32402         * iconvdata/testdata/CP774: New file.
32403         * iconvdata/testdata/CP774..UTF8: New file.
32404
32405         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
32406         END CHARMAP line.
32407         * iconvdata/gen-8bit-gap.sh: Likewise.
32408         * iconvdata/gen-8bit.sh: Likewise.
32409
32410         * locale/iso-639.def: Add ary entry.
32411
32412         [BZ #11258]
32413         * locale/C-translit.h.in: Add U20A1 transliteration.
32414
32415         [BZ #12178]
32416         * locale/iso-639.def: Add wae entry.
32417         Patch by Kevin Bortis <bortis@translate-wae.ch>.
32418
32419         [BZ #12545]
32420         * locale/programs/localedef.c (construct_output_path): Use ssize_t
32421         for n.
32422
32423         [BZ #12711]
32424         * locale/C-translit.h.in: Add entry for U20B9.
32425         Patch by pravin.d.s@gmail.com.
32426
32427 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
32428
32429         [BZ #12713]
32430         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
32431         ENAMETOOLONG use generic getcwd.
32432         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
32433         in rtld.  Use *stat64.
32434         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
32435         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
32436         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
32437         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
32438         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
32439         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
32440         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
32441         __fstatat64 macros.
32442         * include/dirent.h: Add libc_hidden_proto for rewinddir.
32443         * dirent/rewinddir.c: Add libc_hidden_def.
32444         * sysdeps/mach/hurd/rewinddir.c: Likewise.
32445         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
32446
32447         * include/dirent.h (__alloc_dir): Add flags parameter.
32448         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
32449         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
32450         __alloc_dir.
32451         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
32452         from fdopendir if O_CLOEXEC is already set.
32453
32454 2011-03-15  Alan Modra  <amodra@gmail.com>
32455
32456         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
32457         l_tls_firstbyte_offset non-zero.  Save padding offset in
32458         l_tls_firstbyte_offset for later use.
32459         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
32460         freeing static tls block.
32461
32462 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
32463
32464         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
32465         where #ifdef was intended.  The intent is to prevent ARG_MAX from
32466         being defined by the kernel headers.
32467
32468 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
32469
32470         [BZ #12734]
32471         * resolv/resolv.h: Define RES_NOTLDQUERY.
32472         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
32473         no-tld-query and set RES_NOTLDQUERY.
32474         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
32475         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
32476         modern BIND to search name as TLD unless forbidden.
32477
32478 2011-05-07  Petr Baudis  <pasky@suse.cz>
32479             Ulrich Drepper  <drepper@gmail.com>
32480
32481         [BZ #12393]
32482         * elf/dl-load.c (fillin_rpath): Move trusted path check...
32483         (is_trusted_path): ...to here.
32484         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
32485         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
32486         using is_trusted_path_normalize() in setuid scripts.
32487
32488 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
32489
32490         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
32491         __BEGIN/__END_DECLS.
32492
32493 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
32494
32495         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
32496         NSS_STATUS_NOTFOUND if no record was found.
32497
32498 2011-05-05  Andreas Schwab  <schwab@redhat.com>
32499
32500         * sunrpc/Makefile (headers): Add rpc/netdb.h.
32501         (headers-not-in-tirpc): Remove rpc/netdb.h
32502         * resolv/netdb.h: Revert last change.
32503
32504 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
32505
32506         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
32507         circular dependency between libgcc.a and libc.a.
32508
32509 2011-05-05  Andreas Schwab  <schwab@redhat.com>
32510
32511         * resolv/netdb.h: Don't include <rpc/netdb.h>.
32512         * nis/Makefile: Don't install rpcsvc/*.
32513         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
32514         instead of <rpc/types.h>.
32515         (MAXHOSTNAMELEN): Define.
32516
32517 2011-05-03  Andreas Schwab  <schwab@redhat.com>
32518
32519         * elf/ldconfig.c (add_dir): Don't crash on empty path.
32520
32521 2011-04-28  Maciej Babinski  <mbabinski@google.com>
32522
32523         [BZ #12714]
32524         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
32525         gethostbyname4_r when IPv6 results are possible.
32526
32527 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
32528
32529         [BZ #12723]
32530         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
32531         _PC_PIPE_BUF handling.
32532
32533 2011-04-30  Bruno Haible  <bruno@clisp.org>
32534
32535         [BZ #12717]
32536         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
32537         * resolv/netdb.h (getnameinfo): Change type of flags parameter
32538         to 'int'.
32539         * inet/getnameinfo.c (getnameinfo): Likewise.
32540
32541 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
32542
32543         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
32544         to groups setting in database lookup.
32545         * nss/nsswitch.conf: Add initgroups entry.
32546
32547 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
32548
32549         [BZ #12685]
32550         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
32551         mode string.
32552         Patch by Eric Blake <eblake@redhat.com>.
32553
32554 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
32555
32556         * sunrpc/Makefile (need-export-routines): Add svc_run.
32557         (routines): Remove svc_run.
32558         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
32559         * sunrpc/clnt_perr.c (clnt_perrno): Export.
32560         * sunrpc/svc_run.c (svc_run): Likewise.
32561         * sunrpc/svc_udp.c (svcudp_create): Likewise.
32562
32563 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
32564
32565         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
32566         problem in reallocation in last patch.
32567
32568 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
32569
32570         * sunrpc/Makefile: Move inclusion of Rules.
32571
32572 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
32573
32574         * nss/nss_files/files-initgroups.c: New file.
32575         * nss/Makefile (libnss_files-routines): Add files-initgroups.
32576         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
32577         _nss_files_initgroups_dyn.
32578
32579 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
32580
32581         * elf/elf.h (R_ARM_IRELATIVE): Define.
32582
32583 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
32584
32585         * po/ru.po: Update from translation team.
32586
32587 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
32588
32589         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
32590         dependencies.
32591
32592 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
32593
32594         [BZ #12653]
32595         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
32596         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
32597         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32598         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32599         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
32600
32601 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
32602
32603         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
32604         differing bytes.
32605         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
32606         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
32607         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
32608
32609 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
32610
32611         [BZ #12420]
32612         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
32613         storing it.
32614         * stdlib/bug-getcontext.c: New file.
32615         * stdlib/Makefile: Add rules to build and run bug-getcontext.
32616
32617 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32618
32619         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
32620         instructions into .machine "z9-109".
32621         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
32622         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
32623
32624 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32625
32626         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
32627         between environment variables and auxiliary vector.
32628
32629 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
32630
32631         * Makefile: Add rules to build linkobj/libc.so.
32632         * include/libc-symbols.h: Define libc_hidden_nolink.
32633         * include/rpc/auth.h: Mark functions which are to be hidden.
32634         * include/rpc/auth_des.h: Likewise.
32635         * include/rpc/auth_unix.h: Likewise.
32636         * include/rpc/clnt.h: Likewise.
32637         * include/rpc/des_crypt.h: Likewise.
32638         * include/rpc/key_prot.h: Likewise.
32639         * include/rpc/pmap_clnt.h: Likewise.
32640         * include/rpc/pmap_prot.h: Likewise.
32641         * include/rpc/pmap_rmt.h: Likewise.
32642         * include/rpc/rpc_msg.h: Likewise.
32643         * include/rpc/svc.h: Likewise.
32644         * include/rpc/svc_auth.h: Likewise.
32645         * include/rpc/xdr.h: Likewise.
32646         * nis/Makefile: Link all DSOs against linkobj/libc.so.
32647         * nss/Makefile: Likewise.
32648         * sunrpc/Makefile: Don't install headers.  Build library with normal
32649         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
32650         * sunrpc/auth_des.c: Hide exported symbols by default, export some
32651         for the compat linking library.  Remove use of INTDEF/INTUSE.
32652         * sunrpc/auth_none.c: Likewise.
32653         * sunrpc/auth_unix.c: Likewise.
32654         * sunrpc/authdes_prot.c: Likewise.
32655         * sunrpc/authuxprot.c: Likewise.
32656         * sunrpc/clnt_gen.c: Likewise.
32657         * sunrpc/clnt_perr.c: Likewise.
32658         * sunrpc/clnt_raw.c: Likewise.
32659         * sunrpc/clnt_simp.c: Likewise.
32660         * sunrpc/clnt_tcp.c: Likewise.
32661         * sunrpc/clnt_udp.c: Likewise.
32662         * sunrpc/clnt_unix.c: Likewise.
32663         * sunrpc/des_crypt.c: Likewise.
32664         * sunrpc/des_soft.c: Likewise.
32665         * sunrpc/get_myaddr.c: Likewise.
32666         * sunrpc/key_call.c: Likewise.
32667         * sunrpc/key_prot.c: Likewise.
32668         * sunrpc/netname.c: Likewise.
32669         * sunrpc/pm_getmaps.c: Likewise.
32670         * sunrpc/pm_getport.c: Likewise.
32671         * sunrpc/pmap_clnt.c: Likewise.
32672         * sunrpc/pmap_prot.c: Likewise.
32673         * sunrpc/pmap_prot2.c: Likewise.
32674         * sunrpc/pmap_rmt.c: Likewise.
32675         * sunrpc/publickey.c: Likewise.
32676         * sunrpc/rpc_cmsg.c: Likewise.
32677         * sunrpc/rpc_common.c: Likewise.
32678         * sunrpc/rpc_dtable.c: Likewise.
32679         * sunrpc/rpc_prot.c: Likewise.
32680         * sunrpc/rpc_thread.c: Likewise.
32681         * sunrpc/rtime.c: Likewise.
32682         * sunrpc/svc.c: Likewise.
32683         * sunrpc/svc_auth.c: Likewise.
32684         * sunrpc/svc_authux.c: Likewise.
32685         * sunrpc/svc_raw.c: Likewise.
32686         * sunrpc/svc_run.c: Likewise.
32687         * sunrpc/svc_simple.c: Likewise.
32688         * sunrpc/svc_tcp.c: Likewise.
32689         * sunrpc/svc_udp.c: Likewise.
32690         * sunrpc/svc_unix.c: Likewise.
32691         * sunrpc/svcauth_des.c: Likewise.
32692         * sunrpc/xcrypt.c: Likewise.
32693         * sunrpc/xdr.c: Likewise.
32694         * sunrpc/xdr_array.c: Likewise.
32695         * sunrpc/xdr_float.c: Likewise.
32696         * sunrpc/xdr_intXX_t.c: Likewise.
32697         * sunrpc/xdr_mem.c: Likewise.
32698         * sunrpc/xdr_rec.c: Likewise.
32699         * sunrpc/xdr_ref.c: Likewise.
32700         * sunrpc/xdr_sizeof.c: Likewise.
32701         * sunrpc/xdr_stdio.c: Likewise.
32702
32703 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
32704
32705         [BZ #12650]
32706         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
32707         * sysdeps/ia64/dl-tls.h: Likewise.
32708         * sysdeps/powerpc/dl-tls.h: Likewise.
32709         * sysdeps/s390/dl-tls.h: Likewise.
32710         * sysdeps/sh/dl-tls.h: Likewise.
32711         * sysdeps/sparc/dl-tls.h: Likewise.
32712         * sysdeps/x86_64/dl-tls.h: Likewise.
32713         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
32714
32715 2011-03-14  Andreas Schwab  <schwab@redhat.com>
32716
32717         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
32718         rpath element also skip the following colon.
32719         (expand_dynamic_string_token): Add is_path parameter and pass
32720         down to DL_DST_REQUIRED and _dl_dst_substitute.
32721         (decompose_rpath): Call expand_dynamic_string_token with
32722         non-zero is_path.  Ignore empty rpaths.
32723         (_dl_map_object_from_fd): Call expand_dynamic_string_token
32724         with zero is_path.
32725
32726 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
32727
32728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
32729         Make cancelable.
32730
32731 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
32732
32733         [BZ #12655]
32734         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
32735         Patch by Filipe David Manana <fdmanana@apache.org>.
32736
32737 2011-04-07  Andreas Schwab  <schwab@redhat.com>
32738
32739         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
32740         Maintain aligned stack.
32741         (CHECK_RSP): Remove unused macro.
32742
32743 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
32744
32745         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
32746         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
32747
32748 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
32749
32750         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
32751
32752         * include/features.h: Mention __USE_XOPEN2K8 in comment.
32753
32754 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
32755
32756         [BZ #12518]
32757         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
32758         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
32759         * sysdeps/x86_64/memmove.c: New file.
32760         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
32761         (memcpy): Renamed to ...
32762         (__new_memcpy): This.
32763         (memcpy): Provide GLIBC_2_14 memcpy.
32764         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
32765         (memcpy): Provide GLIBC_2_2_5 memcpy.
32766
32767 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32768
32769         [BZ #12631]
32770         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
32771
32772 2011-03-30  Andreas Schwab  <schwab@redhat.com>
32773
32774         * misc/syncfs.c: New file.
32775         * misc/Makefile (routines): Add syncfs.
32776         * posix/unistd.h: Declare syncfs.
32777         * sysdeps/unix/syscalls.list: Add syncfs.
32778
32779 2011-04-01  Andreas Schwab  <schwab@redhat.com>
32780
32781         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
32782         open_by_handle_at.
32783         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
32784         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32785         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32786         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32787         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32788         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
32789         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32790
32791 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32792
32793         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
32794         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32795         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
32796         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32797         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32798         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32799         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32800
32801         * io/Makefile: Compile fallocate.c, fallocate64.c, and
32802         sync_file_range.c with -fexceptions.
32803         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
32804         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
32805         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
32806         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
32807         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
32808         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
32809         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
32810         sync_file_range as cancellation point
32811         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
32812         now a wrapper around __call_sync_file_range with cancellation handling.
32813         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
32814         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
32815         function name to __call_sync_file_range.
32816         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
32817         Add call_sync_file_range.
32818
32819 2011-04-01  Andreas Schwab  <schwab@redhat.com>
32820
32821         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
32822         bits/timex.h.
32823
32824 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32825
32826         * iconv/iconv.h: Fix typo in comment.
32827         * io/fcntl.h: Likewise.
32828         * libio/stdio.h: Likewise.
32829         * posix/spawn.h: Likewise.
32830         * posix/unistd.h: Likewise.
32831         * stdlib/stdlib.h: Likewise.
32832         * time/time.h: Likewise.
32833         * wcsmbs/wchar.h: Likewise.
32834
32835         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
32836         open_by_handle): Add.
32837         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
32838         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
32839         Augment a few comments.
32840         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32841         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32842         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32843         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32844         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32845         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
32846         open_by_handle.
32847
32848         * io/fcntl.h (AT_EMPTY_PATH): Define.
32849
32850 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
32851
32852         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
32853         * sysdeps/unix/sysv/linux/bits/time.h: New file.
32854         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
32855         to...
32856         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
32857         * Versions.def: Add GLIBC_2.14.
32858         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
32859         Export.
32860
32861 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
32862
32863         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
32864         round counter.
32865         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
32866
32867 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
32868
32869         [BZ #12597]
32870         * string/test-strncmp.c (do_page_test): New function.
32871         (check2): Likewise.
32872         (test_main): Call check2.
32873         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
32874
32875 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
32876
32877         [BZ #12587]
32878         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
32879         Handle cache information in CPU leaf 4.
32880         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
32881
32882 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
32883
32884         [BZ #12583]
32885         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
32886         character representation.
32887         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
32888
32889 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
32890
32891         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
32892         END(__isnan) to END(__isnanf) to match function entry point/label
32893         EALIGN(__isnanf,...).
32894
32895 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
32896
32897         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
32898
32899 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
32900
32901         [BZ #12510]
32902         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
32903         copy from the symbol referenced in the relocation to initialize the
32904         used variable.
32905         Patch by Piotr Bury <pbury@goahead.com>.
32906         * elf/Makefile: Add rules to build and tst-unique3.
32907         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
32908         * elf/tst-unique3.cc: New file.
32909         * elf/tst-unique3.h: New file.
32910         * elf/tst-unique3lib.cc: New file.
32911         * elf/tst-unique3lib2.cc: New file.
32912
32913         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
32914
32915 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
32916
32917         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
32918         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
32919         to _start.
32920
32921 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
32922
32923         * elf/dl-load.c (_dl_map_object): If we are looking for the first
32924         to-be-loaded object along a path to loader is ld.so.
32925
32926 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
32927             Ulrich Drepper  <drepper@gmail.com>
32928
32929         * sysdeps/x86_64/memset.S: After aligning destination, code
32930         branches to different locations depending on the value of
32931         misalignment, when multiarch is enabled. Fix this.
32932
32933 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
32934
32935         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
32936         Set _x86_64_preferred_memory_instruction for AMD processsors.
32937         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32938         Set bit_Prefer_SSE_for_memop for AMD processors.
32939
32940 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
32941
32942         * libio/fmemopen.c (fmemopen): Optimize a bit.
32943
32944 2011-03-03  Andreas Schwab  <schwab@redhat.com>
32945
32946         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
32947
32948 2011-03-03  Roland McGrath  <roland@redhat.com>
32949
32950         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
32951
32952 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
32953
32954         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
32955         __bzero_ultra1 instead of __memset_ultra1.
32956
32957 2011-02-23  Andreas Schwab  <schwab@redhat.com>
32958             Ulrich Drepper  <drepper@gmail.com>
32959
32960         [BZ #12509]
32961         * include/link.h (struct link_map): Add l_orig_initfini.
32962         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
32963         returning unsuccessfully.
32964         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
32965         close of a file loaded at startup, restore the original l_initfini
32966         list.
32967         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
32968         list, store the pointer.
32969         * elf/Makefile ($(objpfx)noload-mem): New rule.
32970         (noload-ENV): Define.
32971         (tests): Add $(objpfx)noload-mem.
32972         * elf/noload.c: Include <memcheck.h>.
32973         (main): Call mtrace.  Close all opened handles.
32974
32975 2011-02-17  Andreas Schwab  <schwab@redhat.com>
32976
32977         [BZ #12454]
32978         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
32979         dependencies are missing.
32980
32981 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32982
32983         Fix __if_freereq crash: Unlike the generic version which uses free,
32984         Hurd needs munmap.
32985         * sysdeps/mach/hurd/ifreq.h: New file.
32986
32987 2011-01-27  Petr Baudis  <pasky@suse.cz>
32988             Ulrich Drepper  <drepper@gmail.com>
32989
32990         [BZ 12445]#
32991         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
32992         to extend_alloca().
32993         * stdio-common/bug23.c: New file.
32994         * stdio-common/Makefile (tests): Add bug23.
32995
32996 2010-09-28  Andreas Schwab  <schwab@redhat.com>
32997             Ulrich Drepper  <drepper@gmail.com>
32998
32999         [BZ #12489]
33000         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
33001         before performing relro protection.  At old place add assertion
33002         to make sure nothing changed.
33003
33004 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
33005             Glauber de Oliveira Costa  <glommer@gmail.com>
33006
33007         * elf/elf.h: Add new ARM TLS relocs.
33008
33009 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
33010
33011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
33012         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
33013         cast from r3.
33014         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
33015         'tests' variable.
33016         * sysdeps/wordsize-64/tst-writev.c: New file.
33017
33018 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
33019
33020         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
33021         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
33022         insns in _dl_start to prevent a TOC reference before relocs are
33023         resolved.
33024
33025 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
33026
33027         [BZ #12469]
33028         * Makeconfig: Remove RANLIB definition.
33029         * Makerules: Don't use RANLIB.
33030         * aclocal.m4: Remove ranlib test.
33031         * configure.in: No need to check for ranlib.
33032         * elf/rtld-Rules: Don't use RANLIB.
33033
33034 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33035
33036         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
33037         protection macro.
33038         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
33039         inclusion protection macro.
33040
33041         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
33042         SIGRTMIN and SIGRTMAX and print information in that case only when
33043         SIGRTMIN is defined.
33044
33045 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
33046
33047         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
33048         arginfo fn returning -1.
33049
33050         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
33051         and thousands string is zero terminated.
33052
33053 2011-02-03  Andreas Schwab  <schwab@redhat.com>
33054
33055         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
33056         sysdeps/unix/sysv/linux/bits/socket.h.
33057
33058 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33059
33060         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
33061         (__CPU_COUNT): Remove old macros.
33062         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
33063         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
33064         (__CPU_ALLOC, __CPU_FREE): Add macros.
33065         (__sched_cpualloc, __sched_cpufree): Add declarations.
33066
33067 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
33068
33069         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
33070         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
33071         * nscd/aicache.c (addhstaiX): Return timeout of added value.
33072         (readdhstai): Return value of addhstaiX call.
33073         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
33074         (addgrbyX): Return value returned by cache_addgr.
33075         (readdgrbyname): Return value returned by addgrbyX.
33076         (readdgrbygid): Likewise.
33077         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
33078         (addpwbyX): Return value returned by cache_addpw.
33079         (readdpwbyname): Return value returned by addhstbyX.
33080         (readdpwbyuid): Likewise.
33081         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
33082         (addservbyX): Return value returned by cache_addserv.
33083         (readdservbyname): Return value returned by addservbyX:
33084         (readdservbyport): Likewise.
33085         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
33086         (addhstbyX): Return value returned by cache_addhst.
33087         (readdhstbyname): Return value returned by addhstbyX.
33088         (readdhstbyaddr): Likewise.
33089         (readdhstbynamev6): Likewise.
33090         (readdhstbyaddrv6): Likewise.
33091         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
33092         (readdinitgroups): Return value returned by addinitgroupsX.
33093         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
33094         (prune_cache): Keep track of timeout value of re-added entries.
33095         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
33096         * nscd/nscd.h: Adjust prototypes of readd* functions.
33097
33098 2011-02-04  Roland McGrath  <roland@redhat.com>
33099
33100         * nis/nis_server.c (nis_servstate): Use the right name for 0.
33101         (nis_stats): Likewise.
33102         * nis/nis_modify.c (nis_modify): Likewise.
33103         * nis/nis_remove.c (nis_remove): Likewise.
33104         * nis/nis_add.c (nis_add): Likewise.
33105
33106         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
33107
33108         * posix/fnmatch_loop.c: Add some consts.
33109
33110         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
33111
33112 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
33113
33114         [BZ #12460]
33115         * config.make.in (config-cflags-novzeroupper): Define.
33116         * configure.in: Substitute libc_cv_cc_novzeroupper.
33117         * elf/Makefile (AVX-CFLAGS): Define.
33118         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
33119         (CFLAGS-tst-auditmod4a.c): Likewise.
33120         (CFLAGS-tst-auditmod4b.c): Likewise.
33121         (CFLAGS-tst-auditmod6b.c): Likewise.
33122         (CFLAGS-tst-auditmod6c.c): Likewise.
33123         (CFLAGS-tst-auditmod7b.c): Likewise.
33124         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
33125
33126 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
33127
33128         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
33129         function to the callback.
33130         Patch partly by Jiri Olsa <jolsa@redhat.com>.
33131
33132 2011-02-02  Andreas Schwab  <schwab@redhat.com>
33133
33134         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
33135         of errno.
33136
33137 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
33138
33139         [BZ #11724]
33140         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
33141         of constructors.
33142         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
33143         of destructors.
33144         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
33145
33146         [BZ #11724]
33147         * elf/Makefile: Add rules to build and run new test.
33148         * elf/tst-initorder.c: New file.
33149         * elf/tst-initorder.exp: New file.
33150         * elf/tst-initordera1.c: New file.
33151         * elf/tst-initordera2.c: New file.
33152         * elf/tst-initordera3.c: New file.
33153         * elf/tst-initordera4.c: New file.
33154         * elf/tst-initorderb1.c: New file.
33155         * elf/tst-initorderb2.c: New file.
33156         * elf/tst-order-a1.c: New file.
33157         * elf/tst-order-a2.c: New file.
33158         * elf/tst-order-a3.c: New file.
33159         * elf/tst-order-a4.c: New file.
33160         * elf/tst-order-b1.c: New file.
33161         * elf/tst-order-b2.c: New file.
33162         * elf/tst-order-main.c: New file.
33163         New test case by George Gensure <werkt0@gmail.com>.
33164
33165 2010-10-01  Andreas Schwab  <schwab@redhat.com>
33166
33167         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
33168         decoding ACE if AI_CANONIDN.
33169
33170 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
33171
33172         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
33173
33174 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
33175
33176         * version.h (RELEASE): Bump for 2.13 release.
33177         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
33178
33179         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
33180
33181         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
33182         MADV_NOHUGEPAGE.
33183         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
33184         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
33185         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
33186         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
33187         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
33188         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
33189
33190         * posix/getconf.c: Update copyright year.
33191         * catgets/gencat.c: Likewise.
33192         * csu/version.c: Likewise.
33193         * debug/catchsegv.sh: Likewise.
33194         * debug/xtrace.sh: Likewise.
33195         * elf/ldconfig.c: Likewise.
33196         * elf/ldd.bash.in: Likewise.
33197         * elf/sprof.c (print_version): Likewise.
33198         * iconv/iconv_prog.c: Likewise.
33199         * iconv/iconvconfig.c: Likewise.
33200         * locale/programs/locale.c: Likewise.
33201         * locale/programs/localedef.c: Likewise.
33202         * malloc/memusage.sh: Likewise.
33203         * malloc/mtrace.pl: Likewise.
33204         * nscd/nscd.c (print_version): Likewise.
33205         * nss/getent.c: Likewise.
33206
33207         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
33208         PF_CAIF, and PF_ALG.
33209         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
33210
33211 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
33212
33213         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
33214         (modules-names): Use them.
33215         (ifunc-test-modules, ifunc-pie-tests): Define.
33216         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
33217         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
33218         (test-extras): Likewise.
33219         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
33220         $(compile-command.c).
33221         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
33222         (all-built-dso): Define.
33223         (check-textrel.out, check-execstack.out): Depend on it.
33224
33225         * configure.in: Don't override --enable-multi-arch.
33226
33227 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
33228
33229         [BZ #6812]
33230         * nscd/hstcache.c (tryagain): Define.
33231         (cache_addhst): Return tryagain not notfound for temporary errors.
33232         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
33233         failed.
33234
33235 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
33236
33237         [BZ #10563]
33238         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
33239         to make the syscall.
33240         * sysdeps/unix/sysv/linux/setgroups.c: New file.
33241
33242         [BZ #12378]
33243         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
33244         and fall back to matching as normal character if the string ends before
33245         the matching ']' is found.  This is what POSIX requires.
33246         * posix/testfnm.c: Adjust test result.
33247         * posix/globtest.sh: Adjust test result.  Add new test.
33248         * posix/tst-fnmatch.input: Likewise.
33249         * posix/tst-fnmatch2.c: Add new test.
33250
33251 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
33252
33253         * elf/Makefile (check-execstack): Revert last change.  Depend on
33254         check-execstack.h.
33255         (check-execstack.h): New target.
33256         (generated): Add check-execstack.h.
33257         * elf/check-execstack.c: Include "check-execstack.h".
33258         (main): Revert last change.
33259         (handle_file): Return zero if GNU_STACK is absent and
33260         DEFAULT_STACK_PERMS doesn't include PF_X.
33261
33262 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
33263
33264         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
33265         in child fails because the descriptor is already closed.
33266         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
33267         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
33268         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
33269
33270         [BZ #12397]
33271         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
33272         syscall.
33273
33274         [BZ #10484]
33275         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
33276         temporary buffer used to handle multi lookups locally.
33277         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
33278
33279 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
33280
33281         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
33282         loader is ld.so.
33283
33284 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
33285
33286         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
33287         alignment for SSE2.
33288
33289 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
33290
33291         [BZ #12394]
33292         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
33293         characters.  When rounding increased number of integer digits recompute
33294         number of groups.
33295         * stdio-common/tst-grouping.c: New file.
33296         * stdio-common/Makefile: Add rules to build and run tst-grouping.
33297
33298 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
33299
33300         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
33301         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
33302
33303         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
33304         void.
33305         * bits/select.h: Likewise.
33306
33307 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
33308
33309         * po/ja.po: Update from translation team.
33310
33311 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
33312
33313         [BZ #11155]
33314         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
33315         implementation just like for lxstat, fxstatat, et al.
33316
33317 2010-12-27  Jim Meyering  <meyering@redhat.com>
33318
33319         [BZ #12348]
33320         * posix/regexec.c (build_trtable): Return failure indication upon
33321         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
33322
33323 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
33324
33325         [BZ #12201]
33326         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
33327         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
33328         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
33329         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
33330
33331         [BZ #12207]
33332         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
33333
33334         [BZ #12204]
33335         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
33336         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
33337
33338 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
33339
33340         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
33341         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
33342         script has SORT_BY_INIT_PRIORITY.
33343         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
33344         NO_CTORS_DTORS_SECTIONS is defined.
33345         * elf/soinit.c: Likewise.
33346         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
33347         NO_CTORS_DTORS_SECTIONS is defined.
33348         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
33349         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
33350         * sysdeps/sh/init-first.c: Likewise.
33351         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
33352
33353 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
33354
33355         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
33356         always use the slow path.
33357
33358 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
33359
33360         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
33361         similar rule which adds the sysdep directories to the header search in
33362         order to pick up the correct platform stackinfo.h.
33363         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
33364         perform test if it is, otherwise return successfully without testing.
33365         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
33366         DEFAULT_STACK_PERMS define in stackinfo.h.
33367         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
33368         defined in stackinfo.h.
33369         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
33370         DEFAULT_STACK_PERMS defined in stackinfo.h.
33371         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
33372         * sysdeps/ia64/stackinfo.h: Likewise.
33373         * sysdeps/s390/stackinfo.h: Likewise.
33374         * sysdeps/sh/stackinfo.h: Likewise.
33375         * sysdeps/sparc/stackinfo.h: Likewise.
33376         * sysdeps/x86_64/stackinfo.h: Likewise.
33377         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
33378         PF_X for powerpc64.  Retain PF_X for powerpc32.
33379
33380 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
33381
33382         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
33383         accurately.
33384         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
33385         GETDENTS_64BIT_ALIGNED.
33386
33387 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
33388
33389         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
33390
33391 2010-12-10  Andreas Schwab  <schwab@redhat.com>
33392
33393         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
33394         _GNU_SOURCE.
33395
33396         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
33397         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
33398         Remove __restrict.
33399         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
33400         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
33401
33402 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
33403
33404         [BZ #11655]
33405         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
33406         are initialized.
33407
33408 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
33409
33410         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
33411
33412 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
33413
33414         * po/it.po: Update from translation team.
33415
33416 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
33417
33418         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
33419         unused codes.
33420
33421 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
33422
33423         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
33424
33425 2010-11-24  Andreas Schwab  <schwab@redhat.com>
33426
33427         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
33428         specially.
33429         (gaih_getanswer_slice): Likewise.
33430
33431 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
33432
33433         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
33434
33435 2010-05-31  Petr Baudis  <pasky@suse.cz>
33436
33437         [BZ #11149]
33438         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
33439         silently even in the chroot mode.
33440
33441 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
33442
33443         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
33444         last patch a bit.  Pretty printing
33445
33446 2010-05-31  Petr Baudis <pasky@suse.cz>
33447
33448         [BZ #10085]
33449         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
33450         initialization of skip_initgroups_dyn.
33451
33452 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
33453
33454         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
33455         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
33456
33457 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
33458
33459         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
33460
33461 2010-11-11  Andreas Schwab  <schwab@redhat.com>
33462
33463         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
33464         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
33465         (tst-fnmatch-ENV): Set MALLOC_TRACE.
33466         ($(objpfx)tst-fnmatch-mem): New rule.
33467         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
33468         * posix/tst-fnmatch.c (main): Call mtrace.
33469
33470 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
33471
33472         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33473         Support Intel processor model 6 and model 0x2c.
33474
33475 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
33476
33477         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
33478           signed comparison.
33479
33480 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
33481
33482         [BZ #12205]
33483         * string/test-strncasecmp.c (check_result): New function.
33484         (do_one_test): Use it.
33485         (check1): New function.
33486         (test_main): Use it.
33487         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
33488         Support strcasecmp and strncasecmp.
33489
33490 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
33491
33492         [BZ #12194]
33493         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
33494         * sysdeps/x86_64/bits/byteswap.h: Likewise.
33495
33496 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
33497
33498         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
33499         IFUNC support.
33500         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33501         memset-x86-64.
33502         * sysdeps/x86_64/multiarch/bzero.S: New file.
33503         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
33504         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
33505         * sysdeps/x86_64/multiarch/memset.S: New file.
33506         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
33507         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33508         Set bit_Prefer_SSE_for_memop for Intel processors.
33509         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
33510         Define.
33511         (index_Prefer_SSE_for_memop): Define.
33512         (HAS_PREFER_SSE_FOR_MEMOP): Define.
33513
33514 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
33515
33516         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
33517         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
33518
33519 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
33520
33521         [BZ #12191]
33522         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
33523         (__x86_64_raw_data_cache_size_half): Likewise.
33524         (__x86_64_raw_shared_cache_size): Likewise.
33525         (__x86_64_raw_shared_cache_size_half): Likewise.
33526
33527         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
33528         (__x86_64_raw_data_cache_size_half): Likewise.
33529         (__x86_64_raw_shared_cache_size): Likewise.
33530         (__x86_64_raw_shared_cache_size_half): Likewise.
33531         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
33532         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
33533         and __x86_64_raw_shared_cache_size_half.  Round
33534         __x86_64_data_cache_size_half, __x86_64_data_cache_size
33535         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
33536         to multiple of 256 bytes.
33537
33538 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
33539
33540         [BZ #12167]
33541         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
33542         of inacessible symlinks.  Verify result of symlink before returning it.
33543         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
33544         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
33545
33546 2010-10-28  Erich Ritz  <erichritz@gmail.com>
33547
33548         * math/math.h (isinf): Fix typo in comment.
33549
33550 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
33551
33552         * po/da.po: Update from translation team.
33553
33554 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
33555
33556         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
33557         is added to the list.
33558
33559 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33560             Ulrich Drepper  <drepper@gmail.com>
33561
33562         * elf/dl-object.c (_dl_new_object): Don't append the new object to
33563         the global list here.  Move code to...
33564         (_dl_add_to_namespace_list): ...here.  New function.
33565         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
33566         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
33567         * elf/dl-load.c (lose): Don't remove the element from the list.
33568         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
33569         (_dl_map_object): Likewise.
33570
33571 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
33572
33573         [BZ #12159]
33574         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
33575         into all bytes of SSE register.
33576         Patch by Richard Li <richardpku@gmail.com>.
33577
33578 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
33579
33580         [BZ #12140]
33581         * malloc/malloc.c (_int_free): Fill correct number of bytes when
33582         perturbing.
33583
33584 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
33585
33586         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
33587         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
33588         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
33589         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
33590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
33591         submachine.
33592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
33593
33594 2010-10-22  Andreas Schwab  <schwab@redhat.com>
33595
33596         * include/dlfcn.h (__RTLD_SECURE): Define.
33597         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
33598         mode & __RTLD_SECURE instead.
33599         (open_path): Rename preloaded parameter to secure.
33600         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
33601         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
33602         * elf/dl-deps.c (openaux): Likewise.
33603         * elf/rtld.c (struct map_args): Remove is_preloaded.
33604         (map_doit): Don't use it.
33605         (dl_main): Likewise.
33606         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
33607         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
33608
33609 2010-09-09  Andreas Schwab  <schwab@redhat.com>
33610
33611         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
33612         (sysd-rules-targets): Remove duplicates.
33613         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
33614         rtld-%.$o dependency.
33615
33616 2010-10-18  Andreas Schwab  <schwab@redhat.com>
33617
33618         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
33619         _dl_map_object do it.
33620
33621 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
33622
33623         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
33624         fast fma builtins, define the macros in the C99 standard.
33625         (FP_FAST_FMAF): Likewise.
33626         (FP_FAST_FMAL): Likewise.
33627         * sysdeps/x86_64/bits/mathdef.h: Likewise.
33628
33629         * bits/mathdef.h: Update copyright year.
33630         * sysdeps/powerpc/bits/mathdef.h: Likewise.
33631
33632 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
33633
33634         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
33635         builtins, define the macros in the C99 standard.
33636         (FP_FAST_FMAF): Likewise.
33637         (FP_FAST_FMAL): Likewise.
33638         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
33639         multiply/add.
33640         (FP_FAST_FMAF): Likewise.
33641
33642 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
33643
33644         [BZ #3268]
33645         * math/libm-test.inc (fma_test): Some new testcases.
33646         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
33647         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
33648         y and infinite z.  Do multiplication by C already in long double.
33649         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
33650         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
33651         y and infinite z.  Do bitwise or of inexact bit into u.d.
33652         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
33653         * sysdeps/i386/fpu/s_fmaf.S: Removed.
33654         * sysdeps/i386/fpu/s_fma.S: Removed.
33655         * sysdeps/i386/fpu/s_fmal.S: Removed.
33656
33657 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
33658
33659         [BZ #3268]
33660         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
33661         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
33662         computation is not scheduled after fetestexcept.  Fix value
33663         of minimum denormal long double.
33664
33665 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
33666
33667         [BZ #3268]
33668         * math/libm-test.inc (fma_test): Add some more tests.
33669         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
33670         correctly.
33671
33672 2010-10-15  Andreas Schwab  <schwab@redhat.com>
33673
33674         * scripts/data/localplt-s390-linux-gnu.data: New file.
33675         * scripts/data/localplt-s390x-linux-gnu.data: New file.
33676
33677 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
33678
33679         [BZ #3268]
33680         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
33681         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
33682         instead of dbl-64.
33683         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
33684         inlines.
33685         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
33686         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
33687         if one of x and y is very large and the other is subnormal.
33688         * sysdeps/s390/fpu/s_fmaf.c: New file.
33689         * sysdeps/s390/fpu/s_fma.c: New file.
33690         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
33691         * sysdeps/powerpc/fpu/s_fma.S: New file.
33692         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
33693         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
33694         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
33695
33696 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
33697
33698         [BZ #3268]
33699         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
33700         fma tests.
33701         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
33702         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
33703         * sysdeps/i386/i686/multiarch/s_fma.c: Include
33704         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
33705         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
33706         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
33707         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
33708
33709 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
33710
33711         [BZ #12078]
33712         * posix/regcomp.c (parse_branch): One more memory leak plugged.
33713         * posix/bug-regex31.input: Add test case.
33714
33715 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
33716
33717         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
33718         * posix/bug-regex31.input: New file.
33719
33720         [BZ #12078]
33721         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
33722         (parse_sub_exp): Fix last change, use postorder.
33723
33724         * posix/bug-regex31.c: New file.
33725         * posix/Makefile: Add rules to build and run bug-regex31.
33726
33727         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
33728
33729         [BZ #12078]
33730         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
33731
33732         [BZ #12108]
33733         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
33734         to have entries in sys_siglist.
33735
33736         [BZ #12093]
33737         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
33738         be NULL.
33739
33740 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
33741
33742         [BZ #3268]
33743         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
33744         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
33745         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
33746         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
33747         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
33748         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
33749         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
33750         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
33751         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
33752         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
33753         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
33754         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
33755         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
33756         * math/ftestexcept.c (fetestexcept): Likewise.
33757         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
33758         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
33759         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
33760         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
33761         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
33762         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
33763         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
33764
33765 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
33766
33767         [BZ #12107]
33768         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
33769         newline.
33770
33771 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
33772
33773         * string/bug-strstr1.c: New file.
33774         * string/Makefile: Add rules to build and run bug-strstr1.
33775
33776 2010-10-05  Eric Blake  <eblake@redhat.com>
33777
33778         [BZ #12092]
33779         * string/str-two-way.h (two_way_long_needle): Always clear memory
33780         when skipping input due to the shift table.
33781
33782 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
33783
33784         [BZ #12005]
33785         * malloc/mcheck.c: Handle large requests.
33786
33787         [BZ #12077]
33788         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
33789         for strncmp and strncasecmp.
33790         * string/stratcliff.c: Add tests for strcmp and strncmp.
33791         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
33792
33793 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
33794
33795         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
33796         __set_fpscr.
33797
33798 2010-09-30  Andreas Jaeger  <aj@suse.de>
33799
33800         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
33801         (CGROUP_SUPER_MAGIC): Define.
33802         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
33803         Handle btrfs and cgroup file systems.
33804         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
33805         Likewise.
33806
33807 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
33808
33809         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
33810         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
33811
33812 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33813
33814         [BZ #12067]
33815         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
33816         trying to locate the ELF header.
33817
33818 2010-09-27  Andreas Schwab  <schwab@redhat.com>
33819
33820         [BZ #11611]
33821         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
33822         Mask out sign-bit copies when constructing f_fsid.
33823
33824 2010-09-24  Petr Baudis <pasky@suse.cz>
33825
33826         * debug/stack_chk_fail_local.c: Add missing licence exception.
33827         * debug/warning-nop.c: Likewise.
33828
33829 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
33830
33831         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
33832         implementing getdents64 using getdents syscall, set d_type if
33833         __ASSUME_GETDENTS32_D_TYPE.
33834
33835 2010-09-16  Andreas Schwab  <schwab@redhat.com>
33836
33837         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
33838         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
33839
33840 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
33841
33842         [BZ #12037]
33843         * posix/unistd.h: Undo change of feature selection for ftruncate from
33844         2010-01-11.
33845
33846 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
33847
33848         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
33849         detection.
33850
33851 2010-09-20  Andreas Schwab  <schwab@redhat.com>
33852
33853         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
33854         fanotify_mark.
33855         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
33856
33857 2010-09-14  Andreas Schwab  <schwab@redhat.com>
33858
33859         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
33860         variables after CHECK_SP call.
33861         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
33862
33863 2010-09-13  Andreas Schwab  <schwab@redhat.com>
33864             Ulrich Drepper  <drepper@redhat.com>
33865
33866         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
33867         re-relocationg ld.so.
33868         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
33869         _dl_init_paths call.
33870         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
33871         here anymore.
33872
33873 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
33874
33875         * resolv/res_init.c (__res_vinit): Count the default server we added.
33876
33877 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
33878             Ulrich Drepper  <drepper@redhat.com>
33879
33880         [BZ #11968]
33881         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
33882         (____longjmp_chk): Use %ebx for saving value across system call.
33883         Add unwind info.
33884
33885 2010-09-06  Andreas Schwab  <schwab@redhat.com>
33886
33887         * manual/Makefile: Don't mix pattern rules with normal rules.
33888
33889 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
33890
33891         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
33892         operation.
33893         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
33894         * libio/iofopncook.c (_IO_cookie_init): Likewise.
33895         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
33896         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
33897         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
33898         Likewise.
33899
33900 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
33901
33902         [BZ #11979]
33903         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
33904         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
33905
33906 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
33907
33908         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
33909         * sysdeps/x86_64/addmul_1.S: Likewise.
33910         * sysdeps/x86_64/lshift.S: Likewise.
33911         * sysdeps/x86_64/mul_1.S: Likewise.
33912         * sysdeps/x86_64/rshift.S: Likewise.
33913         * sysdeps/x86_64/sub_n.S: Likewise.
33914         * sysdeps/x86_64/submul_1.S: Likewise.
33915
33916 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33917
33918         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
33919         Define __sched_param instead of SCHED_* and sched_param when
33920         <bits/sched.h> is included with __need_schedparam defined.
33921         * bits/sched.h [__need_schedparam]
33922         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
33923         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
33924         (__defined_schedparam): Define to 1.
33925         (__sched_param): New structure, identical to sched_param.
33926         (__need_schedparam): Undefine.
33927
33928 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
33929
33930         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
33931         (epoll_create1): Declare.
33932
33933         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
33934
33935 2010-08-31  Andreas Schwab  <schwab@redhat.com>
33936
33937         [BZ #7066]
33938         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
33939         shifting retval into place.
33940
33941 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
33942
33943         * nis/rpcsvc/nis.h: Update copyright notice.
33944         * nis/rpcsvc/nis.x: Likewise.
33945         * nis/rpcsvc/nis_callback.h: Likewise.
33946         * nis/rpcsvc/nis_callback.x: Likewise.
33947         * nis/rpcsvc/nis_object.x: Likewise.
33948         * nis/rpcsvc/nis_tags.h: Likewise.
33949         * nis/rpcsvc/yp.h: Likewise.
33950         * nis/rpcsvc/yp.x: Likewise.
33951         * nis/rpcsvc/ypupd.h: Likewise.
33952         * nis/yp_xdr.c: Likewise.
33953         * nis/ypupdate_xdr.c: Likewise.
33954
33955         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
33956         mainly the body of pmap_getport.  Add parameters to specify timeouts.
33957         (pmap_getport): Use __libc_rpc_getport.
33958         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
33959         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
33960         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
33961
33962 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
33963
33964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
33965         fanotify_mark.
33966
33967 2010-08-27  Roland McGrath  <roland@redhat.com>
33968
33969         * sysdeps/i386/i686/multiarch/Makefile
33970         (CFLAGS-varshift.c): New variable.
33971
33972 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
33973
33974         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
33975         * sysdeps/i386/i686/multiarch/varshift.c: New file.
33976
33977         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
33978
33979         * sysdeps/x86_64/strlen.S: Minimal code improvement.
33980
33981 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
33982
33983         * sysdeps/x86_64/strlen.S: Unroll the loop.
33984         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33985         strlen-sse2 strlen-sse2-bsf.
33986         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
33987         __strlen_no_bsf if bit_Slow_BSF is set.
33988         (__strlen_sse42): Removed.
33989         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
33990         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
33991
33992 2010-08-25  Roland McGrath  <roland@redhat.com>
33993
33994         * sysdeps/x86_64/multiarch/varshift.S: File removed.
33995         * sysdeps/x86_64/multiarch/varshift.c: New file.
33996         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
33997         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
33998         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
33999         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
34000
34001 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
34002
34003         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34004         strlen-sse2 strlen-sse2-bsf.
34005         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
34006         __strlen_sse2_bsf if bit_Slow_BSF is unset.
34007         (__strlen_sse2): Removed.
34008         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
34009         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
34010         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
34011         bit_Slow_BSF for Atom.
34012         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
34013         (index_Slow_BSF): Define.
34014         (HAS_SLOW_BSF): Define.
34015
34016 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
34017
34018         [BZ #10851]
34019         * resolv/res_init.c (__res_vinit): When no server address at all
34020         is given default to loopback.
34021
34022 2010-08-24  Roland McGrath  <roland@redhat.com>
34023
34024         * configure.in: Remove config-name.h generation.
34025         * configure: Regenerated.
34026         * config-name.in: File removed.
34027         * scripts/config-uname.sh: New file.
34028         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
34029         ($(objdir)config-name.h): New target.
34030
34031         * sunrpc/rpc_parse.h: Avoid nested comment.
34032
34033 2010-08-24  Richard Henderson  <rth@redhat.com>
34034             Ulrich Drepper  <drepper@redhat.com>
34035             H.J. Lu  <hongjiu.lu@intel.com>
34036
34037         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
34038         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
34039         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
34040         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
34041         _mm_alignr_epi8 with _mm_loadu_si128.
34042         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
34043         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
34044         (__m128i_shift_right): Removed.
34045         * sysdeps/i386/i686/multiarch/varshift.h: New file.
34046         * sysdeps/i386/i686/multiarch/varshift.S: New file.
34047         * sysdeps/x86_64/multiarch/varshift.h: New file.
34048         * sysdeps/x86_64/multiarch/varshift.S: New file.
34049
34050 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
34051
34052         * configure.in: Move assembler checks to before sysdep dir checking.
34053
34054 2010-08-20  Petr Baudis  <pasky@suse.cz>
34055
34056         * LICENSES: Sync the sunrpc license.
34057
34058 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
34059
34060         * sunrpc/auth_des.c: Update copyright notice once again.
34061         * sunrpc/auth_none.c: Likewise.
34062         * sunrpc/auth_unix.c: Likewise.
34063         * sunrpc/authdes_prot.c: Likewise.
34064         * sunrpc/authuxprot.c: Likewise.
34065         * sunrpc/bindrsvprt.c: Likewise.
34066         * sunrpc/clnt_gen.c: Likewise.
34067         * sunrpc/clnt_perr.c: Likewise.
34068         * sunrpc/clnt_raw.c: Likewise.
34069         * sunrpc/clnt_simp.c: Likewise.
34070         * sunrpc/clnt_tcp.c: Likewise.
34071         * sunrpc/clnt_udp.c: Likewise.
34072         * sunrpc/clnt_unix.c: Likewise.
34073         * sunrpc/des_crypt.c: Likewise.
34074         * sunrpc/des_soft.c: Likewise.
34075         * sunrpc/get_myaddr.c: Likewise.
34076         * sunrpc/getrpcport.c: Likewise.
34077         * sunrpc/key_call.c: Likewise.
34078         * sunrpc/key_prot.c: Likewise.
34079         * sunrpc/openchild.c: Likewise.
34080         * sunrpc/pm_getmaps.c: Likewise.
34081         * sunrpc/pm_getport.c: Likewise.
34082         * sunrpc/pmap_clnt.c: Likewise.
34083         * sunrpc/pmap_prot.c: Likewise.
34084         * sunrpc/pmap_prot2.c: Likewise.
34085         * sunrpc/pmap_rmt.c: Likewise.
34086         * sunrpc/rpc/auth.h: Likewise.
34087         * sunrpc/rpc/auth_unix.h: Likewise.
34088         * sunrpc/rpc/clnt.h: Likewise.
34089         * sunrpc/rpc/des_crypt.h: Likewise.
34090         * sunrpc/rpc/key_prot.h: Likewise.
34091         * sunrpc/rpc/netdb.h: Likewise.
34092         * sunrpc/rpc/pmap_clnt.h: Likewise.
34093         * sunrpc/rpc/pmap_prot.h: Likewise.
34094         * sunrpc/rpc/pmap_rmt.h: Likewise.
34095         * sunrpc/rpc/rpc.h: Likewise.
34096         * sunrpc/rpc/rpc_des.h: Likewise.
34097         * sunrpc/rpc/rpc_msg.h: Likewise.
34098         * sunrpc/rpc/svc.h: Likewise.
34099         * sunrpc/rpc/svc_auth.h: Likewise.
34100         * sunrpc/rpc/types.h: Likewise.
34101         * sunrpc/rpc/xdr.h: Likewise.
34102         * sunrpc/rpc_clntout.c: Likewise.
34103         * sunrpc/rpc_cmsg.c: Likewise.
34104         * sunrpc/rpc_common.c: Likewise.
34105         * sunrpc/rpc_cout.c: Likewise.
34106         * sunrpc/rpc_dtable.c: Likewise.
34107         * sunrpc/rpc_hout.c: Likewise.
34108         * sunrpc/rpc_main.c: Likewise.
34109         * sunrpc/rpc_parse.c: Likewise.
34110         * sunrpc/rpc_parse.h: Likewise.
34111         * sunrpc/rpc_prot.c: Likewise.
34112         * sunrpc/rpc_sample.c: Likewise.
34113         * sunrpc/rpc_scan.c: Likewise.
34114         * sunrpc/rpc_scan.h: Likewise.
34115         * sunrpc/rpc_svcout.c: Likewise.
34116         * sunrpc/rpc_tblout.c: Likewise.
34117         * sunrpc/rpc_util.c: Likewise.
34118         * sunrpc/rpc_util.h: Likewise.
34119         * sunrpc/rpcinfo.c: Likewise.
34120         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
34121         * sunrpc/rpcsvc/key_prot.x: Likewise.
34122         * sunrpc/rpcsvc/klm_prot.x: Likewise.
34123         * sunrpc/rpcsvc/mount.x: Likewise.
34124         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
34125         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
34126         * sunrpc/rpcsvc/rex.x: Likewise.
34127         * sunrpc/rpcsvc/rstat.x: Likewise.
34128         * sunrpc/rpcsvc/rusers.x: Likewise.
34129         * sunrpc/rpcsvc/sm_inter.x: Likewise.
34130         * sunrpc/rpcsvc/spray.x: Likewise.
34131         * sunrpc/rpcsvc/yppasswd.x: Likewise.
34132         * sunrpc/rtime.c: Likewise.
34133         * sunrpc/svc.c: Likewise.
34134         * sunrpc/svc_auth.c: Likewise.
34135         * sunrpc/svc_authux.c: Likewise.
34136         * sunrpc/svc_raw.c: Likewise.
34137         * sunrpc/svc_run.c: Likewise.
34138         * sunrpc/svc_simple.c: Likewise.
34139         * sunrpc/svc_tcp.c: Likewise.
34140         * sunrpc/svc_udp.c: Likewise.
34141         * sunrpc/svc_unix.c: Likewise.
34142         * sunrpc/svcauth_des.c: Likewise.
34143         * sunrpc/xcrypt.c: Likewise.
34144         * sunrpc/xdr.c: Likewise.
34145         * sunrpc/xdr_array.c: Likewise.
34146         * sunrpc/xdr_float.c: Likewise.
34147         * sunrpc/xdr_mem.c: Likewise.
34148         * sunrpc/xdr_rec.c: Likewise.
34149         * sunrpc/xdr_ref.c: Likewise.
34150         * sunrpc/xdr_sizeof.c: Likewise.
34151         * sunrpc/xdr_stdio.c: Likewise.
34152
34153         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
34154         handling.
34155
34156 2010-08-19  Andreas Schwab  <schwab@redhat.com>
34157
34158         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
34159
34160 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
34161
34162         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
34163         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
34164         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
34165         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
34166         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
34167         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
34168         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
34169         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
34170         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
34171         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
34172         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
34173         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
34174         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
34175         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
34176
34177 2010-07-26  Anton Blanchard  <anton@samba.org>
34178
34179         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
34180         * malloc/arena.c (heap_trim): Likewise.
34181
34182 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
34183
34184         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
34185         here.  Not...
34186         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
34187         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
34188
34189 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
34190
34191         * sysdeps/i386/elf/Makefile: New file.
34192
34193 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
34194
34195         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
34196         from fanotify_init.
34197         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
34198         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
34199
34200 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
34201
34202         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
34203         of strncasecmp_l.
34204         * sysdeps/multiarch/strcmp.S: Likewise.
34205
34206 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
34207
34208         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
34209         strncase_l-nonascii.
34210         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
34211         Add strncase_l-ssse3.
34212         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
34213         * sysdeps/x86_64/strcmp.S: Likewise.
34214         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
34215         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
34216         * sysdeps/x86_64/strncase.S: New file.
34217         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
34218         * sysdeps/x86_64/strncase_l.S: New file.
34219         * string/Makefile (strop-tests): Add strncasecmp.
34220         * string/test-strncasecmp.c: New file.
34221
34222         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
34223         warning.
34224
34225         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
34226         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
34227
34228 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
34229
34230         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
34231
34232 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
34233
34234         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
34235         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
34236         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
34237
34238 2010-05-01  Alan Modra  <amodra@gmail.com>
34239
34240         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
34241         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
34242         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
34243         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
34244         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
34245         tidying.  Don't tail-call __sigjmp_save for static lib.
34246         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
34247         save location.
34248         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
34249         (CALL_MCOUNT): Add eh info, and nop after bl.
34250         (TAIL_CALL_SYSCALL_ERROR): New macro.
34251         (PSEUDO_RET): Use it.
34252         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
34253         Correct save location of integer regs and cr.
34254         (_dl_profile_resolve): Correct cr save location.  Delete nops
34255         after bl when SHARED.  Reduce cfi size a little by better
34256         placement of cfi directives.
34257         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
34258         make a stack frame.  Instead use parm save area as a temp.
34259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
34260         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
34261         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
34262         Don't make a stack frame for parent, use parm save area.
34263         Increase child stack frame to 112 bytes.  Don't save unused reg,
34264         and adjust reg usage.  Set up cfi on error recovery and
34265         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
34266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
34267         (__makecontext): Add dummy nop after jump to exit.
34268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
34269         Use correct parm save area and cr save, reduce stack frame.
34270         Correct cfi for possible PSEUDO_RET frame setup.
34271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
34272         Branch to local label emitted by PSEUDO_RET rather than
34273         __syscall_error.
34274
34275 2010-08-12  Andreas Schwab  <schwab@redhat.com>
34276
34277         [BZ #11904]
34278         * locale/programs/locale.c (print_assignment): New function.
34279         (show_locale_vars): Use it.
34280
34281 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
34282
34283         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
34284         field.
34285         (struct statfs64): Likewise.
34286         (_STATFS_F_FLAGS): Define.
34287         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
34288         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
34289         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
34290         (ST_VALID): Define locally.
34291         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
34292         __statvfs_getflags, use the provided value.
34293         * sysdeps/unix/sysv/linux/kernel-features.h: Define
34294         __ASSUME_STATFS_F_FLAGS.
34295
34296         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
34297
34298         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
34299         Add sys/fanotify.h.
34300         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
34301         fanotify_mask for GLIBC_2.13.
34302         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
34303         fanotify_init and fanotify_mark.
34304         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
34305         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
34306
34307         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
34308         Add prlimit.
34309         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
34310         prlimit64 for GLIBC_2.13.
34311         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
34312         prlimit64.
34313         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
34314         syscall.
34315         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
34316         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
34317         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
34318         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
34319         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
34320         add prlimit alias.
34321         * sysdeps/unix/sysv/linux/prlimit.c: New file.
34322
34323         [BZ #11903]
34324         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
34325         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
34326
34327         * nss/Makefile: Add rules to build and run tst-nss-test1.
34328         * shlib-versions: Add entry for libnss_test1.
34329         * nss/nss_test1.c: New file.
34330         * nss/tst-nss-test1.c: New file.
34331
34332         * nss/nsswitch.c (__nss_database_custom): Define new variable.
34333         (__nss_configure_lookup): Set appropriate entry in
34334         __nss_configure_lookup to true.
34335         * nss/nsswitch.h: Define enum with indeces of databases in
34336         databases and __nss_database_custom arrays.  Declare
34337         __nss_database_custom.
34338         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
34339         to avoid using nscd when custom rules are installed.
34340         * nss/getXXbyYY_r.c: Likewise.
34341         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
34342
34343         * nss/nss_files/files-parse.c: Whitespace fixes.
34344
34345 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
34346
34347         [BZ #11883]
34348         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
34349         * posix/fnmatch_loop.c: Likewise.
34350
34351 2010-07-17  Andi Kleen  <ak@linux.intel.com>
34352
34353         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
34354         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
34355         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
34356         * Versions.def [GLIBC_2.13]: Add.
34357
34358 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
34359
34360         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
34361         Also fail if tpwd after pwuid call is NULL.
34362
34363 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34364
34365         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
34366         when converting to ms.
34367
34368 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34369
34370         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
34371         EOPNOTSUPP errors with ENOTTY.
34372         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
34373         EOPNOTSUPP errors with ENOTTY.
34374
34375 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
34376
34377         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
34378         Add strcasecmp_l-ssse3.
34379         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
34380         strcasecmp.
34381         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
34382         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
34383         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
34384
34385 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
34386
34387         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
34388
34389         * string/Makefile (strop-tests): Add strcasecmp.
34390         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
34391         strcasecmp_l-nonascii.
34392         (gen-as-const-headers): Add locale-defines.sym.
34393         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
34394         * sysdeps/x86_64/strcasecmp.S: New file.
34395         * sysdeps/x86_64/strcasecmp_l.S: New file.
34396         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
34397         * sysdeps/x86_64/locale-defines.sym: New file.
34398         * string/test-strcasecmp.c: New file.
34399
34400         * string/test-strcasestr.c: Test both ends of the range of characters.
34401         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
34402
34403 2010-07-29  Roland McGrath  <roland@redhat.com>
34404
34405         [BZ #11856]
34406         * manual/locale.texi (Yes-or-No Questions): Fix example code.
34407
34408 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
34409
34410         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
34411         for ld.so.
34412
34413 2010-07-27  Andreas Schwab  <schwab@redhat.com>
34414
34415         * manual/memory.texi (Malloc Tunable Parameters): Document
34416         M_PERTURB.
34417
34418 2010-07-26  Roland McGrath  <roland@redhat.com>
34419
34420         [BZ #11840]
34421         * configure.in (-fgnu89-inline check): Set and substitute
34422         gnu89_inline, not libc_cv_gnu89_inline.
34423         * configure: Regenerated.
34424         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
34425
34426 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
34427
34428         * string/test-strnlen.c: New file.
34429         * string/Makefile (strop-tests): Add strnlen.
34430         * string/tester.c (test_strnlen): Add a few more test cases.
34431         * string/tst-strlen.c: Better error reporting.
34432
34433         * sysdeps/x86_64/strnlen.S: New file.
34434
34435 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
34436
34437         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
34438         lower-latency instructions.
34439
34440 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
34441
34442         * string/test-strcasestr.c: New file.
34443         * string/test-strstr.c: New file.
34444         * string/Makefile (strop-tests): Add strstr and strcasestr.
34445         * string/str-two-way.h: Don't undefine MAX.
34446         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
34447
34448 2010-07-21  Andreas Schwab  <schwab@redhat.com>
34449
34450         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34451         strcasestr-nonascii.
34452         (CFLAGS-strcasestr-nonascii.c): Define.
34453         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
34454         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
34455         Remove unused attribute.
34456
34457 2010-07-20  Roland McGrath  <roland@redhat.com>
34458
34459         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
34460         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
34461         ld.so.cache was broken.  With it, there is no way to disable dsocaps
34462         like LD_HWCAP_MASK can disable hwcaps.
34463
34464 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
34465
34466         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
34467
34468 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
34469
34470         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
34471         call in strcasestr.
34472         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
34473         __strcasestr_sse42_nonascii.
34474         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
34475         strcasestr-nonascii.c.
34476         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
34477
34478 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
34479
34480         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
34481         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
34482         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
34483         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
34484
34485 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
34486
34487         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
34488         fcntl.
34489
34490 2010-07-06  Andreas Schwab  <schwab@redhat.com>
34491
34492         [BZ #11577]
34493         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
34494         dl_signal_cerror.
34495
34496 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
34497
34498         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
34499         _PC_PIPE_BUF using F_GETPIPE_SZ.
34500
34501 2010-07-05  Roland McGrath  <roland@redhat.com>
34502
34503         * manual/arith.texi (Rounding Functions): Fix rint description
34504         implicit in round description.
34505
34506 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
34507
34508         * elf/Makefile: Fix linking for a few tests to make recent linker
34509         happy.
34510
34511 2010-06-30  Andreas Schwab  <schwab@redhat.com>
34512
34513         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
34514         $(common-objpfx)libc_nonshared.a.
34515
34516 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
34517
34518         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
34519         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
34520         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
34521         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
34522         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
34523         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
34524         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
34525         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
34526         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
34527         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
34528         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
34529         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
34530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
34531         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
34532         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
34533         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
34534         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
34535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
34536         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
34537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
34538         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
34539         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
34540         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
34541         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
34542         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
34543         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
34544         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
34545         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
34546         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
34547         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
34548         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
34549         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
34550         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
34551         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
34552         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
34553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
34554         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
34555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
34556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
34557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
34558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
34559         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
34560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
34561         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
34562         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
34563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
34564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
34565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
34566
34567 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
34568
34569         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
34570         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
34571         * string/memmove.c (memmove): Renamed to ...
34572         (MEMMOVE): ...this.  Default to memmove.
34573         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
34574         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
34575         (END_CHK): Define.
34576         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34577         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
34578         mempcpy-ssse3-back memmove-ssse3-back.
34579         * sysdeps/x86_64/multiarch/bcopy.S: New file .
34580         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
34581         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
34582         * sysdeps/x86_64/multiarch/memcpy.S: New file.
34583         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
34584         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
34585         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
34586         * sysdeps/x86_64/multiarch/memmove.c: New file.
34587         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
34588         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
34589         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
34590         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
34591         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
34592         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
34593         Define.
34594         (index_Fast_Copy_Backward): Define.
34595         (HAS_ARCH_FEATURE): Define.
34596         (HAS_FAST_REP_STRING): Define.
34597         (HAS_FAST_COPY_BACKWARD): Define.
34598
34599 2010-06-21  Andreas Schwab  <schwab@redhat.com>
34600
34601         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
34602         Restore proper fallback handling.
34603
34604 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
34605
34606         [BZ #11701]
34607         * posix/group_member.c (__group_member): Correct checking loop.
34608
34609         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
34610         OOM in getpwuid_r correctly.  Return error number when the caller
34611         should return, otherwise -1.
34612         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
34613         call returning > 0 value.
34614         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
34615
34616 2010-06-07  Andreas Schwab  <schwab@redhat.com>
34617
34618         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
34619         libc_nonshared.a from targets in modules-names.
34620
34621 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
34622
34623         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
34624         requires it.
34625
34626 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
34627
34628         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
34629         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
34630         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
34631         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
34632
34633 2010-06-02  Andreas Schwab  <schwab@redhat.com>
34634
34635         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
34636
34637 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
34638
34639         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
34640         and F_GETPIPE_SZ.
34641         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
34642         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
34643         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
34644         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
34645         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
34646         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
34647
34648 2010-06-14  Roland McGrath  <roland@redhat.com>
34649
34650         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
34651
34652 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
34653
34654         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
34655         __REDIRECT followed by __THROW.
34656         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
34657         * posix/getopt.h (getopt): Likewise.
34658
34659 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
34660
34661         * hurd/lookup-at.c (__file_name_lookup_at): Accept
34662         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
34663         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
34664         in AT_FLAGS.
34665         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
34666         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
34667
34668 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
34669
34670         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
34671
34672 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
34673
34674         [BZ #11640]
34675         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34676         Properly check family and model.
34677
34678 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
34679
34680         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
34681
34682 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
34683
34684         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
34685
34686 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
34687
34688         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
34689         symbol reference.
34690
34691 2010-05-19  Andreas Schwab  <schwab@redhat.com>
34692
34693         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
34694         symbol reference.
34695
34696 2010-05-21  Andreas Schwab  <schwab@redhat.com>
34697
34698         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
34699         and internal_recvmmsg.
34700         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
34701         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
34702         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
34703         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
34704
34705         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
34706         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
34707         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
34708
34709 2010-05-20  Andreas Schwab  <schwab@redhat.com>
34710
34711         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
34712
34713 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
34714
34715         POWER7 optimizations.
34716         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
34717         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
34718
34719 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
34720
34721         * version.h: Update for 2.13 development version.
34722
34723 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
34724
34725         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
34726         exceptions.  Return 0.
34727
34728 2010-05-07  Roland McGrath  <roland@redhat.com>
34729
34730         * elf/ldconfig.c (main): Add a const.
34731
34732 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
34733
34734         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
34735         (args_options): Add no-idn option.
34736         (ahosts_keys_int): Add idn_flags to ai_flags.
34737         (parse_option): Handle 'i' option to clear idn_flags.
34738
34739         * malloc/malloc.c (_int_free): Possible race in the most recently
34740         added check.  Only act on the data if no current modification
34741         happened.
34742
34743 See ChangeLog.17 for earlier changes.