eea46657bc9ccd47b41db2f8ba4abcb871e9b2c3
[platform/upstream/glibc.git] / ChangeLog
1 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
2
3         * locale/iso-639.def: Add Meadow Mari (mhr).
4
5 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
6
7         [BZ #14752], [BZ #15763]
8         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
9         Validate name.
10         * rt/tst_shm.c: Add test for escaping directory.
11
12 2013-10-31  Andreas Schwab  <schwab@suse.de>
13
14         [BZ #15917]
15         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
16         followed by 'x' as part of digit sequence.
17         * stdio-common/tst-sscanf.c (double_tests2): New tests.
18
19 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
20
21         [BZ #16037]
22         * configure.ac: allow GNU Make 4.0 and greater.
23         * configure: Regenerated.
24
25 2013-10-30  Will Newton  <will.newton@linaro.org>
26
27         [BZ #16038]
28         * malloc/hooks.c (memalign_check): Limit alignment to the
29         maximum representable power of two.
30         * malloc/malloc.c (__libc_memalign): Likewise.
31         * malloc/tst-memalign.c (do_test): Add test for very
32         large alignment values.
33         * malloc/tst-posix_memalign.c (do_test): Likewise.
34
35 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
36
37         [BZ #11087]
38         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
39         (munmap_chunk): Likewise.
40         (mremap_chunk): Likewise.
41
42 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
43
44         [BZ #15799]
45         * stdlib/div.c (div): Remove obsolete code.
46         * stdlib/ldiv.c (ldiv): Likewise.
47         * stdlib/lldiv.c (lldiv): Likewise.
48
49 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
50
51         [BZ #16071]
52         * nss/nss_files/files-XXX.c (get_contents_ret): New
53         enumerator.
54         (get_contents): New function.
55         (internal_getent): Use it.  Expand size of LINEBUFLEN.
56
57 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
58
59         * configure.in: Moved to ...
60         * configure.ac: ... here. Change reference to configure.in
61         to configure.ac.
62         * sysdeps/arm/preconfigure.ac: ... here.
63         configure.in to configure.ac.
64         * sysdeps/gnu/configure.in: Moved to ...
65         * sysdeps/gnu/configure.ac: ... here.
66         * sysdeps/i386/configure.in: Moved to ...
67         * sysdeps/i386/configure.ac: ... here.
68         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
69         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
70         * sysdeps/mach/configure.in: Moved to ...
71         * sysdeps/mach/configure.ac: ... here.
72         * sysdeps/mach/hurd/configure.in: Moved to ...
73         * sysdeps/mach/hurd/configure.ac: ... here.
74         * sysdeps/powerpc/configure.in: Moved to ...
75         * sysdeps/powerpc/configure.ac: ... here.
76         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
77         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
78         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
79         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
80         * sysdeps/s390/s390-32/configure.in: Moved to ...
81         * sysdeps/s390/s390-32/configure.ac: ... here.
82         * sysdeps/s390/s390-64/configure.in: Moved to ...
83         * sysdeps/s390/s390-64/configure.ac: ... here.
84         * sysdeps/sh/configure.in: Moved to ...
85         * sysdeps/sh/configure.ac: ... here.
86         * sysdeps/sparc/configure.in: Moved to ...
87         * sysdeps/sparc/configure.ac: ... here.
88         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
89         * sysdeps/unix/sysv/linux/configure.ac: ... here.
90         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
91         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
92         * sysdeps/x86_64/configure.in: Moved to ...
93         * sysdeps/x86_64/configure.ac: ... here.
94         * sysdeps/x86_64/preconfigure.in: Moved to ...
95         * sysdeps/x86_64/preconfigure.ac: ... here.
96         * aclocal.m4: Change reference to configure.in to configure.ac.
97         * config.h.in: Likewise.
98         * manual/install.texi: Likewise.
99         * manual/maint.texi: Likewise.
100         * Makefile: Likewise.
101         * malloc/Makefile: Likewise.
102         * nscd/Makefile: Likewise.
103         * Makeconfig: Change reference to configure.in and
104         preconfigure.in to configure.ac and preconfigure.ac
105         respectively.
106         * INSTALL: Regenerated.
107         * configure: Likewise.
108         * sysdeps/gnu/configure: Likewise.
109         * sysdeps/i386/configure: Likewise.
110         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
111         * sysdeps/mach/configure: Likewise.
112         * sysdeps/mach/hurd/configure: Likewise.
113         * sysdeps/powerpc/configure: Likewise.
114         * sysdeps/powerpc/powerpc32/configure: Likewise.
115         * sysdeps/powerpc/powerpc64/configure: Likewise.
116         * sysdeps/s390/s390-32/configure: Likewise.
117         * sysdeps/s390/s390-64/configure: Likewise.
118         * sysdeps/sh/configure: Likewise.
119         * sysdeps/sparc/configure: Likewise.
120         * sysdeps/unix/sysv/linux/configure: Likewise.
121         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
122         * sysdeps/x86_64/configure: Likewise.
123         * sysdeps/x86_64/preconfigure: Likewise.
124
125 2013-10-29  Andreas Schwab  <schwab@suse.de>
126
127         * stdio-common/Makefile (tst-swscanf-ENV): Define.
128
129 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
130
131         * benchtests/pow-inputs: Add new inputs.
132
133         * benchtests/exp-inputs: Add new inputs.
134
135         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
136         conditional check for return value.
137         (__cos32): Likewise.
138
139 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
140
141         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
142         to provide a boost for large inputs with word alignment.
143         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
144         implementation based on optimized PPC64 strcpy.
145         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
146         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
147         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
148         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
149
150 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
151
152         [BZ #2801]
153         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
154
155 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
156
157         [BZ #14876]
158         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
159         * time/tst-strptime.c (day_tests): Add testcase.
160
161 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
162
163         [BZ #14029]
164         * manual/pattern.texi: Acknowledge that fnmatch can fail.
165
166 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
167
168         [BZ #16074]
169         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
170         MAP_FAILED on error.
171
172 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
173
174         [BZ #16072]
175         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
176         heap for large requests.
177
178 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
179
180         [BZ #9954]
181         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
182         result if the result has no associated interface.
183         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
184         interface for all 127.X.Y.Z addresses.
185
186 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
187
188         * locale/iso-639.def: Add Ligurian (lij)
189
190 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
191
192         [BZ #15825]
193         * sunrpc/rpc_main.c: Document rpcgen -5.
194
195 2013-10-19  Michael Stahl  <mstahl@redhat.com>
196
197         * elf/rtld.c (do_preload): Print the reason why preloading failed.
198
199 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
200
201         [BZ #10278]
202         * posix/glob.c: Match only directories when trailing slash is present.
203         * posix/tst-gnuglob.c (my_opendir): Do not open files.
204         (main): Add testcase.
205
206 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
207
208         [BZ #15670]
209         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
210
211 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
212
213         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
214         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
215         AUTH_DES and cindex for FIPS 140-2.
216         (DES Encryption): Add cindex FIPS 46-3.
217
218         * locale/locarchive.h (struct locarhandle): Add fname.
219         * locale/programs/localedef.c (main): Pass ARGV[remaining]
220         if an optional argument was specified to --list-archive,
221         otherwise NULL.
222         * locale/programs/locarchive.c (show_archive_content): Take new
223         argument fname and pass it via ah.fname to open_archive.
224         * locale/programs/localedef.h: Update decl.
225         (open_archive): If AH->fname is non-null, open that file
226         rather than the default file name, and don't ignore ENOENT.
227         (create_archive): Set AH.fname to NULL.
228         (delete_locales_from_archive): Likewise.
229         (add_locales_to_archive): Likewise.
230         * locale/programs/locfile.c (write_all_categories): Likewise.
231
232 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
233             Aldy Hernandez  <aldyh@redhat.com>
234
235         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
236         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
237         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
238         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
239         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
240         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
241         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
242         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
243         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
244         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
245         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
246         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
247         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
248         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
249         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
250         Likewise.
251         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
252         Likewise.
253         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
254         Likewise.
255         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
256         Likewise.
257         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
258         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
259         Likewise.
260         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
261         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
262         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
263         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
264         Likewise.
265         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
266         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
267         * sysdeps/powerpc/preconfigure: Likewise.
268         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
269         Likewise.
270         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
271         Replace contents of file by #include of <fenv_libc.h>.
272         * sysdeps/powerpc/soft-fp/sfp-machine.h
273         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
274         and <sys/prctl.h>.
275         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
276         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
277         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
278         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
279         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
280         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
281         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
282         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
283         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
284         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
285         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
286         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
287         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
288         Allow copysignl PLT reference to be missing.
289
290 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
291             Joseph Myers  <joseph@codesourcery.com
292
293         [BZ #15948]
294         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
295         single character.
296         (add_to_tablewc): Assert sequence of wide characters is nonempty.
297
298 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
299
300         * elf/tst-tls-dlinfo.c: Don't include tls.h.
301         * elf/tst-tls1.c: Likewise.
302         * elf/tst-tls10.h: Likewise.
303         * elf/tst-tls14.c: Likewise.
304         * elf/tst-tls2.c: Likewise.
305         * elf/tst-tls3.c: Likewise.
306         * elf/tst-tls4.c: Likewise.
307         * elf/tst-tls5.c: Likewise.
308         * elf/tst-tls6.c: Likewise.
309         * elf/tst-tls7.c: Likewise.
310         * elf/tst-tls8.c: Likewise.
311         * elf/tst-tls9.c: Likewise.
312         * elf/tst-tlsmod1.c: Likewise.
313         * elf/tst-tlsmod13.c: Likewise.
314         * elf/tst-tlsmod13a.c: Likewise.
315         * elf/tst-tlsmod14a.c: Likewise.
316         * elf/tst-tlsmod16a.c: Likewise.
317         * elf/tst-tlsmod16b.c: Likewise.
318         * elf/tst-tlsmod2.c: Likewise.
319         * elf/tst-tlsmod3.c: Likewise.
320         * elf/tst-tlsmod4.c: Likewise.
321         * elf/tst-tlsmod5.c: Likewise.
322         * elf/tst-tlsmod6.c: Likewise.
323
324 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
325
326         [BZ #12486]
327         * malloc/malloc.c: remove checks for statistics.
328
329 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
330
331         [BZ #15277]
332         * inet/inet_net.c (inet_network): Detect additional invalid strings.
333         * inet/tst-network.c: Add testcase.
334
335 2013-10-17  Andreas Schwab  <schwab@suse.de>
336
337         [BZ #15218]
338         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
339         to determine canonical name.
340
341 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
342
343         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
344         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
345         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
346         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
347         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
348         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
349         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
350         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
351         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
352         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
353         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
354         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
355         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
356         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
357         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
358         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
359         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
360         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
361         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
362         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
363         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
364         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
365         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
366         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
367         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
368         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
369         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
370         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
371         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
372         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
373         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
374         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
375         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
376         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
377         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
378         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
379         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
380         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
381         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
382         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
383         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
384         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
385         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
386         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
387         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
388         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
389         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
390         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
391         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
392         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
393         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
394         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
395         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
396         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
397         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
398         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
399         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
400         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
401
402 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
403
404         [BZ #16041]
405         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
406         make result into a quiet NaN.
407
408 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
409
410         * soft-fp/adddf3.c: Fix horizontal whitespace.
411         * soft-fp/addsf3.c: Likewise.
412         * soft-fp/addtf3.c: Likewise.
413         * soft-fp/divdf3.c: Likewise.
414         * soft-fp/divsf3.c: Likewise.
415         * soft-fp/divtf3.c: Likewise.
416         * soft-fp/double.h: Likewise.
417         * soft-fp/eqdf2.c: Likewise.
418         * soft-fp/eqsf2.c: Likewise.
419         * soft-fp/eqtf2.c: Likewise.
420         * soft-fp/extenddftf2.c: Likewise.
421         * soft-fp/extended.h: Likewise.
422         * soft-fp/extendsfdf2.c: Likewise.
423         * soft-fp/extendsftf2.c: Likewise.
424         * soft-fp/extendxftf2.c: Likewise.
425         * soft-fp/fixdfdi.c: Likewise.
426         * soft-fp/fixdfsi.c: Likewise.
427         * soft-fp/fixdfti.c: Likewise.
428         * soft-fp/fixsfdi.c: Likewise.
429         * soft-fp/fixsfsi.c: Likewise.
430         * soft-fp/fixsfti.c: Likewise.
431         * soft-fp/fixtfdi.c: Likewise.
432         * soft-fp/fixtfsi.c: Likewise.
433         * soft-fp/fixtfti.c: Likewise.
434         * soft-fp/fixunsdfdi.c: Likewise.
435         * soft-fp/fixunsdfsi.c: Likewise.
436         * soft-fp/fixunsdfti.c: Likewise.
437         * soft-fp/fixunssfdi.c: Likewise.
438         * soft-fp/fixunssfsi.c: Likewise.
439         * soft-fp/fixunssfti.c: Likewise.
440         * soft-fp/fixunstfdi.c: Likewise.
441         * soft-fp/fixunstfsi.c: Likewise.
442         * soft-fp/fixunstfti.c: Likewise.
443         * soft-fp/floatdidf.c: Likewise.
444         * soft-fp/floatdisf.c: Likewise.
445         * soft-fp/floatditf.c: Likewise.
446         * soft-fp/floatsidf.c: Likewise.
447         * soft-fp/floatsisf.c: Likewise.
448         * soft-fp/floatsitf.c: Likewise.
449         * soft-fp/floattidf.c: Likewise.
450         * soft-fp/floattisf.c: Likewise.
451         * soft-fp/floattitf.c: Likewise.
452         * soft-fp/floatundidf.c: Likewise.
453         * soft-fp/floatundisf.c: Likewise.
454         * soft-fp/floatunditf.c: Likewise.
455         * soft-fp/floatunsidf.c: Likewise.
456         * soft-fp/floatunsisf.c: Likewise.
457         * soft-fp/floatunsitf.c: Likewise.
458         * soft-fp/floatuntidf.c: Likewise.
459         * soft-fp/floatuntisf.c: Likewise.
460         * soft-fp/floatuntitf.c: Likewise.
461         * soft-fp/fmadf4.c: Likewise.
462         * soft-fp/fmasf4.c: Likewise.
463         * soft-fp/fmatf4.c: Likewise.
464         * soft-fp/gedf2.c: Likewise.
465         * soft-fp/gesf2.c: Likewise.
466         * soft-fp/getf2.c: Likewise.
467         * soft-fp/ledf2.c: Likewise.
468         * soft-fp/lesf2.c: Likewise.
469         * soft-fp/letf2.c: Likewise.
470         * soft-fp/muldf3.c: Likewise.
471         * soft-fp/mulsf3.c: Likewise.
472         * soft-fp/multf3.c: Likewise.
473         * soft-fp/negdf2.c: Likewise.
474         * soft-fp/negsf2.c: Likewise.
475         * soft-fp/negtf2.c: Likewise.
476         * soft-fp/op-1.h: Likewise.
477         * soft-fp/op-2.h: Likewise.
478         * soft-fp/op-4.h: Likewise.
479         * soft-fp/op-8.h: Likewise.
480         * soft-fp/op-common.h: Likewise.
481         * soft-fp/quad.h: Likewise.
482         * soft-fp/single.h: Likewise.
483         * soft-fp/soft-fp.h: Likewise.
484         * soft-fp/sqrtdf2.c: Likewise.
485         * soft-fp/sqrtsf2.c: Likewise.
486         * soft-fp/sqrttf2.c: Likewise.
487         * soft-fp/subdf3.c: Likewise.
488         * soft-fp/subsf3.c: Likewise.
489         * soft-fp/subtf3.c: Likewise.
490         * soft-fp/truncdfsf2.c: Likewise.
491         * soft-fp/trunctfdf2.c: Likewise.
492         * soft-fp/trunctfsf2.c: Likewise.
493         * soft-fp/trunctfxf2.c: Likewise.
494         * soft-fp/unorddf2.c: Likewise.
495         * soft-fp/unordsf2.c: Likewise.
496         * soft-fp/unordtf2.c: Likewise.
497
498 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
499
500         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
501         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
502
503 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
504
505         * elf/dl-libc.c: Clear initfini list after freeing.
506
507 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
508
509         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
510         * soft-fp/addsf3.c: Likewise.
511         * soft-fp/addtf3.c: Likewise.
512         * soft-fp/divdf3.c: Likewise.
513         * soft-fp/divsf3.c: Likewise.
514         * soft-fp/divtf3.c: Likewise.
515         * soft-fp/double.h: Likewise.
516         * soft-fp/eqdf2.c: Likewise.
517         * soft-fp/eqsf2.c: Likewise.
518         * soft-fp/eqtf2.c: Likewise.
519         * soft-fp/extenddftf2.c: Likewise.
520         * soft-fp/extended.h: Likewise.
521         * soft-fp/extendsfdf2.c: Likewise.
522         * soft-fp/extendsftf2.c: Likewise.
523         * soft-fp/extendxftf2.c: Likewise.
524         * soft-fp/fixdfdi.c: Likewise.
525         * soft-fp/fixdfsi.c: Likewise.
526         * soft-fp/fixdfti.c: Likewise.
527         * soft-fp/fixsfdi.c: Likewise.
528         * soft-fp/fixsfsi.c: Likewise.
529         * soft-fp/fixsfti.c: Likewise.
530         * soft-fp/fixtfdi.c: Likewise.
531         * soft-fp/fixtfsi.c: Likewise.
532         * soft-fp/fixtfti.c: Likewise.
533         * soft-fp/fixunsdfdi.c: Likewise.
534         * soft-fp/fixunsdfsi.c: Likewise.
535         * soft-fp/fixunsdfti.c: Likewise.
536         * soft-fp/fixunssfdi.c: Likewise.
537         * soft-fp/fixunssfsi.c: Likewise.
538         * soft-fp/fixunssfti.c: Likewise.
539         * soft-fp/fixunstfdi.c: Likewise.
540         * soft-fp/fixunstfsi.c: Likewise.
541         * soft-fp/fixunstfti.c: Likewise.
542         * soft-fp/floatdidf.c: Likewise.
543         * soft-fp/floatdisf.c: Likewise.
544         * soft-fp/floatditf.c: Likewise.
545         * soft-fp/floatsidf.c: Likewise.
546         * soft-fp/floatsisf.c: Likewise.
547         * soft-fp/floatsitf.c: Likewise.
548         * soft-fp/floattidf.c: Likewise.
549         * soft-fp/floattisf.c: Likewise.
550         * soft-fp/floattitf.c: Likewise.
551         * soft-fp/floatundidf.c: Likewise.
552         * soft-fp/floatundisf.c: Likewise.
553         * soft-fp/floatunsidf.c: Likewise.
554         * soft-fp/floatunsisf.c: Likewise.
555         * soft-fp/floatuntidf.c: Likewise.
556         * soft-fp/floatuntisf.c: Likewise.
557         * soft-fp/floatuntitf.c: Likewise.
558         * soft-fp/fmadf4.c: Likewise.
559         * soft-fp/fmasf4.c: Likewise.
560         * soft-fp/fmatf4.c: Likewise.
561         * soft-fp/gedf2.c: Likewise.
562         * soft-fp/gesf2.c: Likewise.
563         * soft-fp/getf2.c: Likewise.
564         * soft-fp/ledf2.c: Likewise.
565         * soft-fp/lesf2.c: Likewise.
566         * soft-fp/letf2.c: Likewise.
567         * soft-fp/muldf3.c: Likewise.
568         * soft-fp/mulsf3.c: Likewise.
569         * soft-fp/multf3.c: Likewise.
570         * soft-fp/negdf2.c: Likewise.
571         * soft-fp/negsf2.c: Likewise.
572         * soft-fp/negtf2.c: Likewise.
573         * soft-fp/op-1.h: Likewise.
574         * soft-fp/op-2.h: Likewise.
575         * soft-fp/op-4.h: Likewise.
576         * soft-fp/op-8.h: Likewise.
577         * soft-fp/op-common.h: Likewise.
578         * soft-fp/quad.h: Likewise.
579         * soft-fp/single.h: Likewise.
580         * soft-fp/soft-fp.h: Likewise.
581         * soft-fp/sqrtdf2.c: Likewise.
582         * soft-fp/sqrtsf2.c: Likewise.
583         * soft-fp/sqrttf2.c: Likewise.
584         * soft-fp/subdf3.c: Likewise.
585         * soft-fp/subsf3.c: Likewise.
586         * soft-fp/subtf3.c: Likewise.
587         * soft-fp/truncdfsf2.c: Likewise.
588         * soft-fp/trunctfdf2.c: Likewise.
589         * soft-fp/trunctfsf2.c: Likewise.
590         * soft-fp/trunctfxf2.c: Likewise.
591         * soft-fp/unorddf2.c: Likewise.
592         * soft-fp/unordsf2.c: Likewise.
593         * soft-fp/unordtf2.c: Likewise.
594
595 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
596
597         [BZ #15672]
598         * misc/error.c (error_tail): Fix possible buffer overflow.
599
600 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
601
602         [BZ #13028]
603         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
604         address.
605
606 2013-10-14  P. J. McDermott  <pj@pehjota.net>
607
608         [BZ #832]
609         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
610         testing pipefail option.
611
612 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
613
614         * soft-fp/double.h: Indent preprocessor directives inside #if.
615         * soft-fp/extended.h: Likewise.
616         * soft-fp/op-2.h: Likewise.
617         * soft-fp/op-4.h: Likewise.
618         * soft-fp/op-common.h: Likewise.
619         * soft-fp/quad.h: Likewise.
620         * soft-fp/single.h: Likewise.
621         * soft-fp/soft-fp.h: Likewise.
622
623 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
624
625         * iconv/iconv_prog.c: Fix typos.
626         * stdio-common/psiginfo-data.h: Likewise.
627
628 2013-10-12   Reuben Thomas <rrt@sc3d.org>
629
630         [BZ #15764]
631         * locale/setlocale.c: Fix typo.
632
633 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
634
635         [BZ #16036]
636         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
637         signaling NaN arguments.
638         * soft-fp/unordsf2.c (__unordsf2): Likewise.
639         * soft-fp/unordtf2.c (__unordtf2): Likewise.
640
641         [BZ #14910]
642         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
643         unordered operands.
644         * soft-fp/gesf2.c (__gesf2): Likewise.
645         * soft-fp/getf2.c (__getf2): Likewise.
646         * soft-fp/ledf2.c (__ledf2): Likewise.
647         * soft-fp/lesf2.c (__lesf2): Likewise.
648         * soft-fp/letf2.c (__letf2): Likewise.
649
650         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
651         * soft-fp/eqsf2.c (__eqsf2): Likewise.
652         * soft-fp/eqtf2.c (__eqtf2): Likewise.
653         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
654         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
655         * soft-fp/fixdfti.c (__fixdfti): Likewise.
656         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
657         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
658         * soft-fp/fixsfti.c (__fixsfti): Likewise.
659         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
660         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
661         * soft-fp/fixtfti.c (__fixtfti): Likewise.
662         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
663         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
664         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
665         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
666         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
667         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
668         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
669         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
670         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
671         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
672         * soft-fp/floatdisf.c (__floatdisf): Likewise.
673         * soft-fp/floatsisf.c (__floatsisf): Likewise.
674         * soft-fp/floattidf.c (__floattidf): Likewise.
675         * soft-fp/floattisf.c (__floattisf): Likewise.
676         * soft-fp/floattitf.c (__floattitf): Likewise.
677         * soft-fp/floatundidf.c (__floatundidf): Likewise.
678         * soft-fp/floatundisf.c (__floatundisf): Likewise.
679         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
680         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
681         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
682         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
683         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
684         * soft-fp/gesf2.c (__gesf2): Likewise.
685         * soft-fp/getf2.c (__getf2): Likewise.
686         * soft-fp/ledf2.c (__ledf2): Likewise.
687         * soft-fp/lesf2.c (__lesf2): Likewise.
688         * soft-fp/letf2.c (__letf2): Likewise.
689
690         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
691         Undefine and redefine.
692         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
693         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
694         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
695         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
696         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
697         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
698         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
699         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
700         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
701         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
702         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
703         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
704         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
705         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
706         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
707
708         [BZ #16032]
709         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
710         without decrementing exponent if mantissa >= that for the
711         denominator, not >.
712         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
713         denominator, not >.  Decrement exponent in < case instead of
714         incrementing in >= case.
715         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
716         without decrementing exponent if mantissa >= that for the
717         denominator, not >.
718
719         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
720         computing saturated result for unsigned overflow.
721
722 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
723             Jeff Law  <law@redhat.com>
724
725         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
726         (atan2Mp): Add systemtap probe marker.
727         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
728         (__ieee754_log): Add systemtap probe marker.
729         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
730         (atanMp): Add systemtap probe marker.
731         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
732         (tanMp): Add systemtap probe marker.
733         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
734         (__slowexp): Add systemtap probe marker.
735         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
736         (__slowpow): Add systemtap probe marker.
737         * manual/probes.texi: Document probes.
738
739 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
740
741         [BZ #15362]
742         * libio/fileops.c (_IO_new_file_write): Return count of bytes
743         written.
744         (_IO_new_file_xsputn): Don't return EOF if nothing has been
745         written.
746         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
747         written to buffer but not flushed.
748         * libio/iofwrite_u.c:  Likewise.
749         * libio/iopadn.c:  Return bytes returned even if EOF was
750         encountered.
751         * libio/iowpadn.c:  Likewise.
752         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
753         if _IO_padn does not write the whole buffer.
754         [!COMPILE_WPRINTF] (PAD): Likewise.
755
756 2013-10-10  David S. Miller  <davem@davemloft.net>
757
758         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
759         directory block.
760
761 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
762
763         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
764         instead of FSF address.
765         * soft-fp/fixdfti.c: Likewise.
766         * soft-fp/fixsfti.c: Likewise.
767         * soft-fp/fixtfti.c: Likewise.
768         * soft-fp/fixunsdfti.c: Likewise.
769         * soft-fp/fixunssfti.c: Likewise.
770         * soft-fp/fixunstfti.c: Likewise.
771         * soft-fp/floattidf.c: Likewise.
772         * soft-fp/floattisf.c: Likewise.
773         * soft-fp/floattitf.c: Likewise.
774         * soft-fp/floatuntidf.c: Likewise.
775         * soft-fp/floatuntisf.c: Likewise.
776         * soft-fp/floatuntitf.c: Likewise.
777         * soft-fp/trunctfxf2.c: Likewise.
778
779         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
780         * soft-fp/fixdfti.c: Likewise.
781         * soft-fp/fixsfti.c: Likewise.
782         * soft-fp/fixtfti.c: Likewise.
783         * soft-fp/fixunsdfti.c: Likewise.
784         * soft-fp/fixunssfti.c: Likewise.
785         * soft-fp/fixunstfti.c: Likewise.
786         * soft-fp/floattidf.c: Likewise.
787         * soft-fp/floattisf.c: Likewise.
788         * soft-fp/floattitf.c: Likewise.
789         * soft-fp/floatuntidf.c: Likewise.
790         * soft-fp/floatuntisf.c: Likewise.
791         * soft-fp/floatuntitf.c: Likewise.
792         * soft-fp/trunctfxf2.c: Likewise.
793
794 2013-10-10  David S. Miller  <davem@davemloft.net>
795
796         * sysdeps/sparc/fpu/libm-test-ulps: Update.
797
798 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
799
800         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
801         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
802         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
803         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
804         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
805         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
806         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
807
808         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
809         for NaNs before doing comparisons on argument.
810         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
811         Likewise.
812
813 2013-10-10  Will Newton  <will.newton@linaro.org>
814
815         * malloc/hooks.c (memalign_check): Ensure the value of bytes
816         passed to _int_memalign does not overflow.
817
818 2013-10-10  Torvald Riegel  <triegel@redhat.com>
819
820         * scripts/bench.pl: Add include-sources directive.
821         * benchtests/README: Update documentation.
822
823 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
824
825         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
826         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
827         instead of FP_INIT_ROUNDMODE.
828         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
829         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
830
831         [BZ #16034]
832         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
833         copy class of input value.
834         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
835         not handle exceptions.
836         * soft-fp/negsf2.c (__negsf2): Likewise.
837         * soft-fp/negtf2.c (__negtf2): Likewise.
838         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
839
840 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
841
842         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
843         semicolon.  From Linux kernel.
844
845 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
846
847         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
848
849 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
850
851         [BZ #156]
852         * manual/socket.texi: Added statement about buffer
853         for gethostbyname2_r.
854
855 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
856
857         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
858         Use .p2align directive instead, throughout.
859         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
860         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
861         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
862         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
863         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
864         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
865         * sysdeps/x86_64/strchr.S: Likewise.
866         * sysdeps/x86_64/strrchr.S: Likewise.
867
868 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
869
870         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
871
872         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
873
874         * sysdeps/generic/math_private.h (__mpsin1): Remove
875         declaration.
876         (__mpcos1): Likewise.
877         (__mpsin): New argument __range_reduce.
878         (__mpcos): Likewise.
879         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
880         (slow): Use __mpsin and __mpcos.
881         (slow1): Likewise.
882         (slow2): Likewise.
883         (sloww): Likewise.
884         (sloww1): Likewise.
885         (sloww2): Likewise.
886         (bsloww): Likewise.
887         (bsloww1): Likewise.
888         (bsloww2): Likewise.
889         (cslow2): Likewise.
890         (csloww): Likewise.
891         (csloww1): Likewise.
892         (csloww2): Likewise.
893         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
894         range_reduce.  Merge in __mpsin1.
895         (__mpcos): Likewise.
896         (__mpsin1): Remove.
897         (__mpcos1): Likewise.
898
899 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
900
901         * locale/loadlocale.c (_nl_intern_locale_data): Use
902         LOCFILE_ALIGNED_P.
903         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
904         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
905         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
906         obstack data is appropriately aligned.
907         (obstack_int32_grow_fast): Likewise.
908         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
909         * locale/programs/locfile.c (add_locale_uint32): Likewise.
910         (add_locale_uint32_array): Likewise.
911
912 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
913
914         * benchtests/Makefile: Remove ARGLIST and RET variables.
915         ($(objpfx)bench-%.c): Pass only function name to the script.
916         * benchtests/README: Update documentation.
917         * benchtests/acos-inputs: Add new directives.
918         * benchtests/acosh-inputs: Likewise.
919         * benchtests/asin-inputs: Likewise.
920         * benchtests/asinh-inputs: Likewise.
921         * benchtests/atan-inputs: Likewise.
922         * benchtests/atanh-inputs: Likewise.
923         * benchtests/cos-inputs: Likewise.
924         * benchtests/cosh-inputs: Likewise.
925         * benchtests/exp-inputs: Likewise.
926         * benchtests/log-inputs: Likewise.
927         * benchtests/pow-inputs: Likewise.
928         * benchtests/rint-inputs: Likewise.
929         * benchtests/sin-inputs: Likewise.
930         * benchtests/sinh-inputs: Likewise.
931         * benchtests/tan-inputs: Likewise.
932         * benchtests/tanh-inputs: Likewise.
933         * scripts/bench.pl: Add support for new directives.
934
935 2013-10-07  Alan Modra  <amodra@gmail.com>
936
937         * README: Fix careless merge.
938
939 2013-10-05  Alan Modra  <amodra@gmail.com>
940
941         * NEWS: Mention powerpc64le support and bugs fixed.
942         * README: Both big-endian and little-endian powerpc64 supported.
943
944 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
945
946         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
947         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
948         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
949         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
950
951 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
952
953         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
954         match prototype.
955
956 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
957
958         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
959         Move -mhard-float appending from
960         ports/sysdeps/powerpc/powerpc32/Makefile.
961         [$(with-fp) = yes] (ASFLAGS): Likewise.
962         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
963         * sysdeps/powerpc/nofpu: Move directory from
964         ports/sysdeps/powerpc/nofpu.
965         * sysdeps/powerpc/soft-fp: Move directory from
966         ports/sysdeps/powerpc/soft-fp.
967         * sysdeps/powerpc/powerpc32/405: Move directory from
968         ports/sysdeps/powerpc/powerpc32/405.
969         * sysdeps/powerpc/powerpc32/440: Move directory from
970         ports/sysdeps/powerpc/powerpc32/440.
971         * sysdeps/powerpc/powerpc32/464: Move directory from
972         ports/sysdeps/powerpc/powerpc32/464.
973         * sysdeps/powerpc/powerpc32/476: Move directory from
974         ports/sysdeps/powerpc/powerpc32/476.
975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
976         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
978         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
980         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
982         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
984         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
985         * README: Update for powerpc-*-linux-gnu software floating point
986         support in libc.
987
988         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
989         case to powerpc/powerpc32*.
990         * sysdeps/unix/sysv/linux/configure: Regenerated.
991
992         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
993         (_FPU_MASK_OM): Define as 0x04.
994         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
995         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
996         0x00c10080.
997         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
998         0x0000003c.
999         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
1000
1001         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1002         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
1003         getcontext_e500.
1004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1005         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
1006         setcontext_e500.
1007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1008         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
1009         and setcontext_e500.
1010
1011 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
1012
1013         * locale/iso-3166.def: Update iso-1366.def and related occurrences
1014
1015 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
1016
1017         * manual/threads.texi (Default Thread Attributes): Fix typo.
1018
1019 2013-10-04  Will Newton  <will.newton@linaro.org>
1020
1021         * malloc/Makefile: Add tst-memalign.
1022         * malloc/tst-memalign.c: New file.
1023
1024         * malloc/tst-posix_memalign.c: Add comments.
1025         (do_test): Add comments and call free on all potentially
1026         allocated pointers. Add space after cast.
1027
1028         * malloc/tst-pvalloc.c: Add comments.
1029         (do_test): Add comments and call free on all potentially
1030         allocated pointers. Remove duplicate check for NULL pointer.
1031         Add space after cast.
1032
1033         * malloc/tst-valloc.c: Add comments.
1034         (do_test): Add comments and call free on all potentially
1035         allocated pointers. Remove duplicate check for NULL pointer.
1036         Add space after cast.
1037
1038 2013-10-04  Alan Modra  <amodra@gmail.com>
1039
1040         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
1041         Use stdint types in rather than __attribute__((mode())).
1042         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
1043
1044 2013-10-04  Alan Modra  <amodra@gmail.com>
1045
1046         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
1047         Correct handling of unaligned relocs for little-endian.
1048         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
1049
1050 2013-10-04  Alan Modra  <amodra@gmail.com>
1051
1052         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
1053         * configure: Regenerate.
1054         * nptl/shlib-versions: Powerpc*le starts at 2.18.
1055         * shlib-versions: Likewise.
1056
1057 2013-10-04  Alan Modra  <amodra@gmail.com>
1058
1059         * string/tester.c (test_memrchr): Increment reported test cycle.
1060
1061 2013-10-04  Alan Modra  <amodra@gmail.com>
1062
1063         * string/test-memcpy.c (do_one_test): When reporting errors, print
1064         string address and don't overrun end of string.
1065
1066 2013-10-04  Alan Modra  <amodra@gmail.com>
1067
1068         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
1069         insrdi.  Make better use of reg selection to speed exit slightly.
1070         Schedule entry path a little better.  Remove useless "are we done"
1071         checks on entry to main loop.  Handle wrapping around zero address.
1072         Correct main loop count.  Handle single left-over word from main
1073         loop inline rather than by using loop_small.  Remove extra word
1074         case in loop_small caused by wrong loop count.  Add little-endian
1075         support.
1076         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
1077         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
1078         cache hint.
1079         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
1080         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
1081         support.  Avoid rlwimi.
1082         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
1083
1084 2013-10-04  Alan Modra  <amodra@gmail.com>
1085
1086         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
1087         insrdi.  Formatting.
1088         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
1089         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
1090         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
1091         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
1092         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
1093         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
1094
1095 2013-10-04  Alan Modra  <amodra@gmail.com>
1096
1097         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
1098         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
1099         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
1100         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
1101         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
1102         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
1103         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
1104         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
1105         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
1106         use of regs.  Use power7 mtocrf.  Tidy function tails.
1107
1108 2013-10-04  Alan Modra  <amodra@gmail.com>
1109
1110         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
1111         Formatting.  Consistently use rXXX register defines or rN defines.
1112         Use early exit labels that avoid restoring unused non-volatile regs.
1113         Make cr field use more consistent with rWORDn compares.  Rename
1114         regs used as shift registers for unaligned loop, using rN defines
1115         for short lifetime/multiple use regs.
1116         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
1117         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
1118         addi 1,1,64 to pop stack frame.  Simplify return value code.
1119         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
1120
1121 2013-10-04  Alan Modra  <amodra@gmail.com>
1122
1123         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
1124         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
1125         rather than rlwimi.
1126         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
1127         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
1128         little-endian support.  Correct typos.
1129         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
1130         rather than rlwimi.
1131         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
1132         in loop and entry code to keep "and." results.
1133         (strchr): Add little-endian support.  Comment.  Move cntlzd
1134         earlier in tail.
1135         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
1136
1137 2013-10-04  Alan Modra  <amodra@gmail.com>
1138
1139         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
1140         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
1141         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
1142         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
1143
1144 2013-10-04  Alan Modra  <amodra@gmail.com>
1145
1146         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
1147         (rTMP): Define as r11.
1148         (strcmp): Add little-endian support.  Optimise tail.
1149         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
1150         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
1151         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
1152         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
1153         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
1154         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
1155         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
1156
1157 2013-10-04  Alan Modra  <amodra@gmail.com>
1158
1159         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
1160         little-endian support.  Remove unnecessary "are we done" tests.
1161         Handle "s" wrapping around zero and extremely large "size".
1162         Correct main loop count.  Handle single left-over word from main
1163         loop inline rather than by using small_loop.  Correct comments.
1164         Delete "zero" tail, use "end_max" instead.
1165         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
1166
1167 2013-10-04  Alan Modra  <amodra@gmail.com>
1168
1169         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
1170         support.  Don't branch over align.
1171         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
1172         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
1173         support.  Rearrange tmp reg use to suit.  Comment.
1174         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
1175
1176 2013-10-04  Alan Modra  <amodra@gmail.com>
1177
1178         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
1179
1180 2013-10-04  Alan Modra  <amodra@gmail.com>
1181
1182         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
1183         conditional form of branch and link when obtaining pc.
1184         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
1185
1186 2013-10-04  Alan Modra  <amodra@gmail.com>
1187
1188         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
1189         HIWORD/LOWORD.
1190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
1191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
1192
1193 2013-10-04  Alan Modra  <amodra@gmail.com>
1194
1195         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
1196         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
1197         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
1198         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
1199         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
1200         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
1201         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
1202         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
1203         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
1204         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
1205
1206 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
1207             Alistair Popple <alistair@ozlabs.au.ibm.com>
1208             Alan Modra <amodra@gmail.com>
1209
1210         [BZ #15723]
1211         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
1212         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
1213         _dl_hwcap access for little-endian.
1214         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
1215         destroy vmx regs when saving unaligned.
1216         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
1217         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
1218         destroy vmx regs when saving unaligned.
1219
1220 2013-10-04  Alan Modra  <amodra@gmail.com>
1221
1222         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
1223         Don't use a union to pack hi/low value.
1224
1225 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
1226
1227         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
1228         for little-endian.
1229         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
1230         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
1231         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
1232         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
1233         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
1234
1235 2013-10-04  Alan Modra  <amodra@gmail.com>
1236
1237         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
1238         constants to usual value for .cst8 section, and remove redundant
1239         high address load.
1240         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
1241         constant for 0x1p52.  Load little-endian words of double from
1242         correct stack offsets.
1243
1244 2013-10-04  Alan Modra  <amodra@gmail.com>
1245
1246         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
1247         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
1248         words of double from correct stack offsets.
1249         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
1250         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
1251         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
1252         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
1253         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
1254         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
1255         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
1256         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
1257         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
1258         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
1259         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
1260         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
1261         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
1262         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
1263         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
1264         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
1265         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
1266
1267 2013-10-04  Alan Modra  <amodra@gmail.com>
1268
1269         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
1270         64-bit int/double union.
1271         (_FPU_SETCW): Likewise.
1272         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1273         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
1274
1275 2013-10-04  Alan Modra  <amodra@gmail.com>
1276
1277         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
1278         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
1279
1280 2013-10-04  Alan Modra  <amodra@gmail.com>
1281
1282         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
1283         use vector int constants.
1284         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
1285
1286 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
1287
1288         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
1289         array with long long.
1290         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
1291         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
1292         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
1293         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
1294         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
1295         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
1296         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
1297         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
1298         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
1299         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
1300         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
1301         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
1302         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
1303
1304 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
1305
1306         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
1307         (__signbit): Likewise.  Correct for little-endian.
1308         (__signbitl): Call __signbit.
1309         (lrint): Correct for little-endian.
1310         (lrintf): Call lrint.
1311
1312 2013-10-04  Alan Modra  <amodra@gmail.com>
1313
1314         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
1315         union 32-bit int array member with 64-bit int array.
1316         (t515, tm256): Double rather than long double.
1317         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
1318
1319 2013-10-04  Alan Modra  <amodra@gmail.com>
1320
1321         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
1322         Delete.
1323         (IEEE854_LONG_DOUBLE_BIAS): Delete.
1324         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
1325         version of math_ldbl.h.
1326
1327 2013-10-04  Alan Modra  <amodra@gmail.com>
1328
1329         [BZ #15734], [BZ #15735]
1330         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
1331         all uses of ieee875 long double macros and unions.  Simplify test
1332         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
1333         ldbl_extract_mantissa value for ix,iy exponents.  Properly
1334         normalize after ldbl_extract_mantissa, and don't add hidden bit
1335         already handled.  Don't treat low word of ieee854 mantissa like
1336         low word of IBM long double and mask off bit when testing for
1337         zero.
1338         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
1339         all uses of ieee875 long double macros and unions.  Simplify tests
1340         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
1341         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
1342         two1022, instead use their values.  Recognise that tests for large
1343         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
1344         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
1345         Rewrite all uses of ieee875 long double macros and unions.  Simplify
1346         test for 0.0L and nan.  Correct negation.
1347         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
1348         ieee875 long double macros and unions.  Correct output for large
1349         magnitude x.  Correct absolute value calculation.
1350         (__erfcl): Likewise.
1351         * math/libm-test.inc: Add tests for errors discovered in IBM long
1352         double versions of fmodl, remainderl, erfl and erfcl.
1353
1354 2013-10-04  Alan Modra  <amodra@gmail.com>
1355
1356         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
1357         all uses of ieee854 long double macros and unions.  Simplify tests
1358         for long doubles that are fully specified by the high double.
1359         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
1360         Likewise.
1361         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
1362         Remove dead code too.
1363         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
1364         (__ieee754_ynl): Likewise.
1365         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
1366         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
1367         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
1368         Remove dead code too.
1369         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
1370         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
1371         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
1372         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
1373         Simplify.
1374         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
1375         Simplify.
1376         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
1377         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
1378         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
1379         Comment on variable precision.
1380         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
1381         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
1382         Likewise.
1383         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
1384         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
1385         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
1386         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
1387         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
1388
1389 2013-10-04  Alan Modra  <amodra@gmail.com>
1390
1391         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
1392         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
1393         all uses of ieee854 long double macros and unions.
1394         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
1395         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
1396         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
1397         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
1398         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
1399         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
1400         Likewise.
1401         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
1402         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
1403         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
1404         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
1405         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
1406         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
1407         Simplify sign and nan test too.
1408         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
1409         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
1410         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
1411         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
1412         Likewise.
1413         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
1414         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
1415         Likewise.
1416         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
1417         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
1418         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
1419         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
1420         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
1421         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
1422
1423 2013-10-04  Alan Modra  <amodra@gmail.com>
1424
1425         * stdio-common/printf_size.c (__printf_size): Don't use
1426         union ieee854_long_double in fpnum union.
1427         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
1428         signbit macro to retrieve sign from long double.
1429         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
1430         retrieve sign from long double.
1431         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
1432         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
1433         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
1434         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
1435         * math/test-misc.c (main): Don't use union ieee854_long_double.
1436
1437 2013-10-04  Alan Modra  <amodra@gmail.com>
1438
1439         [BZ #15680]
1440         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
1441         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
1442         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
1443         calculation.  Remove unnecessary test for denormal exponent.
1444         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
1445         Correct handling of denormals.  Avoid undefined shift behaviour.
1446         Correct normalisation of low mantissa when low double is denormal.
1447         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
1448         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
1449         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
1450         Correct normalisation of low mantissa.  Test for overflow of high
1451         mantissa and normalise.
1452         (ldbl_nearbyint): Use more readable constant for two52.
1453         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
1454         (__mpn_construct_long_double): Fix test for overflow of high
1455         mantissa and correct normalisation.  Avoid undefined shift.
1456
1457 2013-10-04  Alan Modra  <amodra@gmail.com>
1458
1459         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
1460         (union ibm_extended_long_double): Define as an array of ieee754_double.
1461         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
1462         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
1463         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
1464         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
1465         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
1466         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
1467         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
1468         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
1469         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
1470         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
1471         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
1472
1473 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
1474
1475         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
1476         page size instead of calling getpagesize.
1477
1478         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
1479         (LOCFILE_ALIGN_MASK): Likewise.
1480         (LOCFILE_ALIGN_UP): Likewise.
1481         (LOCFILE_ALIGNED_P): Likewise.
1482         * locale/programs/ld-collate.c (collate_output): Use the new
1483         macros instead of __alignof__ (int32_t).
1484         * locale/weight.h (findidx): Likewise.
1485
1486 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
1487
1488         [BZ #431]
1489         * manual/string.texi: Fix strncat and wcsncat.
1490
1491 2013-10-03  Brooks Moses  <bmoses@google.com>
1492
1493         [BZ #15915]
1494         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
1495         * Makerules: ...here, and adjust associated comments.
1496
1497 2013-10-02  Will Newton  <will.newton@linaro.org>
1498
1499         * malloc/Makefile: Add tst-pvalloc.
1500         * malloc/tst-pvalloc.c: New file.
1501
1502 2013-10-02  Will Newton  <will.newton@linaro.org>
1503
1504         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
1505         improve test coverage.
1506
1507 2013-10-02  Will Newton  <will.newton@linaro.org>
1508
1509         * malloc/Makefile: Add tst-posix_memalign.
1510         * malloc/tst-posix_memalign.c: New file.
1511
1512 2013-10-01  Eric Blake  <eblake@redhat.com>
1513
1514         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
1515         Use __THROWNL rather than __THROW on static functions.
1516
1517 2013-09-30  Petr Machata  <pmachata@redhat.com>
1518
1519         * elf/elf.h (R_AARCH64_ABS16): New macro.
1520         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
1521         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
1522         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
1523         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
1524         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
1525         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
1526         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
1527         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
1528         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
1529         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
1530         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
1531         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
1532         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
1533         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
1534         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
1535         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
1536         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
1537         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
1538         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
1539         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
1540         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
1541         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
1542         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
1543         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
1544         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
1545         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
1546         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
1547         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
1548         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
1549         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
1550         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
1551         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
1552         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
1553         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
1554         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
1555         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
1556         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
1557         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
1558         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
1559         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
1560         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
1561         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
1562         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
1563         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
1564         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
1565         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
1566         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
1567         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
1568         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
1569         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
1570         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
1571         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
1572         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
1573         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
1574         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
1575         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
1576         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
1577         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
1578         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
1579         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
1580         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
1581         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
1582         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
1583         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
1584         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
1585         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
1586         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
1587         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
1588         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
1589         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
1590         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
1591         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
1592         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
1593         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
1594         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
1595         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
1596         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
1597         (R_AARCH64_TLSDESC_LDR): Likewise.
1598         (R_AARCH64_TLSDESC_ADD): Likewise.
1599         (R_AARCH64_TLSDESC_CALL): Likewise.
1600
1601 2013-09-30  Andreas Schwab  <schwab@suse.de>
1602
1603         [BZ #15048]
1604         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
1605         the nss database lookup.
1606         * nscd/initgrcache.c (addinitgroupsX): Likewise.
1607         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
1608
1609 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
1610
1611         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
1612
1613 2013-09-28  P. J. McDermott  <pj@pehjota.net>
1614
1615         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
1616         ${Bash-specific parameter/pattern/string} parameter expansion.
1617         * sysdeps/unix/make-syscalls.sh: Likewise.
1618
1619 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1620
1621         * sysdeps/sh/stackguard-macros.h: New file.
1622
1623 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
1624
1625         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
1626         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
1627         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
1628         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
1629         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1630         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
1631
1632 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1633
1634         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
1635         Fix thread ID register.
1636
1637 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
1638
1639         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
1640         [POSIX || UNIX98]: Require rather than permitting all symbols from
1641         <time.h>.
1642         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
1643         element of struct sched_param.
1644         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
1645         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
1646         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
1647         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
1648         constant.
1649
1650 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
1651
1652         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
1653         argument calculation.
1654
1655 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
1656
1657         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
1658         Expect macro.
1659         [POSIX] (pthread_attr_t): Do not require type.
1660         [POSIX] (pthread_cond_t): Likewise.
1661         [POSIX] (pthread_condattr_t): Likewise.
1662         [POSIX] (pthread_key_t): Likewise.
1663         [POSIX] (pthread_mutex_t): Likewise.
1664         [POSIX] (pthread_mutexattr_t): Likewise.
1665         [POSIX] (pthread_once_t): Likewise.
1666         [POSIX] (pthread_t): Likewise.
1667         [POSIX-based standards] (pthread_atfork): Expect function.
1668
1669 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
1670             Richard Sandiford  <richard@codesourcery.com>
1671
1672         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
1673         (swap_endianness_p): New extern variable.
1674         (set_big_endian): New inline function.
1675         (maybe_swap_uint32): Likewise.
1676         (maybe_swap_uint32_array): Likewise.
1677         (maybe_swap_uint32_obstack): Likewise.
1678         * locale/programs/locfile.c: Include <stdbool.h>.
1679         (swap_endianness_p): New variable.
1680         (add_locale_uint32): Call maybe_swap_uint32.
1681         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
1682         (write_locale_data): Call maybe_swap_uint32_array.
1683         * locale/programs/ld-collate.c (obstack_int32_grow): Call
1684         maybe_swap_uint32.
1685         (obstack_int32_grow_fast): Likewise.
1686         (output_weightwc): Call maybe_swap_uint32_obstack.
1687         (collate_output): Likewise.
1688         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
1689         (OPT_LITTLE_ENDIAN): Likewise.
1690         (options): Add --little-endian and --big-endian options.
1691         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
1692         * locale/programs/locarchive.c: Include "locfile.h".
1693         (GET): New macro.
1694         (SET): Likewise.
1695         (INC): Likewise.
1696         (create_archive): Use the new macros to access fields of
1697         structures directly mapped from or written to locale archives.
1698         (oldlocrecentcmp): Likewise.
1699         (enlarge_archive): Likewise.
1700         (insert_name): Likewise.
1701         (add_alias): Likewise.
1702         (add_locale): Likewise.
1703         (delete_locales_from_archive): Likewise.
1704         (show_archive_content): Likewise.
1705         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
1706         locale data.
1707
1708 2013-09-24  Roland McGrath  <roland@hack.frob.com>
1709
1710         * manual/freemanuals.texi: Updated from (newly) canonical copy at
1711         http://www.gnu.org/doc/freemanuals.texi.
1712         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
1713
1714 2013-09-24  Will Newton  <will.newton@linaro.org>
1715
1716         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
1717         macro.
1718
1719 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
1720
1721         * locale/hashval.h (compute_hashval): Interpret bytes of key as
1722         unsigned char.
1723
1724 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
1725
1726         * manual/threads.texi (POSIX Threads): Fix a typo.
1727
1728 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
1729
1730         [BZ #14547]
1731         * string/tst-strcoll-overflow.c: New test case.
1732         * string/Makefile (xtests): Add tst-strcoll-overflow.
1733         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
1734         cache if string sizes may cause integer overflow.
1735
1736         [BZ #14547]
1737         * string/strcoll_l.c (coll_seq): New members rule, idx,
1738         save_idx and back_us.
1739         (get_next_seq_nocache): New function.
1740         (do_compare_nocache): New function.
1741         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
1742         when malloc fails.
1743
1744 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
1745
1746         [BZ #15754]
1747         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
1748         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
1749         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
1750
1751         [BZ #15754]
1752         * elf/Makefile (tests): Add tst-ptrguard1.
1753         (tests-static): Add tst-ptrguard1-static.
1754         (tst-ptrguard1-ARGS): Define.
1755         (tst-ptrguard1-static-ARGS): Define.
1756         * elf/tst-ptrguard1.c: New file.
1757         * elf/tst-ptrguard1-static.c: New file.
1758         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
1759         * sysdeps/i386/stackguard-macros.h: Likewise.
1760         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
1761         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
1762         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
1763         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
1764         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
1765         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
1766
1767 2013-09-23  Hector Marco  <hecmargi@upv.es>
1768             Ismael Ripoll  <iripoll@disca.upv.es>
1769             Carlos O'Donell  <carlos@redhat.com>
1770
1771         [BZ #15754]
1772         * sysdeps/generic/stackguard-macros.h: Define
1773         __pointer_chk_guard_local and POINTER_CHK_GUARD.
1774         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
1775         Define __pointer_chk_guard_local.
1776         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
1777         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
1778
1779 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
1780
1781         [BZ #15859]
1782         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
1783
1784 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
1785
1786         * include/string.h (__ffs): Declare as hidden.
1787         * string/ffs.c (__ffs): Define as hidden.
1788         * sysdeps/i386/ffs.c (__ffs): Likewise.
1789         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
1790         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
1791         * sysdeps/s390/ffs.c (__ffs): Likewise.
1792         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
1793
1794 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
1795
1796         * NEWS: Mention malloc probes.
1797
1798         * malloc/arena.c (new_heap): New memory_heap_new probe.
1799         (grow_heap): New memory_heap_more probe.
1800         (shrink_heap): New memory_heap_less probe.
1801         (heap_trim): New memory_heap_free probe.
1802         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
1803         (systrim): New memory_sbrk_less probe.
1804         * manual/probes.texi: Document them.
1805
1806         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
1807         * manual/probes.texi: Document it.
1808
1809         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
1810         (__libc_realloc): Add memory_realloc_retry probe.
1811         (__libc_memalign): Add memory_memalign_retry probe.
1812         (__libc_valloc): Add memory_valloc_retry probe.
1813         (__libc_pvalloc): Add memory_pvalloc_retry probe.
1814         (__libc_calloc): Add memory_calloc_retry probe.
1815         * manual/probes.texi: Document them.
1816
1817         * malloc/arena.c (get_free_list): Add probe
1818         memory_arena_reuse_free_list.
1819         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
1820         and memory_arena_reuse.
1821         (arena_get2) [!PER_THREAD]: Likewise.
1822         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
1823         memory_arena_reuse_realloc.
1824         * manual/probes.texi: Document them.
1825
1826         * malloc/malloc.c (__libc_free): Add
1827         memory_mallopt_free_dyn_thresholds probe.
1828         (__libc_mallopt): Add multiple memory_mallopt probes.
1829         * manual/probes.texi: Document them.
1830
1831         * malloc/malloc.c: Include stap-probe.h.
1832         (__libc_mallopt): Add memory_mallopt probe.
1833         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
1834         * manual/probes.texi: New.
1835         * manual/Makefile (chapters): Add probes.
1836         * manual/threads.texi: Set next node.
1837
1838 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
1839
1840         [BZ #15963, #13985]
1841         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
1842         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
1843         Add `Chinese' to `nan' entry name.
1844
1845 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1846
1847         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
1848         (POLYNOMIAL): Likewise.
1849         (TAYLOR_SINCOS): Likewise.
1850         (TAYLOR_SLOW): Likewise.
1851         (__sin): Use TAYLOR_SINCOS.
1852         (__cos): Likewise.
1853         (slow): Use TAYLOR_SLOW.
1854         (sloww): Likewise.
1855         (bsloww): Likewise.
1856         (csloww): Likewise.
1857
1858 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
1859
1860         * stdlib/strtod_l.c: Fix buffer overrun.
1861
1862 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1863
1864         * benchtests/Makefile (bench): Add sincos.
1865         * benchtests/bench-sincos.c: New file.
1866
1867         * math/libm-test.inc (cos_test_data): New test inputs.
1868         (sin_test_data): Likewise.
1869
1870         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
1871         macro.
1872         (__sin): Use it.
1873         (__cos): Likewise.
1874         (slow1): Likewise.
1875         (slow2): Likewise.
1876         (sloww1): Likewise.
1877         (sloww2): Likewise.
1878         (bsloww1): Likewise.
1879         (bsloww2): Likewise.
1880         (cslow2): Likewise.
1881         (csloww1): Likewise.
1882         (csloww2): Likewise.
1883
1884         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
1885         function.
1886         (__sin): Use it.
1887         (__cos): Likewise.
1888
1889         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
1890         gotos.
1891         (__cos): Likewise.
1892
1893 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
1894
1895         * config.h.in (HAVE_MIPS_NAN2008): New macro.
1896         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
1897         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
1898         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
1899         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
1900         * elf/cache.c (print_entry): Handle the new cache flags.
1901
1902 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
1903             Aldy Hernandez  <aldyh@redhat.com>
1904
1905         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
1906         Change condition to [_SOFT_FLOAT].
1907         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
1908         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
1909         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
1910         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
1911         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
1912         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
1913         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
1914         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
1915         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
1916         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
1917         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
1918         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
1919         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
1920         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
1921         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
1922         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
1923         declaration.
1924
1925 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
1926
1927         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
1928         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
1929         (__longjmp): Use LOAD_GP to load saved GPRs.
1930         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
1931         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
1932         (__sigsetjmp): Use SAVE_GP to save GPRs.
1933
1934         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
1935         Do not append -msoft-float.
1936         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
1937
1938 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1939
1940         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
1941
1942 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
1943
1944         [BZ #15966]
1945         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
1946         (_FPU_GETCW): Use initial "__" on variable and field names but not
1947         on macro parameter name.
1948         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
1949         parentheses around reference to macro parameter.
1950
1951 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
1952
1953         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
1954         prototype.
1955         (ctype_startup): Use uint32_t in cast and sizeof for
1956         ctype->charnames.
1957
1958 2013-09-11  Jia Liu  <proljc@gmail.com>
1959
1960         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
1961         __daddr_t_defined.
1962         [__FreeBSD__]: Likewise.
1963
1964 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
1965
1966         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
1967         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
1968         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
1969         (strchr): Remove __strchr_sse42 ifunc selection.
1970         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
1971         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
1972
1973 2013-09-11  Will Newton  <will.newton@linaro.org>
1974
1975         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
1976         parameter to RES. Remove hardcoded 1000 value.
1977         * benchtests/bench-skeleton.c (main): Pass RES parameter
1978         to TIMING_INIT and multiply result by 1000.
1979
1980 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1981
1982         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1983
1984 2013-09-11  Andreas Schwab  <schwab@suse.de>
1985
1986         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
1987         if not defined.
1988         (O_TMPFILE) [__USE_GNU]: Define.
1989         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
1990         Define.
1991
1992 2013-09-11  Will Newton  <will.newton@linaro.org>
1993
1994         [BZ #15857]
1995         * malloc/malloc.c (__libc_memalign): Check the value of bytes
1996         does not overflow.
1997
1998 2013-09-11  Will Newton  <will.newton@linaro.org>
1999
2000         [BZ #15856]
2001         * malloc/malloc.c (__libc_valloc): Check the value of bytes
2002         does not overflow.
2003
2004 2013-09-11  Will Newton  <will.newton@linaro.org>
2005
2006         [BZ #15855]
2007         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
2008         does not overflow.
2009
2010 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
2011
2012         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
2013         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
2014         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
2015         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
2016         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
2017
2018 2013-09-10  Allan McRae  <allan@archlinux.org>
2019
2020         [BZ #15748]
2021         * manual/arith.texi (Parsing of Floats): Clarify
2022         cross-reference.
2023
2024         [BZ #15849]
2025         * manual/install.texi (Running make install): Mention
2026         --enable-pt-chown.
2027         * INSTALL: Regenerated.
2028
2029 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
2030
2031         * csu/init-first.c (_init): Remove the !SHARED condition around
2032         FPU control word initialization.
2033         * elf/dl-support.c (_dl_fpu_control): New variable.
2034         (_dl_aux_init) <AT_FPUCW>: Initialize it.
2035         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
2036         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
2037         * math/test-fpucw-static.c: New file.
2038         * math/test-fpucw-ieee.c: New file.
2039         * math/test-fpucw-ieee-static.c: New file.
2040         * math/Makefile (tests): Add `test-fpucw-ieee' and
2041         `$(tests-static)'.
2042         (tests-static): New variable.
2043         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
2044         dependency to...
2045         [($(build-shared),yes)]
2046         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
2047         ... this.
2048         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
2049         New dependency.
2050
2051 2013-09-09  Allan McRae  <allan@archlinux.org>
2052
2053         [BZ #15939]
2054         * manual/string.texi (Collation Functions): Fix typo in
2055         strcoll example.
2056         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
2057
2058         [BZ #15893]
2059         * stdlib/isomac.c (get_null_defines): Fix memory leak.
2060
2061         [BZ #15892]
2062         * libio/memstream.c (open_memstream): Fix memory leak.
2063         * libio/wmemstream.c (open_wmemstream): Likewise.
2064
2065         [BZ #15895]
2066         * nscd/netgroupcache.c: Fix nesting of ifdefs.
2067
2068 2013-09-09  Will Newton  <will.newton@linaro.org>
2069
2070         * malloc/Makefile: Add tst-realloc to tests.
2071         * malloc/tst-realloc.c: New file.
2072
2073 2013-09-09  Allan McRae  <allan@archlinux.org>
2074
2075         [BZ #15844]
2076         * COPYING: Update from GNU website to fix FSF address.
2077         * COPYING.LIB: Likewise.
2078
2079 2013-09-06  David S. Miller  <davem@davemloft.net>
2080
2081         * po/zh_TW.po: Update Chinese (traditional) translation from
2082         translation project.
2083
2084 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
2085             Joseph Myers  <joseph@codesourcery.com>
2086
2087         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
2088         "localeinfo.h".
2089         (obstack_chunk_alloc): New macro.
2090         (obstack_chunk_free): Likewise.
2091         (record_offset): New function.
2092         (init_locale_data): Likewise.
2093         (align_locale_data): Likewise.
2094         (add_locale_empty): Likewise.
2095         (add_locale_raw_data): Likewise.
2096         (add_locale_raw_obstack): Likewise.
2097         (add_locale_string): Likewise.
2098         (add_locale_wstring): Likewise.
2099         (add_locale_uint32): Likewise.
2100         (add_locale_uint32_array): Likewise.
2101         (add_locale_char): Likewise.
2102         (start_locale_structure): Likewise.
2103         (end_locale_structure): Likewise.
2104         (start_locale_prelude): Likewise.
2105         (end_locale_prelude): Likewise.
2106         (write_locale_data): Take locale_file structure rather than an
2107         iovec.
2108         * locale/programs/locfile.h: Include "obstack.h".
2109         (struct locale_file): Change to store locale file contents instead
2110         of header.
2111         (init_locale_data): New prototype.
2112         (align_locale_data): Likewise.
2113         (add_locale_empty): Likewise.
2114         (add_locale_raw_data): Likewise.
2115         (add_locale_raw_obstack): Likewise.
2116         (add_locale_string): Likewise.
2117         (add_locale_wstring): Likewise.
2118         (add_locale_uint32): Likewise.
2119         (add_locale_uint32_array): Likewise.
2120         (add_locale_char): Likewise.
2121         (start_locale_structure): Likewise.
2122         (end_locale_structure): Likewise.
2123         (start_locale_prelude): Likewise.
2124         (end_locale_prelude): Likewise.
2125         (write_locale_data): Update prototype.
2126         * locale/programs/3level.h (struct TABLE): Remove result field.
2127         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
2128         Use new locale_file interface.
2129         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
2130         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
2131         * locale/programs/ld-address.c (address_output): Use new
2132         locale_file interface.
2133         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
2134         NO_ADD_LOCALE.
2135         (collate_finish): Don't call collseq_table_finalize.
2136         (collate_output): Use new locale_file interface.
2137         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
2138         in file.
2139         (NO_FINALIZE): Change to NO_ADD_LOCALE.
2140         (TABLE): Move defines earlier in file.
2141         (ELEMENT): Likewise.
2142         (DEFAULT): Likewise.
2143         (wctrans_table_add): Move macro and inline function earlier in
2144         file.
2145         (struct wctype_table): Move type earlier in file.
2146         (add_locale_wctype_table): New static prototype.
2147         (struct locale_ctype_t): Use logical types instead of struct iovec
2148         pointers for members.
2149         (ctype_output): Use new locale_file interface.
2150         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
2151         new locale_file interface.
2152         (allocate_arrays): Update for use of new locale_file interface.
2153         * locale/programs/ld-identification.c (identification_output): Use
2154         new locale_file interface.
2155         * locale/programs/ld-measurement.c (measurement_output): Likewise.
2156         * locale/programs/ld-messages.c (messages_output): Likewise.
2157         * locale/programs/ld-monetary.c (monetary_output): Likewise.
2158         * locale/programs/ld-name.c (name_output): Likewise.
2159         * locale/programs/ld-numeric.c (numeric_output): Likewise.
2160         * locale/programs/ld-paper.c (paper_output): Likewise.
2161         * locale/programs/ld-telephone.c (telephone_output): Likewise.
2162         * locale/programs/ld-time.c (time_output): Likewise.
2163
2164 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2165
2166         * benchtests/Makefile: Add memrchr benchmark.
2167         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
2168         benchmark as memrchr.
2169         * benchtests/bench-memrchr-ifunc.c: New file.
2170         * benchtests/bench-memrchr.c: New file.
2171
2172 2013-09-06   Will Newton  <will.newton@linaro.org>
2173
2174         * benchtests/Makefile (string-bench): Add memcpy.
2175
2176 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
2177             Cong Wang  <amwang@redhat.com>
2178
2179         * sysdeps/unix/sysv/linux/bits/in.h
2180         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
2181         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
2182         before __USE_KERNEL_IPV6_DEFS uses.
2183         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
2184         IPPROTO_BEETPH.
2185         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
2186         sockaddr_in6, or ipv6_mreq.
2187
2188 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2189
2190         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
2191         memory access for final bytes in some large inputs.
2192         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
2193
2194 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2195
2196         * string/test-memrchr.c: New file.
2197         * string/test-memrchr-ifunc.c: New file.
2198         * string/Makefile: Add new memrchr testcase.
2199
2200 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
2201
2202         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
2203         fanotify_init returns EPERM.
2204
2205 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
2206
2207         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
2208         errors.
2209         (top level): Treat second token from macro or constant entries for
2210         allowed headers as allowed.
2211         * include/complex.h: Condition internal declarations on
2212         [!_ISOMAC].
2213         * include/fenv.h: Condition include of <stdbool.h> and internal
2214         declarations on [!_ISOMAC].
2215
2216 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
2217
2218         [BZ #15923]
2219         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
2220
2221 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
2222
2223         * configure.in (--enable-versioning): Remove configure option.
2224         (libc_cv_asm_symver_directive): Remove configure test.
2225         (libc_cv_ld_version_script_option): Likewise.
2226         (VERSIONING): Remove variable and AC_SUBST.
2227         (DO_VERSIONING): Remove AC_DEFINE.
2228         * configure: Regenerated.
2229         * config.h.in (DO_VERSIONING): Remove macro.
2230         * Makerules [$(versioning) = yes]: Change conditionals to
2231         [$(build-shared) = yes].
2232         * config.make.in (versioning): Remove variable.
2233         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
2234         [$(build-shared) = yes].
2235         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
2236         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
2237         * elf/Makefile [$(versioning) = yes]: Change conditionals to
2238         [$(build-shared) = yes].
2239         * extra-lib.mk [$(versioning) = yes]: Likewise.
2240         * hurd/Makefile [$(versioning) = yes]: Likewise.
2241         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
2242         [SHARED].
2243         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
2244         [SHARED].
2245         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
2246         [SHARED && !NO_HIDDEN].
2247         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
2248         [SHARED].
2249         [SHARED && DO_VERSIONING]: Likewise..
2250         * libio/Makefile [$(versioning) = yes]: Change conditionals to
2251         [$(build-shared) = yes].
2252         * manual/install.texi (--disable-versioning): Remove
2253         documentation.
2254         * INSTALL: Regenerated.
2255         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
2256         to [SHARED].
2257         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
2258         [$(build-shared) = yes].
2259         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
2260         * sysdeps/i386/i686/multiarch/strstr-c.c
2261         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
2262         [SHARED && !NO_HIDDEN].
2263         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
2264         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
2265         * sysdeps/powerpc/powerpc32/dl-machine.c
2266         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
2267         * sysdeps/powerpc/powerpc32/sysdep.h
2268         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
2269         to [SHARED && PIC && !NO_HIDDEN].
2270         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
2271         conditional to [SHARED].
2272
2273 2013-09-04   Will Newton  <will.newton@linaro.org>
2274
2275         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
2276         * benchtests/bench-string.h: Include bench-timing.h instead
2277         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
2278         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
2279         call to HP_TIMING_DIFF_INIT.
2280         * benchtests/bench-memccpy.c: Use bench-timing.h macros
2281         instead of hp-timing.h macros.
2282         * benchtests/bench-memchr.c: Likewise.
2283         * benchtests/bench-memcmp.c: Likewise.
2284         * benchtests/bench-memcpy.c: Likewise.
2285         * benchtests/bench-memmem.c: Likewise.
2286         * benchtests/bench-memmove.c: Likewise.
2287         * benchtests/bench-memset.c: Likewise.
2288         * benchtests/bench-rawmemchr.c: Likewise.
2289         * benchtests/bench-strcasecmp.c: Likewise.
2290         * benchtests/bench-strcasestr.c: Likewise.
2291         * benchtests/bench-strcat.c: Likewise.
2292         * benchtests/bench-strchr.c: Likewise.
2293         * benchtests/bench-strcmp.c: Likewise.
2294         * benchtests/bench-strcpy.c: Likewise.
2295         * benchtests/bench-strcpy_chk.c: Likewise.
2296         * benchtests/bench-strlen.c: Likewise.
2297         * benchtests/bench-strncasecmp.c: Likewise.
2298         * benchtests/bench-strncat.c: Likewise.
2299         * benchtests/bench-strncmp.c: Likewise.
2300         * benchtests/bench-strncpy.c: Likewise.
2301         * benchtests/bench-strnlen.c: Likewise.
2302         * benchtests/bench-strpbrk.c: Likewise.
2303         * benchtests/bench-strrchr.c: Likewise.
2304         * benchtests/bench-strspn.c: Likewise.
2305         * benchtests/bench-strstr.c: Likewise.
2306
2307 2013-09-04  Will Newton  <will.newton@linaro.org>
2308
2309         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
2310
2311 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
2312
2313         [BZ #15427]
2314         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
2315         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
2316         * math/libm-test.inc (lgamma_test_data): Add more tests.
2317         * sysdeps/i386/fpu/libm-test-ulps: Update.
2318         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2319
2320 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
2321
2322         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
2323         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2324         Add ifunc.
2325         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
2326         Add strcmp-sse2-unaligned
2327         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
2328
2329 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
2330
2331         * Versions.def (libc): Add GLIBC_2.19.
2332
2333 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
2334
2335         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
2336         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
2337
2338 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
2339
2340         [BZ #14155]
2341         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
2342         intermediate calculations in recurrence.
2343         (__ieee754_ynf): Likewise.
2344         * math/libm-test.inc (jn_test_data): Do not allow spurious
2345         underflow exception.  Add more tests.
2346         (yn_test_data): Add more tests.
2347         * sysdeps/i386/fpu/libm-test-ulps: Update.
2348         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2349
2350 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
2351
2352         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
2353
2354 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
2355
2356         * csu/init-first.c: Fix then/than typos.
2357         * locale/programs/ld-collate.c: Likewise.
2358         * locale/programs/linereader.h: Likewise.
2359         * manual/charset.texi: Likewise.
2360         * manual/filesys.texi: Likewise.
2361         * manual/stdio.texi: Likewise.
2362         * manual/string.texi: Likewise.
2363         * stdlib/fmtmsg.c: Likewise.
2364         * sysdeps/i386/stpncpy.S: Likewise.
2365         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
2366         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
2367         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
2368         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
2369
2370 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
2371
2372         * elf/dl-open.c: Fix typos.
2373         * iconvdata/gbbig5.c: Likewise.
2374         * iconvdata/iso-2022-jp.c: Likewise.
2375         * iconv/gconv_int.h: Likewise.
2376         * iconv/loop.c: Likewise.
2377         * nis/rpcsvc/nis.h: Likewise.
2378         * resolv/ns_name.c: Likewise.
2379         * stdio-common/vfscanf.c: Likewise.
2380         * streams/stropts.h: Likewise.
2381         * sunrpc/rpc_thread.c: Likewise.
2382         * sysdeps/i386/strpbrk.S: Likewise.
2383         * sysdeps/ieee754/k_standard.c: Likewise.
2384         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
2385         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
2386         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
2387         * sysdeps/mach/hurd/profil.c: Likewise.
2388         * sysdeps/s390/dl-procinfo.h: Likewise.
2389         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
2390         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
2391         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
2392         * sysdeps/x86_64/dl-trampoline.S: Likewise.
2393         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
2394
2395 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
2396
2397         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
2398         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
2399
2400 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
2401
2402         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
2403         aix specific files.
2404         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
2405         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
2406         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
2407         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
2408         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
2409         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
2410         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
2411         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
2412
2413 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
2414             Roland McGrath  <roland@hack.frob.com>
2415
2416         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
2417         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
2418
2419 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2420
2421         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
2422         __executable_start symbol instead of _start.
2423
2424 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
2425
2426         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
2427         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
2428         Move macros to...
2429         * sysdeps/gnu/ldsodefs.h: ... this new file.
2430
2431         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
2432         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
2433         instead of ELFOSABI_LINUX.
2434
2435         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
2436         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
2437         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
2438         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
2439         Likewise.
2440         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
2441         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
2442         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
2443         Likewise.
2444         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
2445         (ibm_extended_long_double): Add ieee_nan member.
2446         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
2447         (do_test): New function.
2448
2449         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
2450         TEST_TRUNC.
2451         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
2452         functions, renamed from truncdfsf_test, trunctfsf_test,
2453         trunctfdf_test.
2454         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
2455         functions.
2456         (do_test): Run all these.
2457
2458 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
2459
2460         * argp/argp-help.c: Fix typos.
2461         * argp/argp-parse.c: Likewise.
2462         * debug/backtracesyms.c: Likewise.
2463         * elf/elf.h: Likewise.
2464         * malloc/malloc.c: Likewise.
2465         * nis/nis_print.c: Likewise.
2466         * resolv/res_comp.c: Likewise.
2467         * stdlib/stdlib.h: Likewise.
2468         * sunrpc/clnt_tcp.c: Likewise.
2469         * sunrpc/clnt_udp.c: Likewise.
2470         * sunrpc/clnt_unix.c: Likewise.
2471         * sysdeps/unix/bsd/ptsname.c: Likewise.
2472         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
2473         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
2474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
2475         Likewise.
2476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
2477         Likewise.
2478         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
2479         Likewise.
2480         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
2481
2482 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
2483
2484         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
2485         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
2486
2487 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
2488
2489         [BZ #15897]
2490         * dlfcn/Makefile (tests): Add bug-dl-leaf.
2491         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
2492         ($(objpfx)bug-dl-leaf): New rule.
2493         ($(objpfx)bug-dl-leaf.so): Likewise.
2494         ($(objpfx)bug-dl-leaf.out): Likewise.
2495         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
2496         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
2497         * dlfcn/bug-dl-leaf.c: New test.
2498         * dlfcn/bug-dl-leaf-lib.c: Likewise.
2499         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
2500         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
2501         (dlclose): Likewise.
2502         (dlmopen): Likewise.
2503
2504 2013-08-27  Roland McGrath  <roland@hack.frob.com>
2505
2506         * include/netdb.h [!_ISOMAC]:
2507         Don't include <tls.h>.
2508         (h_errno, __libc_h_errno): Move declaration and macros out of
2509         [_LIBC_REENTRANT].
2510
2511         * include/resolv.h [_RESOLV_H_]:
2512         Don't include <tls.h>.
2513         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
2514         * resolv/res_libc.c: Don't include <tls.h>.
2515         (_res): Use __attribute__ ((nocommon)) in place of
2516         __attribute__ ((section (".bss"))).
2517
2518         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
2519         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
2520
2521         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
2522
2523         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
2524         only under [SIOCGIFCONF && SIOCGIFNETMASK].
2525
2526         * resolv/res_mkquery.c: Include <sys/time.h>.
2527
2528         * inet/ifreq.c: Moved to ...
2529         * sysdeps/unix/ifreq.c: ... here.
2530         * inet/ifreq.c: New file, true stub version.
2531
2532         * socket/sa_len.c: New file.
2533         * socket/Makefile (aux): Add it.
2534         * sysdeps/unix/sysv/linux/Makefile
2535         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
2536         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
2537         and #include <socket/sa_len.c>.
2538         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
2539         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
2540
2541         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
2542         * bits/socket.h: ... here.
2543
2544         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
2545         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
2546         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
2547
2548 2013-08-27  Andreas Schwab  <schwab@suse.de>
2549
2550         [BZ #15736]
2551         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
2552         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
2553         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
2554         * string/test-strcasecmp.c (test_main): Run tests in several
2555         locales.
2556         * string/test-strncasecmp.c (test_main): Likewise.
2557
2558         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
2559         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
2560         to __strcasecmp_nonascii and __strncasecmp_nonascii.
2561         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
2562         (__strncasecmp_ssse3) [PIC]: Likewise.
2563
2564 2013-08-26  Roland McGrath  <roland@hack.frob.com>
2565
2566         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
2567
2568         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
2569         instead of explicitly declaring xdecrypt.
2570         * nis/nss_nis/nis-publickey.c: Likewise.
2571
2572 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2573
2574         [BZ #15890]
2575         * nscd/aicache.c: Include res_hconf.h.
2576         (addhstaiX): Initialize res_hconf.
2577
2578 2013-08-26  Andreas Schwab  <schwab@suse.de>
2579
2580         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
2581         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
2582
2583 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
2584
2585         * nscd/aicache.c (addhstaiX): Fix indentation.
2586
2587 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
2588
2589         * configure.ac: Quote $build_pt_chown test.
2590         * configure: Regenerated.
2591
2592 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
2593
2594         [BZ #15532]
2595         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
2596         * math/s_cexpf.c (__cexpf): Likewise.
2597         * math/s_cexpl.c (__cexpl): Likewise.
2598         * math/libm-test.inc (cexp_test_data): Correct expected return
2599         value for NaN + i0.  Add another test.
2600
2601 2013-08-22  David S. Miller  <davem@davemloft.net>
2602
2603         * po/ca.po: Update Catalan translation from translation project.
2604         * po/uk.po: Add Ukrainian translations from translation project.
2605
2606 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
2607
2608         [BZ #15797]
2609         * math/s_fdim.c (__fdim): Check for infinite arguments if result
2610         is infinite, not alongside NaN test.
2611         * math/s_fdimf.c (__fdimf): Likewise.
2612         * math/s_fdiml.c (__fdiml): Likewise.
2613         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
2614         errno is unchanged.
2615
2616 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
2617
2618         * argp/argp-help.c: Fix typos.
2619         * crypt/speeds.c: Likewise.
2620         * csu/check_fds.c: Likewise.
2621         * elf/dl-load.c: Likewise.
2622         * elf/dl-open.c: Likewise.
2623         * elf/reldep3.c: Likewise.
2624         * elf/reldep.c: Likewise.
2625         * elf/sprof.c: Likewise.
2626         * iconv/iconv_charmap.c: Likewise.
2627         * iconv/skeleton.c: Likewise.
2628         * iconv/strtab.c: Likewise.
2629         * io/lockf64.c: Likewise.
2630         * libio/libioP.h: Likewise.
2631         * resolv/gai_notify.c: Likewise.
2632         * resolv/ns_name.c: Likewise.
2633         * resolv/ns_samedomain.c: Likewise.
2634         * resolv/res_send.c: Likewise.
2635         * stdlib/random.c: Likewise.
2636         * sunrpc/rpc/xdr.h: Likewise.
2637         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
2638         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
2639         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
2640         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
2641         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
2642         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
2643         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
2644         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
2645         * sysdeps/mach/hurd/check_fds.c: Likewise.
2646         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
2647         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
2648         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
2649         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
2650         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
2651         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
2652         * sysdeps/pthread/aio_notify.c: Likewise.
2653         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
2654         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
2655         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
2656         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
2657         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
2658
2659 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2660
2661         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
2662         version if bit_Slow_SSE4_2 is set.
2663         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
2664         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
2665
2666 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2667
2668         [BZ #15867]
2669         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
2670         trampoline stack frame information.
2671         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
2672         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
2673         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
2674         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
2675         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
2676         * sysdeps/unix/sysv/linux/powerpc/init-first.c
2677         (_libc_vdso_platform_setup): Initialize the signal trampolines.
2678         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
2679         sa_flags value.
2680         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
2681         interrupting a syscall and set with option SA_SIGINFO.
2682
2683 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
2684
2685         [BZ #15531]
2686         * math/s_cproj.c (__cproj): Only return an infinity if one part of
2687         argument is infinite.
2688         * math/s_cprojf.c (__cprojf): Likewise.
2689         * math/s_cprojl.c (__cprojl): Likewise.
2690         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
2691         * math/libm-test.inc (cproj_test_data): Add more tests.
2692
2693         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
2694
2695         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
2696         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
2697         size.  Use __ffs to determine corresponding shift.
2698
2699 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
2700             Roland McGrath  <roland@hack.frob.com>
2701
2702         * Makefile (INSTALL): Remove trailing blank lines from output of
2703         makeinfo.
2704
2705 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2706
2707         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
2708         Align 32 bit compat elf_greg to 8 bytes.
2709
2710 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2711
2712         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
2713
2714 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
2715
2716         * string/strcoll_l.c (coll_seq): New structure.
2717         (get_next_seq_cached): New function.
2718         (get_next_seq): New function.
2719         (do_compare): New function.
2720         (STRCOLL): Use GNU style definition.  Simplify implementation
2721         by using get_next_seq, get_next_seq_cached and do_compare.
2722
2723 2013-08-16  Florian Weimer  <fweimer@redhat.com>
2724
2725         [BZ #14699]
2726         CVE-2013-4237
2727         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
2728         member.
2729         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
2730         member.
2731         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
2732         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
2733         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
2734         conditional.
2735         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
2736         GETDENTS_64BIT_ALIGNED.
2737         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
2738         * manual/filesys.texi (Reading/Closing Directory): Document
2739         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
2740         strongly.
2741         * manual/conf.texi (Limits for Files): Add portability note to
2742         NAME_MAX, PATH_MAX.
2743         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
2744
2745 2013-08-13  Andreas Schwab  <schwab@suse.de>
2746
2747         [BZ #15749]
2748         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
2749         of fabs.
2750         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
2751         LDBL_MAX_EXP >= 16384]: Add tests for it.
2752
2753 2013-08-12  David S. Miller  <davem@davemloft.net>
2754
2755         * version.h (RELEASE): Set to "development".
2756         (VERSION): Set to "2.18.90".
2757         * NEWS: Add 2.19 section.
2758
2759 2013-08-03  David S. Miller  <davem@davemloft.net>
2760
2761         * po/ko.po: Update Korean translation from translation project.
2762
2763 2013-08-01  David S. Miller  <davem@davemloft.net>
2764
2765         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
2766         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
2767         Bilka.
2768
2769 2013-07-30  David S. Miller  <davem@davemloft.net>
2770
2771         * po/fr.po: Update French translation from translation project.
2772
2773 2013-07-28  David S. Miller  <davem@davemloft.net>
2774
2775         * po/cs.po: Update Czech translation from translation project.
2776
2777         * po/sv.po: Update Swedish translation from translation project.
2778
2779 2013-07-27  David S. Miller  <davem@davemloft.net>
2780
2781         * po/eo.po: Update Esperanto translation from translation project.
2782
2783         * po/vi.po: Update Vietnamese translation from translation project.
2784
2785         * po/de.po: Update German translation from translation project.
2786
2787 2013-07-26  David S. Miller  <davem@davemloft.net>
2788
2789         * po/bg.po: Update Bulgarian translation from translation project.
2790
2791         * po/nl.po: Update Dutch translation from translation project.
2792         * po/pl.po: Update Polish translation from translation project.
2793         * po/ru.po: Update Russian translation from translation project.
2794
2795 2013-07-24  David S. Miller  <davem@davemloft.net>
2796
2797         * po/libc.pot: Update.
2798
2799 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2800
2801         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
2802         variable page size.
2803         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
2804         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
2805         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
2806
2807 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2808
2809         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
2810
2811 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2812             Andreas Schwab  <schwab@suse.de>
2813             Roland McGrath  <roland@hack.frob.com>
2814             Joseph Myers  <joseph@codesourcery.com>
2815             Carlos O'Donell  <carlos@redhat.com>
2816
2817         [BZ #15755]
2818         * config.h.in: Define HAVE_PT_CHOWN.
2819         * config.make.in (build-pt-chown): New variable.
2820         * configure.in (--enable-pt_chown): New configure option.
2821         * configure: Regenerate.
2822         * login/Makefile: Include Makeconfig.  Build pt_chown only if
2823         build-pt-chown is enabled.
2824         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
2825         pt_chown to fix pty ownership.
2826         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
2827         CLOSE_ALL_FDS.
2828         * manual/install.texi (Configuring and compiling): Mention
2829         --enable-pt_chown. Add @findex for grantpt.
2830         * INSTALL: Regenerate.
2831
2832 2013-07-20  David S. Miller  <davem@davemloft.net>
2833
2834         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
2835         difference between 32-bit and 64-bit.
2836
2837 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
2838
2839         [BZ #15711]
2840         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
2841         Avoid system header dependency with -ffreestanding.
2842         ($(objpfx)bits/syscall%d): Likewise.
2843
2844 2013-07-13  David S. Miller  <davem@davemloft.net>
2845
2846         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
2847         underflows from atanl/atan2l due to bug 15319.
2848         (casinh_test_data): Likewise.
2849
2850 2013-07-07  David S. Miller  <davem@davemloft.net>
2851
2852         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
2853
2854 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
2855
2856         * sysdeps/i386/fpu/libm-test-ulps: Update.
2857         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2858
2859 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2860
2861         * configure.in (--enable-lock-elision): Fix message text.
2862         * INSTALL: Regenerate.
2863         * configure: Regenerate.
2864
2865 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2866
2867         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2868
2869 2013-07-03  Andreas Jaeger  <aj@suse.de>
2870
2871         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
2872         define.
2873         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
2874         (ptrace_peeksiginfo_args): Add.
2875         (__ptrace_peeksiginfo_flags): Add.
2876         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
2877         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
2878         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
2879
2880 2013-07-03  Allan McRae  <allan@archlinux.org>
2881
2882         * sysdeps/i386/fpu/libm-test-ulps: Update.
2883
2884 2013-07-02  David S. Miller  <davem@davemloft.net>
2885
2886         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2887
2888 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
2889
2890         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2891
2892 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
2893
2894         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
2895         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2896
2897 2013-07-02  Andi Kleen <ak@linux.intel.com>
2898
2899         * config.h.in (ENABLE_LOCK_ELISION): Add.
2900         * configure.in (--enable-lock-elision): Add option.
2901         * manual/install.texi: Document --enable lock elision.
2902         * configure: Regenerate
2903         * INSTALL: Regenerate.
2904
2905 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2906
2907         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
2908         SSE4.2 strcasecmp for libc.a.
2909         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
2910
2911 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
2912
2913         [BZ #13304]
2914         * soft-fp/op-common.h (_FP_FMA): New macro.
2915         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
2916         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
2917         (_FP_MUL_MEAT_1_imm): ... here.
2918         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
2919         (_FP_MUL_MEAT_1_wide): ... here.
2920         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
2921         (_FP_MUL_MEAT_1_hard): ... here.
2922         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
2923         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
2924         (_FP_MUL_MEAT_2_wide): ... here.
2925         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
2926         (_FP_MUL_MEAT_2_wide_3mul): ... here.
2927         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
2928         (_FP_MUL_MEAT_2_gmp): ... here.
2929         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
2930         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
2931         (_FP_MUL_MEAT_4_wide): ... here.
2932         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
2933         (_FP_MUL_MEAT_4_gmp): ... here.
2934         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
2935         (_FP_WFRACBITS_DW_S): Likewise.
2936         (_FP_WFRACXBITS_DW_S): Likewise.
2937         (_FP_HIGHBIT_DW_S): Likewise.
2938         (FP_FMA_S): Likewise.
2939         (_FP_FRAC_HIGH_DW_S): Likewise.
2940         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
2941         (_FP_WFRACBITS_DW_D): Likewise.
2942         (_FP_WFRACXBITS_DW_D): Likewise.
2943         (_FP_HIGHBIT_DW_D): Likewise.
2944         (FP_FMA_D): Likewise.
2945         (_FP_FRAC_HIGH_DW_D): Likewise.
2946         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
2947         (_FP_WFRACBITS_DW_E): Likewise.
2948         (_FP_WFRACXBITS_DW_E): Likewise.
2949         (_FP_HIGHBIT_DW_E): Likewise.
2950         (FP_FMA_E): Likewise.
2951         (_FP_FRAC_HIGH_DW_E): Likewise.
2952         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
2953         (_FP_WFRACBITS_DW_Q): Likewise.
2954         (_FP_WFRACXBITS_DW_Q): Likewise.
2955         (_FP_HIGHBIT_DW_Q): Likewise.
2956         (FP_FMA_Q): Likewise.
2957         (_FP_FRAC_HIGH_DW_Q): Likewise.
2958         * soft-fp/fmasf4.c: New file.
2959         * soft-fp/fmadf4.c: Likewise.
2960         * soft-fp/fmatf4.c: Likewise.
2961
2962 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2963
2964         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
2965         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
2966         Silvermont.
2967         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
2968         macro.
2969         (index_Slow_SSE4_2): Likewise.
2970         (index_Prefer_PMINUB_for_stringop): Likewise.
2971         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
2972         bit_Slow_SSE4_2 is set.
2973         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
2974         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2975
2976 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2977
2978         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
2979         rtld_global._dl_hwcap2.
2980         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
2981         POWER8.
2982         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
2983         POWER8 feature descriptions defined in _dl_hwcap2.
2984         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
2985         string handling for POWER8 feature bits.
2986         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
2987         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
2988         _dl_powerpc_cap_flags.
2989         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
2990         * sysdeps/powerpc/rtld-global-offsets.sym
2991         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
2992         _dl_hwcap2 in the rtld_global_ro structure.
2993
2994 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2995
2996         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
2997         hardware capabilities in support of AT_HWCAP2.
2998         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
2999         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
3000         GLRO(dl_hwcap2).
3001         (_dl_show_auxv): Add support for calling _dl_procinfo to display
3002         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
3003         explicitly the unknown a_type display mechanism is used.
3004         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
3005         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
3006         struct member.
3007         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
3008         to macro prototype for AT_HWCAP2 support.
3009         * sysdeps/i386/dl-procinfo.h: Likewise.
3010         * sysdeps/s390/dl-procinfo.h: Likewise.
3011         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
3012         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
3013         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
3014         return -1 for unknown a_type display fallback.
3015         * sysdeps/sparc/dl-procinfo.h: Likewise.
3016         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
3017         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
3018
3019 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
3020
3021         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
3022         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
3023
3024 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
3025
3026         [BZ #12492]
3027         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
3028         mprotect making __stack_prot writable.
3029
3030 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
3031             Joseph Myers  <joseph@codesourcery.com>
3032
3033         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
3034         as being properly aligned.
3035
3036 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
3037
3038         * dlfcn/modstatic5.c: New file.
3039         * dlfcn/tststatic5.c: New file.
3040         * dlfcn/Makefile (tests): Add tststatic5.
3041         (tests-static): Likewise.
3042         (modules-names): Add modstatic5.
3043         (tststatic5-ENV): New variable.
3044         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
3045
3046         [BZ #15022]
3047         * elf/dl-support.c (_dl_main_map): New variable.
3048         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
3049         (_dl_nns, _dl_load_adds): Set to 1.
3050         (_dl_initial_searchlist): Refer to _dl_main_map.
3051         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
3052         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
3053         call to _dl_get_origin.
3054         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
3055         around call_map.
3056         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
3057         * dlfcn/modstatic3.c: New file.
3058         * dlfcn/tststatic3.c: New file.
3059         * dlfcn/tststatic4.c: New file.
3060         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
3061         (tests-static): Likewise.
3062         (modules-names): Add modstatic3.
3063         (tststatic3-ENV, tststatic4-ENV): New variables.
3064         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
3065         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
3066
3067 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
3068
3069         * configure.in (CC): Require GCC version 4.4 or later.
3070         * configure: Regenerated.
3071         * manual/install.texi (Tools for Compilation): Update GCC version
3072         requirement.
3073         * INSTALL: Regenerated.
3074
3075 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
3076
3077         [BZ #15674]
3078         * string/test-memcmp.c (check2): New.
3079         (main): Call check2.
3080
3081         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
3082
3083 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
3084
3085         [BZ #15022]
3086         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
3087         over to...
3088         (dl_open_worker) [!SHARED]: ... here.
3089
3090 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3091
3092         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
3093
3094 2013-06-25  Richard Henderson  <rth@redhat.com>
3095
3096         * locale/programs/locarchive.c: Include <libc-internal.h>
3097
3098 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
3099
3100         * manual/texinfo.tex: Update to version 2013-06-21.17, with
3101         trailing whitespace removed.
3102
3103 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
3104
3105         [BZ #10283]
3106         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
3107         * locale/programs/locarchive.c: Include libc-mmap.h.
3108         (prepare_address_space): Take two new outputs (the mmap base and len).
3109         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
3110         values.
3111         (create_archive): Declare new mmap base and len values for
3112         prepare_address_space, and store the result in ah.
3113         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
3114         (enlarge_archive): If ah->mmap_base is not NULL, use that and
3115         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
3116         Declare new mmap base and len values for
3117         prepare_address_space, and store the result in new_ah.
3118         (open_archive): Declare new mmap base and len values for
3119         prepare_address_space, and store the result in ah.
3120         (close_archive): If ah->mmap_base is not NULL, use that and
3121         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
3122         * sysdeps/generic/libc-mmap.h: New file.
3123
3124 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
3125
3126         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
3127         (ALIGN_UP): Likewise.
3128         (PTR_ALIGN_DOWN): Likewise.
3129         (PTR_ALIGN_UP): Likewise.
3130
3131 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3132
3133         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
3134         entry mapped to PPC_PLATFORM_POWER8.
3135         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
3136         POWER8.
3137         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
3138         (_dl_string_platform): Add case for exporting platform position for
3139         POWER8.
3140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
3141         search path to sysdeps/powerpc/powerpc32/power8 directory.
3142         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
3143         search path to sysdeps/powerpc/powerpc64/power8 directory.
3144         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
3145         power7 directories.
3146         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
3147         power7 directories.
3148
3149 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
3150
3151         * INSTALL: Regenerate.
3152
3153         * nscd/connections.c (nscd_init): Fix comment.
3154
3155 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
3156
3157         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
3158
3159         [BZ #15667]
3160         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
3161         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
3162
3163 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
3164
3165         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
3166         DL_DST_REQ_STATIC.
3167         (DL_DST_REQ_STATIC): Remove macro.
3168
3169 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
3170
3171         [BZ #7006]
3172         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
3173         with a shift of 0 bits.
3174
3175 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
3176
3177         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
3178         $(tststatic-ENV).
3179
3180 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3181
3182         [BZ #15655]
3183         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
3184
3185 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3186
3187         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
3188         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
3189         accepts -fno-tree-loop-distribute-patterns.
3190         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
3191         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
3192         recursive call.
3193         * string/memset.c (memset): Likewise.
3194         * string/test-memmove.c (simple_memmove): Disable loop transformation
3195         to library calls.
3196         * string/test-memset.c (simple_memset): Likewise.
3197         * benchtests/bench-memmove.c (simple_memmove): Likewise.
3198         * benchtests/bench-memset.c (simple_memset): Likewise.
3199         * configure: Regenerated.
3200
3201 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
3202
3203         * math/test-misc.c (main): Ignore fesetround failure when failures
3204         of subsequent rounding tests would be ignored.
3205
3206         [BZ #15654]
3207         * math/fedisblxcpt.c (fedisableexcept): Return 0.
3208         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
3209         * math/fegetenv.c (__fegetenv): Return 0.
3210         * math/fegetexcept.c (fegetexcept): Return 0.
3211         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
3212         FE_TONEAREST.
3213         * math/feholdexcpt.c (feholdexcept): Return 0.
3214         * math/fesetenv.c (__fesetenv): Return 0.
3215         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
3216         argument FE_TONEAREST.
3217         * math/feupdateenv.c (__feupdateenv): Return 0.
3218         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
3219
3220 2013-06-18  Roland McGrath  <roland@hack.frob.com>
3221
3222         * elf/rtld-Rules (rtld-compile-command.S): New variable.
3223         (rtld-compile-command.s, rtld-compile-command.c): New variables.
3224         ($(objpfx)rtld-%.os rules): Use them.
3225
3226 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3227
3228         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
3229         fields.
3230
3231 2013-06-17  Roland McGrath  <roland@hack.frob.com>
3232
3233         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
3234         length of target pattern, then descending length of dependency pattern.
3235         * configure.in (AWK): Require gawk 3.1.2 or newer.
3236         * manual/install.texi (Tools for Compilation): Say that we do.
3237         * configure: Regenerated.
3238
3239         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
3240         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
3241         * scripts/sysd-rules.awk: ... this new script.
3242         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
3243         than a glob-style pattern.
3244
3245 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
3246
3247         * math/test-misc.c (main): Do not treat incorrectly rounded
3248         conversions as failure unless ROUNDING_TESTS passes.
3249
3250 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
3251
3252         [BZ #15631]
3253         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
3254         restore exception state around main square root computation, then
3255         check for inexactness explicitly.
3256
3257         * math/libm-test.inc (fma_test_data): Add another test.
3258
3259 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3260
3261         * manual/threads.texi (Non-POSIX Extensions): New document
3262         node.  Document pthread_getattr_default_np and
3263         pthread_setattr_default_np.
3264
3265         * Versions.def (libpthread): Add GLIBC_2.18.
3266         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
3267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
3268         Likewise.
3269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
3270         Likewise.
3271         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3272         Likewise.
3273         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3274         Likewise.
3275         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
3276         Likewise.
3277         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
3278         Likewise.
3279         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
3280         Likewise.
3281         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
3282         Likewise.
3283         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
3284         Likewise.
3285
3286 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
3287
3288         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3289         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
3290
3291 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
3292             H.J. Lu  <hjl.tools@gmail.com>
3293
3294         [BZ #15627]
3295         * sysdeps/x86_64/rtld-memset.c: Remove file.
3296         * sysdeps/x86_64/rtld-memset.S: New file.
3297
3298 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
3299
3300         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
3301         (test_in_one_mode): Take arguments for whether the rounding mode
3302         is supported for each floating-point type.
3303         (do_test): Pass new arguments to test_in_one_mode using
3304         ROUNDING_TESTS.
3305
3306 2013-06-13  Roland McGrath  <roland@hack.frob.com>
3307
3308         * posix/tst-waitid.c (do_test): Distinguish different instances of
3309         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
3310         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
3311         before entering the kernel for waitpid.
3312
3313 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3314
3315         * NEWS: Fix note on clock function precision.  Text by Roland
3316         McGrath.
3317
3318 2013-06-13  Roland McGrath  <roland@hack.frob.com>
3319
3320         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
3321         it into place only when and if the sanity check passes.
3322
3323 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
3324
3325         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
3326         output for whether conversion result is exact.  Take argument
3327         indicating whether type is IBM long double.
3328         (round_for_all): Change need_exact field to ibm_ld.
3329         * stdlib/tst-strtod-round.c (struct exactness): New type.
3330         (struct test): Change bool ld_ok field to struct exactness exact.
3331         (TEST): Update all definitions for change to field.
3332         (tests): Regenerate array contents.
3333         (test_in_one_mode): Take pointer to new field instead of old ld_ok
3334         field value.  Check for IBM long double here.
3335         (do_test): Update calls to test_in_one_mode.
3336
3337 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3338
3339         [BZ #12515]
3340         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
3341         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
3342
3343 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3344
3345         [BZ #15605]
3346         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
3347         generated by the compiler on loop optimizations.
3348         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
3349         general definitions.
3350
3351 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
3352
3353         * math/bug-nextafter.c: Include <math-tests.h>.
3354         (main): Only test for exceptions if EXCEPTION_TESTS is true for
3355         the relevant type.
3356         * math/bug-nexttoward.c: Include <math-tests.h>.
3357         (main): Only test for exceptions if EXCEPTION_TESTS is true for
3358         the relevant type.
3359         * math/test-misc.c: Include <math-tests.h>.
3360         (main): Only test for exceptions if EXCEPTION_TESTS is true for
3361         the relevant type.
3362
3363 2013-06-12  Andreas Jaeger  <aj@suse.de>
3364
3365         * po/ia.po: Update Interlingua translation from translation
3366         project.
3367
3368 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
3369
3370         * include/fenv.h: Include stdbool.h.
3371         (struct rm_ctx): New structure.
3372         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
3373         Define macro.
3374         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
3375         (SET_RESTORE_ROUNDF): Likewise.
3376         (SET_RESTORE_ROUNDL): Likewise.
3377         (SET_RESTORE_ROUND_NOEX): Likewise.
3378         (SET_RESTORE_ROUND_NOEXF): Likewise.
3379         (SET_RESTORE_ROUND_NOEXL): Likewise.
3380         (SET_RESTORE_ROUND_53BIT): Likewise.
3381         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
3382         (libc_feresetround_noexf_ctx): Likewise.
3383         (libc_feresetround_noexl_ctx): Likewise.
3384         (libc_feholdsetround_53bit_ctx): Likewise.
3385         (libc_feresetround_53bit_ctx): Likewise.
3386         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
3387         (libc_feholdexcept_setround_sse_ctx): New function.
3388         (libc_fesetenv_sse_ctx): Likewise.
3389         (libc_feupdateenv_sse_ctx): Likewise.
3390         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
3391         (libc_feholdexcept_setround_387_ctx): Likewise.
3392         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
3393         (libc_feholdsetround_387_prec_ctx): Likewise.
3394         (libc_feholdsetround_387_ctx): Likewise.
3395         (libc_feholdsetround_387_53bit_ctx): Likewise.
3396         (libc_feholdsetround_sse_ctx): Likewise.
3397         (libc_feresetround_sse_ctx): Likewise.
3398         (libc_feresetround_387_ctx): Likewise.
3399         (libc_feupdateenv_387_ctx): Likewise.
3400         (libc_feholdexcept_setroundf_ctx): Define macro.
3401         (libc_fesetenvf_ctx): Likewise.
3402         (libc_feupdateenvf_ctx): Likewise.
3403         (libc_feholdsetroundf_ctx): Likewise.
3404         (libc_feresetroundf_ctx): Likewise.
3405         (libc_feholdexcept_setround_ctx): Likewise.
3406         (libc_fesetenv_ctx): Likewise.
3407         (libc_feupdateenv_ctx): Likewise.
3408         (libc_feholdsetround_ctx): Likewise.
3409         (libc_feresetround_ctx): Likewise.
3410         (libc_feholdexcept_setroundl_ctx): Likewise.
3411         (libc_feupdateenvl_ctx): Likewise.
3412         (libc_feholdsetroundl_ctx): Likewise.
3413         (libc_feresetroundl_ctx): Likewise.
3414         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
3415         (libc_feresetround_53bit_ctx): Likewise.
3416
3417 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3418
3419         * locale/iso-639.def: Convert to UTF-8.
3420
3421 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
3422
3423         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
3424         (EXCEPTION_TESTS_double): Likewise.
3425         (EXCEPTION_TESTS_long_double): Likewise.
3426         (EXCEPTION_TESTS): Likewise.
3427         * math/libm-test.inc (test_exceptions): Only test exceptions if
3428         EXCEPTION_TESTS (FLOAT).
3429
3430 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3431
3432         * benchtests/Makefile (string-bench): Add strcpy_chk and
3433         stpcpy_chk.
3434         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
3435         * benchtests/bench-stpcpy_chk.c: New file.
3436         * benchtests/bench-strcpy_chk-ifunc.c: New file.
3437         * benchtests/bench-strcpy_chk.c: New file.
3438         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
3439         code.
3440         (do_test): Likewise.
3441
3442 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3443
3444         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
3445         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
3446         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
3447         with tabs where appropriate.
3448         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
3449         dl-procinfo.h.
3450         [PPC_PLATFORM_PPC440]: Likewise.
3451         [PPC_PLATFORM_PPC464]: Likewise.
3452         [PPC_PLATFORM_PPC476]: Likewise.
3453         (_dl_string_platform): Add support for detecting ppc405, ppc440,
3454         ppc464, and ppc476 platform strings merging from ports/
3455         dl-procinfo.h.
3456
3457 2013-06-11  Andreas Schwab  <schwab@suse.de>
3458
3459         [BZ #14991]
3460         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
3461         (from_ucs4_idx): Regenerate.
3462         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
3463         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
3464         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
3465         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
3466         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
3467         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
3468         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
3469         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
3470         from FROM_LOOP and TO_LOOP specific macros.
3471         (BODY): Handle combining characters.
3472         * iconvdata/BIG5HKSCS.irreversible: Update.
3473         * iconvdata/BIG5HKSCS.precomposed: New file.
3474         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
3475         characters.
3476         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
3477
3478 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3479
3480         * include/sys/time.h: Fix indentation and add copyright header.
3481
3482         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
3483         (do_test): Likewise.
3484         * string/test-memchr.c (do_one_test): Likewise.
3485         (do_test): Likewise.
3486         * string/test-memcmp.c (do_one_test): Likewise.
3487         (do_test): Likewise.
3488         * string/test-memcpy.c (do_one_test): Likewise.
3489         (do_test): Likewise.
3490         * string/test-memmem.c (do_one_test): Likewise.
3491         (do_test): Likewise.
3492         (do_random_tests): Likewise.
3493         * string/test-memmove.c (do_one_test): Likewise.
3494         (do_test): Likewise.
3495         * string/test-memset.c (do_one_test): Likewise.
3496         (do_test): Likewise.
3497         * string/test-rawmemchr.c (do_one_test): Likewise.
3498         (do_test): Likewise.
3499         * string/test-strcasecmp.c (do_one_test): Likewise.
3500         (do_test): Likewise.
3501         * string/test-strcasestr.c (do_one_test): Likewise.
3502         (do_test): Likewise.
3503         * string/test-strcat.c (do_one_test): Likewise.
3504         (do_test): Likewise.
3505         * string/test-strchr.c (do_one_test): Likewise.
3506         (do_test): Likewise.
3507         * string/test-strcmp.c (do_one_test): Likewise.
3508         (do_test): Likewise.
3509         * string/test-strcpy.c (do_one_test): Likewise.
3510         (do_test): Likewise.
3511         * string/test-string.h: Likewise.
3512         (test_init): Likewise.
3513         * string/test-strlen.c (do_one_test): Likewise.
3514         (do_test): Likewise.
3515         * string/test-strncasecmp.c (do_one_test): Likewise.
3516         (do_test): Likewise.
3517         * string/test-strncat.c (do_one_test): Likewise.
3518         (do_test): Likewise.
3519         * string/test-strncmp.c (do_one_test): Likewise.
3520         (do_test_limit): Likewise.
3521         (do_test): Likewise.
3522         * string/test-strncpy.c (do_one_test): Likewise.
3523         (do_test): Likewise.
3524         * string/test-strnlen.c (do_one_test): Likewise.
3525         (do_test): Likewise.
3526         * string/test-strpbrk.c (do_one_test): Likewise.
3527         (do_test): Likewise.
3528         * string/test-strrchr.c (do_one_test): Likewise.
3529         (do_test): Likewise.
3530         * string/test-strspn.c (do_one_test): Likewise.
3531         (do_test): Likewise.
3532         * string/test-strstr.c (do_one_test): Likewise.
3533         (do_test): Likewise.
3534
3535         * benchtests/Makefile (string-bench): Add string benchmarks.
3536         * benchtests/bench-bcopy-ifunc.c: New file.
3537         * benchtests/bench-bcopy.c: New file.
3538         * benchtests/bench-bzero-ifunc.c: New file.
3539         * benchtests/bench-bzero.c: New file.
3540         * benchtests/bench-memccpy-ifunc.c: New file.
3541         * benchtests/bench-memccpy.c: New file.
3542         * benchtests/bench-memchr-ifunc.c: New file.
3543         * benchtests/bench-memchr.c: New file.
3544         * benchtests/bench-memcmp-ifunc.c: New file.
3545         * benchtests/bench-memcmp.c: New file.
3546         * benchtests/bench-memmem-ifunc.c: New file.
3547         * benchtests/bench-memmem.c: New file.
3548         * benchtests/bench-memmove-ifunc.c: New file.
3549         * benchtests/bench-memmove.c: New file.
3550         * benchtests/bench-mempcpy-ifunc.c: New file.
3551         * benchtests/bench-mempcpy.c: New file.
3552         * benchtests/bench-memset-ifunc.c: New file.
3553         * benchtests/bench-memset.c: New file.
3554         * benchtests/bench-rawmemchr-ifunc.c: New file.
3555         * benchtests/bench-rawmemchr.c: New file.
3556         * benchtests/bench-stpcpy-ifunc.c: New file.
3557         * benchtests/bench-stpcpy.c: New file.
3558         * benchtests/bench-stpncpy-ifunc.c: New file.
3559         * benchtests/bench-stpncpy.c: New file.
3560         * benchtests/bench-strcasecmp-ifunc.c: New file.
3561         * benchtests/bench-strcasecmp.c: New file.
3562         * benchtests/bench-strcasestr-ifunc.c: New file.
3563         * benchtests/bench-strcasestr.c: New file.
3564         * benchtests/bench-strcat-ifunc.c: New file.
3565         * benchtests/bench-strcat.c: New file.
3566         * benchtests/bench-strchr-ifunc.c: New file.
3567         * benchtests/bench-strchr.c: New file.
3568         * benchtests/bench-strchrnul-ifunc.c: New file.
3569         * benchtests/bench-strchrnul.c: New file.
3570         * benchtests/bench-strcmp-ifunc.c: New file.
3571         * benchtests/bench-strcmp.c: New file.
3572         * benchtests/bench-strcpy-ifunc.c: New file.
3573         * benchtests/bench-strcpy.c: New file.
3574         * benchtests/bench-strcspn-ifunc.c: New file.
3575         * benchtests/bench-strcspn.c: New file.
3576         * benchtests/bench-strlen-ifunc.c: New file.
3577         * benchtests/bench-strlen.c: New file.
3578         * benchtests/bench-strncasecmp-ifunc.c: New file.
3579         * benchtests/bench-strncasecmp.c: New file.
3580         * benchtests/bench-strncat-ifunc.c: New file.
3581         * benchtests/bench-strncat.c: New file.
3582         * benchtests/bench-strncmp-ifunc.c: New file.
3583         * benchtests/bench-strncmp.c: New file.
3584         * benchtests/bench-strncpy-ifunc.c: New file.
3585         * benchtests/bench-strncpy.c: New file.
3586         * benchtests/bench-strnlen-ifunc.c: New file.
3587         * benchtests/bench-strnlen.c: New file.
3588         * benchtests/bench-strpbrk-ifunc.c: New file.
3589         * benchtests/bench-strpbrk.c: New file.
3590         * benchtests/bench-strrchr-ifunc.c: New file.
3591         * benchtests/bench-strrchr.c: New file.
3592         * benchtests/bench-strspn-ifunc.c: New file.
3593         * benchtests/bench-strspn.c: New file.
3594         * benchtests/bench-strstr-ifunc.c: New file.
3595         * benchtests/bench-strstr.c: New file.
3596
3597         * benchtests/Makefile: Disable parallel execution of targets.
3598         (string-bench): Add memcpy.
3599         (benchset): New variable to store a list of benchmark sets.
3600         (bench-func): Renamed from bench.
3601         (bench-set): New target.
3602         (bench): Depend on bench-func and bench-set.
3603         * benchtests/README: Add section on benchmark sets.
3604         * benchtests/bench-memcpy-ifunc.c: New file.
3605         * benchtests/bench-memcpy.c: New file.
3606         * benchtests/bench-string.h: New file.
3607
3608 2013-06-11  Andreas Schwab  <schwab@suse.de>
3609
3610         [BZ #15577]
3611         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
3612         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
3613         values in the triple.
3614         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
3615         terminator in the group key.
3616
3617 2013-06-11  Andreas Jaeger  <aj@suse.de>
3618
3619         * po/zh_TW.po: Update Chinese (traditional) translation from
3620         translation project.
3621
3622 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3623
3624         * include/time.h (__clock_gettime): Add libc_hidden_proto.
3625         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
3626         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
3627         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
3628         (clock_getcpuclockid): Likewise.
3629         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
3630         Add weak_alias and libc_hidden_def.
3631         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
3632         * rt/clock_gettime.c (clock_gettime): Rename to
3633         __clock_gettime.  Add weak_alias and libc_hidden_def.
3634         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
3635         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
3636         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
3637         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
3638         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
3639         Likewise.
3640         * rt/clock_settime.c (clock_settime): Rename to
3641         __clock_settime.  Add weak_alias and libc_hidden_def.
3642         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
3643
3644 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
3645
3646         * mach/err_boot.sub: Remove trailing whitespace.
3647         * mach/err_ipc.sub: Likewise.
3648         * mach/err_mach.sub: Likewise.
3649
3650         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
3651         (ROUNDING_TESTS_double): Likewise.
3652         (ROUNDING_TESTS_long_double): Likewise.
3653         (ROUNDING_TESTS): Likewise.
3654         * math/libm-test.inc: Include <math-tests.h>.
3655         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
3656         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
3657         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
3658         (IF_ROUND_INIT_FE_UPWARD): Likewise.
3659
3660 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3661
3662         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
3663         of assigning.
3664
3665 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
3666
3667         * sysdeps/gnu/errlist.awk: Do not generate space at end of
3668         otherwise empty TRANS lines.
3669         * sysdeps/gnu/errlist.c: Regenerated.
3670
3671         * catgets/gencat.c (error_print): Use (void) in function
3672         definition.
3673         * crypt/crypt_util.c (__init_des): Likewise.
3674         * crypt/speeds.c (Stop): Likewise.
3675         (main): Likewise.
3676         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
3677         * inet/ruserpass.c (token): Likewise.
3678         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
3679         * intl/localealias.c (extend_alias_table): Likewise.
3680         * intl/plural-exp.c (init_germanic_plural): Likewise.
3681         * libio/fcloseall.c (__fcloseall): Likewise.
3682         * libio/genops.c (_IO_flush_all): Likewise.
3683         (_IO_flush_all_linebuffered): Likewise.
3684         (_IO_cleanup): Likewise.
3685         (_IO_iter_begin): Likewise.
3686         (_IO_iter_end): Likewise.
3687         (_IO_list_lock): Likewise.
3688         (_IO_list_unlock): Likewise.
3689         (_IO_list_resetlock): Likewise.
3690         * libio/getchar.c (getchar): Likewise.
3691         * libio/getchar_u.c (getchar_unlocked): Likewise.
3692         * libio/getwchar.c (getwchar): Likewise.
3693         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
3694         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
3695         * login/getpt.c (__getpt): Likewise.
3696         * login/tst-utmp.c (main): Likewise.
3697         * malloc/hooks.c (__malloc_check_init): Likewise.
3698         * malloc/malloc.c (__malloc_stats): Likewise.
3699         * malloc/mtrace.c (tr_break): Likewise.
3700         (mtrace): Likewise.
3701         (muntrace): Likewise.
3702         * misc/fstab.c (endfsent): Likewise.
3703         * misc/getclktck.c (__getclktck): Likewise.
3704         * misc/getdtsz.c (__getdtablesize): Likewise.
3705         * misc/gethostid.c (gethostid): Likewise.
3706         * misc/getpagesize.c (__getpagesize): Likewise.
3707         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
3708         (__get_nprocs): Likewise.
3709         (__get_phys_pages): Likewise.
3710         (__get_avphys_pages): Likewise.
3711         * misc/getttyent.c (getttyent): Likewise.
3712         (setttyent): Likewise.
3713         (endttyent): Likewise.
3714         * misc/getusershell.c (getusershell): Likewise.
3715         (endusershell): Likewise.
3716         (setusershell): Likewise.
3717         (initshells): Likewise.
3718         * misc/hsearch.c (__hdestroy): Likewise.
3719         * misc/sync.c (sync): Likewise.
3720         * misc/syslog.c (closelog_internal): Likewise.
3721         (closelog): Likewise.
3722         * misc/ttyslot.c (ttyslot): Likewise.
3723         * misc/vhangup.c (vhangup): Likewise.
3724         * posix/fork.c (__fork): Likewise.
3725         * posix/getegid.c (__getegid): Likewise.
3726         * posix/geteuid.c (__geteuid): Likewise.
3727         * posix/getgid.c (__getgid): Likewise.
3728         * posix/getpid.c (__getpid): Likewise.
3729         * posix/getppid.c (__getppid): Likewise.
3730         * posix/getuid.c (__getuid): Likewise.
3731         * posix/pause.c (pause): Likewise.
3732         * posix/setpgrp.c (setpgrp): Likewise.
3733         * posix/setsid.c (__setsid): Likewise.
3734         * posix/test-vfork.c (noop): Likewise.
3735         * resolv/gethnamaddr.c (_endhtent): Likewise.
3736         (_gethtent): Likewise.
3737         (ht_endhostent): Likewise.
3738         (gethostent): Likewise.
3739         (dns_service): Likewise.
3740         * stdlib/drand48.c (drand48): Likewise.
3741         * stdlib/lrand48.c (lrand48): Likewise.
3742         * stdlib/mrand48.c (mrand48): Likewise.
3743         * stdlib/rand.c (rand): Likewise.
3744         * stdlib/random.c (__random): Likewise.
3745         * stdlib/setenv.c (clearenv): Likewise.
3746         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
3747         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
3748         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
3749         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
3750         (__get_nprocs): Likewise.
3751         (__get_phys_pages): Likewise.
3752         (__get_avphys_pages): Likewise.
3753         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
3754         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
3755         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
3756         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
3757         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
3758         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
3759         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
3760         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
3761         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
3762         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
3763         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
3764         * sysdeps/mach/hurd/sync.c (sync): Likewise.
3765         * sysdeps/posix/clock.c (clock): Likewise.
3766         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
3767         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
3768         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
3769         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
3770         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
3771         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
3772         (__get_nprocs_conf): Likewise.
3773         (__get_phys_pages): Likewise.
3774         (__get_avphys_pages): Likewise.
3775         * time/clock.c (clock): Likewise.
3776         * time/tzset.c (__tzname_max): Likewise.
3777
3778 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
3779
3780         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
3781         (__bswap_32): Do not use "register".
3782         * crypt/crypt.c (_ufc_doit_r): Likewise.
3783         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
3784         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
3785         * gmon/gmon.c (__monstartup): Likewise.
3786         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
3787         * hurd/hurdmalloc.c (more_memory): Likewise.
3788         (malloc): Likewise.
3789         (free): Likewise.
3790         (realloc): Likewise.
3791         (malloc_fork_prepare): Likewise.
3792         (malloc_fork_parent): Likewise.
3793         (malloc_fork_child): Likewise.
3794         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
3795         (_svcauth_des): Likewise.
3796         * inet/inet_lnaof.c (inet_lnaof): Likewise.
3797         * inet/inet_net.c (inet_network): Likewise.
3798         * inet/inet_netof.c (inet_netof): Likewise.
3799         * inet/rcmd.c (__validuser2_sa): Likewise.
3800         * io/fts.c (fts_open): Likewise.
3801         (fts_load): Likewise.
3802         (fts_close): Likewise.
3803         (fts_read): Likewise.
3804         (fts_children): Likewise.
3805         (fts_build): Likewise.
3806         (fts_stat): Likewise.
3807         (fts_sort): Likewise.
3808         (fts_alloc): Likewise.
3809         (fts_lfree): Likewise.
3810         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
3811         (_IO_file_xsgetn): Likewise.
3812         (_IO_file_xsgetn_mmap): Likewise.
3813         * libio/iofopncook.c (_IO_cookie_read): Likewise.
3814         (_IO_cookie_write): Likewise.
3815         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
3816         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
3817         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
3818         * malloc/obstack.c (_obstack_begin): Likewise.
3819         (_obstack_begin_1): Likewise.
3820         (_obstack_newchunk): Likewise.
3821         (_obstack_allocated_p): Likewise.
3822         (obstack_free): Likewise.
3823         (_obstack_memory_used): Likewise.
3824         * misc/getttyent.c (getttynam): Likewise.
3825         (getttyent): Likewise.
3826         (skip): Likewise.
3827         (value): Likewise.
3828         * misc/getusershell.c (initshells): Likewise.
3829         * misc/syslog.c (__vsyslog_chk): Likewise.
3830         * misc/ttyslot.c (ttyslot): Likewise.
3831         * nis/nis_hash.c (__nis_hash): Likewise.
3832         * posix/fnmatch_loop.c (FCT): Likewise.
3833         * posix/getconf.c (print_all): Likewise.
3834         (main): Likewise.
3835         * posix/getopt.c (exchange): Likewise.
3836         * posix/glob.c (globfree): Likewise.
3837         (prefix_array): Likewise.
3838         (__glob_pattern_type): Likewise.
3839         * resolv/arpa/nameser.h (NS_GET16): Likewise.
3840         (NS_GET32): Likewise.
3841         (NS_PUT16): Likewise.
3842         (NS_PUT32): Likewise.
3843         * resolv/gethnamaddr.c (getanswer): Likewise.
3844         (gethostbyname2): Likewise.
3845         (gethostbyaddr): Likewise.
3846         (_gethtent): Likewise.
3847         (_gethtbyname2): Likewise.
3848         (_gethtbyaddr): Likewise.
3849         * resolv/ns_print.c (dst_s_get_int16): Likewise.
3850         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
3851         * resolv/res_init.c (__res_vinit): Likewise.
3852         (net_mask): Likewise.
3853         * resolv/res_mkquery.c (outchar): Likewise.
3854         (PRINT): Likewise.
3855         * stdio-common/printf_fp.c (outchar): Likewise.
3856         (PRINT): Likewise.
3857         * stdio-common/printf_fphex.c (outchar): Likewise.
3858         (PRINT): Likewise.
3859         * stdio-common/printf_size.c (outchar): Likewise.
3860         (PRINT): Likewise.
3861         * stdio-common/test_rdwr.c (main): Likewise.
3862         * stdio-common/tfformat.c (matches): Likewise.
3863         * stdio-common/vfprintf.c (outchar): Likewise.
3864         (printf_unknown): Likewise.
3865         (buffered_vfprintf): Likewise.
3866         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
3867         * stdio-common/xbug.c (AppendToBuffer): Likewise.
3868         (ReadFile): Likewise.
3869         * stdlib/qsort.c (SWAP): Likewise.
3870         (_quicksort): Likewise.
3871         * stdlib/setenv.c (__add_to_environ): Likewise.
3872         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
3873         * stdlib/strtol_l.c (__strtol_l): Likewise.
3874         * stdlib/tst-strtod.c (main): Likewise.
3875         * stdlib/tst-strtol.c (main): Likewise.
3876         * stdlib/tst-strtoll.c (main): Likewise.
3877         * string/bits/string2.h (__strcmp_cc): Likewise.
3878         (__strcmp_cg): Likewise.
3879         (__strcspn_c1): Likewise.
3880         (__strcspn_c2): Likewise.
3881         (__strcspn_c3): Likewise.
3882         (__strspn_c1): Likewise.
3883         (__strspn_c2): Likewise.
3884         (__strspn_c3): Likewise.
3885         (__strsep_1c): Likewise.
3886         (__strsep_2c): Likewise.
3887         (__strsep_3c): Likewise.
3888         * string/memccpy.c (__memccpy): Likewise.
3889         * string/stpcpy.c (__stpcpy): Likewise.
3890         * string/strcmp.c (strcmp): Likewise.
3891         * string/strrchr.c (strrchr): Likewise.
3892         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
3893         Likewise.
3894         * sysdeps/mach/hurd/getcwd.c
3895         (_hurd_canonicalize_directory_name_internal): Likewise.
3896         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
3897         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
3898         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
3899         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
3900         Likewise, in both definitions.
3901         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
3902         definitions.
3903         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
3904         64] (__bswap_64): Likewise.
3905         * time/test_time.c (main): Likewise.
3906         * time/tzfile.c (__tzfile_read): Likewise.
3907         (__tzfile_compute): Likewise.
3908         * time/tzset.c (__tzset_parse_tz): Likewise.
3909         (tzset_internal): Likewise.
3910         (compute_change): Likewise.
3911         * wcsmbs/wcscat.c (__wcscat): Likewise.
3912         * wcsmbs/wcschr.c (wcschr): Likewise.
3913         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
3914         * wcsmbs/wcscspn.c (wcscspn): Likewise.
3915         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
3916         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
3917         * wcsmbs/wcsspn.c (wcsspn): Likewise.
3918         * wcsmbs/wcsstr.c (wcsstr): Likewise.
3919         * wcsmbs/wmemchr.c (wmemchr): Likewise.
3920         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
3921         * wcsmbs/wmemset.c (wmemset): Likewise.
3922
3923 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
3924
3925         * scripts/config.guess: Update to version 2013-05-16.
3926         * scripts/config.sub: Update to version 2013-04-24.
3927         * scripts/install-sh: Update to version 2011-11-20.07.
3928         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
3929         * scripts/move-if-change: Update to version 2012-01-06 07:23.
3930
3931 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
3932
3933         * debug/fgetws_u_chk.c: Fix leading whitespaces.
3934         * elf/sln.c: Likewise.
3935         * hurd/hurd/ioctl.h: Likewise.
3936         * hurd/hurdmalloc.c: Likewise.
3937         * hurd/xattr.c: Likewise.
3938         * include/shlib-compat.h: Likewise.
3939         * inet/ruserpass.c: Likewise.
3940         * libio/iofgets_u.c: Likewise.
3941         * libio/iofgetws_u.c: Likewise.
3942         * locale/programs/ld-identification.c: Likewise.
3943         * locale/programs/ld-time.c: Likewise.
3944         * mach/msg-destroy.c: Likewise.
3945         * nss/nss_files/files-netgrp.c: Likewise.
3946         * resolv/res_data.c: Likewise.
3947         * soft-fp/op-1.h: Likewise.
3948         * soft-fp/op-2.h: Likewise.
3949         * soft-fp/op-4.h: Likewise.
3950         * soft-fp/op-common.h: Likewise.
3951         * stdio-common/printf_fphex.c: Likewise.
3952         * stdlib/strtod_l.c: Likewise.
3953         * sunrpc/rpc/clnt.h: Likewise.
3954         * sysdeps/generic/framestate.c: Likewise.
3955         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3956         * sysdeps/i386/bsd-setjmp.S: Likewise.
3957         * sysdeps/i386/__longjmp.S: Likewise.
3958         * sysdeps/i386/setjmp.S: Likewise.
3959         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
3960         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
3961         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
3962         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
3963         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
3964         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
3965         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
3966         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
3967         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
3968         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
3969         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
3970         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
3971         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
3972         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
3973         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
3974         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
3975         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
3976         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
3977         * sysdeps/ieee754/support.c: Likewise.
3978         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
3979         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
3980         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
3981         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
3982         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
3983         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
3984         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
3985         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
3986         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
3987         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
3988         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
3989         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
3990         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
3991         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
3992         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
3993         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
3994         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
3995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
3996
3997 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
3998
3999         * posix/transbug.c: Remove executable mode.
4000
4001 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
4002
4003         * crypt/speeds.c: Remove trailing whitespace.
4004         * dlfcn/default.c: Likewise.
4005         * elf/ifuncdep2.c: Likewise.
4006         * elf/ifuncmain1.c: Likewise.
4007         * elf/ifuncmain1vis.c: Likewise.
4008         * elf/testobj.h: Likewise.
4009         * elf/tst-stackguard1.c: Likewise.
4010         * gmon/sys/gmon.h: Likewise.
4011         * hurd/hurdmsg.c: Likewise.
4012         * hurd/new-fd.c: Likewise.
4013         * hurd/ports-get.c: Likewise.
4014         * iconvdata/ibm1008_420.c: Likewise.
4015         * inet/tst-getni1.c: Likewise.
4016         * inet/tst-getni2.c: Likewise.
4017         * libio/ioungetc.c: Likewise.
4018         * libio/wfiledoalloc.c: Likewise.
4019         * manual/libm-err-tab.pl: Likewise.
4020         * math/w_dremf.c: Likewise.
4021         * misc/ftruncate.c: Likewise.
4022         * posix/bug-glob2.c: Likewise.
4023         * posix/tst-pcre.c: Likewise.
4024         * posix/wait4.c: Likewise.
4025         * resolv/README: Likewise.
4026         * resolv/res_debug.h: Likewise.
4027         * resolv/tst-inet_ntop.c: Likewise.
4028         * setjmp/bug269-setjmp.c: Likewise.
4029         * soft-fp/extended.h: Likewise.
4030         * soft-fp/op-1.h: Likewise.
4031         * soft-fp/op-2.h: Likewise.
4032         * soft-fp/op-4.h: Likewise.
4033         * soft-fp/op-8.h: Likewise.
4034         * soft-fp/testit.c: Likewise.
4035         * stdio-common/bug16.c: Likewise.
4036         * stdlib/random.c: Likewise.
4037         * sunrpc/rpcsvc/rquota.x: Likewise.
4038         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
4039         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
4040         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4041         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4042         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
4043         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
4044         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
4045         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4046         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
4047         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
4048         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
4049         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
4050         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4051         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
4052         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4053         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
4054         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
4055         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
4056         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
4057         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4058         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4059         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4060         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
4061         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
4062         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
4063         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
4064         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
4065         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
4066         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
4067         * sysdeps/ieee754/s_lib_version.c: Likewise.
4068         * sysdeps/mach/hurd/check_fds.c: Likewise.
4069         * sysdeps/mach/hurd/getsockname.c: Likewise.
4070         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
4071         * sysdeps/mach/hurd/recvfrom.c: Likewise.
4072         * sysdeps/powerpc/bits/link.h: Likewise.
4073         * sysdeps/powerpc/dl-procinfo.c: Likewise.
4074         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
4075         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
4076         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4077         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4078         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
4079         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
4080         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
4081         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
4082         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
4083         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
4084         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
4085         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
4086         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
4087         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
4088         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
4089         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
4090         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
4091         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
4092         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
4093         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
4094         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
4095         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
4096         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
4097         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
4098         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
4099         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
4100         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
4101         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
4102         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
4103         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
4104         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
4105         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
4106         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
4107         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
4108         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
4109         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
4110         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
4111         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
4112         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
4113         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
4114         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
4115         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
4116         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
4117         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4118         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
4119         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
4120         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4121         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
4122         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
4123         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
4124         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
4125         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
4126         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
4127         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
4128         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
4129         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
4130         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
4131         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
4132         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
4133         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
4134         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
4135         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
4136         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
4137         * sysdeps/powerpc/sysdep.h: Likewise.
4138         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4139         * sysdeps/s390/s390-64/sub_n.S: Likewise.
4140         * sysdeps/sh/dl-trampoline.S: Likewise.
4141         * sysdeps/sh/memset.S: Likewise.
4142         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
4143         * sysdeps/sh/strlen.S: Likewise.
4144         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
4145         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
4146         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
4147         * sysdeps/sparc/sparc32/rem.S: Likewise.
4148         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
4149         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
4150         * sysdeps/sparc/sparc32/strchr.S: Likewise.
4151         * sysdeps/sparc/sparc32/udiv.S: Likewise.
4152         * sysdeps/sparc/sparc32/urem.S: Likewise.
4153         * sysdeps/sparc/sparc64/add_n.S: Likewise.
4154         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
4155         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
4156         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
4157         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
4158         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
4159         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
4160         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
4161         * sysdeps/unix/bsd/times.c: Likewise.
4162         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
4163         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
4164         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
4165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
4166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
4167         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
4168         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
4169         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
4170         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
4171         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
4172         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
4173         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
4174         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
4175         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
4176         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
4177         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4178         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
4179         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
4180         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
4181         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
4182         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
4183         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
4184         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
4185         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
4186         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
4187         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
4188         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
4189         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
4190         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
4191         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
4192         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
4193         * sysdeps/x86_64/strcspn.S: Likewise.
4194
4195 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4196
4197         * locale/C-translit.h: Revert #include <stdint.h> because this is a
4198         generated file.  Regenerate properly from gen-translit.pl.
4199         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
4200         locale/C-translit.h.
4201
4202 2013-06-05  Andreas Schwab  <schwab@suse.de>
4203
4204         [BZ #15100]
4205         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
4206         week as 6 instead of -1.
4207         * time/tst-strptime.c (day_tests): Add test case.
4208
4209 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4210
4211         * sysdeps/generic/math_private.h
4212         (libc_feholdexcept_setround_53bit): Replace with
4213         libc_feholdsetround_53bit.
4214         (libc_feupdateenv_53bit): Replace with
4215         libc_feresetround_53bit.
4216         (SET_RESTORE_ROUND_53BIT): Adjust.
4217
4218 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
4219
4220         * string/test-strchrnul.c: Add copyright header.
4221
4222         * posix/tst-getaddrinfo4.c: Increase test timeout.
4223
4224 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
4225
4226         [BZ #15536]
4227         * math/libm-test.inc (MAX_EXP): Remove
4228         (MIN_EXP): Define.
4229         (ulp): Use MIN_EXP - MANT_DIG.
4230         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
4231
4232 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
4233
4234         * po/be.po: Revert last change.
4235         * po/zh_CN.po: Likewise.
4236         * po/header.pot: Likewise.
4237
4238 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
4239
4240         * Makefile ($(common-objpfx)linkobj/libc.so): Define
4241         link-libc-deps to empty as target-specific variable.
4242         * Makerules (link-libc-args): New variable.
4243         (libc-for-link): Likewise.
4244         (link-libc-deps): Likewise.
4245         (lib%.so): Depend on $(link-libc-deps).  Link with
4246         $(link-libc-args).
4247         (build-module): Link with $(link-libc-args).
4248         (build-module-asneeded): Likewise.
4249         (build-module-helper-objlist): Filter out $(link-libc-deps) from
4250         list of objects.
4251         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
4252         target-specific variable.
4253         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
4254         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
4255         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
4256         libc.
4257         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
4258         libc and ld.so.
4259         ($(objpfx)libpcprofile.so): Likewise.
4260         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
4261         libc_nonshared.a.
4262         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
4263         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
4264         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
4265         $(link-libc-deps).
4266         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
4267         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
4268         * login/Makefile ($(objpfx)libutil.so): Likewise.
4269         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
4270         * math/Makefile ($(objpfx)libm.so): Likewise.
4271         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
4272         $(objpfx)libnsl.so): Define libc-for-link as target-specific
4273         variable instead of depending directly on libc.
4274         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
4275         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
4276         $(link-libc-deps).
4277         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
4278         libc.
4279         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
4280         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
4281         ($(objpfx)libanl.so): Likewise.
4282         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
4283         ld.so.
4284         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
4285         $(link-libc-deps).
4286         * sysdeps/i386/fpu/Makefile: Remove file.
4287         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
4288         ($(objpfx)libm.so): Remove dependency on ld.so.
4289
4290 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
4291
4292         [BZ # 15553]
4293         * nis/yp_xdr.c (XDRMAXNAME): Define.
4294         (XDRMAXRECORD): Define.
4295         (xdr_domainname): Use XDRMAXNAME.
4296         (xdr_mapname): Likewise.
4297         (xdr_peername): Likewise.
4298         (xdr_keydat): Use XDRMAXRECORD.
4299         (xdr_valdat): Likewise.
4300
4301 2013-05-30  Jeff Law  <law@redhat.com>
4302
4303         [BZ #14256]
4304         * manual/errno.texi (ESTALE): Update to account for more than
4305         just NFS file systems.
4306         * sysdeps/gnu/errlist.c: Regenerated.
4307
4308 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
4309
4310         [BZ #15465]
4311         * elf/Makefile (tests): Add tst-null-argv.
4312         (modules-names):  Add tst-null-argv-lib.
4313         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
4314         (tst-null-argv-ENV): Set environment for tst-null-argv.
4315         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
4316         (RTLD_PROGNAME): New macro.
4317         * elf/tst-null-argv.c: New test case.
4318         * elf/tst-null-argv-lib.c: Library for test case.
4319         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
4320         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4321         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
4322         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
4323         * elf/dl-init.c (call_init): Likewise.
4324         (_dl_init): Likewise.
4325         * elf/dl-load.c (print_search_path): Likewise.
4326         (_dl_map_object): Likewise.
4327         * elf/dl-lookup.c (do_lookup_x): Likewise.
4328         (add_dependency): Likewise.
4329         (_dl_lookup_symbol_x): Likewise.
4330         (_dl_debug_bindings): Likewise.
4331         * elf/dl-open.c (_dl_show_scope): Likewise.
4332         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
4333         * elf/dl-version.c (match_symbol): Likewise.
4334         (_dl_check_map_versions): Likewise.
4335         * elf/rtld.c (dl_main): Likewise.
4336         (print_unresolved): Use RTLD_PROGNAME.
4337         (print_missing_version): Likewise.
4338         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
4339         (elf_machine_rela): Likewise.
4340         * sysdeps/powerpc/powerpc32/dl-machine.c
4341         (__process_machine_rela): Likewise.
4342         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
4343         Likewise.
4344         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
4345         Likewise.
4346         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
4347         Likewise.
4348         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4349         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
4350         Likewise.
4351         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
4352         Likewise.
4353         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
4354
4355 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
4356
4357         * po/be.po: Add descriptive title.
4358         * po/zh_CN.po: Likewise.
4359         * po/header.pot: Likewise.
4360
4361 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
4362
4363         * locale/programs/locarchive.c (create_archive): Inlucde fname in
4364         error message.
4365         (enlarge_archive): Likewise.
4366
4367 2013-05-28  Ben North  <ben@redfrontdoor.org>
4368
4369         * manual/arith.texi (frexp): It is the magnitude of the return
4370         value which lies in [0.5, 1), not the return value itself.
4371
4372 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4373
4374         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4375
4376 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
4377
4378         * stdio-common/bug26.c (main): Correct fscanf template.
4379
4380         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
4381         declare _dl_skip_args.
4382
4383         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
4384         Don't declare.
4385
4386         * manual/platform.texi: Add missing @end deftypefun.
4387
4388 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
4389
4390         [BZ #15529]
4391         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
4392         bit of mantissa of 2^16382.
4393         * math/libm-test.inc (hypot_test_data): Add more tests.
4394
4395         * math/libm-test.inc: Add drem and pow10 to list of tested
4396         functions.
4397         (pow10_test): New function.
4398         (drem_test): Likewise.
4399         (drem_test_tonearest): Likewise.
4400         (drem_test_towardzero): Likewise.
4401         (drem_test_downward): Likewise.
4402         (drem_test_upward): Likewise.
4403         (main): Call the new functions.
4404
4405         * math/libm-test.inc (finite_test_data): Remove.
4406         (finite_test): Run tests from isfinite_test_data.
4407         (gamma_test_data): Remove.
4408         (gamma_test): Run tests from lgamma_test_data.
4409         * sysdeps/i386/fpu/libm-test-ulps: Update.
4410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4411
4412 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4413
4414         * manual/platform.texi: Add PowerPC PPR function set documentation.
4415         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
4416         implementation.
4417
4418 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
4419
4420         * math/libm-test.inc (MAX_EXP): Define.
4421         (ULPDIFF): Define.
4422         (ulp): New function.
4423         (check_float_internal): Use ULPDIFF.
4424         (cpow_test): Disable failing test.
4425         (check_ulp): Test ulp() implemetnation.
4426         (main): Call check_ulp before starting tests.
4427
4428 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
4429
4430         * math/gen-libm-test.pl (generate_testfile): Do not handle
4431         START_DATA and END_DATA.
4432         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
4433         END_DATA.
4434         (acos_tonearest_test_data): Likewise.
4435         (acos_towardzero_test_data): Likewise.
4436         (acos_downward_test_data): Likewise.
4437         (acos_upward_test_data): Likewise.
4438         (acosh_test_data): Likewise.
4439         (asin_test_data): Likewise.
4440         (asin_tonearest_test_data): Likewise.
4441         (asin_towardzero_test_data): Likewise.
4442         (asin_downward_test_data): Likewise.
4443         (asin_upward_test_data): Likewise.
4444         (asinh_test_data): Likewise.
4445         (atan_test_data): Likewise.
4446         (atanh_test_data): Likewise.
4447         (atan2_test_data): Likewise.
4448         (cabs_test_data): Likewise.
4449         (cacos_test_data): Likewise.
4450         (cacosh_test_data): Likewise.
4451         (carg_test_data): Likewise.
4452         (casin_test_data): Likewise.
4453         (casinh_test_data): Likewise.
4454         (catan_test_data): Likewise.
4455         (catanh_test_data): Likewise.
4456         (cbrt_test_data): Likewise.
4457         (ccos_test_data): Likewise.
4458         (ccosh_test_data): Likewise.
4459         (ceil_test_data): Likewise.
4460         (cexp_test_data): Likewise.
4461         (cimag_test_data): Likewise.
4462         (clog_test_data): Likewise.
4463         (clog10_test_data): Likewise.
4464         (conj_test_data): Likewise.
4465         (copysign_test_data): Likewise.
4466         (cos_test_data): Likewise.
4467         (cos_tonearest_test_data): Likewise.
4468         (cos_towardzero_test_data): Likewise.
4469         (cos_downward_test_data): Likewise.
4470         (cos_upward_test_data): Likewise.
4471         (cosh_test_data): Likewise.
4472         (cosh_tonearest_test_data): Likewise.
4473         (cosh_towardzero_test_data): Likewise.
4474         (cosh_downward_test_data): Likewise.
4475         (cosh_upward_test_data): Likewise.
4476         (cpow_test_data): Likewise.
4477         (cproj_test_data): Likewise.
4478         (creal_test_data): Likewise.
4479         (csin_test_data): Likewise.
4480         (csinh_test_data): Likewise.
4481         (csqrt_test_data): Likewise.
4482         (ctan_test_data): Likewise.
4483         (ctan_tonearest_test_data): Likewise.
4484         (ctan_towardzero_test_data): Likewise.
4485         (ctan_downward_test_data): Likewise.
4486         (ctan_upward_test_data): Likewise.
4487         (ctanh_test_data): Likewise.
4488         (ctanh_tonearest_test_data): Likewise.
4489         (ctanh_towardzero_test_data): Likewise.
4490         (ctanh_downward_test_data): Likewise.
4491         (ctanh_upward_test_data): Likewise.
4492         (erf_test_data): Likewise.
4493         (erfc_test_data): Likewise.
4494         (exp_test_data): Likewise.
4495         (exp_tonearest_test_data): Likewise.
4496         (exp_towardzero_test_data): Likewise.
4497         (exp_downward_test_data): Likewise.
4498         (exp_upward_test_data): Likewise.
4499         (exp10_test_data): Likewise.
4500         (exp2_test_data): Likewise.
4501         (expm1_test_data): Likewise.
4502         (fabs_test_data): Likewise.
4503         (fdim_test_data): Likewise.
4504         (finite_test_data): Likewise.
4505         (floor_test_data): Likewise.
4506         (fma_test_data): Likewise.
4507         (fma_towardzero_test_data): Likewise.
4508         (fma_downward_test_data): Likewise.
4509         (fma_upward_test_data): Likewise.
4510         (fmax_test_data): Likewise.
4511         (fmin_test_data): Likewise.
4512         (fmod_test_data): Likewise.
4513         (fpclassify_test_data): Likewise.
4514         (frexp_test_data): Likewise.
4515         (gamma_test_data): Likewise.
4516         (hypot_test_data): Likewise.
4517         (ilogb_test_data): Likewise.
4518         (isfinite_test_data): Likewise.
4519         (isgreater_test_data): Likewise.
4520         (isgreaterequal_test_data): Likewise.
4521         (isinf_test_data): Likewise.
4522         (isless_test_data): Likewise.
4523         (islessequal_test_data): Likewise.
4524         (islessgreater_test_data): Likewise.
4525         (isnan_test_data): Likewise.
4526         (isnormal_test_data): Likewise.
4527         (issignaling_test_data): Likewise.
4528         (isunordered_test_data): Likewise.
4529         (j0_test_data): Likewise.
4530         (j1_test_data): Likewise.
4531         (jn_test_data): Likewise.
4532         (ldexp_test_data): Likewise.
4533         (lgamma_test_data): Likewise.
4534         (lrint_test_data): Likewise.
4535         (lrint_tonearest_test_data): Likewise.
4536         (lrint_towardzero_test_data): Likewise.
4537         (lrint_downward_test_data): Likewise.
4538         (lrint_upward_test_data): Likewise.
4539         (llrint_test_data): Likewise.
4540         (llrint_tonearest_test_data): Likewise.
4541         (llrint_towardzero_test_data): Likewise.
4542         (llrint_downward_test_data): Likewise.
4543         (llrint_upward_test_data): Likewise.
4544         (log_test_data): Likewise.
4545         (log10_test_data): Likewise.
4546         (log1p_test_data): Likewise.
4547         (log2_test_data): Likewise.
4548         (logb_test_data): Likewise.
4549         (logb_downward_test_data): Likewise.
4550         (lround_test_data): Likewise.
4551         (llround_test_data): Likewise.
4552         (modf_test_data): Likewise.
4553         (nearbyint_test_data): Likewise.
4554         (nextafter_test_data): Likewise.
4555         (nexttoward_test_data): Likewise.
4556         (pow_test_data): Likewise.
4557         (pow_tonearest_test_data): Likewise.
4558         (pow_towardzero_test_data): Likewise.
4559         (pow_downward_test_data): Likewise.
4560         (pow_upward_test_data): Likewise.
4561         (remainder_test_data): Likewise.
4562         (remainder_tonearest_test_data): Likewise.
4563         (remainder_towardzero_test_data): Likewise.
4564         (remainder_downward_test_data): Likewise.
4565         (remainder_upward_test_data): Likewise.
4566         (remquo_test_data): Likewise.
4567         (rint_test_data): Likewise.
4568         (rint_tonearest_test_data): Likewise.
4569         (rint_towardzero_test_data): Likewise.
4570         (rint_downward_test_data): Likewise.
4571         (rint_upward_test_data): Likewise.
4572         (round_test_data): Likewise.
4573         (scalb_test_data): Likewise.
4574         (scalbn_test_data): Likewise.
4575         (scalbln_test_data): Likewise.
4576         (signbit_test_data): Likewise.
4577         (sin_test_data): Likewise.
4578         (sin_tonearest_test_data): Likewise.
4579         (sin_towardzero_test_data): Likewise.
4580         (sin_downward_test_data): Likewise.
4581         (sin_upward_test_data): Likewise.
4582         (sincos_test_data): Likewise.
4583         (sinh_test_data): Likewise.
4584         (sinh_tonearest_test_data): Likewise.
4585         (sinh_towardzero_test_data): Likewise.
4586         (sinh_downward_test_data): Likewise.
4587         (sinh_upward_test_data): Likewise.
4588         (sqrt_test_data): Likewise.
4589         (tan_test_data): Likewise.
4590         (tan_tonearest_test_data): Likewise.
4591         (tan_towardzero_test_data): Likewise.
4592         (tan_downward_test_data): Likewise.
4593         (tan_upward_test_data): Likewise.
4594         (tanh_test_data): Likewise.
4595         (tgamma_test_data): Likewise.
4596         (trunc_test_data): Likewise.
4597         (y0_test_data): Likewise.
4598         (y1_test_data): Likewise.
4599         (yn_test_data): Likewise.
4600         (significand_test_data): Likewise.
4601
4602         * math/gen-libm-test.pl (@functions): Remove variable.
4603         (generate_testfile): Don't handle START and END lines.
4604         * math/libm-test.inc (START): New macro.
4605         (END): Likewise.
4606         (END_COMPLEX): Likewise.
4607         (acos_test): Use END macro without arguments.
4608         (acos_test_tonearest): Likewise.
4609         (acos_test_towardzero): Likewise.
4610         (acos_test_downward): Likewise.
4611         (acos_test_upward): Likewise.
4612         (acosh_test): Likewise.
4613         (asin_test): Likewise.
4614         (asin_test_tonearest): Likewise.
4615         (asin_test_towardzero): Likewise.
4616         (asin_test_downward): Likewise.
4617         (asin_test_upward): Likewise.
4618         (asinh_test): Likewise.
4619         (atan_test): Likewise.
4620         (atanh_test): Likewise.
4621         (atan2_test): Likewise.
4622         (cabs_test): Likewise.
4623         (cacos_test): Use END_COMPLEX macro without arguments.
4624         (cacosh_test): Likewise.
4625         (carg_test): Use END macro without arguments.
4626         (casin_test): Use END_COMPLEX macro without arguments.
4627         (casinh_test): Likewise.
4628         (catan_test): Likewise.
4629         (catanh_test): Likewise.
4630         (cbrt_test): Use END macro without arguments.
4631         (ccos_test): Use END_COMPLEX macro without arguments.
4632         (ccosh_test): Likewise.
4633         (ceil_test): Use END macro without arguments.
4634         (cexp_test): Use END_COMPLEX macro without arguments.
4635         (cimag_test): Use END macro without arguments.
4636         (clog_test): Use END_COMPLEX macro without arguments.
4637         (clog10_test): Likewise.
4638         (conj_test): Likewise.
4639         (copysign_test): Use END macro without arguments.
4640         (cos_test): Likewise.
4641         (cos_test_tonearest): Likewise.
4642         (cos_test_towardzero): Likewise.
4643         (cos_test_downward): Likewise.
4644         (cos_test_upward): Likewise.
4645         (cosh_test): Likewise.
4646         (cosh_test_tonearest): Likewise.
4647         (cosh_test_towardzero): Likewise.
4648         (cosh_test_downward): Likewise.
4649         (cosh_test_upward): Likewise.
4650         (cpow_test): Use END_COMPLEX macro without arguments.
4651         (cproj_test): Likewise.
4652         (creal_test): Use END macro without arguments.
4653         (csin_test): Use END_COMPLEX macro without arguments.
4654         (csinh_test): Likewise.
4655         (csqrt_test): Likewise.
4656         (ctan_test): Likewise.
4657         (ctan_test_tonearest): Likewise.
4658         (ctan_test_towardzero): Likewise.
4659         (ctan_test_downward): Likewise.
4660         (ctan_test_upward): Likewise.
4661         (ctanh_test): Likewise.
4662         (ctanh_test_tonearest): Likewise.
4663         (ctanh_test_towardzero): Likewise.
4664         (ctanh_test_downward): Likewise.
4665         (ctanh_test_upward): Likewise.
4666         (erf_test): Use END macro without arguments.
4667         (erfc_test): Likewise.
4668         (exp_test): Likewise.
4669         (exp_test_tonearest): Likewise.
4670         (exp_test_towardzero): Likewise.
4671         (exp_test_downward): Likewise.
4672         (exp_test_upward): Likewise.
4673         (exp10_test): Likewise.
4674         (exp2_test): Likewise.
4675         (expm1_test): Likewise.
4676         (fabs_test): Likewise.
4677         (fdim_test): Likewise.
4678         (finite_test): Likewise.
4679         (floor_test): Likewise.
4680         (fma_test): Likewise.
4681         (fma_test_towardzero): Likewise.
4682         (fma_test_downward): Likewise.
4683         (fma_test_upward): Likewise.
4684         (fmax_test): Likewise.
4685         (fmin_test): Likewise.
4686         (fmod_test): Likewise.
4687         (fpclassify_test): Likewise.
4688         (frexp_test): Likewise.
4689         (gamma_test): Likewise.
4690         (hypot_test): Likewise.
4691         (ilogb_test): Likewise.
4692         (isfinite_test): Likewise.
4693         (isgreater_test): Likewise.
4694         (isgreaterequal_test): Likewise.
4695         (isinf_test): Likewise.
4696         (isless_test): Likewise.
4697         (islessequal_test): Likewise.
4698         (islessgreater_test): Likewise.
4699         (isnan_test): Likewise.
4700         (isnormal_test): Likewise.
4701         (issignaling_test): Likewise.
4702         (isunordered_test): Likewise.
4703         (j0_test): Likewise.
4704         (j1_test): Likewise.
4705         (jn_test): Likewise.
4706         (ldexp_test): Likewise.
4707         (lgamma_test): Likewise.
4708         (lrint_test): Likewise.
4709         (lrint_test_tonearest): Likewise.
4710         (lrint_test_towardzero): Likewise.
4711         (lrint_test_downward): Likewise.
4712         (lrint_test_upward): Likewise.
4713         (llrint_test): Likewise.
4714         (llrint_test_tonearest): Likewise.
4715         (llrint_test_towardzero): Likewise.
4716         (llrint_test_downward): Likewise.
4717         (llrint_test_upward): Likewise.
4718         (log_test): Likewise.
4719         (log10_test): Likewise.
4720         (log1p_test): Likewise.
4721         (log2_test): Likewise.
4722         (logb_test): Likewise.
4723         (logb_test_downward): Likewise.
4724         (lround_test): Likewise.
4725         (llround_test): Likewise.
4726         (modf_test): Likewise.
4727         (nearbyint_test): Likewise.
4728         (nextafter_test): Likewise.
4729         (nexttoward_test): Likewise.
4730         (pow_test): Likewise.
4731         (pow_test_tonearest): Likewise.
4732         (pow_test_towardzero): Likewise.
4733         (pow_test_downward): Likewise.
4734         (pow_test_upward): Likewise.
4735         (remainder_test): Likewise.
4736         (remainder_test_tonearest): Likewise.
4737         (remainder_test_towardzero): Likewise.
4738         (remainder_test_downward): Likewise.
4739         (remainder_test_upward): Likewise.
4740         (remquo_test): Likewise.
4741         (rint_test): Likewise.
4742         (rint_test_tonearest): Likewise.
4743         (rint_test_towardzero): Likewise.
4744         (rint_test_downward): Likewise.
4745         (rint_test_upward): Likewise.
4746         (round_test): Likewise.
4747         (scalb_test): Likewise.
4748         (scalbn_test): Likewise.
4749         (scalbln_test): Likewise.
4750         (signbit_test): Likewise.
4751         (sin_test): Likewise.
4752         (sin_test_tonearest): Likewise.
4753         (sin_test_towardzero): Likewise.
4754         (sin_test_downward): Likewise.
4755         (sin_test_upward): Likewise.
4756         (sincos_test): Likewise.
4757         (sinh_test): Likewise.
4758         (sinh_test_tonearest): Likewise.
4759         (sinh_test_towardzero): Likewise.
4760         (sinh_test_downward): Likewise.
4761         (sinh_test_upward): Likewise.
4762         (sqrt_test): Likewise.
4763         (tan_test): Likewise.
4764         (tan_test_tonearest): Likewise.
4765         (tan_test_towardzero): Likewise.
4766         (tan_test_downward): Likewise.
4767         (tan_test_upward): Likewise.
4768         (tanh_test): Likewise.
4769         (tgamma_test): Likewise.
4770         (trunc_test): Likewise.
4771         (y0_test): Likewise.
4772         (y1_test): Likewise.
4773         (yn_test): Likewise.
4774         (significand_test): Likewise.
4775
4776 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
4777
4778         [BZ #15381]
4779         * libio/genops.c (_IO_no_init): Initialize wide struct info.
4780
4781 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
4782
4783         [BZ #14894]
4784         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
4785         __ppc_mdoio and __ppc_mdoom.
4786         * manual/platform.texi: Document new functions __ppc_yield,
4787         __ppc_mdoio and __ppc_mdoom.
4788
4789 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
4790
4791         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
4792         (main): Mention "tls" pseudo-hwcap is legacy.
4793         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
4794
4795 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
4796
4797         * math/gen-libm-test.pl (parse_args): Output only string of
4798         arguments as text for test name, not full call or descriptions of
4799         tests for extra outputs.
4800         (generate_testfile): Do not pass function name to parse_args.
4801         Generate this_func variable from START.
4802         * math/libm-test.inc (struct test_f_f_data): Rename test_name
4803         field to arg_str.
4804         (struct test_ff_f_data): Likewise.
4805         (test_ff_f_data_nexttoward): Likewise.
4806         (struct test_fi_f_data): Likewise.
4807         (struct test_fl_f_data): Likewise.
4808         (struct test_if_f_data): Likewise.
4809         (struct test_fff_f_data): Likewise.
4810         (struct test_c_f_data): Likewise.
4811         (struct test_f_f1_data): Likewise.  Remove field extra_name.
4812         (struct test_fF_f1_data): Likewise.
4813         (struct test_ffI_f1_data): Likewise.
4814         (struct test_c_c_data): Rename test_name field to arg_str.
4815         (struct test_cc_c_data): Likewise.
4816         (struct test_f_i_data): Likewise.
4817         (struct test_ff_i_data): Likewise.
4818         (struct test_f_l_data): Likewise.
4819         (struct test_f_L_data): Likewise.
4820         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
4821         and extra2_name.
4822         (COMMON_TEST_SETUP): New macro.
4823         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
4824         (COMMON_TEST_CLEANUP): Likewise.
4825         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
4826         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
4827         macros.
4828         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
4829         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
4830         macros.
4831         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
4832         (RUN_TEST_fff_f): Take argument string.  Call new setup and
4833         cleanup macros.
4834         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
4835         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
4836         macros.
4837         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
4838         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
4839         macros.
4840         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
4841         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
4842         cleanup macros.
4843         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
4844         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
4845         cleanup macros.
4846         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
4847         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
4848         cleanup macros.
4849         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
4850         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
4851         macros.
4852         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
4853         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
4854         macros.
4855         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
4856         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
4857         macros.
4858         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
4859         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
4860         cleanup macros.
4861         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
4862         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
4863         cleanup macros.
4864         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
4865         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
4866         macros.
4867         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
4868         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
4869         cleanup macros.
4870         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
4871         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
4872         macros.
4873         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
4874         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
4875         macros.
4876         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
4877         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
4878         cleanup macros.
4879         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
4880
4881 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
4882
4883         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
4884         to _sifields.sigfault.
4885         (si_addr_lsb): Define new macro.
4886         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
4887         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
4888         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
4889
4890 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
4891
4892         [BZ #15441]
4893         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
4894         returns -1.
4895         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
4896         null return -1.
4897         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
4898         loading the domain.
4899
4900 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
4901
4902         * math/gen-libm-test.pl (parse_args): Do not include expected
4903         result in test name.
4904         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
4905         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
4906         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
4907         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
4908         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
4909         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4910
4911 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4912
4913         * benchtests/Makefile: Sort function entries.
4914
4915         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
4916         tanh, asinh, acosh, atanh.
4917         * benchtests/acos-inputs: New file.
4918         * benchtests/acosh-inputs: New file.
4919         * benchtests/asin-inputs: New file.
4920         * benchtests/asinh-inputs: New file.
4921         * benchtests/atanh-inputs: New file.
4922         * benchtests/cosh-inputs: New file.
4923         * benchtests/log-inputs: New file.
4924         * benchtests/sinh-inputs: New file.
4925         * benchtests/tanh-inputs: New file.
4926
4927 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
4928
4929         [BZ #15339]
4930         * posix/tst-getaddrinfo4.c: New test.
4931         * posix/Makefile (tests): Add it.
4932
4933 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4934
4935         [BZ #15339]
4936         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
4937         when no services were used.
4938         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
4939         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
4940
4941 2013-05-21  Andreas Schwab  <schwab@suse.de>
4942
4943         [BZ #15014]
4944         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
4945         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
4946         successful.
4947         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
4948         redundant variable declarations and reallocation of buffer when
4949         parsing as IPv6 address.  Always set NSS status when called from
4950         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
4951         buffer too small.  Correct computation of needed size.
4952         * nss/Makefile (tests): Add test-digits-dots.
4953         * nss/test-digits-dots.c: New test.
4954
4955 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4956
4957         * benchtests/Makefile: Remove instructions for adding
4958         benchmark tests.
4959         * benchtests/README: New file to explain how to execute and
4960         enhance the benchmark tests.
4961
4962 2013-05-21  Andreas Schwab  <schwab@suse.de>
4963
4964         [BZ #15493]
4965         * setjmp/Makefile (tests): Add tst-sigsetjmp.
4966         * setjmp/tst-sigsetjmp.c: New test.
4967
4968 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
4969
4970         * sysdeps/x86_64/memset.S (memset): New implementation.
4971         (__bzero): Likewise.
4972         (__memset_tail): New function.
4973
4974 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
4975
4976         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
4977         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
4978         __memcpy_sse2_unaligned ifunc selection.
4979         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
4980         Add memcpy-sse2-unaligned.S.
4981         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
4982         Add: __memcpy_sse2_unaligned.
4983
4984 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
4985
4986         [BZ #15490]
4987         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
4988         math_force_eval before restoring floating-point envrionment.
4989         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
4990         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
4991         Likewise.
4992         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
4993         <math_private.h>.
4994         (__nearbyintl): Use math_force_eval before restoring
4995         floating-point environment.
4996         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
4997
4998         * math/gen-libm-test.pl (special_functions): Remove.
4999         (parse_args): Don't handle TEST_extra.  Handle functions with no
5000         return value.
5001         * math/libm-test.inc (struct test_sincos_data): Replace with
5002         struct test_fFF_11_data.
5003         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
5004         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
5005         (sincos_test_data): Change element type to struct
5006         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
5007         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
5008         RUN_TEST_LOOP_sincos.
5009         * math/README.libm-test: Don't mention special handling of
5010         individual functions.
5011         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
5012         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5013         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5014         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
5015         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5017
5018         * math/gen-libm-test.pl (get_variable): Remove function.
5019         (parse_args): Don't show pointer parameters to call in test
5020         names.  Use "extra output N" in test names for extra outputs
5021         rather than naming variables.
5022
5023 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
5024
5025         [BZ #15488]
5026         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
5027         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
5028         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
5029         double tests.
5030         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
5031         disable.
5032         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
5033         check_long_double.
5034
5035         * math/gen-libm-test.pl (@tests): Remove variable.
5036         ($count): Likewise.
5037         (new_test): Remove function.
5038         (show_exceptions): New function.
5039         (special_functions): Use show_exceptions instead of new_test.
5040         (parse_args): Likewise.
5041         (generate_testfile): Pass only function name in generated call to
5042         print_max_error or print_complex_max_error.
5043         (get_ulps): Do not handle complex tests specially.
5044         (output_test): Rename to ...
5045         (get_all_ulps_for_test): ... this.  Return a string rather than
5046         printing to a file.  Require ulps to be present.
5047         (output_ulps): Generate arrays rather than #defines.
5048         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
5049         (struct ulp_data): New type.
5050         (BUILD_COMPLEX_ULP): Remove macro.
5051         (compare_ulp_data): New function.
5052         (find_ulps): Likewise.
5053         (find_test_ulps): Likewise.
5054         (find_function_ulps): Likewise.
5055         (find_complex_function_ulps): Likewise.
5056         (print_max_error): Determine allowed ulps using
5057         find_function_ulps.
5058         (print_complex_max_error): Determine allowed ulps using
5059         find_complex_function_ulps.
5060         (check_float_internal): Determine max ulps using find_test_ulps.
5061         (check_float): Do not take max_ulp parameter.  Update call to
5062         check_float_internal.
5063         (check_complex): Likewise.
5064         (check_int): Do not take max_ulp parameter.
5065         (check_long): Likewise.
5066         (check_bool): Likewise.
5067         (check_longlong): Likewise.
5068         (struct test_f_f_data): Remove max_ulp field.
5069         (struct test_ff_f_data): Likewise.
5070         (struct test_ff_f_data_nexttoward): Likewise.
5071         (struct test_fi_f_data): Likewise.
5072         (struct test_fl_f_data): Likewise.
5073         (struct test_if_f_data): Likewise.
5074         (struct test_fff_f_data): Likewise.
5075         (struct test_c_f_data): Likewise.
5076         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
5077         (struct test_fF_f1_data): Likewise.
5078         (struct test_ffI_f1_data): Likewise.
5079         (struct test_c_c_data): Remove max_ulp field.
5080         (struct test_cc_c_data): Likewise.
5081         (struct test_f_i_data): Likewise.
5082         (struct test_ff_i_data): Likewise.
5083         (struct test_f_l_data): Likewise.
5084         (struct test_f_L_data): Likewise.
5085         (struct test_sincos_data): Likewise.
5086         (RUN_TEST_f_f): Do not handle ulps.
5087         (RUN_TEST_LOOP_f_f): Likewise.
5088         (RUN_TEST_2_f): Likewise.
5089         (RUN_TEST_LOOP_2_f): Likewise.
5090         (RUN_TEST_fff_f): Likewise.
5091         (RUN_TEST_LOOP_fff_f): Likewise.
5092         (RUN_TEST_c_f): Likewise.
5093         (RUN_TEST_LOOP_c_f): Likewise.
5094         (RUN_TEST_f_f1): Likewise.
5095         (RUN_TEST_LOOP_f_f1): Likewise.
5096         (RUN_TEST_fF_f1): Likewise.
5097         (RUN_TEST_LOOP_fF_f1): Likewise.
5098         (RUN_TEST_fI_f1): Likewise.
5099         (RUN_TEST_LOOP_fI_f1): Likewise.
5100         (RUN_TEST_ffI_f1): Likewise.
5101         (RUN_TEST_LOOP_ffI_f1): Likewise.
5102         (RUN_TEST_c_c): Likewise.
5103         (RUN_TEST_LOOP_c_c): Likewise.
5104         (RUN_TEST_cc_c): Likewise.
5105         (RUN_TEST_LOOP_cc_c): Likewise.
5106         (RUN_TEST_f_i): Likewise.
5107         (RUN_TEST_LOOP_f_i): Likewise.
5108         (RUN_TEST_f_i_tg): Likewise.
5109         (RUN_TEST_LOOP_f_i_tg): Likewise.
5110         (RUN_TEST_ff_i_tg): Likewise.
5111         (RUN_TEST_LOOP_ff_i_tg): Likewise.
5112         (RUN_TEST_f_b): Likewise.
5113         (RUN_TEST_LOOP_f_b): Likewise.
5114         (RUN_TEST_f_b_tg): Likewise.
5115         (RUN_TEST_LOOP_f_b_tg): Likewise.
5116         (RUN_TEST_f_l): Likewise.
5117         (RUN_TEST_LOOP_f_l): Likewise.
5118         (RUN_TEST_f_L): Likewise.
5119         (RUN_TEST_LOOP_f_L): Likewise.
5120         (RUN_TEST_sincos): Likewise.
5121         (RUN_TEST_LOOP_sincos): Likewise.
5122
5123 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
5124
5125         [BZ #15480]
5126         [BZ #15485]
5127         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
5128         main case of finite arguments, set rounding mode to FE_TONEAREST
5129         and discard exceptions.
5130         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
5131         exceptions.
5132         (remainder_tonearest_test_data): New variable.
5133         (remainder_test_tonearest): New function.
5134         (remainder_towardzero_test_data): New variable.
5135         (remainder_test_towardzero): New function.
5136         (remainder_downward_test_data): New variable.
5137         (remainder_test_downward): New function.
5138         (remainder_upward_test_data): New variable.
5139         (remainder_test_upward): New function.
5140         (main): Call the new test functions.
5141
5142         * math/libm-test.inc (struct test_f_f1_data): Remove field
5143         extra_init.
5144         (struct test_fF_f1_data): Likewise.
5145         (struct test_ffI_f1_data): Likewise.
5146         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
5147         based on value of EXTRA_EXPECTED.
5148         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
5149         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
5150         EXTRA_VAR based on value of EXTRA_EXPECTED.
5151         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
5152         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
5153         EXTRA_VAR based on value of EXTRA_EXPECTED.
5154         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
5155         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
5156         EXTRA_VAR based on value of EXTRA_EXPECTED.
5157         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
5158         * math/gen-libm-test.pl (parse_args): Don't output initializers
5159         for extra output values.
5160
5161         * math/libm-test.inc (check_int): Expect result to be exactly
5162         equal to expected value and do not handle ulps.
5163         (check_long): Likewise.
5164         (check_longlong): Likewise.
5165
5166         * math/libm-test.inc (ceil_test_data): Test for "inexact"
5167         exceptions.
5168         (cimag_test_data): Likewise.
5169         (conj_test_data): Likewise.
5170         (copysign_test_data): Likewise.
5171         (cproj_test_data): Likewise.
5172         (creal_test_data): Likewise.
5173         (fabs_test_data): Likewise.
5174         (fdim_test_data): Likewise.
5175         (finite_test_data): Likewise.
5176         (floor_test_data): Likewise.
5177         (fmax_test_data): Likewise.
5178         (fmin_test_data): Likewise.
5179         (fmod_test_data): Likewise.
5180         (fpclassify_test_data): Likewise.
5181         (frexp_test_data): Likewise.
5182         (ilogb_test_data): Likewise.
5183         (isfinite_test_data): Likewise.
5184         (isgreater_test_data): Likewise.
5185         (isgreaterequal_test_data): Likewise.
5186         (isinf_test_data): Likewise.
5187         (isless_test_data): Likewise.
5188         (islessequal_test_data): Likewise.
5189         (islessgreater_test_data): Likewise.
5190         (isnan_test_data): Likewise.
5191         (isnormal_test_data): Likewise.
5192         (issignaling_test_data): Likewise.
5193         (isunordered_test_data): Likewise.
5194         (ldexp_test_data): Likewise.
5195         (lrint_test_data): Likewise.
5196         (lrint_test_data) [TEST_FLOAT]: Disable one test.
5197         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
5198         (lrint_tonearest_test_data): Test for "inexact" exceptions.
5199         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
5200         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
5201         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
5202         test input.
5203         (lrint_towardzero_test_data): Test for "inexact" exceptions.
5204         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
5205         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
5206         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
5207         that test input.
5208         (lrint_downward_test_data): Test for "inexact" exceptions.
5209         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
5210         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
5211         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
5212         test input.
5213         (lrint_upward_test_data): Test for "inexact" exceptions.
5214         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
5215         test input.
5216         (llrint_test_data): Test for "inexact" exceptions.
5217         (llrint_test_data) [TEST_FLOAT]: Disable one test.
5218         (llrint_tonearest_test_data): Test for "inexact" exceptions.
5219         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
5220         (llrint_towardzero_test_data): Test for "inexact" exceptions.
5221         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
5222         (llrint_downward_test_data): Test for "inexact" exceptions.
5223         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
5224         (llrint_upward_test_data): Test for "inexact" exceptions.
5225         (logb_test_data): Likewise.
5226         (logb_downward_test_data): Likewise.
5227         (nextafter_test_data): Likewise.
5228         (nexttoward_test_data): Likewise.
5229         (remainder_test_data): Likewise.
5230         (remquo_test_data): Likewise.
5231         (scalbn_test_data): Likewise.
5232         (scalbln_test_data): Likewise.
5233         (signbit_test_data): Likewise.
5234         (sqrt_test_data): Likewise.
5235         (significand_test_data): Likewise.
5236
5237 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
5238
5239         [BZ #15424]
5240         * benchtests/bench-modf.c (struct args): Mark arg0 as
5241         volatile.
5242         * scripts/bench.pl: Mark members of struct args as volatile.
5243
5244 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5245
5246         [BZ # 15497]
5247         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
5248         negative infinity on POWER6 or lower.
5249         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
5250
5251 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5252
5253         [BZ #15442]
5254         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
5255         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
5256         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
5257         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
5258         (_FP_SETQNAN): New macro.
5259         (_FP_SETQNAN_SEMIRAW): Likewise.
5260         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
5261         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
5262         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
5263         (FP_EXTEND): Use _FP_FRAC_SNANP.
5264         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
5265         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
5266         into account.
5267         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
5268         New macro.
5269         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
5270         Likewise.
5271
5272 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
5273
5274         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
5275         with DIVIDE_BY_ZERO_EXCEPTION.
5276         (gamma_test_data): Likewise.
5277         (lgamma_test_data): Likewise.
5278         (log_test_data): Likewise.
5279         (log10_test_data): Likewise.
5280         (log2_test_data): Likewise.
5281         (tgamma_test_data): Likewise.
5282
5283         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
5284         (acos_test_tonearest): Likewise.
5285         (acos_test_towardzero): Likewise.
5286         (acos_test_downward): Likewise.
5287         (acos_test_upward): Likewise.
5288         (acosh_test): Likewise.
5289         (asin_test): Likewise.
5290         (asin_test_tonearest): Likewise.
5291         (asin_test_towardzero): Likewise.
5292         (asin_test_downward): Likewise.
5293         (asin_test_upward): Likewise.
5294         (asinh_test): Likewise.
5295         (atan_test): Likewise.
5296         (atanh_test): Likewise.
5297         (atan2_test): Likewise.
5298         (cabs_test): Likewise.
5299         (cacos_test): Likewise.
5300         (cacosh_test): Likewise.
5301         (casin_test): Likewise.
5302         (casinh_test): Likewise.
5303         (catan_test): Likewise.
5304         (catanh_test): Likewise.
5305         (cbrt_test): Likewise.
5306         (ccos_test): Likewise.
5307         (ccosh_test): Likewise.
5308         (cexp_test): Likewise.
5309         (clog_test): Likewise.
5310         (clog10_test): Likewise.
5311         (cos_test): Likewise.
5312         (cos_test_tonearest): Likewise.
5313         (cos_test_towardzero): Likewise.
5314         (cos_test_downward): Likewise.
5315         (cos_test_upward): Likewise.
5316         (cosh_test): Likewise.
5317         (cosh_test_tonearest): Likewise.
5318         (cosh_test_towardzero): Likewise.
5319         (cosh_test_downward): Likewise.
5320         (cosh_test_upward): Likewise.
5321         (cpow_test): Likewise.
5322         (csin_test): Likewise.
5323         (csinh_test): Likewise.
5324         (csqrt_test): Likewise.
5325         (ctan_test): Likewise.
5326         (ctan_test_tonearest): Likewise.
5327         (ctan_test_towardzero): Likewise.
5328         (ctan_test_downward): Likewise.
5329         (ctan_test_upward): Likewise.
5330         (ctanh_test): Likewise.
5331         (ctanh_test_tonearest): Likewise.
5332         (ctanh_test_towardzero): Likewise.
5333         (ctanh_test_downward): Likewise.
5334         (ctanh_test_upward): Likewise.
5335         (erf_test): Likewise.
5336         (erfc_test): Likewise.
5337         (exp_test): Likewise.
5338         (exp_test_tonearest): Likewise.
5339         (exp_test_towardzero): Likewise.
5340         (exp_test_downward): Likewise.
5341         (exp_test_upward): Likewise.
5342         (exp10_test): Likewise.
5343         (exp2_test): Likewise.
5344         (expm1_test): Likewise.
5345         (fmod_test): Likewise.
5346         (gamma_test): Likewise.
5347         (hypot_test): Likewise.
5348         (j0_test): Likewise.
5349         (j1_test): Likewise.
5350         (jn_test): Likewise.
5351         (lgamma_test): Likewise.
5352         (log_test): Likewise.
5353         (log10_test): Likewise.
5354         (log1p_test): Likewise.
5355         (log2_test): Likewise.
5356         (logb_test_downward): Likewise.
5357         (pow_test): Likewise.
5358         (pow_test_tonearest): Likewise.
5359         (pow_test_towardzero): Likewise.
5360         (pow_test_downward): Likewise.
5361         (pow_test_upward): Likewise.
5362         (remainder_test): Likewise.
5363         (remquo_test): Likewise.
5364         (sin_test): Likewise.
5365         (sin_test_tonearest): Likewise.
5366         (sin_test_towardzero): Likewise.
5367         (sin_test_downward): Likewise.
5368         (sin_test_upward): Likewise.
5369         (sincos_test): Likewise.
5370         (sinh_test): Likewise.
5371         (sinh_test_tonearest): Likewise.
5372         (sinh_test_towardzero): Likewise.
5373         (sinh_test_downward): Likewise.
5374         (sinh_test_upward): Likewise.
5375         (sqrt_test): Likewise.
5376         (tan_test): Likewise.
5377         (tan_test_tonearest): Likewise.
5378         (tan_test_towardzero): Likewise.
5379         (tan_test_downward): Likewise.
5380         (tan_test_upward): Likewise.
5381         (tanh_test): Likewise.
5382         (tgamma_test): Likewise.
5383         (y0_test): Likewise.
5384         (y1_test): Likewise.
5385         (yn_test): Likewise.
5386
5387         * math/gen-libm-test.pl (adjust_arg): Remove function.
5388         (special_function): Remove argument $in_func.  Only handle
5389         generating output for tables of tests, not inside functions.
5390         (parse_args): Likewise.
5391         (generate_testfile): Remove variable $in_func.  Update call to
5392         parse_args.
5393         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
5394         (MINUS_ZERO_INIT): Rename macro to minus_zero.
5395         (PLUS_INFTY_INIT): Rename macro to plus_infty.
5396         (MINUS_INFTY_INIT): Rename macro to minus_infty.
5397         (QNAN_VALUE_INIT): Rename macro to qnan_value.
5398         (MAX_VALUE_INIT): Rename macro to max_value.
5399         (MIN_VALUE_INIT): Rename macro to min_value.
5400         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
5401         (plus_zero): Remove variable.
5402         (minus_zero): Likewise.
5403         (plus_infty): Likewise.
5404         (minus_infty): Likewise.
5405         (qnan_value): Likewise.
5406         (max_value): Likewise.
5407         (min_value): Likewise.
5408         (min_subnorm_value): Likewise.
5409
5410 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
5411
5412         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
5413         uint64_t or uint32_t usage.
5414         * crypt/sha256-block.c: Likewise.
5415         * crypt/sha256-crypt.c: Likewise.
5416         * crypt/sha256.c: Likewise.
5417         * crypt/sha512-block.c: Likewise.
5418         * crypt/sha512-crypt.c: Likewise.
5419         * crypt/sha512.c: Likewise.
5420         * debug/backtrace-tst.c: Likewise.
5421         * debug/pcprofiledump.c: Likewise.
5422         * elf/cache.c: Likewise.
5423         * elf/dl-cache.c: Likewise.
5424         * elf/dl-misc.c: Likewise.
5425         * elf/dl-profile.c: Likewise.
5426         * elf/dl-support.c: Likewise.
5427         * elf/ldconfig.c: Likewise.
5428         * elf/sprof.c: Likewise.
5429         * iconv/dummy-repertoire.c: Likewise.
5430         * iconv/iconv_charmap.c: Likewise.
5431         * iconv/skeleton.c: Likewise.
5432         * iconvdata/8bit-generic.c: Likewise.
5433         * iconvdata/cp737.h: Likewise.
5434         * iconvdata/cp775.h: Likewise.
5435         * iconvdata/ibm1008.h: Likewise.
5436         * iconvdata/ibm1025.h: Likewise.
5437         * iconvdata/ibm1046.h: Likewise.
5438         * iconvdata/ibm1097.h: Likewise.
5439         * iconvdata/ibm1112.h: Likewise.
5440         * iconvdata/ibm1122.h: Likewise.
5441         * iconvdata/ibm1123.h: Likewise.
5442         * iconvdata/ibm1124.h: Likewise.
5443         * iconvdata/ibm1129.h: Likewise.
5444         * iconvdata/ibm1130.h: Likewise.
5445         * iconvdata/ibm1132.h: Likewise.
5446         * iconvdata/ibm1133.h: Likewise.
5447         * iconvdata/ibm1137.h: Likewise.
5448         * iconvdata/ibm1140.h: Likewise.
5449         * iconvdata/ibm1141.h: Likewise.
5450         * iconvdata/ibm1142.h: Likewise.
5451         * iconvdata/ibm1143.h: Likewise.
5452         * iconvdata/ibm1144.h: Likewise.
5453         * iconvdata/ibm1145.h: Likewise.
5454         * iconvdata/ibm1146.h: Likewise.
5455         * iconvdata/ibm1147.h: Likewise.
5456         * iconvdata/ibm1148.h: Likewise.
5457         * iconvdata/ibm1149.h: Likewise.
5458         * iconvdata/ibm1153.h: Likewise.
5459         * iconvdata/ibm1154.h: Likewise.
5460         * iconvdata/ibm1155.h: Likewise.
5461         * iconvdata/ibm1156.h: Likewise.
5462         * iconvdata/ibm1157.h: Likewise.
5463         * iconvdata/ibm1158.h: Likewise.
5464         * iconvdata/ibm1160.h: Likewise.
5465         * iconvdata/ibm1161.h: Likewise.
5466         * iconvdata/ibm1162.h: Likewise.
5467         * iconvdata/ibm1163.h: Likewise.
5468         * iconvdata/ibm1164.h: Likewise.
5469         * iconvdata/ibm1166.h: Likewise.
5470         * iconvdata/ibm1167.h: Likewise.
5471         * iconvdata/ibm12712.h: Likewise.
5472         * iconvdata/ibm1390.h: Likewise.
5473         * iconvdata/ibm1399.h: Likewise.
5474         * iconvdata/ibm16804.h: Likewise.
5475         * iconvdata/ibm4517.h: Likewise.
5476         * iconvdata/ibm4899.h: Likewise.
5477         * iconvdata/ibm4909.h: Likewise.
5478         * iconvdata/ibm4971.h: Likewise.
5479         * iconvdata/ibm5347.h: Likewise.
5480         * iconvdata/ibm803.h: Likewise.
5481         * iconvdata/ibm856.h: Likewise.
5482         * iconvdata/ibm901.h: Likewise.
5483         * iconvdata/ibm902.h: Likewise.
5484         * iconvdata/ibm9030.h: Likewise.
5485         * iconvdata/ibm9066.h: Likewise.
5486         * iconvdata/ibm921.h: Likewise.
5487         * iconvdata/ibm922.h: Likewise.
5488         * iconvdata/ibm9448.h: Likewise.
5489         * iconvdata/isiri-3342.h: Likewise.
5490         * iconvdata/jis0201.h: Likewise.
5491         * include/link.h: Likewise.
5492         * include/netdb.h: Likewise.
5493         * inet/check_native.c: Likewise.
5494         * inet/check_pf.c: Likewise.
5495         * inet/getipv4sourcefilter.c: Likewise.
5496         * inet/getnameinfo.c: Likewise.
5497         * inet/getsourcefilter.c: Likewise.
5498         * inet/htonl.c: Likewise.
5499         * inet/setipv4sourcefilter.c: Likewise.
5500         * inet/setsourcefilter.c: Likewise.
5501         * inet/test-inet6_opt.c: Likewise.
5502         * inet/tst-network.c: Likewise.
5503         * locale/C-collate.c: Likewise.
5504         * locale/C-ctype.c: Likewise.
5505         * locale/C-time.c: Likewise.
5506         * locale/C-translit.h: Likewise.
5507         * locale/loadarchive.c: Likewise.
5508         * locale/programs/3level.h: Likewise.
5509         * locale/programs/charmap.c: Likewise.
5510         * locale/programs/charmap.h: Likewise.
5511         * locale/programs/ld-address.c: Likewise.
5512         * locale/programs/ld-collate.c: Likewise.
5513         * locale/programs/ld-ctype.c: Likewise.
5514         * locale/programs/ld-identification.c: Likewise.
5515         * locale/programs/ld-measurement.c: Likewise.
5516         * locale/programs/ld-messages.c: Likewise.
5517         * locale/programs/ld-monetary.c: Likewise.
5518         * locale/programs/ld-name.c: Likewise.
5519         * locale/programs/ld-numeric.c: Likewise.
5520         * locale/programs/ld-paper.c: Likewise.
5521         * locale/programs/ld-telephone.c: Likewise.
5522         * locale/programs/ld-time.c: Likewise.
5523         * locale/programs/linereader.c: Likewise.
5524         * locale/programs/locale.c: Likewise.
5525         * locale/programs/locarchive.c: Likewise.
5526         * locale/programs/locfile.h: Likewise.
5527         * locale/programs/repertoire.c: Likewise.
5528         * locale/programs/simple-hash.c: Likewise.
5529         * locale/programs/simple-hash.h: Likewise.
5530         * malloc/memusage.c: Likewise.
5531         * malloc/memusagestat.c: Likewise.
5532         * nis/nis_defaults.c: Likewise.
5533         * nis/nis_hash.c: Likewise.
5534         * nis/nis_print.c: Likewise.
5535         * nis/nis_xdr.c: Likewise.
5536         * nscd/connections.c: Likewise.
5537         * nscd/hstcache.c: Likewise.
5538         * nscd/nscd_gethst_r.c: Likewise.
5539         * nscd/nscd_getserv_r.c: Likewise.
5540         * nscd/nscd_helper.c: Likewise.
5541         * nscd/servicescache.c: Likewise.
5542         * nss/makedb.c: Likewise.
5543         * nss/nss_db/db-XXX.c: Likewise.
5544         * nss/nss_db/db-initgroups.c: Likewise.
5545         * nss/nss_db/db-netgrp.c: Likewise.
5546         * nss/nss_files/files-network.c: Likewise.
5547         * nss/nss_files/files-parse.c: Likewise.
5548         * posix/bug-regex5.c: Likewise.
5549         * posix/fnmatch_loop.c: Likewise.
5550         * posix/regcomp.c: Likewise.
5551         * posix/regexec.c: Likewise.
5552         * posix/tst-rfc3484-2.c: Likewise.
5553         * posix/tst-rfc3484-3.c: Likewise.
5554         * posix/tst-rfc3484.c: Likewise.
5555         * resolv/nss_dns/dns-canon.c: Likewise.
5556         * resolv/nss_dns/dns-network.c: Likewise.
5557         * resolv/res_init.c: Likewise.
5558         * resolv/res_mkquery.c: Likewise.
5559         * resolv/tst-aton.c: Likewise.
5560         * stdlib/cxa_atexit.c: Likewise.
5561         * stdlib/cxa_finalize.c: Likewise.
5562         * stdlib/gen-fpioconst.c: Likewise.
5563         * stdlib/strtol_l.c: Likewise.
5564         * string/tst-endian.c: Likewise.
5565         * sunrpc/auth_des.c: Likewise.
5566         * sunrpc/clnt_udp.c: Likewise.
5567         * sunrpc/rtime.c: Likewise.
5568         * sunrpc/svcauth_des.c: Likewise.
5569         * sunrpc/xdr.c: Likewise.
5570         * sunrpc/xdr_intXX_t.c: Likewise.
5571         * sunrpc/xdr_rec.c: Likewise.
5572         * sysdeps/generic/ldconfig.h: Likewise.
5573         * sysdeps/generic/ldsodefs.h: Likewise.
5574         * sysdeps/generic/memusage.h: Likewise.
5575         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
5576         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
5577         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
5578         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
5579         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
5580         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5581         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
5582         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
5583         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5584         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
5585         * sysdeps/posix/getaddrinfo.c: Likewise.
5586         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
5587         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
5588         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
5589         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5590         * sysdeps/powerpc/test-gettimebase.c: Likewise.
5591         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
5592         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
5593         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
5594         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
5595         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
5596         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
5597         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
5598         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
5599         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
5600         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
5601         * sysdeps/x86_64/dl-tls.h: Likewise.
5602         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
5603         * time/alt_digit.c: Likewise.
5604         * time/era.c: Likewise.
5605         * wcsmbs/tst-c16c32-1.c: Likewise.
5606
5607 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
5608
5609         * math/libm-test.inc (struct test_sincos_data): New type.
5610         (RUN_TEST_LOOP_sincos): New macro.
5611         (sincos_test_data): New variable.
5612         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
5613
5614 2013-05-16  Richard Henderson  <rth@redhat.com>
5615
5616         * math/atest-exp2.c (LIMB64): New macro.
5617         (CONSTSZ): New macro.
5618         (mp_exp1, mp_exp_m1, mp_log2): New variables.
5619         (hexdig): Move ...
5620         (print_mpn_fp): ... to function scope.
5621         (read_mpn_hex): Remove.
5622         (get_log2): Remove.
5623         (exp2_mpn): Use mp_log2.
5624         (main): Use mp_exp1.
5625
5626 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
5627
5628         * math/libm-test.inc: Remove comment about not testing "inexact"
5629         exceptions.
5630         (INEXACT_EXCEPTION): New macro.
5631         (NO_INEXACT_EXCEPTION): Likewise.
5632         (INVALID_EXCEPTION_OK): Update value.
5633         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5634         (OVERFLOW_EXCEPTION_OK): Likewise.
5635         (UNDERFLOW_EXCEPTION_OK): Likewise.
5636         (IGNORE_ZERO_INF_SIGN): Likewise.
5637         (ERRNO_UNCHANGED): Likewise.
5638         (ERRNO_EDOM): Likewise.
5639         (ERRNO_ERANGE): Likewise.
5640         (test_exceptions): Handle testing "inexact" exceptions.
5641         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
5642         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
5643         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
5644         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
5645         INEXACT_EXCEPTION.
5646         (rint_towardzero_test_data): Likewise.
5647         (rint_downward_test_data): Likewise.
5648         (rint_upward_test_data): Likewise.
5649
5650         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
5651         with OVERFLOW_EXCEPTION.
5652         (exp10_test_data): Likewise.
5653         (exp2_test_data): Likewise.
5654         (expm1_test_data): Likewise.
5655         (lgamma_test_data): Likewise.
5656         (pow_test_data): Likewise.
5657         (tgamma_test_data): Likewise.
5658         (yn_test_data): Remove duplicate test of overflow.
5659
5660         * math/libm-test.inc (struct test_cc_c_data): New type.
5661         (RUN_TEST_LOOP_cc_c): New macro.
5662         (cpow_test_data): New variable.
5663         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
5664
5665         * math/libm-test.inc (struct test_f_L_data): New type.
5666         (RUN_TEST_LOOP_f_L): New macro.
5667         (llrint_test_data): New variable.
5668         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
5669         (llrint_tonearest_test_data): New variable.
5670         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
5671         (llrint_towardzero_test_data): New variable.
5672         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
5673         (llrint_downward_test_data): New variable.
5674         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
5675         (llrint_upward_test_data): New variable.
5676         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
5677         (llround_test_data): New variable.
5678         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
5679
5680 2013-05-13  Peter Collingbourne  <pcc@google.com>
5681
5682         * math/atest-exp2.c (get_log2): Remove const attribute.
5683
5684 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
5685
5686         * math/libm-test.inc (struct test_f_l_data): New type.
5687         (RUN_TEST_LOOP_f_l): New macro.
5688         (lrint_test_data): New variable.
5689         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
5690         (lrint_tonearest_test_data): New variable.
5691         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
5692         (lrint_towardzero_test_data): New variable.
5693         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
5694         (lrint_downward_test_data): New variable.
5695         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
5696         (lrint_upward_test_data): New variable.
5697         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
5698         (lround_test_data): New variable.
5699         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
5700
5701 2013-05-15  Peter Collingbourne  <pcc@google.com>
5702
5703         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
5704         (EXTRACT_WORDS64) Use where appropriate.
5705         (INSERT_WORDS64) Likewise.
5706
5707         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
5708         constraints with x constraints.
5709         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
5710
5711         * malloc/obstack.c (_obstack_compat): Add initializer.
5712
5713 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5714
5715         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
5716         si_trapno and add si_addr_lsb to _sifields.sigfault.
5717         (si_trapno): Remove macro.
5718         (si_addr_lsb): Define new macro.
5719         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
5720
5721 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
5722
5723         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
5724         instead of TEST_f_l.
5725         (llrint_test_tonearest): Likewise.
5726         (llrint_test_towardzero): Likewise.
5727         (llrint_test_downward): Likewise.
5728         (llrint_test_upward): Likewise.
5729         (llround_test): Likewise.
5730
5731         * math/libm-test.inc (struct test_f_i_data): Add comment.
5732         (RUN_TEST_LOOP_f_b): New macro.
5733         (RUN_TEST_LOOP_f_b_tg): Likewise.
5734         (finite_test_data): New variable.
5735         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
5736         (isfinite_test_data): New variable.
5737         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5738         (isinf_test_data): New variable.
5739         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5740         (isnan_test_data): New variable.
5741         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5742         (isnormal_test_data): New variable.
5743         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5744         (issignaling_test_data): New variable.
5745         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5746         (signbit_test_data): New variable.
5747         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
5748
5749         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
5750         with INVALID_EXCEPTION.
5751         (acosh_test_data): Likewise.
5752         (asin_test_data): Likewise.
5753         (atanh_test_data): Likewise.
5754         (fmod_test_data): Likewise.
5755         (log_test_data): Likewise.
5756         (log10_test_data): Likewise.
5757         (log2_test_data): Likewise.
5758         (pow_test_data): Likewise.
5759         (sqrt_test_data): Likewise.
5760         (y0_test_data): Likewise.
5761         (y1_test_data): Likewise.
5762         (yn_test_data): Likewise.
5763
5764         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
5765         function contents.
5766
5767         * math/libm-test.inc (struct test_ff_i_data): New type.
5768         (RUN_TEST_LOOP_ff_i_tg): New macro.
5769         (isgreater_test_data): New variable.
5770         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5771         (isgreaterequal_test_data): New variable.
5772         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5773         (isless_test_data): New variable.
5774         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5775         (islessequal_test_data): New variable.
5776         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5777         (islessgreater_test_data): New variable.
5778         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5779         (isunordered_test_data): New variable.
5780         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
5781
5782 2013-05-14  David S. Miller  <davem@davemloft.net>
5783
5784         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5785
5786 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
5787
5788         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
5789
5790         * math/libm-test.inc (struct test_fF_f1_data): Change type of
5791         extra_test to int.
5792         (struct test_f_i_data): Change type of max_ulp to int.
5793
5794         * math/libm-test.inc (test_ffI_f1_data): New type.
5795         (RUN_TEST_LOOP_ffI_f1): New macro.
5796         (remquo_test_data): New variable.
5797         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
5798
5799         * setjmp/tst-setjmp-fp.c: New file.
5800         * setjmp/Makefile (tests): Add tst-setjmp-fp.
5801         (link-libm): New variable.
5802         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
5803
5804         * math/libm-test.inc (struct test_f_i_data): New type.
5805         (RUN_TEST_LOOP_f_i): New macro.
5806         (RUN_TEST_LOOP_f_i_tg): Likewise.
5807         (fpclassify_test_data): New variable.
5808         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
5809         (ilogb_test_data): New variable.
5810         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
5811
5812         * math/libm-test.inc (scalbln_test): Correct function name in END
5813         call.
5814
5815         * math/libm-test.inc (struct test_f_f1_data): Add comment.
5816         (RUN_TEST_LOOP_fI_f1): New macro.
5817         (frexp_test_data): New variable.
5818         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
5819
5820         * math/libm-test.inc (struct test_fF_f1_data): New type.
5821         (RUN_TEST_LOOP_fF_f1): New macro.
5822         (modf_test_data): New variable.
5823         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
5824
5825         * math/libm-test.inc (struct test_f_f1_data): New type.
5826         (RUN_TEST_LOOP_f_f1): New macro.
5827         (gamma_test_data): New variable.
5828         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
5829         (lgamma_test_data): New variable.
5830         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
5831
5832 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
5833
5834         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
5835         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
5836         (main): Comment "tls" pseudo-hwcap.
5837
5838 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
5839
5840         * math/libm-test.inc (struct test_fl_f_data): New type.
5841         (RUN_TEST_LOOP_fl_f): New variable.
5842         (scalbln_test_data): New variable.
5843         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
5844
5845         * math/libm-test.inc (struct test_fi_f_data): New type.
5846         (RUN_TEST_LOOP_fi_f): New macro.
5847         (ldexp_test_data): New variable.
5848         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
5849         (scalbn_test_data): New variable.
5850         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
5851
5852         * math/libm-test.inc (struct test_c_f_data): New type.
5853         (RUN_TEST_LOOP_c_f): New macro.
5854         (cabs_test_data): New variable.
5855         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
5856         (carg_test_data): New variable.
5857         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
5858         (cimag_test_data): New variable.
5859         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
5860         (creal_test_data): New variable.
5861         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
5862
5863         * math/libm-test.inc (struct test_if_f_data): New type.
5864         (RUN_TEST_LOOP_if_f): New macro.
5865         (jn_test_data): New variable.
5866         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
5867         (yn_test_data): New variable.
5868         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
5869
5870         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
5871
5872 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5873
5874         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
5875         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
5876
5877 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
5878
5879         * benchtests/Makefile (CPPFLAGS-nonlib): Add
5880         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
5881         (bench-deps): Add bench-timing.h.
5882         * benchtests-bench-skeleton.c: Include bench-timing.h.
5883         (main): Use TIMING_* macros instead of clock_gettime.
5884         * benchtests/bench-timing.h: New file.
5885
5886         [BZ #14582]
5887         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
5888         Renamed from _LIB_VERSION.
5889         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
5890
5891 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
5892
5893         * math/libm-test.inc (struct test_fff_f_data): New type.
5894         (RUN_TEST_LOOP_fff_f): New macro.
5895         (fma_test_data): New variable.
5896         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
5897         (fma_towardzero_test_data): New variable.
5898         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
5899         (fma_downward_test_data): New variable.
5900         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
5901         (fma_upward_test_data): New variable.
5902         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
5903
5904         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
5905         (struct test_c_c_data): New type.
5906         (RUN_TEST_LOOP_c_c): New macro.
5907         (cacos_test_data): New variable.
5908         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
5909         (cacosh_test_data): New variable.
5910         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
5911         (casin_test_data): New variable.
5912         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
5913         (casinh_test_data): New variable.
5914         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
5915         (catan_test_data): New variable.
5916         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
5917         (catanh_test_data): New variable.
5918         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
5919         (ccos_test_data): New variable.
5920         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
5921         (ccosh_test_data): New variable.
5922         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
5923         (cexp_test_data): New variable.
5924         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
5925         (clog_test_data): New variable.
5926         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
5927         (clog10_test_data): New variable.
5928         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
5929         (conj_test_data): New variable.
5930         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
5931         (cproj_test_data): New variable.
5932         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
5933         (csin_test_data): New variable.
5934         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
5935         (csinh_test_data): New variable.
5936         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
5937         (csqrt_test_data): New variable.
5938         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
5939         (ctan_test_data): New variable.
5940         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
5941         (ctan_tonearest_test_data): New variable.
5942         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
5943         (ctan_towardzero_test_data): New variable.
5944         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
5945         (ctan_downward_test_data): New variable.
5946         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
5947         (ctan_upward_test_data): New variable.
5948         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
5949         (ctanh_test_data): New variable.
5950         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
5951         (ctanh_tonearest_test_data): New variable.
5952         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
5953         (ctanh_towardzero_test_data): New variable.
5954         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
5955         (ctanh_downward_test_data): New variable.
5956         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
5957         (ctanh_upward_test_data): New variable.
5958         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
5959         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
5960         of BUILD_COMPLEX.
5961
5962         * math/libm-test.inc (struct test_ff_f_data): New type.
5963         (struct test_ff_f_data_nexttoward): Likewise.
5964         (RUN_TEST_LOOP_2_f): New macro.
5965         (RUN_TEST_LOOP_ff_f): Likewise.
5966         (atan2_test_data): New variable.
5967         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
5968         (copysign_test_data): New variable.
5969         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
5970         (fdim_test_data): New variable.
5971         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
5972         (fmax_test_data): New variable.
5973         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
5974         (fmin_test_data): New variable.
5975         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
5976         (fmod_test_data): New variable.
5977         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
5978         (hypot_test_data): New variable.
5979         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
5980         (nextafter_test_data): New variable.
5981         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
5982         (nexttoward_test_data): New variable.
5983         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
5984         (pow_test_data): New variable.
5985         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
5986         (pow_tonearest_test_data): New variable.
5987         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
5988         (pow_towardzero_test_data): New variable.
5989         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
5990         (pow_downward_test_data): New variable.
5991         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
5992         (pow_upward_test_data): New variable.
5993         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
5994         (remainder_test_data): New variable.
5995         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
5996         (scalb_test_data): New variable.
5997         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
5998         * sysdeps/i386/fpu/libm-test-ulps: Update.
5999
6000 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
6001
6002         * math/libm-test.inc (fma_test): Use max_value instead of local
6003         variable fltmax.
6004         (nextafter_test): Likewise.
6005
6006         * math/libm-test.inc (acos_towardzero_test_data): New variable.
6007         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6008         (acos_downward_test_data): New variable.
6009         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6010         (acos_upward_test_data): New variable.
6011         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6012         (acosh_test_data): New variable.
6013         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
6014         (asin_test_data): New variable.
6015         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
6016         (asin_tonearest_test_data): New variable.
6017         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6018         (asin_towardzero_test_data): New variable.
6019         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6020         (asin_downward_test_data): New variable.
6021         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6022         (asin_upward_test_data): New variable.
6023         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6024         (asinh_test_data): New variable.
6025         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
6026         (atan_test_data): New variable.
6027         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
6028         (atanh_test_data): New variable.
6029         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
6030         (cbrt_test_data): New variable.
6031         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
6032         (ceil_test_data): New variable.
6033         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
6034         (cos_test_data): New variable.
6035         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
6036         (cos_tonearest_test_data): New variable.
6037         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6038         (cos_towardzero_test_data): New variable.
6039         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6040         (cos_downward_test_data): New variable.
6041         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6042         (cos_upward_test_data): New variable.
6043         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6044         (cosh_test_data): New variable.
6045         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
6046         (cosh_tonearest_test_data): New variable.
6047         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6048         (cosh_towardzero_test_data): New variable.
6049         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6050         (cosh_downward_test_data): New variable.
6051         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6052         (cosh_upward_test_data): New variable.
6053         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6054         (erf_test_data): New variable.
6055         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
6056         (erfc_test_data): New variable.
6057         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
6058         (exp_test_data): New variable.
6059         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
6060         (exp_tonearest_test_data): New variable.
6061         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6062         (exp_towardzero_test_data): New variable.
6063         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6064         (exp_downward_test_data): New variable.
6065         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6066         (exp_upward_test_data): New variable.
6067         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6068         (exp10_test_data): New variable.
6069         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
6070         (exp2_test_data): New variable.
6071         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
6072         (expm1_test_data): New variable.
6073         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
6074         (fabs_test_data): New variable.
6075         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
6076         (floor_test_data): New variable.
6077         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
6078         (j0_test_data): New variable.
6079         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
6080         (j1_test_data): New variable.
6081         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
6082         (log_test_data): New variable.
6083         (log_test): Run tests with RUN_TEST_LOOP_f_f.
6084         (log10_test_data): New variable.
6085         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
6086         (log1p_test_data): New variable.
6087         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
6088         (log2_test_data): New variable.
6089         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
6090         (logb_test_data): New variable.
6091         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
6092         (logb_downward_test_data): New variable.
6093         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6094         (nearbyint_test_data): New variable.
6095         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
6096         (rint_test_data): New variable.
6097         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
6098         (rint_tonearest_test_data): New variable.
6099         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6100         (rint_towardzero_test_data): New variable.
6101         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6102         (rint_downward_test_data): New variable.
6103         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6104         (rint_upward_test_data): New variable.
6105         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6106         (round_test_data): New variable.
6107         (round_test): Run tests with RUN_TEST_LOOP_f_f.
6108         (sin_test_data): New variable.
6109         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
6110         (sin_tonearest_test_data): New variable.
6111         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6112         (sin_towardzero_test_data): New variable.
6113         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6114         (sin_downward_test_data): New variable.
6115         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6116         (sin_upward_test_data): New variable.
6117         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6118         (sinh_test_data): New variable.
6119         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
6120         (sinh_tonearest_test_data): New variable.
6121         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6122         (sinh_towardzero_test_data): New variable.
6123         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6124         (sinh_downward_test_data): New variable.
6125         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6126         (sinh_upward_test_data): New variable.
6127         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6128         (sqrt_test_data): New variable.
6129         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
6130         (tan_test_data): New variable.
6131         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
6132         (tan_tonearest_test_data): New variable.
6133         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6134         (tan_towardzero_test_data): New variable.
6135         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6136         (tan_downward_test_data): New variable.
6137         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6138         (tan_upward_test_data): New variable.
6139         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6140         (tanh_test_data): New variable.
6141         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
6142         (tgamma_test_data): New variable.
6143         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
6144         (trunc_test_data): New variable.
6145         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
6146         (y0_test_data): New variable.
6147         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
6148         (y1_test_data): New variable.
6149         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
6150         (significand_test_data): New variable.
6151         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
6152
6153 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
6154
6155         [BZ #12387]
6156         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
6157
6158 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6159
6160         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
6161
6162 2013-05-10  Andreas Jaeger  <aj@suse.de>
6163
6164         [BZ #15448]
6165         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
6166         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
6167
6168 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
6169
6170         * math/gen-libm-test.pl (adjust_arg): New function.
6171         (special_functions): Handle generating output in both functions
6172         and arrays.
6173         (parse_args): Likewise.
6174         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
6175         $in_func argument to parse_args.
6176         * math/libm-test.inc (struct test_f_f_data): New type.
6177         (IF_ROUND_INIT_): New macro.
6178         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
6179         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
6180         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
6181         (IF_ROUND_INIT_FE_UPWARD): Likewise.
6182         (ROUND_RESTORE_): Likewise.
6183         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
6184         (ROUND_RESTORE_FE_TONEAREST): Likewise.
6185         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
6186         (ROUND_RESTORE_FE_UPWARD): Likewise.
6187         (RUN_TEST_LOOP_f_f): New macro.
6188         (acos_test_data): New variable.
6189         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
6190         (acos_tonearest_test_data): New variable.
6191         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6192
6193 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6194
6195         * benchtests/bench-skeleton.c (startup): Fix coding style.
6196
6197 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
6198
6199         [BZ #6809]
6200         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
6201         negative infinity argument.
6202         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
6203         negative infinity argument.
6204         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
6205         negative infinity argument.
6206         * math/libm-test.inc (tgamma_test): Expect errno to be set for
6207         domain errors.
6208
6209 2013-05-10  Florian Weimer  <fweimer@redhat.com>
6210
6211         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
6212         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
6213         * iconv/iconv_prog.c (main): Likewise.
6214         * locale/programs/charmap-dir.c (charmap_readdir)
6215         (fopen_uncompressed): Likewise.
6216         * locale/programs/locfile.c (siblings_uncached)
6217         (write_locale_data): Use lstat64 instead of lstat.
6218         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
6219         stat.
6220
6221 2013-05-10  Andreas Jaeger  <aj@suse.de>
6222
6223         [BZ #15395]
6224         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
6225         localization.
6226         Include <locale.h>.
6227
6228 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
6229
6230         * elf/dl-close.c (_dl_close_worker): Add comments.
6231
6232 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
6233
6234         [BZ #15359]
6235         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
6236         high part of pi/2.
6237         (__ieee754_rem_pio2l): Update comments.
6238
6239         [BZ #15429]
6240         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
6241         high part of pi/2.
6242         (__ieee754_rem_pio2l): Update comments.
6243
6244         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
6245         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
6246
6247         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
6248         M_PI_4l.
6249
6250         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
6251         (M_PI_34_LOG10El): Likewise.
6252         (M_PI2_LOG10El): Likewise.
6253         (M_PI4_LOG10El): Likewise.
6254         (M_PI_LOG10El): Likewise.
6255
6256 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6257
6258         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6259
6260 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
6261
6262         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
6263         (MINUS_ZERO_INIT): Likewise.
6264         (PLUS_INFTY_INIT): Likewise.
6265         (MINUS_INFTY_INIT): Likewise.
6266         (QNAN_VALUE_INIT): Likewise.
6267         (MAX_VALUE_INIT): Likewise.
6268         (MIN_VALUE_INIT): Likewise.
6269         (MIN_SUBNORM_VALUE_INIT): Likewise.
6270         (plus_zero): Initialize with PLUS_ZERO_INIT.
6271         (minus_zero): Initialize with MINUS_ZERO_INIT.
6272         (plus_infty): Initialize with PLUS_INFTY_INIT.
6273         (minus_infty): Initialize with MINUS_INFTY_INIT.
6274         (qnan_value): Initialize with QNAN_VALUE_INIT.
6275         (max_value): Initialize with MAX_VALUE_INIT.
6276         (min_value): Initialize with MIN_VALUE_INIT.
6277         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
6278
6279         * math/libm-test.inc (RUN_TEST_if_f): New macro.
6280         (jn_test): Use TEST_if_f instead of TEST_ff_f.
6281         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
6282         (yn_test): Use TEST_if_f instead of TEST_ff_f.
6283
6284         * math/libm-test.inc (RUN_TEST_f_f): New macro.
6285         (RUN_TEST_2_f): Likewise.
6286         (RUN_TEST_ff_f): Likewise.
6287         (RUN_TEST_fi_f): Likewise.
6288         (RUN_TEST_fl_f): Likewise.
6289         (RUN_TEST_fff_f): Likewise.
6290         (RUN_TEST_c_f): Likewise.
6291         (RUN_TEST_f_f1): Likewise.
6292         (RUN_TEST_fF_f1): Likewise.
6293         (RUN_TEST_fI_f1): Likewise.
6294         (RUN_TEST_ffI_f1): Likewise.
6295         (RUN_TEST_c_c): Likewise.
6296         (RUN_TEST_cc_c): Likewise.
6297         (RUN_TEST_f_i): Likewise.
6298         (RUN_TEST_f_i_tg): Likewise.
6299         (RUN_TEST_ff_i_tg): Likewise.
6300         (RUN_TEST_f_b): Likewise.
6301         (RUN_TEST_f_b_tg): Likewise.
6302         (RUN_TEST_f_l): Likewise.
6303         (RUN_TEST_f_L): Likewise.
6304         (RUN_TEST_sincos): Likewise.
6305         * math/gen-libm-test.pl (new_test): Take new argument to indicate
6306         whether to show exceptions.  Do not include ");\n" in return
6307         value.
6308         (special_functions): Output call to RUN_TEST_sincos instead of
6309         check_float calls.  Update calls to new_test.
6310         (parse_args): Output call to single RUN_TEST_* macro instead of
6311         check_* calls and other assignments.  Update calls to new_test.
6312
6313         [BZ #2546]
6314         [BZ #2560]
6315         [BZ #5159]
6316         [BZ #15426]
6317         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
6318         input to result for tgamma overflow.
6319         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
6320         (gamma_coeff): New variable.
6321         (NCOEFF): New macro.
6322         (gamma_positive): New function.
6323         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
6324         underflow here.  Use gamma_positive instead of exp (lgamma) for
6325         other arguments.
6326         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
6327         (gamma_coeff): New variable.
6328         (NCOEFF): New macro.
6329         (gammaf_positive): New function.
6330         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
6331         underflow here.  Use gamma_positive instead of exp (lgamma) for
6332         other arguments.
6333         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
6334         (gamma_coeff): New variable.
6335         (NCOEFF): New macro.
6336         (gammal_positive): New function.
6337         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
6338         underflow here.  Use gamma_positive instead of exp (lgamma) for
6339         other arguments.
6340         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
6341         (gamma_coeff): New variable.
6342         (NCOEFF): New macro.
6343         (gammal_positive): New function.
6344         (__ieee754_gammal_r): Handle positive infinity, overflow and
6345         underflow here.  Handle NaN the same as positive infinity.  Remove
6346         check x < 0xffffffff for negative integers.  Use gamma_positive
6347         instead of exp (lgamma) for other arguments.
6348         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
6349         (gamma_coeff): New variable.
6350         (NCOEFF): New macro.
6351         (gammal_positive): New function.
6352         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
6353         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
6354         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6355         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
6356         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
6357         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6358         * sysdeps/generic/math_private.h (__gamma_productf): New
6359         prototype.
6360         (__gamma_product): Likewise.
6361         (__gamma_productl): Likewise.
6362         * math/Makefile (libm-calls): Add gamma_product.
6363         * math/libm-test.inc (tgamma_test): Add more tests.
6364         * sysdeps/i386/fpu/libm-test-ulps: Update.
6365         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6366
6367 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
6368
6369         * benchtests/bench-skeleton.c (main): Preheat CPU.
6370
6371 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
6372
6373         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
6374
6375 2013-05-07  Roland McGrath  <roland@hack.frob.com>
6376
6377         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
6378         and _dl_skip_args_internal.
6379
6380 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
6381
6382         * manual/message.texi (Message Translation): Talk about users.
6383         Message to key mapping impacts design.
6384
6385 2013-05-06  Roland McGrath  <roland@hack.frob.com>
6386
6387         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
6388
6389         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
6390
6391         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
6392         * sysdeps/wordsize-64/glob64.c: ... here.
6393
6394         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
6395         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
6396         New macros.
6397
6398         * debug/getlogin_r_chk.c: Moved to ...
6399         * login/getlogin_r_chk.c: ... here.
6400         * debug/Makefile (routines): Move getlogin_r_chk to ...
6401         * login/Makefile (routines): ... here.
6402         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
6403         * login/Versions (libc: GLIBC_2.4): ... here.
6404
6405         * io/poll.c (__poll): Renamed from poll.
6406         Add libc_hidden_def.
6407         (poll): Define as weak alias.
6408
6409         * debug/ptsname_r_chk.c: Moved to ...
6410         * login/ptsname_r_chk.c: ... here.
6411         * debug/Makefile (routines): Move ptsname_r_chk to ...
6412         * login/Makefile (routines): ... here.
6413         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
6414         * login/Versions (libc: GLIBC_2.4): ... here.
6415
6416         * posix/getlogin.c: Moved to ...
6417         * login/getlogin.c: ... here.
6418         * posix/getlogin_r.c: Moved to ...
6419         * login/getlogin_r.c: ... here.
6420         * posix/getlogin_r.c: Moved to ...
6421         * login/getlogin_r.c: ... here.
6422         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
6423         * login/Makefile (routines): ... here.
6424         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
6425         * login/Versions (libc: GLIBC_2.0): ... here.
6426
6427         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
6428         (setrlimit): Define as weak alias.
6429
6430         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
6431         Call __ names for open, ftruncate, and close.
6432         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
6433         (truncate): Define as weak alias.
6434
6435 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
6436
6437         * math/gen-libm-test.pl (parse_args): Initialize x before each
6438         test of frexp, modf and remquo.
6439
6440         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
6441         test signgam value.
6442
6443 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6444
6445         [BZ #15418]
6446         [BZ #15419]
6447         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
6448         internal tests.
6449         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
6450
6451 2013-05-06  Roland McGrath  <roland@hack.frob.com>
6452
6453         * elf/dl-writev.h: New file.
6454         * elf/dl-misc.c: Include it.
6455         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
6456         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
6457
6458 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
6459
6460         * math/libm-test.inc (noXFails): Remove variable.
6461         (noXPasses): Likewise.
6462         (BUILD_COMPLEX_INT): Remove macro.
6463         (print_screen): Remove xfail argument.
6464         (print_screen_max_error): Likewise.
6465         (update_stats): Likewise.
6466         (print_max_error): Likewise.  Update calls to other affected
6467         functions.
6468         (print_complex_max_error): Likewise.
6469         (test_single_exception): Update calls to print_screen.
6470         (test_single_errno): Likewise.
6471         (check_float_internal): Remove xfail argument.  Update calls to
6472         other affected functions.
6473         (check_float): Likewise.
6474         (check_complex): Likewise.
6475         (check_int): Likewise.
6476         (check_long): Likewise.
6477         (check_bool): Likewise.
6478         (check_longlong): Likewise.
6479         (main): Don't print noXFails and noXPasses.
6480         * math/gen-libm-test.pl (top level): Don't mention expected
6481         failure handling in comment.
6482         (new_test): Don't handle expected failures.
6483         (parse_args): Don't mention expected failure handling in comment.
6484         (generate_testfile): Don't handle expected failures.
6485         (parse_ulps): Likewise.
6486         (print_ulps_file): Likewise.
6487         (get_failure): Remove function.
6488         (output_test): Don't handle expected failures.
6489         * make/README.libm-test: Don't mention expected failure handling.
6490
6491         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
6492         (minus_zero): Likewise.
6493         (plus_infty): Likewise.
6494         (minus_infty): Likewise.
6495         (qnan_value): Likewise.
6496         (max_value): Likewise.
6497         (min_value): Likewise.
6498         (min_subnorm_value): Likewise.
6499         (initialize): Do not initialize those variables dynamically.
6500
6501 2013-05-03  Roland McGrath  <roland@hack.frob.com>
6502
6503         * io/open.c (__open_2): Moved to ...
6504         * io/open_2.c: ... this new file.
6505         * io/open64.c (__open64_2): Moved to ...
6506         * io/open64_2.c: ... this new file.
6507         * io/openat.c (__openat_2): Moved to ...
6508         * io/openat_2.c: ... this new file.
6509         * io/openat64.c (__openat64_2): Moved to ...
6510         * io/openat64_2.c: ... this new file.
6511         * io/Makefile (routines): Add them.
6512         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
6513         * sysdeps/unix/sysv/linux/open_2.c: File removed.
6514         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
6515         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
6516         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
6517         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
6518         (__openat64): Add hidden_ver.
6519         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
6520         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
6521
6522         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
6523         Separately conditionalize setting of GLRO(dl_sysinfo) so
6524         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
6525         as well, but the actual setting is only under [NEED_DL_SYSINFO].
6526
6527 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6528
6529         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
6530         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
6531         definition.
6532         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
6533         * sysdeps/unix/sysv/linux/powerpc/init-first.c
6534         (_libc_vdso_platform_setup): Add __vdso_time initialization.
6535         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
6536         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
6537
6538 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
6539
6540         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
6541         test signgam value.
6542
6543         * math/libm-test.inc (hypot_test): Do not use
6544         IGNORE_ZERO_INF_SIGN.
6545
6546 2013-05-03  Andreas Jaeger  <aj@suse.de>
6547
6548         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
6549         Linux 3.9.
6550         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
6551         (PF_MAX): Adjust for VSOCK change.
6552
6553 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6554
6555         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6556
6557 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
6558
6559         [BZ #15264]
6560         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
6561         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
6562         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
6563
6564 2013-05-02  David S. Miller  <davem@davemloft.net>
6565
6566         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6567
6568 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
6569
6570         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
6571
6572 2013-05-01  Roland McGrath  <roland@hack.frob.com>
6573
6574         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
6575
6576 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
6577
6578         [BZ #14952]
6579         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
6580         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
6581         Use __attribute__ ((__gnu_inline__)).
6582         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
6583         Don't use __attribute__ ((__gnu_inline__)).
6584
6585 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
6586
6587         [BZ #15423]
6588         * math/s_catan.c (__catan): Handle small real or imaginary part of
6589         input specially to avoid spurious underflow.
6590         * math/s_catanf.c (__catanf): Likewise.
6591         * math/s_catanh.c (__catanh): Likewise.
6592         * math/s_catanhf.c (__catanhf): Likewise.
6593         * math/s_catanhl.c (__catanhl): Likewise.
6594         * math/s_catanl.c (__catanl): Likewise.
6595         * math/libm-test.inc (catan_test): Add more tests.
6596         (catanh_test): Likewise.
6597         * sysdeps/i386/fpu/libm-test-ulps: Update.
6598         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6599
6600 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6601
6602         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6603
6604 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
6605
6606         [BZ #15416]
6607         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
6608         accurately for denominator in atan2.
6609         * math/s_catanf.c (__catanf): Likewise.
6610         * math/s_catanh.c (__catanh): Likewise.
6611         * math/s_catanhf.c (__catanhf): Likewise.
6612         * math/s_catanhl.c (__catanhl): Likewise.
6613         * math/s_catanl.c (__catanl): Likewise.
6614         * math/libm-test.inc (catan_test): Add more tests.
6615         (catanh_test): Likewise.
6616         * sysdeps/i386/fpu/libm-test-ulps: Update.
6617         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6618
6619 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
6620
6621         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
6622
6623         * benchtests/Makefile (bench): Remove slow benchmarks.
6624         * benchtests/atan-inputs: Add slow benchmark inputs.
6625         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
6626         (BENCH_FUNC): Accept variant offset.
6627         (VARIANT): Define.
6628         * benchtests/bench-skeleton.c (main): Run benchmark for each
6629         variant.
6630         * benchtests/cos-inputs: Add slow benchmark inputs.
6631         * benchtests/exp-inputs: Likewise.
6632         * benchtests/pow-inputs: Likewise.
6633         * benchtests/sin-inputs: Likewise.
6634         * benchtests/slowatan-inputs: Remove.
6635         * benchtests/slowatan.c: Remove.
6636         * benchtests/slowcos-inputs: Remove.
6637         * benchtests/slowcos.c: Remove.
6638         * benchtests/slowexp-inputs: Remove.
6639         * benchtests/slowexp.c: Remove.
6640         * benchtests/slowpow-inputs: Remove.
6641         * benchtests/slowpow.c: Remove.
6642         * benchtests/slowsin-inputs: Remove.
6643         * benchtests/slowsin.c: Remove.
6644         * benchtests/slowtan-inputs: Remove.
6645         * benchtests/slowtan.c: Remove.
6646         * benchtests/tan-inputs: Add slow benchmark inputs.
6647         * scripts/bench.pl: Parse comments and directives.
6648
6649         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
6650         in CPPFLAGS.
6651         ($(objpfx)bench-%.c): Remove *-ITER.
6652         * benchtests/bench-modf.c: Remove definition of ITER.
6653         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
6654         (main): Loop for DURATION seconds instead of fixed number of
6655         iterations.
6656         * scripts/bench.pl: Don't expect iterations in parameters.
6657
6658 2013-04-29  Roland McGrath  <roland@hack.frob.com>
6659
6660         * io/fchdir.c (__fchdir): Renamed from fchdir.
6661         (fchdir): Define as weak alias.
6662
6663 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
6664
6665         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
6666         (ERRNO_EDOM): Likewise.
6667         (ERRNO_ERANGE): Likewise.
6668         (noErrnoTests): New variable.
6669         (init_max_error): Set errno to 0.
6670         (test_single_errno): New function.
6671         (test_errno): Likewise.
6672         (check_float_internal): Call test_errno.  Set errno to 0.
6673         (check_complex): Refer to errno tests in comment.
6674         (check_int): Call test_errno.  Set errno to 0.
6675         (check_long): Likewise.
6676         (check_bool): Likewise.
6677         (check_longlong): Likewise.
6678         (cos_test): Use ERRNO_* flags for errno tests instead of
6679         check_int.
6680         (expm1_test): Likewise.
6681         (fmod_test): Likewise.
6682         (ilogb_test): Likewise.
6683         (lgamma_test): Likewise.
6684         (pow_test): Likewise.
6685         (remainder_test): Likewise.
6686         (sin_test): Likewise.
6687         (tan_test): Likewise.
6688         (yn_test): Likewise.
6689         (initialize): Set errno to 0.
6690         (main): Print number of errno tests.
6691         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
6692
6693 2013-04-29  Andreas Jaeger  <aj@suse.de>
6694
6695         [BZ #15084]
6696         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
6697         and RES_USEVC.
6698
6699         [BZ #15085]
6700         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
6701         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
6702         unimplemented.
6703
6704         [BZ #15380]
6705         * stdlib/random.c (__initstate): Return NULL if
6706         __initstate fails.
6707
6708         [BZ #15086]
6709         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
6710         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
6711         RES_SNGLKUPREOP.
6712
6713 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6714
6715         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6716
6717 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
6718
6719         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
6720         of individual tests.
6721         (casin_test): Likewise.
6722         (casinh_test): Likewise.
6723
6724 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
6725
6726         [BZ #15409]
6727         * math/s_catan.c (__catan): Handle arguments with large real or
6728         imaginary part separately without squaring.
6729         * math/s_catanf.c (__catanf): Likewise.
6730         * math/s_catanh.c (__catanh): Likewise.
6731         * math/s_catanhf.c (__catanhf): Likewise.
6732         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
6733         and redefine.
6734         (__catanhl): Handle arguments with large real or imaginary part
6735         separately without squaring.
6736         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
6737         and redefine.
6738         (__catanl): Handle arguments with large real or imaginary part
6739         separately without squaring.
6740         * math/libm-test.inc (catan_test): Add more tests.
6741         (catanh_test): Likewise.
6742         * sysdeps/i386/fpu/libm-test-ulps: Update.
6743         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6744
6745 2013-04-27  Andreas Jaeger  <aj@suse.de>
6746
6747         [BZ #15007]
6748         * stdlib/stdlib.h: Update guards for qecvt.
6749         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
6750         <stdlib.h>.
6751
6752 2013-04-27  Allan McRae  <allan@archlinux.org>
6753
6754         * sysdeps/i386/fpu/libm-test-ulps: Update.
6755
6756 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
6757
6758         [BZ #15406]
6759         * math/s_catan.c: Include <float.h>.
6760         (__catan): Ensure underflow exception occurs for underflowed
6761         result.
6762         * math/s_catanf.c: Include <float.h>.
6763         (__catanf): Ensure underflow exception occurs for underflowed
6764         result.
6765         * math/s_catanh.c: Include <float.h>.
6766         (__catanh): Ensure underflow exception occurs for underflowed
6767         result.
6768         * math/s_catanhf.c: Include <float.h>.
6769         (__catanhf): Ensure underflow exception occurs for underflowed
6770         result.
6771         * math/s_catanhl.c: Include <float.h>.
6772         (__catanhl): Ensure underflow exception occurs for underflowed
6773         result.
6774         * math/s_catanl.c: Include <float.h>.
6775         (__catanl): Ensure underflow exception occurs for underflowed
6776         result.
6777         * math/libm-test.inc (catan_test): Add more tests.
6778         (catanh_test): Likewise.
6779
6780         [BZ #15405]
6781         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
6782         underflowed result.
6783         * math/s_ccoshf.c (__ccoshf): Likewise.
6784         * math/s_ccoshl.c (__ccoshl): Likewise.
6785         * math/s_csin.c (__csin): Likewise.
6786         * math/s_csinf.c (__csinf): Likewise.
6787         * math/s_csinh.c (__csinh): Likewise.
6788         * math/s_csinhf.c (__csinhf): Likewise.
6789         * math/s_csinhl.c (__csinhl): Likewise.
6790         * math/s_csinl.c (__csinl): Likewise.
6791         * math/libm-test.inc (ccos_test): Add more tests.
6792         (ccosh_test): Likewise.
6793         (csin_test): Likewise.
6794         (csinh_test): Likewise.
6795
6796 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6797
6798         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
6799         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
6800         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
6801         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
6802         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
6803         powerpc/power5+/fpu folders.
6804         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
6805
6806
6807 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
6808
6809         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6810
6811 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
6812
6813         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
6814         additions to variable.
6815         [$(config-machine) = x86_64] (modules-names): Likewise.
6816         ($(objpfx)tst-audit3): Remove dependency.
6817         ($(objpfx)tst-audit3.out): Likewise.
6818         ($(objpfx)tst-audit4): Likewise.
6819         ($(objpfx)tst-audit4.out): Likewise.
6820         ($(objpfx)tst-audit5): Likewise.
6821         ($(objpfx)tst-audit5.out): Likewise.
6822         ($(objpfx)tst-audit6): Likewise.
6823         ($(objpfx)tst-audit6.out): Likewise.
6824         ($(objpfx)tst-audit7): Likewise.
6825         ($(objpfx)tst-audit7.out): Likewise.
6826         (tst-audit3-ENV): Remove variable.
6827         (tst-audit4-ENV): Likewise.
6828         (tst-audit5-ENV): Likewise.
6829         (tst-audit6-ENV): Likewise.
6830         (tst-audit7-ENV): Likewise.
6831         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
6832         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
6833         addition to variable.
6834         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
6835         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
6836         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
6837         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
6838         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
6839         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
6840         tst-audit3, tst-audit4 and tst-audit5.
6841         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
6842         tst-audit6 and tst-audit7.
6843         [$(subdir) = elf] (modules-names): Add audit modules for those
6844         tests.
6845         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
6846         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
6847         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
6848         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
6849         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
6850         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
6851         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
6852         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
6853         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
6854         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
6855         [$(subdir) = elf] (tst-audit3-ENV): New variable.
6856         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
6857         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
6858         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
6859         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
6860         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
6861         Likewise.
6862         [$(subdir) = elf && $(config-cflags-avx) = yes]
6863         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
6864         [$(subdir) = elf && $(config-cflags-avx) = yes]
6865         (CFLAGS-tst-auditmod4a.c): Likewise.
6866         [$(subdir) = elf && $(config-cflags-avx) = yes]
6867         (CFLAGS-tst-auditmod4b.c): Likewise.
6868         [$(subdir) = elf && $(config-cflags-avx) = yes]
6869         (CFLAGS-tst-auditmod6b.c): Likewise.
6870         [$(subdir) = elf && $(config-cflags-avx) = yes]
6871         (CFLAGS-tst-auditmod6c.c): Likewise.
6872         [$(subdir) = elf && $(config-cflags-avx) = yes]
6873         (CFLAGS-tst-auditmod7b.c): Likewise.
6874         * elf/tst-audit3.c: Move to ...
6875         * sysdeps/x86_64/tst-audit3.c: ... here.
6876         * elf/tst-audit4.c: Move to ...
6877         * sysdeps/x86_64/tst-audit4.c: ... here.
6878         * elf/tst-audit5.c: Move to ...
6879         * sysdeps/x86_64/tst-audit5.c: ... here.
6880         * elf/tst-audit6.c: Move to ...
6881         * sysdeps/x86_64/tst-audit6.c: ... here.
6882         * elf/tst-audit7.c: Move to ...
6883         * sysdeps/x86_64/tst-audit7.c: ... here.
6884         * elf/tst-auditmod3a.c: Move to ...
6885         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
6886         * elf/tst-auditmod3b.c: Move to ...
6887         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
6888         * elf/tst-auditmod4a.c: Move to ...
6889         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
6890         * elf/tst-auditmod4b.c: Move to ...
6891         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
6892         * elf/tst-auditmod5a.c: Move to ...
6893         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
6894         * elf/tst-auditmod5b.c: Move to ...
6895         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
6896         * elf/tst-auditmod6a.c: Move to ...
6897         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
6898         * elf/tst-auditmod6b.c: Move to ...
6899         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
6900         * elf/tst-auditmod6c.c: Move to ...
6901         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
6902         * elf/tst-auditmod7a.c: Move to ...
6903         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
6904         * elf/tst-auditmod7b.c: Move to ...
6905         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
6906
6907 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
6908
6909         [BZ #15366]
6910         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
6911         define unconditionally.
6912         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
6913         define unconditionally.
6914         (INT8_C, INT16_C, etc.): Likewise.
6915
6916 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
6917
6918         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
6919         __ehdr_start with hidden visibility.
6920
6921         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
6922
6923 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
6924
6925         * math/libm-test.inc (cos_test): Use accurate hex constants.
6926         (sincost_test): Likewise.
6927
6928 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
6929
6930         * math/libm-test.inc (catan_test): Add more tests.
6931         (catanh_test): Likewise.
6932
6933         * math/s_catanf.c (__catanf): Use suffixed floating-point
6934         constants.
6935         * math/s_catanhf.c (__catanhf): Likewise.
6936         * math/s_catanhl.c (__catanhl): Likewise.
6937         * math/s_catanl.c (__catanl): Likewise.
6938
6939         [BZ #15394]
6940         * math/s_catan.c (__catan): Calculate imaginary part of result
6941         with log1p not log unless computing log of number close to 0.
6942         * math/s_catanf.c (__catanf): Likewise.
6943         * math/s_catanl.c (__catanl): Likewise.
6944         * math/s_catanh.c (__catanh): Calculate real part of result with
6945         log1p not log unless computing log of number close to 0.
6946         * math/s_catanhf.c (__catanhf): Likewise.
6947         * math/s_catanhl.c (__catanhl): Likewise.
6948         * math/libm-test.inc (catan_test): Add more tests.
6949         (catanh_test): Likewise.
6950         * sysdeps/i386/fpu/libm-test-ulps: Update.
6951         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6952
6953 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6954
6955         * benchtests/Makefile: Mention files in which fast and slow
6956         paths of math functions are implemented.
6957
6958 2013-04-23  Roland McGrath  <roland@hack.frob.com>
6959
6960         * sysdeps/posix/timespec_get.c: New file.
6961
6962 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6963
6964         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
6965         POWER.
6966         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
6967         for POWER.
6968         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
6969         powerpc/power5/fpu folders.
6970         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
6971         * benchtests/Makefile: Add modf testcase.
6972         * benchtests/bench-modf.c: New file: Benchmark test for mo
6973
6974 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
6975
6976         [BZ #14888]
6977         * time/Makefile (tests): Add tst-strptime-whitespace.
6978         * time/strptime_l.c (get_number): Use ISSPACE.
6979         (__strptime_internal): Likewise.
6980         * time/tst-strptime-whitespace.c: New test case.
6981
6982 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
6983
6984         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
6985         member.
6986         (_nss_files_init): Set it here.
6987
6988 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
6989
6990         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
6991         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
6992         unsigned.
6993
6994 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
6995
6996         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
6997
6998 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
6999
7000         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
7001         size just once.
7002
7003 2013-04-21  David S. Miller  <davem@davemloft.net>
7004
7005         * po/ru.po: Update Russion translation from translation project.
7006
7007 2013-04-17  Adam Conrad  <adconrad@0c3.net>
7008
7009         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
7010         and setfsgid.
7011
7012 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
7013
7014         * configure.in: Remove i386 configure warning. Remove i386 case.
7015         * configure: Regenerate.
7016         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
7017         Add example to error message.
7018         * sysdeps/i386/configure: Regenerate.
7019
7020 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
7021
7022         * benchtests/Makefile (bench): Add cos, tan, slowcos and
7023         slowtan.
7024         * benchtests/cos-inputs: New file.
7025         * benchtests/slowcos-inputs: New file.
7026         * benchtests/slowcos.c: New file.
7027         * benchtests/slowtan-inputs: New file.
7028         * benchtests/slowtan.c: New file.
7029         * benchtests/tan-inputs: New file.
7030
7031 2013-04-16  Roland McGrath  <roland@hack.frob.com>
7032
7033         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
7034         considered kosher.
7035
7036 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
7037
7038         * benchtests/Makefile: Include cppflags-iterator.mk to add
7039         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
7040
7041         * Makefile.in (bench-clean): New target.
7042         * benchtests/Makefile (bench-clean): Likewise.
7043
7044 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
7045
7046         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
7047
7048 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
7049
7050         * stdio-common/tstdiomisc.c: Fix coding-style violation.
7051
7052 2013-04-15  Andreas Schwab  <schwab@suse.de>
7053
7054         * nscd/grpcache.c (cache_addgr): Properly check for short write.
7055         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7056         * nscd/pwdcache.c (cache_addpw): Likewise.
7057         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
7058         more than recsize.
7059
7060 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7061
7062         * benchtests/Makefile (bench): Write all output to
7063         bench-out.tmp together.
7064
7065 2013-04-15  Andreas Schwab  <schwab@suse.de>
7066
7067         * nscd/nscd.c (main): Don't fork again after closing files.
7068
7069 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7070
7071         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
7072
7073         * benchtests/Rules (bench-deps): Collect dependencies into a
7074         single variable.  Add Makefile to dependencies.
7075         ($(objpfx)bench-%.c): Depend on bench-deps.
7076
7077 2013-04-12  Roland McGrath  <roland@hack.frob.com>
7078             Xavier Roche  <roche+kml2@exalead.com>
7079
7080         [BZ #15361]
7081         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
7082         just that it's a file descriptor.
7083         * manual/llio.texi (Synchronizing AIO Operations): Update description
7084         for EBADF error from aio_fsync.
7085
7086 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
7087
7088         * Rules (bench): Move target definition...
7089         * benchtests/Makefile: ... here.
7090
7091 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
7092
7093         * math/libm-test.inc (cos_test): Fix PI/2 test.
7094         (sincos_test): Likewise.
7095         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
7096         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
7097
7098 2013-04-11  Andreas Schwab  <schwab@suse.de>
7099
7100         [BZ #13988]
7101         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
7102         accept exponent character only when digits were seen.
7103         * stdio-common/Makefile (tests): Add bug26.
7104         * stdio-common/bug26.c: New file.
7105
7106         [BZ #14293]
7107         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
7108         non-freeable.
7109
7110 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7111
7112         * Makeconfig (rtld-prefix): Define built linker prefix.
7113         * Rules (run-bench): Use it.
7114         * math/Makefile (run-regen-ulps): Likewise.
7115
7116         * Rules (bench): Remove eval.
7117
7118 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7119             Roland McGrath  <roland@hack.frob.com>
7120             Ondrej Bilka  <neleai@seznam.cz>
7121
7122         [BZ #15346]
7123         * time/getdate.c: Include ctype.h and alloca.h.
7124         (__getdate_r): Trim leading and trailing spaces of input.
7125         * time/tst-getdate.c (tests): Add tests with leading and
7126         trailing spaces.
7127
7128 2013-04-08  Roland McGrath  <roland@hack.frob.com>
7129
7130         [BZ #14280]
7131         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
7132         when computing value.
7133
7134 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
7135
7136         * math/README.libm-test (How can I generate "libm-test-ulps"?):
7137         Use testrun.sh to run libm tests.
7138
7139         [BZ #15309]
7140         * elf/dl-open.c (dl_open_worker): memset all of seen array.
7141
7142 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
7143
7144         [BZ #15264]
7145         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
7146
7147 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
7148
7149         * Makefile.in (regen-ulps): New target.
7150         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
7151         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
7152         [ifneq (no,$(PERL)] (regen-ulps): New target.
7153         [ifeq (no,$(PERL)] (regen-ulps): New target.
7154         * math/libm-test.inc (ulps_file_name): Define.
7155         (output_dir): New variable.
7156         (options): Add "output-dir" option.
7157         (parse_opt): Handle 'o' case.
7158         (main): If output_dir is non-NULL use it as a prefix
7159         otherwise use "".
7160         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
7161
7162 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
7163
7164         [BZ #10060, #10062]
7165         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
7166         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
7167         fail configure if __sync_val_compare_and_swap is not inlined.
7168         * sysdeps/i386/configure: Regenerate.
7169         * configure.in: Build for i686 when configured for i386.
7170         * configure: Regenerate.
7171         * README: Remove i386 reference.
7172
7173 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
7174
7175         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
7176         * sysdeps/s390/s390-64/sysdep.h: Likewise.
7177
7178 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
7179
7180         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
7181         (lmsnanval): New variables.
7182         (F): Add conversion tests.
7183         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
7184         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
7185
7186         * stdio-common/tstdiomisc.c (F): Properly collect individual
7187         tests' results.
7188
7189         [BZ #14686, #15336]
7190         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
7191         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7192         Instead, use input NaN values or generate a qNaN by arithmetic
7193         operation.  Also fix bugs to comply with the standard.
7194         * math/libm-test.inc (remainder_test): Add more tests.
7195
7196         [BZ #15335, #15342]
7197         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
7198         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
7199         input NaN values or generate a qNaN by arithmetic operation.
7200
7201         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
7202         unreachable code.
7203
7204         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
7205         definitions.
7206
7207 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
7208
7209         [BZ #14478]
7210         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
7211         underflowed result.
7212         * math/s_cexpf.c (__cexpf): Likewise.
7213         * math/s_cexpl.c (__cexpl): Likewise.
7214         * math/libm-test.inc (cexp_test): Add more tests.
7215
7216 2013-04-03  Andreas Schwab  <schwab@suse.de>
7217
7218         [BZ #15330]
7219         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
7220         order arrays from heap if bigger than alloca cutoff.
7221
7222 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
7223
7224         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
7225         (SNAN_TESTS_double): Refer to GCC PR56831.
7226         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
7227         GCC PR56828.
7228
7229 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
7230
7231         * Rules (bench): Move bench.out after the run is complete.
7232
7233         * Rules (bench): Echo currently running benchmark.
7234
7235         * benchtests/Makefile (bench): Add atan and slowatan.
7236         * benchtests/atan-inputs: New file.
7237         * benchtests/slowatan-inputs: New file.
7238         * benchtests/slowatan.c: New file.
7239
7240         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
7241         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
7242         its value.
7243
7244         [BZ #15305]
7245         * sysdeps/unix/sysv/linux/kernel-features.h
7246         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
7247         __ASSUME_XFS_RESTRICTED_CHOWN.
7248         * sysdeps/unix/sysv/linux/pathconf.c
7249         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
7250         Save and restore errno.
7251
7252 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
7253
7254         [BZ #15327]
7255         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
7256         arguments using __kernel_casinh.
7257         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
7258         arguments using __kernel_casinhf.
7259         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
7260         arguments using __kernel_casinhl.
7261         * math/libm-test.inc (cacosh_test): Add more tests.
7262         * sysdeps/i386/fpu/libm-test-ulps: Update.
7263         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7264
7265 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
7266
7267         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
7268         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
7269
7270         * bench/Makefile (bench): Add sin and slowsin.
7271         * benchtests/sin-inputs: New file.
7272         * benchtests/slowsin-inputs: New file.
7273         * benchtests/slowsin.c: New file.
7274
7275         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
7276         (bench): Add slowexp and slowpow.
7277         (exp-ITER): Increase iterations.
7278         (pow-ITER): Likewise.
7279         * benchtests/exp-inputs: Change input.
7280         * benchtests/pow-inputs: Likewise.
7281         * benchtests/slowexp-inputs: New file.
7282         * benchtests/slowexp.c: New file.
7283         * benchtests/slowpow-inputs: New file.
7284         * benchtests/slowpow.c: New file.
7285
7286 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7287
7288         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
7289         instructions.
7290         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
7291         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
7292         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
7293         * benchtests/Makefile: Add rint benchtest.
7294         * benchtests/rint-inputs: Input for rint benchtest.
7295
7296 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
7297
7298         * Versions.def (libm): Add GLIBC_2.18.
7299         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
7300         hidden libm prototypes.
7301         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
7302         * math/Makefile (libm-calls): Add s_issignaling.
7303         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
7304         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
7305         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
7306         declaration.
7307         * math/math.h [__USE_GNU] (issignaling): New macro.
7308         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
7309         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
7310         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
7311         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
7312         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
7313         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
7314         * manual/arith.texi (issignaling): New section.
7315         * manual/libm-err-tab.pl (@all_functions): Update comment.
7316         * math/gen-libm-test.pl (parse_args): Apply special handling for
7317         issignaling.
7318         * math/libm-test.inc (print_float, issignaling_test): New
7319         functions.
7320         (check_float_internal): Add issignaling checks.
7321         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
7322         default definition.
7323         * sysdeps/powerpc/math-tests.h: New file.
7324         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
7325         tests.
7326         * math/test-snan.c (TEST_FUNC): Likewise.
7327
7328 2013-03-30  David S. Miller  <davem@davemloft.net>
7329
7330         * po/de.po: Update from translation team.
7331
7332 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
7333
7334         [BZ #10357]
7335         * math/k_casinh.c (__kernel_casinh): Handle arguments with
7336         imaginary part less than 1.0 and real part less than 0.5
7337         specially.
7338         * math/k_casinhf.c (__kernel_casinhf): Likewise.
7339         * math/k_casinhl.c (__kernel_casinhl): Likewise.
7340         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
7341         (cacos_test): Add more tests.
7342         (casin_test): Likewise.
7343         (casinh_test): Likewise.
7344         * sysdeps/i386/fpu/libm-test-ulps: Update.
7345         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7346
7347 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
7348
7349         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
7350         ONE with its value.
7351
7352         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
7353         (__pow_mp): Replace ONE and MONE with their values.
7354         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
7355         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
7356         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
7357         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
7358         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
7359         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
7360
7361         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
7362
7363         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
7364         (__pow_mp): Replace ZERO and MZERO with their values.
7365         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
7366         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
7367         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
7368         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
7369         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
7370         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
7371         (__sqr): Likewise.
7372
7373         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
7374
7375         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
7376
7377 2013-03-28  Roland McGrath  <roland@hack.frob.com>
7378
7379         * include/stdlib.h [!SHARED] (__call_tls_dtors):
7380         Declare with __attribute__ ((weak)).
7381         * stdlib/exit.c (__libc_atexit) [!SHARED]:
7382         Call __call_tls_dtors only if it's not NULL.
7383
7384 2013-03-28  Roland McGrath  <roland@hack.frob.com>
7385
7386         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
7387         didn't do it already, then set _dl_phdr and _dl_phnum based on the
7388         magic __ehdr_start linker symbol if it's defined.
7389         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
7390         them up here if it was already done.
7391
7392         * elf/dl-support.c (_dl_phdr): Make pointer to const.
7393         (_dl_aux_init): Use const in cast when setting it.
7394         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
7395         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
7396         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
7397
7398         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
7399         Declare them here.
7400         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
7401         * csu/libc-tls.c: Nor here.
7402         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
7403
7404         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
7405         (__libc_message): Never call vsyslog.
7406
7407 2013-03-28  Alan Modra  <amodra@gmail.com>
7408
7409         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
7410         Define as empty.
7411         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
7412         Likewise.
7413
7414 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7415
7416         [BZ #15214]
7417         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
7418         underflow.
7419         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7420
7421 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7422
7423         [BZ #15304]
7424         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
7425         Don't add gid passed as argument.
7426
7427         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
7428
7429 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
7430
7431         [BZ #15307]
7432         * math/k_casinh.c (__kernel_casinh): Handle arguments with
7433         imaginary part between 1.0 and 1.5 and real part less than 0.5
7434         specially.
7435         * math/k_casinhf.c (__kernel_casinhf): Likewise.
7436         * math/k_casinhl.c (__kernel_casinhl): Likewise.
7437         * math/libm-test.inc (cacos_test): Add more tests.
7438         (casin_test): Likewise.
7439         (casinh_test): Likewise.
7440         * sysdeps/i386/fpu/libm-test-ulps: Update.
7441         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7442
7443 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7444
7445         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
7446         constants.
7447         (norm): Likewise.
7448         (denorm): Likewise.
7449         (__dbl_mp): Likewise.
7450         (add_magnitudes): Likewise.
7451         (sub_magnitudes): Likewise.
7452         (__add): Likewise.
7453         (__sub): Likewise.
7454         (__mul): Likewise.
7455         (__sqr): Likewise.
7456         (__inv): Likewise.
7457         (__dvd): Likewise.
7458
7459         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
7460         commented code.
7461         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
7462         (__dubcos): Likewise.
7463         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
7464         (__ieee754_acos): Likewise.
7465         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
7466         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
7467         (__exp1): Likewise.
7468         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
7469         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
7470         (log1): Likewise.
7471         (my_log2): Likewise.
7472         (checkint): Likewise.
7473         * sysdeps/ieee754/dbl-64/e_remainder.c
7474         (__ieee754_remainder): Likewise.
7475         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
7476         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
7477         (bsloww): Likewise.
7478         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
7479
7480         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
7481         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
7482         MANTISSA_STORE_T to store computations on mantissa.  Use
7483         macros for rounding and division.
7484         (denorm): Likewise.
7485         (__dbl_mp): Likewise.
7486         (add_magnitudes): Likewise.
7487         (sub_magnitudes): Likewise.
7488         (__mul): Likewise.
7489         (__sqr): Likewise.
7490         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
7491         powers of two in terms of TWOPOW macro.
7492         (mp_no): Make type of mantissa as MANTISSA_T.
7493         [!RADIXI]: Define RADIXI.
7494         [!TWO52]: Define TWO52.
7495         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
7496
7497 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7498
7499         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
7500         llroundl symbol when building for PPC32.
7501
7502 2013-03-24  Mark H Weaver  <mhw@netris.org>
7503
7504         * manual/arith.texi (Normalization Functions): Fix prototypes for
7505         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
7506
7507 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7508
7509         [BZ #13889]
7510         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
7511         high value to check if expl overflow.
7512         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
7513         to check for underflow and overflow.
7514         * math/libm-test.inc: Add exp test.
7515
7516 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
7517
7518         [BZ #11120]
7519         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
7520         with NOT_IN_libc.
7521
7522 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7523
7524         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
7525         symbol.
7526
7527 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
7528
7529         * math/gen-libm-test.pl (parse_args, special_functions): Properly
7530         wrap blocks consisting of several statements.
7531
7532         * sysdeps/generic/math-tests.h: New file.
7533         * sysdeps/i386/fpu/math-tests.h: Likewise.
7534         * math/test-snan.c: Include it.
7535         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
7536
7537 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
7538
7539         [BZ #15285]
7540         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
7541         (__ieee754_j0l): Do not improve calculations using cos of twice
7542         input for inputs above LDBL_MAX / 2.0L.
7543         (__ieee754_y0l): Likewise.
7544         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
7545         (__ieee754_j1l): Do not improve calculations using cos of twice
7546         input for inputs above LDBL_MAX / 2.0L.
7547         (__ieee754_y1l): Likewise.
7548         * math/libm-test.inc (j0_test): Add another test.
7549         (j1_test): Likewise.
7550         (y0_test): Likewise.
7551         (y1_test): Likewise.
7552         * sysdeps/i386/fpu/libm-test-ulps: Update.
7553
7554 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7555
7556         * Rules ($(objpfx)bench-%.c): Include code from a C source
7557         file.
7558
7559 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
7560
7561         [BZ #15287]
7562         * math/k_casinh.c (__kernel_casinh): Handle arguments with
7563         imaginary part 1.0 and real part less than 0.5 specially.
7564         * math/k_casinhf.c (__kernel_casinhf): Likewise.
7565         * math/k_casinhl.c (__kernel_casinhl): Likewise.
7566         * math/libm-test.inc (cacos_test): Add more tests.
7567         (casin_test): Likewise.
7568         (casinh_test): Likewise.
7569         * sysdeps/i386/fpu/libm-test-ulps: Update.
7570         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7571
7572 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7573
7574         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
7575         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
7576
7577 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
7578
7579         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
7580         * config.make.in (config-cflags-sse4): Remove variable.
7581         (config-cflags-avx): Likewise.
7582         (config-cflags-sse2avx): Likewise.
7583         (config-cflags-novzeroupper): Likewise.
7584         (config-asflags-i686): Likewise.
7585         (have-mfma4): Likewise.
7586         (have-as-vis3): Likewise.
7587         (MIG): Likewise.
7588         * configure.in (MIG): Do not AC_SUBST.
7589         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
7590         (libc_cv_cc_sse4): Do not AC_SUBST.
7591         (libc_cv_cc_avx): Likewise.
7592         (libc_cv_cc_sse2avx): Likewise.
7593         (libc_cv_cc_novzeroupper): Likewise.
7594         (libc_cv_cc_fma4): Likewise.
7595         (libc_cv_as_i686): Likewise.
7596         (libc_cv_sparc_as_vis3): Likewise.
7597         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
7598         LIBC_CONFIG_VAR.
7599         (config-asflags-i686): Likewise.
7600         (config-cflags-avx): Likewise.
7601         (config-cflags-sse2avx): Likewise.
7602         (have-mfma4): Likewise.
7603         (config-cflags-novzeroupper): Likewise.
7604         * sysdeps/mach/configure.in (MIG): Likewise.
7605         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
7606         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
7607         LIBC_CONFIG_VAR.
7608         (config-cflags-avx): Likewise.
7609         (config-cflags-sse2avx): Likewise.
7610         (have-mfma4): Likewise.
7611         (config-cflags-novzeroupper): Likewise.
7612         * configure: Regenerated.
7613         * sysdeps/i386/configure: Likewise.
7614         * sysdeps/mach/configure: Likewise.
7615         * sysdeps/sparc/configure: Likewise.
7616         * sysdeps/x86_64/configure: Likewise.
7617
7618 2013-03-20  Roland McGrath  <roland@hack.frob.com>
7619
7620         [BZ #14812]
7621         * locale/programs/localedef.c (options): Put N_ translation marker
7622         on argument names, not just descriptions.
7623
7624 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
7625
7626         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
7627
7628 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
7629
7630         [BZ #14176]
7631         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
7632
7633 2013-03-19  Roland McGrath  <roland@hack.frob.com>
7634
7635         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
7636         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
7637         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
7638         [!BEFORE_ABORT] (before_abort): New function.
7639         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
7640         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
7641         (writev_for_fatal): New function.
7642         (WRITEV_FOR_FATAL): New macro; call that.
7643         (backtrace_and_maps): New function.
7644         (BEFORE_ABORT): New macro; call that.
7645         (struct str_list): Type removed.
7646         (__libc_message, __libc_fatal): Functions removed.
7647         Include <sysdeps/posix/libc_fatal.c> instead.
7648
7649 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
7650
7651         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
7652         constants.
7653         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
7654         double constants.
7655
7656 2013-03-19  Andreas Schwab  <schwab@suse.de>
7657
7658         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
7659         * sysdeps/gnu/configure: Regenerate.
7660
7661         * configure.in: Substitute libc_cv_rtlddir.
7662         * configure: Regenerate.
7663         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
7664         * Makeconfig (rtlddir, inst_rtlddir): New variables.
7665         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
7666         * elf/Makefile (install-others, CFLAGS-interp.c)
7667         (ldso_install, common-ldd-rewrite): Likewise.
7668         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
7669         $(inst_slibdir)/$(rtld-installed-name).
7670         * scripts/rellns-sh: Add -p option.
7671         * Makerules (make-shlib-link): Use rellns-sh to get relative name
7672         for source.
7673
7674 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
7675
7676         * manual/nptl.texi: Renamed to ...
7677         * manual/threads.texi: ... this.
7678         * manual/Makefile (chapters): Update.
7679
7680 2013-03-18  Roland McGrath  <roland@hack.frob.com>
7681
7682         [BZ #14812]
7683         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
7684         on argument names, not just descriptions.
7685         * malloc/memusagestat.c (options): Likewise.
7686         * nss/getent.c (options): Likewise.
7687
7688 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
7689
7690         [BZ #14812]
7691         * iconv/iconv_prog.c (options): Put N_ translation marker
7692         on argument names, not just descriptions.
7693         * iconv/iconvconfig.c (options): Likewise.
7694
7695 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
7696
7697         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
7698         implementation which is faster on all x86_64 architectures.
7699         Tested on AMD, Intel Nehalem, SNB, IVB.
7700         * sysdeps/x86_64/strnlen.S: Likewise.
7701
7702         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
7703         Remove all multiarch strlen and strnlen versions.
7704         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
7705         Remove strlen and strnlen related parts.
7706
7707         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
7708         Inline strlen part.
7709         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
7710
7711         * sysdeps/x86_64/multiarch/strlen.S: Remove.
7712         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
7713         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
7714         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
7715         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
7716         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
7717
7718 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
7719
7720         * manual/memory.texi (Malloc Tunable Parameters):
7721         Sort parameters alphabetically. Add comments for missing entries.
7722
7723 2013-03-17  David S. Miller  <davem@davemloft.net>
7724
7725         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7726
7727 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
7728
7729         [BZ #15283]
7730         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
7731         for arguments at most half maximum finite value.
7732         * math/libm-test.inc (j0_test): Add more tests.
7733         (j1_test): Likewise.
7734         (y0_test): Likewise.
7735         (y1_test): Likewise.
7736         * sysdeps/i386/fpu/libm-test-ulps: Update.
7737         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7738
7739         [BZ #14155]
7740         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
7741         1 / x and functions P and Q for arguments above 0x1p256L.
7742         (__ieee754_y0l): Likewise.
7743         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
7744         (__ieee754_y1l): Likewise.
7745         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
7746         (j1_test): Likewise.
7747         (y0_test): Likewise.
7748         (y1_test): Likewise.
7749
7750 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
7751
7752         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
7753         variable.
7754
7755 2013-03-15  Roland McGrath  <roland@hack.frob.com>
7756
7757         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
7758         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
7759         zero since it's initialized to EXEC_PAGESIZE.
7760
7761         * sysdeps/unix/sysv/linux/ldsodefs.h
7762         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
7763         * sysdeps/generic/ldsodefs.h: ... here.
7764
7765 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
7766
7767         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
7768
7769         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
7770         math/test-snan.c.
7771         * math/test-snan.c: Renamed from
7772         sysdeps/powerpc/fpu/test-powerpc-snan.c.
7773         * math/Makefile (tests): Add test-snan.
7774         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
7775         test-powerpc-snan.
7776
7777         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
7778         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
7779         functions.
7780         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
7781         __builtin_nan family of functions.
7782         * math/libm-test.inc (initialize): Initialize qnan_value with
7783         __builtin_nan family of functions.
7784         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
7785         Remove variables.
7786         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
7787         Remove functions.
7788         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
7789         storage class.  Initialize qNaN_var and sNaN_var with
7790         __builtin_nan and __builtin_nans families of functions,
7791         respectively.
7792
7793         * math/libm-test.inc (acosh_test): Also test with qNaN input.
7794         (sqrt_test): Remove duplicate test with qNaN input.
7795         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
7796         (round_test, signbit_test, significand_test): Note missing +/-Inf
7797         as well as qNaN tests.
7798
7799         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
7800         qNaN_var.  Fix a few strings, too.
7801         * math/libm-test.inc (nan_value): Rename to qnan_value.
7802         * math/gen-libm-test.pl (%beautify): Adjust to that.
7803         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
7804         * math/test-misc.c (main): Likewise.
7805         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
7806         to __qnan_bytes, and __qnan_union, respectively.
7807         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
7808         Likewise.
7809         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
7810         and lqnanval, respectively.
7811         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
7812         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
7813         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
7814         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
7815
7816         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
7817         * math/test-misc.c (main) [__x86_64__]: Enable test for long
7818         doubles.
7819
7820         * math/test-misc.c (main): Fix copy'n'pastos.
7821         * misc/tst-efgcvt.c (special): Likewise.
7822
7823         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
7824         Remove declarations.
7825
7826 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7827
7828         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
7829         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
7830         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
7831         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
7832
7833 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7834
7835         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
7836         macro to return vdso values correctly in IFUNC implementations.
7837         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
7838         Optimization by using IFUNC.
7839
7840 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7841             Richard Henderson  <rth@redhat.com>
7842             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7843
7844         * Makefile.in (bench): New target.
7845         * NEWS: Mention the benchmark framework.
7846         * Rules (bench): Likewise.
7847         (binaries-bench): Generate binaries for functions to
7848         benchmark.
7849         * benchtests/Makefile: New makefile for benchmark tests.
7850         * benchtests/bench-skeleton.c: New skeleton file for benchmark
7851         programs.
7852         * benchtests/exp-inputs: New input file for EXP function.
7853         * benchtests/pow-inputs: New input file for POW function.
7854         * scripts/bench.pl: New script to generate source files for
7855         benchmark programs.
7856
7857 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7858
7859         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
7860         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
7861         computations on mantissa.  Use macros for rounding and
7862         division.
7863         (denorm): Likewise.
7864         (__dbl_mp): Likewise.
7865         (add_magnitudes): Likewise.
7866         (sub_magnitudes): Likewise.
7867         (__mul): Likewise.
7868         (__sqr): Likewise.
7869         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
7870         powers of two in terms of TWOPOW macro.
7871         (mp_no): Make type of mantissa as MANTISSA_T.
7872         [!RADIXI]: Define RADIXI.
7873         [!TWO52]: Define TWO52.
7874         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
7875
7876         * manual/nptl.texi (cindex): Modify threads to pthreads.
7877
7878 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
7879
7880         * sysdeps/x86_64/preconfigure: Regenerated.
7881
7882 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
7883
7884         [BZ #14155]
7885         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
7886         0x1p28 and above.
7887         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
7888         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
7889         0x1p28 and above.
7890         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
7891         * math/libm-test.inc (j0_test): Do not allow one spurious
7892         underflow exception.
7893         (y1_test): Likewise.
7894
7895 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
7896
7897         * manual/Makefile (chapters): Add nptl.
7898         * manual/debug.texi (Debugging Support): Add link to Threads
7899         chapter.
7900         * manual/nptl.texi: New file.
7901
7902         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
7903
7904 2013-03-14  Petr Baudis  <pasky@ucw.cz>
7905
7906         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
7907         for non-NULL pointer before the memory validity test. Pointed
7908         out by Holger Brunck <holger.brunck@keymile.com>.
7909
7910 2013-03-13  Andreas Schwab  <schwab@suse.de>
7911
7912         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
7913         instead of .os.
7914
7915 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
7916
7917         * timezone/zic.c: Update from tzcode 2013b.
7918
7919 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
7920
7921         * manual/install.texi (Configuring and compiling):
7922         Mention i686 and i586.
7923         * INSTALL: Regenerate.
7924
7925 2013-03-12  Roland McGrath  <roland@hack.frob.com>
7926
7927         * sysdeps/init_array/elf-init.c: New file.
7928         * csu/elf-init.c
7929         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
7930         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
7931
7932         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
7933         __gmon_start__ as global, but as static with a .preinit_array pointer.
7934         * sysdeps/init_array/gmon-start.c: New file.  Use that.
7935         * sysdeps/init_array/crti.S: New file, empty except for comments.
7936         * sysdeps/init_array/crtn.S: Likewise.
7937
7938 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
7939
7940         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
7941         definining bcopy.
7942         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7943         Remove Prefer_SSE_for_memop.
7944         * sysdeps/x86_64/multiarch/init-arch.h: Remove
7945         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
7946         HAS_PREFER_SSE_FOR_MEMOP.
7947         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
7948         memset-x86-64.
7949         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
7950         Remove bzero, memset ifunc support.
7951         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
7952         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
7953         * sysdeps/x86_64/multiarch/memset.S: Likewise.
7954         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
7955
7956 2013-03-11  Andreas Schwab  <schwab@suse.de>
7957
7958         [BZ #15234]
7959         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
7960         by SHLIB_COMPAT.
7961         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
7962         (GLIBC_2.16): Remove pthread_atfork.
7963
7964 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
7965
7966         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
7967         (ptestcases.h): Likewise.
7968
7969 2013-03-08  Roland McGrath  <roland@hack.frob.com>
7970
7971         * Makeconfig ($(common-objpfx)config.status): Depend on
7972         sysdeps/*/preconfigure{,.in} too.
7973
7974 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
7975
7976         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
7977         (__free_hook): Use void * instead of __malloc_ptr_t.
7978         (__malloc_hook): Likewise.
7979         (__realloc_hook): Likewise.
7980         (__memalign_hook): Likewise.
7981         (__after_morecore_hook): Likewise.
7982         * malloc/arena.c (save_malloc_hook): Likewise.
7983         (save_free_hook): Likewise.
7984         * malloc/hooks.c (malloc_hook_ini): Likewise.
7985         (realloc_hook_ini): Likewise.
7986         (memalign_hook_ini): Likewise.
7987         * malloc/malloc.c (malloc_hook_ini): Likewise.
7988         (realloc_hook_ini): Likewise.
7989         (memalign_hook_ini): Likewise.
7990         (__free_hook): Likewise.
7991         (__malloc_hook): Likewise.
7992         (__realloc_hook): Likewise.
7993         (__memalign_hook): Likewise.
7994         (__libc_malloc): Likewise.
7995         (__libc_free): Likewise.
7996         (__libc_realloc): Likewise.
7997         (__libc_memalign): Likewise.
7998         (__libc_valloc): Likewise.
7999         (__libc_pvalloc): Likewise.
8000         (__libc_calloc): Likewise.
8001         (__posix_memalign): Likewise.
8002         * malloc/morecore.c (__sbrk): Likewise.
8003         (__default_morecore): Likewise.
8004
8005         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
8006
8007         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
8008         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
8009         __malloc_ptrdiff_t.
8010
8011         * malloc/malloc.h (__malloc_size_t): Remove macro.
8012         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
8013         __malloc_size_t.
8014         (old_memalign_hook): Likewise.
8015         (old_realloc_hook): Likewise.
8016         (struct hdr): Likewise.
8017         (flood): Likewise.
8018         (mallochook): Likewise.
8019         (memalignhook): Likewise.
8020         (reallochook): Likewise.
8021         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
8022         (tr_old_realloc_hook): Likewise.
8023         (tr_old_memalign_hook): Likewise.
8024         (tr_mallochook): Likewise.
8025         (tr_reallochook): Likewise.
8026         (tr_memalignhook): Likewise.
8027
8028 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8029
8030         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
8031         default_ldbl_pack and using as default implementation.
8032         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
8033         implementation.
8034         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
8035         redundant definition.
8036         (ldbl_insert_mantissa): Likewise.
8037         (ldbl_canonicalize): Likewise.
8038         (ldbl_nearbyint): Likewise.
8039         (ldbl_pack): Rename to ldbl_pack_ppc.
8040         (ldbl_unpack): Rename to ldbl_unpack_ppc.
8041         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
8042         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
8043
8044 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
8045
8046         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
8047         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
8048         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
8049         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
8050         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
8051         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
8052         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
8053         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
8054
8055 2013-03-07  Andreas Jaeger  <aj@suse.de>
8056
8057         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8058         bits/mman-linux.h.
8059
8060 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
8061
8062         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
8063         Include mpa.h and declare __MPEXP.
8064         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
8065         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
8066         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
8067         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
8068         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
8069         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
8070         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
8071
8072         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
8073         (__slowpow): Use long double EXPL and LOGL functions to
8074         compute POW.
8075         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
8076         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
8077         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
8078         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
8079         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
8080         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
8081
8082         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
8083         intermediate variable to calculate exponent.
8084         (__sqr): Likewise.
8085         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
8086         Likewise.
8087         (__sqr): Likewise.
8088
8089         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
8090         [!NO__SQR]: Define __sqr.
8091         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
8092         and NO__SQR.  Remove all code except __mul and __sqr.  Include
8093         sysdeps/ieee754/dbl-64/mpa.c.
8094         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
8095
8096         [BZ #12723]
8097         * posix/Makefile (tests): Add tst-pathconf.
8098         * posix/tst-pathconf.c: New test case.
8099         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
8100         _PC_PIPE_BUF.
8101         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
8102
8103 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
8104
8105         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
8106
8107 2013-03-06  Andreas Jaeger  <aj@suse.de>
8108
8109         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
8110         definition via __MAP_ANONYMOUS.
8111
8112         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
8113         it's not part of Linux headers.
8114
8115         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
8116         (MAP_HUGE_MASK): Define.
8117
8118         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
8119         Define.
8120         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
8121         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
8122         Define.
8123         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
8124         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
8125         Define.
8126         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
8127         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
8128         Define.
8129         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
8130
8131         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
8132         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
8133         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
8134         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
8135         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
8136         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
8137
8138         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
8139         Handle f2fs.
8140
8141         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8142         Handle f2fs and efivarfs.
8143
8144         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
8145         f2fs.
8146
8147         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
8148         (EFIVARFS_MAGIC): Add.
8149         (F2FS_LINK_MAX): Add.
8150
8151 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8152
8153         * stdio-common/vfprintf.c: Replace __builtin_expect with
8154         __glibc_unlikely.
8155
8156 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
8157
8158         [BZ #13550]
8159         * sysdeps/generic/bp-sym.h: Remove file.
8160         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
8161         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
8162         <bp-sym.h> and <bp-asm.h>.
8163         (__longjmp): Don't use BP_SYM.
8164         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
8165         and <bp-asm.h>.
8166         (memcpy): Don't use BP_SYM.
8167         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
8168         <bp-sym.h> and <bp-asm.h>.
8169         (memcpy): Don't use BP_SYM.
8170         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
8171         <bp-asm.h>.
8172         (memcpy): Don't use BP_SYM.
8173         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
8174         <bp-asm.h>.
8175         (memset): Don't use BP_SYM.
8176         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
8177         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
8178         (__bzero): Don't use BP_SYM.
8179         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
8180         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
8181         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
8182         <bp-sym.h> and <bp-asm.h>.
8183         (memcmp): Don't use BP_SYM.  Remove comment about bounded
8184         pointers.
8185         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
8186         <bp-sym.h> and <bp-asm.h>.
8187         (memcpy): Don't use BP_SYM.
8188         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
8189         <bp-sym.h> and <bp-asm.h>.
8190         (memset): Don't use BP_SYM.
8191         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
8192         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
8193         (__bzero): Don't use BP_SYM.
8194         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
8195         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
8196         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
8197         <bp-sym.h> and <bp-asm.h>.
8198         (strncmp): Don't use BP_SYM.  Remove comment about bounded
8199         pointers.
8200         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
8201         <bp-sym.h> and <bp-asm.h>.
8202         (memcpy): Don't use BP_SYM.
8203         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
8204         <bp-sym.h> and <bp-asm.h>.
8205         (memset): Don't use BP_SYM.
8206         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
8207         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
8208         (__bzero): Don't use BP_SYM.
8209         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
8210         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
8211         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
8212         <bp-sym.h> and <bp-asm.h>.
8213         (__memchr): Don't use BP_SYM.
8214         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
8215         <bp-sym.h> and <bp-asm.h>.
8216         (memcmp): Don't use BP_SYM.  Remove comment about bounded
8217         pointers.
8218         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
8219         <bp-sym.h> and <bp-asm.h>.
8220         (memcpy): Don't use BP_SYM.
8221         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
8222         <bp-sym.h> and <bp-asm.h>.
8223         (__mempcpy): Don't use BP_SYM.
8224         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
8225         <bp-sym.h> and <bp-asm.h>.
8226         (__memrchr): Don't use BP_SYM.
8227         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
8228         <bp-sym.h> and <bp-asm.h>.
8229         (memset): Don't use BP_SYM.
8230         (__bzero): Likewise.
8231         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
8232         <bp-sym.h> and <bp-asm.h>.
8233         (__rawmemchr): Don't use BP_SYM.
8234         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
8235         <bp-sym.h> and <bp-asm.h>.
8236         (__STRCMP): Don't use BP_SYM.
8237         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
8238         <bp-sym.h> and <bp-asm.h>.
8239         (strchr): Don't use BP_SYM.
8240         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
8241         <bp-sym.h> and <bp-asm.h>.
8242         (__strchrnul): Don't use BP_SYM.
8243         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
8244         <bp-sym.h> and <bp-asm.h>.
8245         (strlen): Don't use BP_SYM.
8246         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
8247         <bp-sym.h> and <bp-asm.h>.
8248         (strncmp): Don't use BP_SYM.  Remove comment about bounded
8249         pointers.
8250         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
8251         <bp-sym.h> and <bp-asm.h>.
8252         (__strnlen): Don't use BP_SYM.
8253         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
8254         <bp-sym.h> and <bp-asm.h>.
8255         (__GI__setjmp): Don't use BP_SYM.
8256         (_setjmp): Likewise.
8257         (__sigsetjmp): Likewise.
8258         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
8259         (L(start_addresses)): Don't use BP_SYM.
8260         (_start): Likewise.
8261         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
8262         <bp-asm.h>.
8263         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
8264         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
8265         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
8266         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
8267         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
8268         <bp-asm.h>.
8269         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
8270         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
8271         about bounded pointers.
8272         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
8273         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
8274         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
8275         <bp-asm.h>.
8276         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
8277         about bounded pointers.  Remove GKM FIXME comments.
8278         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
8279         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
8280         <bp-asm.h>.
8281         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
8282         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
8283         Remove GKM FIXME comments.
8284         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
8285         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
8286         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
8287         <bp-asm.h>.
8288         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
8289         about bounded pointers.  Remove GKM FIXME comment.
8290         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
8291         and <bp-asm.h>.
8292         (strncmp): Don't use BP_SYM.  Remove comment about bounded
8293         pointers.
8294         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
8295         <bp-sym.h> and <bp-asm.h>.
8296         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
8297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
8298         <bp-sym.h> and <bp-asm.h>.
8299         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
8300         comment.
8301
8302 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
8303
8304         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
8305         call free(NULL).
8306
8307 2013-03-05  David S. Miller  <davem@davemloft.net>
8308
8309         * po/es.po: Update from translation team.
8310
8311 2013-03-05  Andreas Jaeger  <aj@suse.de>
8312
8313         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
8314         <bits/mman-linux.h>.
8315         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
8316         is fine.
8317         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
8318         <bits/mman-linux.h> to end of file.
8319         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
8320         is fine.
8321         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
8322         <bits/mman-linux.h> to end of file.
8323         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
8324         is fine.
8325         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
8326         <bits/mman-linux.h> to end of file.
8327
8328         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
8329         (MCL_CURRENT, MCL_FUTURE): Define here.
8330
8331 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8332
8333         [BZ #15232]
8334         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
8335         attribute_hidden.
8336         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
8337
8338 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8339
8340         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
8341         fourth parameter needed for rt_sigprocmask syscall.
8342         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
8343         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
8344         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
8345         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
8346         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
8347         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
8348
8349 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
8350
8351         [BZ #13550]
8352         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
8353         comment about bounded pointers.
8354         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
8355         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
8356
8357 2013-03-04  Andreas Jaeger  <aj@suse.de>
8358
8359         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
8360         common definitions.
8361
8362         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
8363         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
8364         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
8365         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8366         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
8367         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8368
8369 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8370
8371         [BZ #15055]
8372         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
8373         __ieee754_sqrl instead of __sqrl.
8374
8375 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
8376
8377         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
8378         * sysdeps/powerpc/fpu_control.h: ... here.
8379         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
8380         * sysdeps/powerpc/bits/fenvinline.h: ... here.
8381         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
8382         * sysdeps/powerpc/bits/mathinline.h: ... here.
8383
8384 2013-03-01  Roland McGrath  <roland@hack.frob.com>
8385
8386         * elf/dl-hwcaps.c (_dl_important_hwcaps):
8387         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
8388         to just [NEED_DL_SYSINFO_DSO].
8389         * elf/dl-support.c: Likewise.
8390         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
8391         * elf/rtld.c (dl_main): Likewise.
8392         * elf/setup-vdso.h (setup_vdso): Likewise.
8393         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
8394         * sysdeps/unix/sysv/linux/dl-sysdep.c
8395         (_dl_discover_osversion): Likewise.
8396
8397 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
8398
8399         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
8400         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
8401
8402 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
8403
8404         * NEWS: Mention libm performance improvements and non-x86 PI
8405         futex support.
8406
8407         * csu/libc-start.c (__pthread_initialize_minimal): Change
8408         function arguments.
8409         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
8410
8411 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
8412
8413         [BZ #13550]
8414         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
8415         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
8416         <bp-sym.h> and <bp-asm.h>.
8417         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
8418         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
8419         and <bp-asm.h>.
8420         (memcpy): Don't use BP_SYM.
8421         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
8422         <bp-asm.h>.
8423         (__mpn_add_n): Don't use BP_SYM.
8424         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
8425         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
8426         and <bp-asm.h>.
8427         (__mpn_addmul_1): Don't use BP_SYM.
8428         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8429         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
8430         <bp-sym.h>.
8431         (_setjmp): Don't use BP_SYM.
8432         (__novmx_setjmp): Likewise.
8433         (__GI__setjmp): Likewise.
8434         (__vmx_setjmp): Likewise.
8435         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
8436         <bp-sym.h>.
8437         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
8438         (__bzero): Don't use BP_SYM.
8439         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
8440         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
8441         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
8442         <bp-sym.h> and <bp-asm.h>.
8443         (memcpy): Don't use BP_SYM.
8444         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
8445         <bp-sym.h> and <bp-asm.h>.
8446         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
8447         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
8448         <bp-sym.h> and <bp-asm.h>.
8449         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
8450         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
8451         <bp-asm.h>.
8452         (__mpn_lshift): Don't use BP_SYM.
8453         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8454         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
8455         <bp-asm.h>.
8456         (memset): Don't use BP_SYM.
8457         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
8458         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
8459         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
8460         <bp-asm.h>.
8461         (__mpn_mul_1): Don't use BP_SYM.
8462         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8463         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
8464         <bp-sym.h> and <bp-asm.h>.
8465         (memcmp): Don't use BP_SYM.
8466         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
8467         <bp-sym.h> and <bp-asm.h>.
8468         (memcpy): Don't use BP_SYM.
8469         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
8470         <bp-sym.h> and <bp-asm.h>.
8471         (memset): Don't use BP_SYM.
8472         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
8473         <bp-sym.h> and <bp-asm.h>.
8474         (strncmp): Don't use BP_SYM.
8475         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
8476         <bp-sym.h> and <bp-asm.h>.
8477         (memcpy): Don't use BP_SYM.
8478         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
8479         <bp-sym.h> and <bp-asm.h>.
8480         (memset): Don't use BP_SYM.
8481         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
8482         <bp-sym.h> and <bp-asm.h>.
8483         (__memchr): Don't use BP_SYM.
8484         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
8485         <bp-sym.h> and <bp-asm.h>.
8486         (memcmp): Don't use BP_SYM.
8487         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
8488         <bp-sym.h> and <bp-asm.h>.
8489         (memcpy): Don't use BP_SYM.
8490         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
8491         <bp-sym.h> and <bp-asm.h>.
8492         (__mempcpy): Don't use BP_SYM.
8493         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
8494         <bp-sym.h> and <bp-asm.h>.
8495         (__memrchr): Don't use BP_SYM.
8496         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
8497         <bp-sym.h> and <bp-asm.h>.
8498         (memset): Don't use BP_SYM.
8499         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
8500         <bp-sym.h> and <bp-asm.h>.
8501         (__rawmemchr): Don't use BP_SYM.
8502         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
8503         <bp-sym.h> and <bp-asm.h>.
8504         (__STRCMP): Don't use BP_SYM.
8505         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
8506         <bp-sym.h> and <bp-asm.h>.
8507         (strchr): Don't use BP_SYM.
8508         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
8509         <bp-sym.h> and <bp-asm.h>.
8510         (__strchrnul): Don't use BP_SYM.
8511         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
8512         <bp-sym.h> and <bp-asm.h>.
8513         (strlen): Don't use BP_SYM.
8514         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
8515         <bp-sym.h> and <bp-asm.h>.
8516         (strncmp): Don't use BP_SYM.
8517         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
8518         <bp-sym.h> and <bp-asm.h>.
8519         (__strnlen): Don't use BP_SYM.
8520         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
8521         <bp-asm.h>.
8522         (__mpn_rshift): Don't use BP_SYM.
8523         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
8524         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
8525         <bp-sym.h> and <bp-asm.h>.
8526         (__sigsetjmp): Don't use BP_SYM.
8527         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
8528         (L(start_addresses)): Don't use BP_SYM.
8529         (_start): Likewise.
8530         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
8531         <bp-asm.h>.
8532         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
8533         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
8534         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
8535         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
8536         <bp-asm.h>.
8537         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
8538         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
8539         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
8540         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
8541         <bp-asm.h>.
8542         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
8543         comments.
8544         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
8545         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
8546         <bp-asm.h>.
8547         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
8548         FIXME comments.
8549         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
8550         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
8551         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
8552         <bp-asm.h>.
8553         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
8554         comment.
8555         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
8556         and <bp-asm.h>.
8557         (strncmp): Don't use BP_SYM,
8558         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
8559         <bp-asm.h>.
8560         (__mpn_sub_n): Don't use BP_SYM.
8561         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
8562         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
8563         and <bp-asm.h>.
8564         (__mpn_submul_1): Don't use BP_SYM.
8565         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
8566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
8567         <bp-sym.h> and <bp-asm.h>.
8568         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
8569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
8570         <bp-sym.h> and <bp-asm.h>.
8571         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
8572         comment.
8573
8574 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8575
8576         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
8577         Use ZK to minimize writes to Z.
8578         (sub_magnitudes): Simplify code a bit.
8579         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
8580         Use ZK to minimize writes to Z.
8581         (sub_magnitudes): Simplify code a bit.
8582
8583 2013-02-27  Roland McGrath  <roland@hack.frob.com>
8584
8585         * csu/gmon-start.c: Add special exception to license text.
8586
8587 2013-02-27  Richard Henderson  <rth@redhat.com>
8588
8589         * scripts/config.guess: Update from config.git.
8590         * scripts/config.sub: Likewise.
8591
8592 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
8593
8594         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
8595
8596         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
8597
8598         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
8599
8600         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
8601
8602         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
8603
8604 2013-02-26  Roland McGrath  <roland@hack.frob.com>
8605
8606         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
8607         [$(build-shared = yes].
8608
8609 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8610
8611         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
8612         (__mul): Reduce iterations for calculating mantissa.
8613
8614         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
8615         MPTWO.
8616         (__mpranred): Likewise.
8617
8618         [BZ #15160]
8619         * malloc/memusagestat.c (main): Draw graphs for heap and stack
8620         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
8621
8622 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
8623
8624         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
8625         Define __attribute__.
8626
8627 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8628
8629         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
8630         unused.
8631         * posix/regex_internal.h (__attribute): Remove.
8632         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
8633         (re_string_context_at): Likewise.
8634         (bitset_not): Use __attribute__ and mark function as possibly
8635         unused.
8636         (bitset_merge): Likewise.
8637         (bitset_mask): Likewise.
8638         (re_string_char_size_at): Likewise.
8639         (re_string_wchar_at): Likewise.
8640         (re_string_elem_size_at): Likewise.
8641
8642 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
8643
8644         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
8645         code.
8646         (cc32): Likewise.
8647
8648         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
8649         (__acr): Likewise.
8650         (__cpy): Likewise.
8651         (norm): Likewise.
8652         (denorm): Likewise.
8653         (__dbl_mp): Likewise.
8654         (add_magnitudes): Likewise.
8655         (sub_magnitudes): Likewise.
8656         (__mul): Likewise.
8657         (__inv): Likewise.
8658
8659         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
8660         style.
8661
8662         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
8663         style.
8664
8665         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
8666         code.
8667
8668         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
8669         up changes with default code.
8670         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
8671         Likewise.
8672
8673 2013-02-24  Allan McRae  <allan@archlinux.org>
8674
8675         * manual/socket.texi (The Internet Namespace): Order menu items
8676         to match that in the file.
8677
8678         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
8679         node listing of the info page menu.
8680
8681 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
8682
8683         [BZ #13550]
8684         * sysdeps/i386/bp-asm.h: Remove file.
8685         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
8686         (PARMS): Do not use macros from bp-asm.h.
8687         (S1): Likewise.
8688         (S2): Likewise.
8689         (SIZE): Likewise.
8690         (__mpn_add_n): Do not use BP_SYM
8691         * sysdeps/i386/addmul_1.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         (SIZE): Likewise.
8696         (__mpn_addmul_1): Do not use BP_SYM
8697         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
8698         "bp-asm.h".
8699         (PARMS): Do not use macros from bp-asm.h.
8700         (SIGMSK): Likewise.
8701         (_setjmp): Likewise.  Do not use BP_SYM.
8702         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
8703         "bp-asm.h".
8704         (PARMS): Do not use macros from bp-asm.h.
8705         (SIGMSK): Likewise.
8706         (setjmp): Likewise.  Do not use BP_SYM.
8707         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
8708         "bp-asm.h".
8709         (PARMS): Do not use macros from bp-asm.h.
8710         (__frexp): Do not use BP_SYM.
8711         (frexp): Likewise.
8712         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
8713         "bp-asm.h".
8714         (PARMS): Do not use macros from bp-asm.h.
8715         (__frexpf): Do not use BP_SYM.
8716         (frexpf): Likewise.
8717         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
8718         "bp-asm.h".
8719         (PARMS): Do not use macros from bp-asm.h.
8720         (__frexpl): Do not use BP_SYM.
8721         (frexpl): Likewise.
8722         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
8723         "bp-asm.h".
8724         (PARMS): Do not use macros from bp-asm.h.
8725         (__remquo): Do not use BP_SYM.
8726         (remquo): Likewise.
8727         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
8728         "bp-asm.h".
8729         (PARMS): Do not use macros from bp-asm.h.
8730         (__remquof): Do not use BP_SYM.
8731         (remquof): Likewise.
8732         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
8733         "bp-asm.h".
8734         (PARMS): Do not use macros from bp-asm.h.
8735         (__remquol): Do not use BP_SYM.
8736         (remquol): Likewise.
8737         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
8738         "bp-asm.h".
8739         (PARMS): Do not use macros from bp-asm.h.
8740         (DEST): Likewise.
8741         (SRC): Likewise.
8742         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
8743         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
8744         "bp-asm.h".
8745         (PARMS): Do not use macros from bp-asm.h.
8746         (strlen): Do not use BP_SYM.
8747         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
8748         "bp-asm.h".
8749         (PARMS): Do not use macros from bp-asm.h.
8750         (S1): Likewise.
8751         (S2): Likewise.
8752         (SIZE): Likewise.
8753         (__mpn_add_n): Do not use BP_SYM.
8754         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
8755         "bp-asm.h".
8756         (PARMS): Do not use macros from bp-asm.h.
8757         (S1): Likewise.
8758         (SIZE): Likewise.
8759         (__mpn_addmul_1): Do not use BP_SYM.
8760         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
8761         weak_alias.
8762         (bzero): Likewise.
8763         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
8764         "bp-asm.h".
8765         (PARMS): Do not use macros from bp-asm.h.
8766         (S): Likewise.
8767         (SIZE): Likewise.
8768         (__mpn_lshift): Do not use BP_SYM.
8769         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
8770         "bp-asm.h".
8771         (PARMS): Do not use macros from bp-asm.h.
8772         (DEST): Likewise.
8773         (SRC): Likewise.
8774         (LEN): Likewise.
8775         (memcpy): Likewise.  Do not use BP_SYM.
8776         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
8777         libc_hidden_def and weak_alias.
8778         (mempcpy): Do not use BP_SYM in weak_alias.
8779         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
8780         "bp-asm.h".
8781         (PARMS): Do not use macros from bp-asm.h.
8782         (DEST): Likewise.
8783         (LEN): Likewise.
8784         [!BZERO_P] (CHR): Likewise.
8785         (memset): Likewise.  Do not use BP_SYM.
8786         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
8787         "bp-asm.h".
8788         (PARMS): Do not use macros from bp-asm.h.
8789         (S1): Likewise.
8790         (SIZE): Likewise.
8791         (__mpn_mul_1): Do not use BP_SYM.
8792         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
8793         "bp-asm.h".
8794         (PARMS): Do not use macros from bp-asm.h.
8795         (S): Likewise.
8796         (SIZE): Likewise.
8797         (__mpn_rshift): Do not use BP_SYM.
8798         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
8799         "bp-asm.h".
8800         (PARMS): Do not use macros from bp-asm.h.
8801         (STR): Likewise.
8802         (CHR): Likewise.
8803         (strchr): Likewise.  Do not use BP_SYM.
8804         (index): Do not use BP_SYM in weak_alias.
8805         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
8806         "bp-asm.h".
8807         (PARMS): Do not use macros from bp-asm.h.
8808         (DEST): Likewise.
8809         (SRC): Likewise.
8810         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
8811         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
8812         "bp-asm.h".
8813         (PARMS): Do not use macros from bp-asm.h.
8814         (strlen): Do not use BP_SYM.
8815         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
8816         "bp-asm.h".
8817         (PARMS): Do not use macros from bp-asm.h.
8818         (S1): Likewise.
8819         (S2): Likewise.
8820         (SIZE): Likewise.
8821         (__mpn_sub_n): Do not use BP_SYM.
8822         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
8823         "bp-asm.h".
8824         (PARMS): Do not use macros from bp-asm.h.
8825         (S1): Likewise.
8826         (SIZE): Likewise.
8827         (__mpn_submul_1): Do not use BP_SYM.
8828         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
8829         "bp-asm.h".
8830         (PARMS): Do not use macros from bp-asm.h.
8831         (S1): Likewise.
8832         (S2): Likewise.
8833         (SIZE): Likewise.
8834         (__mpn_add_n): Do not use BP_SYM.
8835         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
8836         weak_alias.
8837         (bzero): Likewise.
8838         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
8839         "bp-asm.h".
8840         (PARMS): Do not use macros from bp-asm.h.
8841         (BLK2): Likewise.
8842         (LEN): Likewise.
8843         (memcmp): Do not use BP_SYM.
8844         (bcmp): Do not use BP_SYM in weak_alias.
8845         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
8846         "bp-asm.h".
8847         (PARMS): Do not use macros from bp-asm.h.
8848         (DEST): Likewise.
8849         (SRC): Likewise.
8850         (LEN): Likewise.
8851         (memcpy): Likewise.  Do not use BP_SYM.
8852         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
8853         "bp-asm.h".
8854         (PARMS): Do not use macros from bp-asm.h.
8855         (DEST): Likewise.
8856         (SRC): Likewise.
8857         (LEN): Likewise.
8858         (memmove): Likewise.  Do not use BP_SYM.
8859         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
8860         "bp-asm.h".
8861         (PARMS): Do not use macros from bp-asm.h.
8862         (DEST): Likewise.
8863         (SRC): Likewise.
8864         (LEN): Likewise.
8865         (__mempcpy): Likewise.  Do not use BP_SYM.
8866         (mempcpy): Do not use BP_SYM in weak_alias.
8867         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
8868         "bp-asm.h".
8869         (PARMS): Do not use macros from bp-asm.h.
8870         (DEST): Likewise.
8871         (LEN): Likewise.
8872         [!BZERO_P] (CHR): Likewise.
8873         (memset): Likewise.  Do not use BP_SYM.
8874         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
8875         "bp-asm.h".
8876         (PARMS): Do not use macros from bp-asm.h.
8877         (STR2): Likewise.
8878         (strcmp): Do not use BP_SYM.
8879         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
8880         "bp-asm.h".
8881         (PARMS): Do not use macros from bp-asm.h.
8882         (STR): Likewise.
8883         (DELIM): Likewise.
8884         [USE_AS_STRTOK_R] (SAVE): Likewise.
8885         (FUNCTION): Likewise.  Do not use BP_SYM.
8886         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
8887         aliases.
8888         (strtok_r): Likewise.
8889         (__GI___strtok_r): Likewise.
8890         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
8891         (PARMS): Do not use macros from bp-asm.h.
8892         (S): Likewise.
8893         (SIZE): Likewise.
8894         (__mpn_lshift): Do not use BP_SYM.
8895         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
8896         (PARMS): Do not use macros from bp-asm.h.
8897         (STR): Likewise.
8898         (CHR): Likewise.
8899         (__memchr): Do not use BP_SYM.
8900         (memchr): Do not use BP_SYM in weak_alias.
8901         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
8902         (PARMS): Do not use macros from bp-asm.h.
8903         (BLK2): Likewise.
8904         (LEN): Likewise.
8905         (memcmp): Do not use BP_SYM.
8906         (bcmp): Do not use BP_SYM in weak_alias.
8907         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
8908         (PARMS): Do not use macros from bp-asm.h.
8909         (S1): Likewise.
8910         (SIZE): Likewise.
8911         (__mpn_mul_1): Do not use BP_SYM.
8912         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
8913         "bp-asm.h".
8914         (PARMS): Do not use macros from bp-asm.h.
8915         (STR): Likewise.
8916         (CHR): Likewise.
8917         (__rawmemchr): Do not use BP_SYM.
8918         (rawmemchr): Do not use BP_SYM in weak_alias.
8919         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
8920         (PARMS): Do not use macros from bp-asm.h.
8921         (S): Likewise.
8922         (SIZE): Likewise.
8923         (__mpn_rshift): Do not use BP_SYM.
8924         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
8925         (PARMS): Do not use macros from bp-asm.h.
8926         (SIGMSK): Likewise.
8927         (__sigsetjmp): Likewise.  Do not use BP_SYM.
8928         * sysdeps/i386/start.S: Do not include "bp-sym.h".
8929         (_start): Do not use BP_SYM.
8930         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
8931         (PARMS): Do not use macros from bp-asm.h.
8932         (DEST): Likewise.
8933         (SRC): Likewise.
8934         (__stpcpy): Likewise.  Do not use BP_SYM.
8935         (stpcpy): Do not use BP_SYM in weak_alias.
8936         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
8937         "bp-asm.h".
8938         (PARMS): Do not use macros from bp-asm.h.
8939         (DEST): Likewise.
8940         (SRC): Likewise.
8941         (LEN): Likewise.
8942         (__stpncpy): Likewise.  Do not use BP_SYM.
8943         (stpncpy): Do not use BP_SYM in weak_alias.
8944         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
8945         (PARMS): Do not use macros from bp-asm.h.
8946         (STR): Likewise.
8947         (CHR): Likewise.
8948         (strchr): Likewise.  Do not use BP_SYM.
8949         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
8950         "bp-asm.h".
8951         (PARMS): Do not use macros from bp-asm.h.
8952         (STR): Likewise.
8953         (CHR): Likewise.
8954         (__strchrnul): Likewise.  Do not use BP_SYM.
8955         (strchrnul): Do not use BP_SYM in weak_alias.
8956         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
8957         "bp-asm.h".
8958         (PARMS): Do not use macros from bp-asm.h.
8959         (STOP): Likewise.
8960         (strcspn): Do not use BP_SYM.
8961         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
8962         "bp-asm.h".
8963         (PARMS): Do not use macros from bp-asm.h.
8964         (STR): Likewise.
8965         (STOP): Likewise.
8966         (strpbrk): Likewise.  Do not use BP_SYM.
8967         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
8968         "bp-asm.h".
8969         (PARMS): Do not use macros from bp-asm.h.
8970         (STR): Likewise.
8971         (CHR): Likewise.
8972         (strrchr): Likewise.  Do not use BP_SYM.
8973         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
8974         (PARMS): Do not use macros from bp-asm.h.
8975         (SKIP): Likewise.
8976         (strspn): Do not use BP_SYM.
8977         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
8978         (PARMS): Do not use macros from bp-asm.h.
8979         (STR): Likewise.
8980         (DELIM): Likewise.
8981         (SAVE): Likewise.
8982         (FUNCTION): Likewise.  Do not use BP_SYM.
8983         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
8984         aliases.
8985         (strtok_r): Likewise.
8986         (__GI___strtok_r): Likewise.
8987         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
8988         (PARMS): Do not use macros from bp-asm.h.
8989         (S1): Likewise.
8990         (S2): Likewise.
8991         (SIZE): Likewise.
8992         (__mpn_sub_n): Do not use BP_SYM.
8993         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
8994         "bp-asm.h".
8995         (PARMS): Do not use macros from bp-asm.h.
8996         (S1): Likewise.
8997         (SIZE): Likewise.
8998         (__mpn_submul_1): Do not use BP_SYM.
8999         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
9000         <bp-sym.h>.
9001         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
9002         and <bp-asm.h>.
9003         (PARMS): Do not use macros from bp-asm.h.
9004         (FLAGS): Likewise.
9005         (PTID): Likewise.
9006         (TLS): Likewise.
9007         (CTID): Likewise.
9008         (__clone): Do not use BP_SYM.
9009         (clone): Do not use BP_SYM in weak_alias.
9010         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
9011         and <bp-asm.h>.
9012         (PARMS): Do not use macros from bp-asm.h.
9013         (LEN): Likewise.
9014         (__mmap64): Do not use BP_SYM.
9015         (mmap64): Do not use BP_SYM in weak_alias.
9016         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
9017         <bp-sym.h> and <bp-asm.h>.
9018         (PARMS): Do not use macros from bp-asm.h.
9019         (__posix_fadvise64_l64): Do not use BP_SYM.
9020         * sysdeps/unix/sysv/linux/i386/semtimedop.S
9021         (PARMS): Do not use macros from bp-asm.h.
9022         (NSOPS): Likewise.
9023         (semtimedop): Do not use BP_SYM.
9024         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
9025         and <bp-asm.h>.
9026
9027 2013-02-21  Allan McRae  <allan@archlinux.org>
9028
9029         * manual/message.texi (Charset conversion in gettext):
9030         Move @end statement to beginning of line.
9031
9032 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
9033
9034         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
9035         static.
9036         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
9037         Likewise.
9038
9039         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
9040         (denorm): Likewise.
9041         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
9042         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
9043
9044 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9045
9046         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
9047         tail-call to the resolved function if pltexit isn't needed.
9048
9049 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
9050
9051         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
9052         or Y being zero as being unlikely.
9053         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
9054         Likewise.
9055
9056 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
9057
9058         * manual/nss.texi (System Databases and Name Service Switch):
9059         Remove frobnicate @pxref.
9060
9061 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
9062
9063         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
9064         __attribute__ ((unused)) to __attribute__ ((__unused__)).
9065
9066 2013-02-20  Petr Machata  <pmachata@redhat.com>
9067
9068         * elf/elf.h (R_ARM_TARGET1): New macro.
9069         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
9070         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
9071         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
9072         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
9073         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
9074         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
9075         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
9076         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
9077         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
9078         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
9079         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
9080         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
9081         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
9082         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
9083         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
9084         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
9085         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
9086         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
9087         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
9088         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
9089         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
9090         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
9091         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
9092         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
9093         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
9094         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
9095         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
9096         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
9097         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
9098         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
9099         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
9100         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
9101         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
9102         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
9103         (R_ARM_THM_GOT_BREL12): Likewise.
9104         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
9105         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
9106         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
9107         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
9108         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
9109         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
9110         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
9111         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
9112         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
9113
9114 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
9115
9116         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
9117         __attribute_used__ to __attribute__ ((unused)).
9118
9119 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
9120
9121         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
9122         powerpc mpa.c.
9123         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
9124         comment formatting.
9125         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
9126
9127 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
9128
9129         [BZ #13550]
9130         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
9131         Remove macro.
9132         (ENTER): Remove both macro definitions.
9133         (LEAVE): Likewise.
9134         (CHECK_BOUNDS_LOW): Likewise.
9135         (CHECK_BOUNDS_HIGH): Likewise.
9136         (CHECK_BOUNDS_BOTH): Likewise.
9137         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
9138         (RETURN_BOUNDED_POINTER): Likewise.
9139         (RETURN_NULL_BOUNDED_POINTER): Likewise.
9140         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
9141         (POP_ERRNO_LOCATION_RETURN): Likewise.
9142         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
9143         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
9144         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
9145         macros.
9146         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9147         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
9148         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
9149         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
9150         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
9151         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
9152         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
9153         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
9154         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
9155         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
9156         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
9157         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
9158         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
9159         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
9160         removed macros.
9161         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9162         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
9163         macros.
9164         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
9165         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
9166         * sysdeps/i386/i586/memset.S (memset): Likewise.
9167         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
9168         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9169         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
9170         macros.
9171         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
9172         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
9173         Change uses of L(2) to L(out).
9174         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
9175         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
9176         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
9177         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
9178         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
9179         removed macros.
9180         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9181         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
9182         macros.
9183         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
9184         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
9185         (RETURN): Do not use macro LEAVE.
9186         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
9187         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
9188         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
9189         * sysdeps/i386/i686/memset.S (memset): Likewise.
9190         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
9191         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
9192         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
9193         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
9194         Likewise.
9195         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
9196         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
9197         L(1_2) and L(1_3) into L(1).
9198         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
9199         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
9200         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
9201         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
9202         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
9203         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
9204         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
9205         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9206         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
9207         macros.
9208         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
9209         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
9210         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
9211         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
9212         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
9213         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
9214         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
9215         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
9216         * sysdeps/i386/strcspn.S (strcspn): Likewise.
9217         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
9218         * sysdeps/i386/strrchr.S (strrchr): Likewise.
9219         * sysdeps/i386/strspn.S (strspn): Likewise.
9220         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
9221         conditional code.
9222         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
9223         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
9224         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
9225         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
9226         L(1_3) into L(1_1).
9227         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
9228         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
9229         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
9230         macros.
9231         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9232
9233 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
9234
9235         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
9236         macro.
9237
9238 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
9239
9240         * math/atest-exp.c (exp_mpn): Remove ROUND.
9241         * math/atest-exp2.c (exp_mpn): Likewise.
9242         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
9243
9244         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
9245         * stdlib/tst-tls-atexit-lib.c: Likewise.
9246         * stdlib/tst-tls-atexit.c: Likewise.
9247
9248 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
9249
9250         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
9251         and __attribute_alloc_size__.
9252
9253 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
9254
9255         * include/programs/xmalloc.h: Change __attribute_alloc_size to
9256         __attribute_alloc_size__.
9257         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
9258         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
9259
9260 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
9261
9262         * include/programs/xmalloc.h: New file.
9263         * catgets/gencat.c: Include it.
9264         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
9265         * elf/pldd.c: Likewise.
9266         * iconv/iconv_charmap.c: Likewise.
9267         * iconv/iconvconfig.c: Likewise.
9268         * iconv/strtab.c: Likewise.
9269         * locale/programs/locale.c: Likewise.
9270         * locale/programs/localedef.h: Likewise.
9271         * locale/programs/simple-hash.c: Likewise.
9272         * nscd/nscd.h: Likewise.
9273         * nss/makedb.c: Likewise.
9274         * sysdeps/generic/ldconfig.h: Likewise.
9275
9276 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
9277
9278         * Versions.def: Add GLIBC_2.18.
9279         * include/link.h (struct link_map): New member l_tls_dtor_count.
9280         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
9281         (__call_tls_dtors): Likewise.
9282         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
9283         __cxa_thread_atexit_impl.
9284         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9285         Likewise.
9286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9287         Likewise.
9288         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9289         Likewise.
9290         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9291         Likewise.
9292         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
9293         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
9294         Likewise.
9295         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
9296         Likewise.
9297         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
9298         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
9299         Likewise.
9300         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
9301         (tests): Add test case tst-tls-atexit.
9302         (modules-names): Add shared library for tst-tls-atexit.
9303         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
9304         (GLIBC_PRIVATE): Add __call_tls_dtors.
9305         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
9306         for libstdc++.
9307         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
9308         * stdlib/tst-tls-atexit.c: New test case.
9309         * stdlib/tst-tls-atexit-lib.c: New test case.
9310
9311         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
9312
9313         * elf/Versions (ld): Add _dl_find_dso_for_object.
9314         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
9315         * elf/dl-open.c (_dl_find_dso_for_object): New function.
9316         (dl_open_worker): Use _dl_find_dso_for_object.
9317         * elf/dl-sym.c (do_sym): Likewise.
9318         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
9319
9320 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9321
9322         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
9323         Syntactic changes only.
9324         (_dl_runtime_profile): Do a tail-call to the resolved function.
9325
9326 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
9327
9328         [BZ #13550]
9329         * sysdeps/x86_64/bp-asm.h: Remove file.
9330         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
9331         <bp-sym.h> and <bp-asm.h>.
9332         (__clone): Do not use BP_SYM.
9333         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
9334         <bp-sym.h> and <bp-asm.h>.
9335         * sysdeps/unix/x86_64/sysdep.S: Likewise.
9336         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
9337         "bp-asm.h".
9338         (_setjmp): Do not use BP_SYM.
9339         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
9340         "bp-asm.h".
9341         (setjmp): Do not use BP_SYM.
9342         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
9343         libc_hidden_def.
9344         (mempcpy): Do not use BP_SYM in weak_alias.
9345         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
9346         "bp-asm.h".
9347         (strchr): Do not use BP_SYM.
9348         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
9349         "bp-asm.h".
9350         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
9351         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
9352         (_start): Do not use BP_SYM.
9353         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
9354         "bp-asm.h".
9355         (strcat): Do not use BP_SYM.
9356         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
9357         "bp-asm.h".
9358         (STRCMP): Do not use BP_SYM.
9359         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
9360         "bp-asm.h".
9361         (STRCPY): Do not use BP_SYM.
9362         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
9363         "bp-asm.h".
9364         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
9365         "bp-asm.h".
9366         (FUNCTION): Do not use BP_SYM.
9367         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
9368         weak_alias.
9369         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
9370
9371 2013-02-17  Andreas Jaeger  <aj@suse.de>
9372
9373         * time/Versions: Sort entries.
9374         * string/Versions: Likewise.
9375         * resolv/Versions: Likewise.
9376         * posix/Versions: Likewise.
9377         * iconv/Versions: Likewise.
9378         * elf/Versions: Likewise.
9379         * wcsmbs/Versions: Likewise.
9380
9381 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
9382
9383         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
9384         loop termination condition.
9385
9386         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
9387         variable to calculate EZ.
9388         (__sqr): Likewise.
9389
9390         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
9391         the lower precision input.
9392
9393 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
9394
9395         [BZ #13550]
9396         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
9397         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
9398         (run-via-rtld-prefix): Do not handle %-bp tests.
9399         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
9400         (all-object-suffixes): Remove .ob.
9401         (bppfx): Remove variable.
9402         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
9403         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
9404         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
9405         [$(build-bounded) = yes] (libtype.ob): Likewise.
9406         * Makerules (elide-routines.ob): Remove variable.
9407         (do-tests-clean): Do not handle *-bp.out.
9408         (common-mostlyclean): Do not handle *-bp and *-bp.out.
9409         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
9410         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
9411         (tests): Do not include $(tests-bp.out).
9412         (xtests): Do not include $(xtests-bp.out).
9413         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
9414         [$(build-bounded) = yes] ($(addprefix
9415         $(objpfx),$(binaries-bounded))): Remove rule.
9416         ($(objpfx)%-bp.out): Remove rule.
9417         * config.make.in (build-bounded): Remove variable.
9418         * crypt/Makefile [$(build-bounded) = yes]
9419         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
9420         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
9421         append to variable.
9422         [$(build-bounded) = yes] (install-lib): Likewise.
9423         [$(build-bounded) = yes] (generated): Likewise.
9424         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
9425         Remove rule.
9426         * intl/Makefile [$(build-bounded) = yes]
9427         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
9428         * math/Makefile [$(build-bounded) = yes]
9429         ($(tests:%=$(objpfx)%-bp): Likewise.
9430         * misc/Makefile [$(build-bounded) = yes]
9431         ($(objpfx)tst-tsearch-bp): Likewise.
9432         * nptl/Makeconfig (bounded-thread-library): Remove variable.
9433         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
9434         Remove dependency.
9435         * string/Makefile (o-objects.ob): Remove variable.
9436         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
9437         (CFLAGS-.ob): Remove variable.
9438         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
9439         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
9440         both definitions of variable.
9441         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
9442         (ASFLAGS-.ob): Remove variable.
9443
9444 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
9445
9446         [BZ #13550]
9447         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
9448         Remove __BOUNDED_POINTERS__ from condition.
9449         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
9450         * string/bits/string2.h [!__NO_STRING_INLINES &&
9451         !__BOUNDED_POINTERS__]: Likewise.
9452         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
9453         Likewise.
9454         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
9455         Remove conditional code.
9456         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
9457         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
9458         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
9459         condition.
9460
9461         [BZ #13550]
9462         * csu/libc-start.c: Do not include <bp-sym.h>.
9463         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
9464         * elf/dl-open.c: Do not include <bp-sym.h>.
9465         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
9466         * math/fegetenv.c: Do not include <bp-sym.h>.
9467         (fegetenv): Do not use BP_SYM in versioned symbols.
9468         * nptl/sysdeps/pthread/bits/libc-lockP.h
9469         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
9470         <bp-sym.h>.
9471         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9472         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
9473         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9474         (__pthread_mutex_destroy): Likewise.
9475         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9476         (__pthread_mutex_lock): Likewise.
9477         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9478         (__pthread_mutex_trylock): Likewise.
9479         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9480         (__pthread_mutex_unlock): Likewise.
9481         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9482         (__pthread_mutexattr_init): Likewise.
9483         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9484         (__pthread_mutexattr_destroy): Likewise.
9485         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9486         (__pthread_mutexattr_settype): Likewise.
9487         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9488         (__pthread_rwlock_init): Likewise.
9489         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9490         (__pthread_rwlock_destroy): Likewise.
9491         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9492         (__pthread_rwlock_rdlock): Likewise.
9493         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9494         (__pthread_rwlock_tryrdlock): Likewise.
9495         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9496         (__pthread_rwlock_wrlock): Likewise.
9497         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9498         (__pthread_rwlock_trywrlock): Likewise.
9499         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9500         (__pthread_rwlock_unlock): Likewise.
9501         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9502         (__pthread_key_create): Likewise.
9503         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9504         (__pthread_setspecific): Likewise.
9505         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9506         (__pthread_getspecific): Likewise.
9507         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
9508         Likewise.
9509         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9510         (_pthread_cleanup_push_defer): Likewise.
9511         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9512         (_pthread_cleanup_pop_restore): Likewise.
9513         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
9514         (pthread_setcancelstate): Likewise.
9515         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
9516         <bp-sym.h>.
9517         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
9518         (memchr): Do not use BP_SYM in weak_alias.
9519         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
9520         (fegetenv): Do not use BP_SYM in versioned symbols.
9521         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
9522         (fesetenv): Do not use BP_SYM in versioned symbols.
9523         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
9524         (feupdateenv): Do not use BP_SYM in versioned symbols.
9525         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
9526         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
9527         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
9528         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
9529         (open64): Do not use BP_SYM in weak_alias.
9530         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
9531         (fegetenv): Do not use BP_SYM in versioned symbols.
9532         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
9533         (fesetenv): Do not use BP_SYM in versioned symbols.
9534         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
9535         (feupdateenv): Do not use BP_SYM in versioned symbols.
9536         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
9537         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
9538         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
9539         (feraiseexcept): Do not use BP_SYM in versioned symbols.
9540         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
9541         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
9542         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
9543         <bp-sym.h>.
9544         (__libc_start_main): Do not use BP_SYM.
9545
9546 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
9547
9548         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
9549         redundant return line.
9550         (norm): Likewise.
9551         (denorm): Likewise.
9552         (dbl_mp): Likewise.
9553         (sub_magnitudes): Likewise.
9554         (__add): Likewise.
9555         (__sub): Likewise.
9556         (__mul): Likewise.
9557         (__inv): Likewise.
9558         (__dvd): Likewise.
9559         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
9560         (norm): Likewise.
9561         (denorm): Likewise.
9562         (dbl_mp): Likewise.
9563         (sub_magnitudes): Likewise.
9564         (__add): Likewise.
9565         (__sub): Likewise.
9566         (__mul): Likewise.
9567         (__inv): Likewise.
9568         (__dvd): Likewise.
9569
9570         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
9571         instead of __mul.
9572         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
9573         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
9574         (cc32): Likewise.
9575
9576         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
9577         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
9578         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
9579         of __mul for squares.
9580         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
9581         function
9582         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
9583         Likewise.
9584         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
9585         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
9586
9587 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
9588
9589         [BZ #13550]
9590         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
9591         code.
9592         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
9593         prototype or function definition.  Rename ubp_* variables and
9594         parameters.  Remove argv definitions conditional on
9595         [__BOUNDED_POINTERS__].
9596         * debug/backtrace.c (__backtrace): Do not use __unbounded.
9597         * elf/dl-runtime.c (_dl_fixup): Likewise.
9598         * include/set-hooks.h (RUN_HOOK): Likewise.
9599         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
9600         definition.
9601         * string/strcpy.c (strcpy): Do not use __unbounded.
9602         * sysdeps/generic/frame.h (struct layout): Likewise.
9603         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
9604         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
9605         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
9606         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
9607         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
9608         (__backtrace): Likewise.
9609         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
9610         use __ptrvalue.
9611         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
9612         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
9613         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
9614         Likewise.
9615         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
9616         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
9617         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
9618         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
9619         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
9620         Do not use __unbounded.
9621         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
9622         Rename __unboundedrlimits parameter to rlimits in prototype.
9623         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
9624         Do not use __unbounded.
9625         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
9626         not use __ptrvalue.
9627         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
9628         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
9629         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
9630         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
9631         __ptrvalue or __unbounded.
9632         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
9633         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
9634         use __unbounded.
9635         (__new_msgctl): Do not use __ptrvalue.
9636         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
9637         __unbounded.
9638         (__libc_msgrcv): Do not use __ptrvalue.
9639         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
9640         startup_info): Do not use __unbounded.
9641         (__libc_start_main): Likewise.  Rename ubp_* variables and
9642         parameters.  Remove argv definitions conditional on
9643         [__BOUNDED_POINTERS__].
9644         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
9645         __ptrvalue.
9646         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
9647         use __unbounded.
9648         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
9649         or __ptrvalue.
9650         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
9651         use __unbounded.
9652         (__new_shmctl): Do not use __ptrvalue.
9653         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
9654         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
9655         Likewise.
9656         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
9657         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
9658         (__libc_sigaction): Likewise.
9659         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
9660         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
9661         Likewise.
9662         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
9663
9664 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
9665
9666         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
9667
9668         * string/mempcpy.c: Implement by calling memcpy.
9669
9670 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
9671
9672         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
9673
9674         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
9675         evaluation.
9676
9677         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
9678         values in the mantissa.
9679
9680         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
9681         minimize writes to Z.
9682         (sub_magnitudes): Simplify code a bit.
9683
9684 2013-02-12  Roland McGrath  <roland@hack.frob.com>
9685
9686         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
9687         from the message.  The linker prefixes all warnings with that already.
9688
9689 2013-02-12  Andreas Schwab  <schwab@suse.de>
9690
9691         [BZ #15078]
9692         * posix/regexec.c (extend_buffers): Add parameter min_len.
9693         (check_matching): Pass minimum needed length.
9694         (clean_state_log_if_needed): Likewise.
9695         (get_subexp): Likewise.
9696         * posix/Makefile (tests): Add bug-regex34.
9697         (bug-regex34-ENV): Define.
9698         * posix/bug-regex34.c: New file.
9699
9700         [BZ #11561]
9701         * posix/regcomp.c (parse_bracket_exp): When looking up collating
9702         elements compare against the byte sequence of it, not its name.
9703         * posix/Makefile (tests): Add bug-regex35.
9704         (bug-regex35-ENV): Define.
9705         * posix/bug-regex35.c: New file.
9706
9707 2013-02-11  Tom de Vries  <tom@codesourcery.com>
9708
9709         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
9710         comment.
9711         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
9712         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
9713         (CHECK_EOL): Add undef.
9714
9715 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
9716
9717         * bits/stdlib-bsearch.h: New file.
9718         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
9719         * stdlib/stdlib.h: Likewise.
9720
9721 2013-02-11  Roland McGrath  <roland@hack.frob.com>
9722
9723         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
9724         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
9725         declaration.
9726         * manual/search.texi (Array Search Function): Add missing const in
9727         lfind prototype.
9728         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
9729         declaration to use rlim_t.
9730         (Basic Scheduling Functions): Remove erroneous const from
9731         sched_getparam prototype.  Remove erroneous * from
9732         sched_get_priority_max and sched_get_priority_min prototypes.
9733         (Resource Usage): Fix summary @comment on vtimes to refer to
9734         sys/vtimes.h rather than vtimes.h.
9735         Add missing *s in vtimes prototype.
9736         (Limits on Resources): Fix ulimit prototype to return long int.
9737         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
9738         prototypes to use long int rather than double.
9739         (BSD Random): Fix initstate and setstate to use char *, not void *.
9740         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
9741         prototype to make second argument 'struct aiocb64 *const[]'.
9742         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
9743         (Status of AIO Operations): Remove erroneous const in aio_return and
9744         aio_return64 prototypes.
9745         (Synchronizing I/O): Fix sync prototype to return void.
9746         * manual/startup.texi (Suboptions): Remove an erroneous const in
9747         getsubopt prototype.
9748         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
9749         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
9750         use size_t rather than int.
9751         (Scanning All Users): Likewise for getpwent_r.
9752         (Setting Groups): Add missing const to setgroups prototype.
9753         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
9754         * manual/socket.texi (Host Names): Fix gethostbyaddr and
9755         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
9756         'const void *' rather than 'const char *'.
9757         (Host Address Functions): Likewise for inet_ntop.
9758         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
9759         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
9760         ssize_t for return value.
9761         (Sending Data): Likewise for send, sendto, sendmsg.
9762         (Socket Option Functions): Add a missing const in setsockopt prototype.
9763         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
9764         use wchar_t for the argument.
9765         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
9766         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
9767         take no arguments.
9768         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
9769         double/float/long double for second argument.
9770         Fix return types of significand, significandf, significandl.
9771         * manual/filesys.texi (Setting Permissions): Use mode_t for second
9772         argument in fchmod prototype.
9773         (File Owner): Use uid_t and gid_t in fchown prototype.
9774         (File Times): Add const to utimes, futimes, and lutimes prototypes.
9775         (Making Special Files): Use mode_t and dev_t in mknod prototype.
9776         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
9777         use 'const struct dirent **' as argument types to CMP function pointer
9778         argument.
9779         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
9780         (File Times): Fix summary magic @comment for struct utimbuf and utime
9781         to refer to utime.h, not time.h.
9782         * manual/string.texi (Argz Functions): Add missing const in
9783         argz_extract and argz_next prototypes.
9784         (Finding Tokens in a String): Likewise for basename.
9785         (String/Array Comparison): Fix typo in wcscasecmp prototype.
9786         (Copying and Concatenation): Fix typo in wmemmove prototype.
9787         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
9788         (Signal Stack): Remove erroneous const in sigstack prototype.
9789         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
9790         prototype.
9791         (Simple Calendar Time): Likewise for stime.
9792         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
9793         prototype.
9794         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
9795         say sys/sysctl.h instead.
9796         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
9797         and vsyslog prototypes.
9798
9799 2013-02-11  Tom de Vries  <tom@codesourcery.com>
9800
9801         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
9802         Remove.
9803
9804 2013-02-11  Roland McGrath  <roland@hack.frob.com>
9805
9806         * misc/sys/mman.h: Fix typo in mremap comment.
9807
9808 2013-02-08  Roland McGrath  <roland@hack.frob.com>
9809
9810         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
9811         the '\0' terminator.
9812
9813 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
9814
9815         [BZ #13550]
9816         * debug/segfault.c: Don't include <bp-checks.h>.
9817         * sysdeps/generic/bp-checks.h: Remove file.
9818         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
9819         (__GETDENTS): Don't use CHECK_N.
9820         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
9821         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
9822         (__getgroups): Don't use CHECK_N.
9823         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
9824         (setgroups): Don't use CHECK_N.
9825         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
9826         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
9827         (__libc_msgrcv): Don't use CHECK_N.
9828         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
9829         (__libc_msgsnd): Don't use CHECK_N.
9830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
9831         <bp-checks.h>.
9832         (__libc_pread): Don't use CHECK_N.
9833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
9834         include <bp-checks.h>.
9835         (__libc_pread64): Don't use CHECK_N.
9836         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
9837         include <bp-checks.h>.
9838         (__libc_pwrite): Don't use CHECK_N.
9839         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
9840         include <bp-checks.h>.
9841         (__libc_pwrite64): Don't use CHECK_N.
9842         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
9843         <bp-checks.h>.
9844         (__libc_pread): Don't use CHECK_N.
9845         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
9846         include <bp-checks.h>.
9847         (__libc_pread64): Don't use CHECK_N.
9848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
9849         include <bp-checks.h>.
9850         (__libc_pwrite): Don't use CHECK_N.
9851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
9852         include <bp-checks.h>.
9853         (__libc_pwrite64): Don't use CHECK_N.
9854         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
9855         (do_pread): Don't use CHECK_N.
9856         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
9857         (do_pread64): Don't use CHECK_N.
9858         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
9859         (do_pwrite): Don't use CHECK_N.
9860         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
9861         (do_pwrite64): Don't use CHECK_N.
9862         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
9863         (__libc_readv): Don't use CHECK_N.
9864         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
9865         (semop): Don't use CHECK_N.
9866         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
9867         <bp-checks.h>.
9868         (semtimedop): Don't use CHECK_N.
9869         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
9870         (__libc_pread): Don't use CHECK_N.
9871         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
9872         <bp-checks.h>.
9873         (__libc_pread64): Don't use CHECK_N.
9874         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
9875         <bp-checks.h>.
9876         (__libc_pwrite): Don't use CHECK_N.
9877         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
9878         <bp-checks.h>.
9879         (__libc_pwrite64): Don't use CHECK_N.
9880         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
9881         <bp-checks.h>.
9882         (__libc_msgrcv): Don't use CHECK_N.
9883         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
9884         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
9885         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
9886         (__libc_writev): Don't use CHECK_N.
9887
9888 2013-02-08  Roland McGrath  <roland@hack.frob.com>
9889
9890         * string/strcpy.c: Removed unused variable.
9891
9892         * Makeconfig (+sysdep-includes): Define with := rather than =.
9893         Use an existing include/ subdir of each sysdeps dir before it.
9894
9895 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
9896
9897         * nscd/connection.c (register_traced_file): Comment function.
9898         [HAVE_INOTIFY] (union __inev): Define.
9899         [HAVE_INOTIFY] (inotify_check_files): New function.
9900         [HAVE_INOTIFY] (clear_db_cache): Likewise.
9901         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
9902         clear_db_cache.
9903         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
9904
9905 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
9906
9907         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
9908         loaded if not already and that a failure is permanent.
9909
9910 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
9911
9912         [BZ #15006]
9913         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
9914         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
9915
9916 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
9917
9918         [BZ #13550]
9919         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
9920         (CHECK_1_NULL_OK): Likewise.
9921         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
9922         (__fxstat): Do not use CHECK_1.
9923         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
9924         <bp-checks.h>.
9925         (___fxstat64): Do not use CHECK_1.
9926         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
9927         <bp-checks.h>.
9928         (__fxstatat): Do not use CHECK_1.
9929         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
9930         <bp-checks.h>.
9931         (__fxstatat64): Do not use CHECK_1.
9932         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
9933         <bp-checks.h>.
9934         (__fxstat): Do not use CHECK_1.
9935         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
9936         <bp-checks.h>.
9937         (__fxstatat): Do not use CHECK_1.
9938         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
9939         <bp-checks.h>.
9940         (__getresgid): Do not use CHECK_1.
9941         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
9942         <bp-checks.h>.
9943         (__getresuid): Do not use CHECK_1.
9944         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
9945         <bp-checks.h>.
9946         (__lxstat): Do not use CHECK_1.
9947         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
9948         <bp-checks.h>.
9949         (__old_msgctl): Do not use CHECK_1.
9950         (__new_msgctl): Likewise.
9951         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
9952         <bp-checks.h>.
9953         (__new_setrlimit): Do not use CHECK_1.
9954         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
9955         <bp-checks.h>.
9956         (__old_shmctl): Do not use CHECK_1.
9957         (__new_shmctl): Likewise.
9958         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
9959         <bp-checks.h>.
9960         (__xstat): Do not use CHECK_1.
9961         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
9962         (__lxstat): Do not use CHECK_1.
9963         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
9964         <bp-checks.h>.
9965         (___lxstat64): Do not use CHECK_1.
9966         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
9967         (__old_msgctl): Do not use CHECK_1.
9968         (__new_msgctl): Likewise.
9969         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
9970         <bp-checks.h>.
9971         (__gettimeofday): Do not use CHECK_1.
9972         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
9973         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
9974         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
9975         <bp-checks.h>.
9976         (__gettimeofday): Do not use CHECK_1.
9977         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
9978         (__old_shmctl): Do not use CHECK_1_NULL_OK.
9979         (__new_shmctl): Do not use CHECK_1.
9980         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
9981         <bp-checks.h>.
9982         (do_sigtimedwait): Do not use CHECK_1.
9983         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
9984         <bp-checks.h>.
9985         (do_sigwaitinfo): Do not use CHECK_1.
9986         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
9987         <bp-checks.h>.
9988         (msgctl): Do not use CHECK_1.
9989         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
9990         <bp-checks.h>.
9991         (shmctl): Do not use CHECK_1.
9992         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
9993         (ustat): Do not use CHECK_1.
9994         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
9995         <bp-checks.h>.
9996         (__fxstat): Do not use CHECK_1.
9997         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
9998         <bp-checks.h>.
9999         (__fxstatat): Do not use CHECK_1.
10000         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
10001         <bp-checks.h>.
10002         (__lxstat): Do not use CHECK_1.
10003         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
10004         <bp-checks.h>.
10005         (__xstat): Do not use CHECK_1.
10006         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
10007         (__xstat): Do not use CHECK_1.
10008         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
10009         (___xstat64): Do not use CHECK_1.
10010
10011         [BZ #13550]
10012         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
10013         definitions.
10014         (CHECK_BOUNDS_HIGH): Likewise.
10015         * string/strcpy.c: Do not include <bp-checks.h>.
10016         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
10017
10018 2013-02-07  Roland McGrath  <roland@hack.frob.com>
10019
10020         * nscd/nscd-client.h (__nscd_drop_map_ref):
10021         Add __attribute__ ((unused)).
10022         * nis/nss-nisplus.h (niserr2nss): Likewise.
10023
10024         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
10025         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
10026
10027         * csu/libc-tls.c (init_static_tls, init_slotinfo):
10028         Remove inline keyword.
10029         * include/rounding-mode.h (round_away): Likewise.
10030         * libio/wfileops.c (adjust_wide_data): Likewise.
10031         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
10032         (__m128i_strloadu_tolower): Likewise.
10033         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
10034         (__m128i_strloadu_tolower): Likewise.
10035         * time/mktime.c (ydhms_diff): Likewise.
10036         * locale/elem-hash.h (elem_hash): Likewise.
10037         * locale/setlocale.c (setdata): Likewise.
10038         * posix/regex_internal.h (re_string_char_size_at): Likewise.
10039         (re_string_wchar_at): Likewise.
10040         (bitset_not, bitset_merge, bitset_mask): Likewise.
10041         [!(__GNUC__ > 3)] (inline): Remove macro.
10042         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
10043         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
10044         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
10045         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
10046         * string/memcmp.c (memcmp_bytes): Likewise.
10047         * locale/programs/locarchive.c (compute_hashval): Likewise.
10048         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
10049         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
10050         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
10051         * nss/getent.c (print_rpc, print_protocols): Likewise.
10052         (print_passwd, print_group, print_aliases): Likewise.
10053         * nis/nss-nisplus.h (niserr2nss): Likewise.
10054         * nscd/connections.c (restart_p): Likewise.
10055         Change return type to bool.
10056
10057 2013-02-05  Roland McGrath  <roland@hack.frob.com>
10058
10059         * Makeconfig (all-Depend-files): Add existing
10060         $(sorted-subdirs:=/Depend) files.
10061         (all-subdirs): Remove nss.
10062         * sysdeps/unix/inet/Subdirs: Add it here instead.
10063         * hesiod/Depend: New file.
10064
10065         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
10066         instead of calling alloca.
10067
10068         * io/lseek.c (__lseek): Rename to __libc_lseek.
10069         Define __lseek as an alias.
10070
10071         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
10072
10073 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
10074
10075         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
10076         else clause and remove check for non-standard endianness.
10077
10078 2013-02-04  David S. Miller  <davem@davemloft.net>
10079
10080         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10081
10082 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
10083
10084         [BZ #13550]
10085         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
10086         (__ubp_memchr): Remove prototype.
10087         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
10088         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
10089         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
10090         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
10091         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
10092         Remove alias.
10093         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
10094         (__ubp_memchr): Likewise.
10095         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
10096         (__ubp_memchr): Likewise.
10097         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
10098         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
10099         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
10100         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
10101         CHECK_STRING.
10102         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
10103         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
10104         (__getcwd): Do not use CHECK_STRING.
10105         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
10106         <bp-checks.h>.
10107         (__real_chown): Do not use CHECK_STRING.
10108         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
10109         <bp-checks.h>.
10110         (fchownat): Do not use CHECK_STRING.
10111         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
10112         CHECK_STRING.
10113         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
10114         <bp-checks.h>.
10115         (__lchown): Do not use CHECK_STRING.
10116         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
10117         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
10118         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
10119         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
10120         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
10121         include <bp-checks.h>.
10122         (truncate64): Do not use CHECK_STRING.
10123         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
10124         <bp-checks.h>.
10125         (__real_chown): Do not use CHECK_STRING.
10126         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
10127         <bp-checks.h>.
10128         (__lchown): Do not use CHECK_STRING.
10129         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
10130         <bp-checks.h>.
10131         (__chown): Do not use CHECK_STRING.
10132         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
10133         <bp-checks.h>.
10134         (truncate64): Do not use CHECK_STRING.
10135         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
10136         Likewise.
10137         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
10138         (__xmknod): Do not use CHECK_STRING.
10139         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
10140         <bp-checks.h>.
10141         (__xmknodat): Do not use CHECK_STRING.
10142         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
10143         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
10144
10145 2013-02-04  Andreas Schwab  <schwab@suse.de>
10146
10147         [BZ #14142]
10148         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
10149         * include/netdb.h: Likewise for h_errno.
10150         * elf/tst-stackguard1.c: Include <tls.h>.
10151
10152 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10153
10154         * elf/link.h (struct link_map): Extend the l_addr comment.
10155         * include/link.h (struct link_map): Likewise.
10156
10157 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
10158
10159         [BZ #13550]
10160         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
10161         (BOUNDED_1): Remove macro.
10162         * debug/backtrace.c: Don't include <bp-checks.h>.
10163         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
10164         (__backtrace): Likewise.
10165         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
10166         <bp-checks.h>.
10167         (__backtrace): Don't use BOUNDED_1.
10168         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
10169         <bp-checks.h>.
10170         (__backtrace): Don't use BOUNDED_1.
10171         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
10172         (__backtrace): Don't use BOUNDED_1.
10173         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
10174         (shmat): Don't use BOUNDED_N.
10175
10176 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
10177
10178         [BZ #13550]
10179         * sysdeps/generic/bp-start.h: Remove file.
10180         * csu/libc-start.c: Don't include <bp-start.h>.
10181         (LIBC_START_MAIN): Set up __environ directly instead of using
10182         INIT_ARGV_and_ENVIRON.
10183         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
10184         <bp-start.h>.
10185
10186         [BZ #13550]
10187         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
10188         definitions.
10189         (CHECK_FCNTL): Likewise.
10190         (CHECK_N_PAGES): Likewise.
10191
10192         [BZ #13550]
10193         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
10194         definitions.
10195         (CHECK_SIGSET_NULL_OK): Likewise.
10196         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
10197         <bp-checks.h>.
10198         (sigpending): Don't use CHECK_SIGSET.
10199         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
10200         <bp-checks.h>.
10201         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
10202         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
10203         <bp-checks.h>.
10204         (do_sigsuspend): Don't use CHECK_SIGSET.
10205         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
10206         use CHECK_SIGSET.
10207         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
10208         (do_sigwait): Don't use CHECK_SIGSET.
10209         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
10210         use CHECK_SIGSET.
10211         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
10212         include <bp-checks.h>.
10213         (sigpending): Don't use CHECK_SIGSET.
10214         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
10215         include <bp-checks.h>.
10216         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
10217         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
10218         <bp-checks.h>.
10219         (sigpending): Don't use CHECK_SIGSET.
10220         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
10221         <bp-checks.h>.
10222         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
10223
10224         [BZ #13550]
10225         * sysdeps/generic/bp-semctl.h: Remove file.
10226         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
10227         <bp-checks.h> and <bp-semctl.h>.
10228         (__old_semctl): Don't use CHECK_SEMCTL.
10229         (__new_semctl): Likewise.
10230         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
10231         and <bp-semctl.h>.
10232         (__old_semctl): Don't use CHECK_SEMCTL.
10233         (__new_semctl): Likewise.
10234         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
10235         <bp-checks.h> and <bp-semctl.h>.
10236         (__old_semctl): Don't use CHECK_SEMCTL.
10237         (__new_semctl): Likewise.
10238         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
10239         <bp-checks.h> and <bp-semctl.h>.
10240         (semctl): Don't use CHECK_SEMCTL.
10241
10242         [BZ #13550]
10243         * Makerules (elide-bp-thunks): Remove variable.
10244         (elide-routines.oS): Don't use $(elide-bp-thunks).
10245         (elide-routines.os): Likewise.
10246         (elide-routines.o): Likewise.
10247         (elide-routines.op): Likewise.
10248         (elide-routines.og): Likewise.
10249         (objects): Don't use $(bp-thunks).
10250         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
10251         include.
10252         (common-generated): Do not add s-proto-bp.d.
10253         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
10254         (int): Likewise.
10255         (typ): Likewise.
10256         Do not generate makefile rules for bounded-pointer thunks.
10257         * sysdeps/generic/bp-thunks.h: Remove file.
10258         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
10259         * sysdeps/unix/s-proto-bp.S: Likewise.
10260
10261         [BZ #15062]
10262         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
10263         parts of result separately when argument is not close to line from
10264         -i to i and one part of argument is small.
10265         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10266         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10267         * math/libm-test.inc (cacos_test): Add more tests.
10268         (casin_test): Likewise.
10269         (casinh_test): Likewise.
10270         * sysdeps/i386/fpu/libm-test-ulps: Update.
10271         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10272
10273 2013-01-31  David S. Miller  <davem@davemloft.net>
10274
10275         * po/de.po: Update from translation team.
10276
10277 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
10278
10279         * time/tzfile.c: Include stdint.h for SIZE_MAX.
10280
10281 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
10282
10283         * configure.in (_AC_PROG_CC_C89): New definition.
10284         * configure: Regenerate.
10285
10286         * configure.in (AC_PROG_CPP): New definition.
10287         * configure: Regenerate.
10288
10289 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
10290
10291         * debug/tst-backtrace.h: New file.
10292         * debug/tst-backtrace2.c: Include tst-backtrace.h.
10293         (ret): Remove variable.
10294         (x): Likewise.
10295         (FAIL): Remove macro.
10296         (NO_INLINE): Likewise.
10297         (fn1): Use match function instead of strstr.
10298         * debug/tst-backtrace3.c: Include tst-backtrace.h.
10299         (ret): Remove variable.
10300         (x): Likewise.
10301         (FAIL): Remove macro.
10302         (NO_INLINE): Likewise.
10303         (fn): Use match function instead of strstr.
10304         * debug/tst-backtrace4.c: Include tst-backtrace.h.
10305         (ret): Remove variable.
10306         (x): Likewise.
10307         (FAIL): Remove macro.
10308         (NO_INLINE): Likewise.
10309         (handle_signal): Use match function instead of strstr.
10310         * debug/tst-backtrace5.c: Include tst-backtrace.h.
10311         (ret): Remove variable.
10312         (x): Likewise.
10313         (FAIL): Remove macro.
10314         (NO_INLINE): Likewise.
10315         (handle_signal): Use match function instead of strstr.
10316
10317 2013-01-23  Roland McGrath  <roland@hack.frob.com>
10318
10319         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
10320
10321 2013-01-23  David S. Miller  <davem@davemloft.net>
10322
10323         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
10324         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
10325         argument of CAS if possible.
10326         * sysdeps/sparc/sparc64/bits/atomic.h
10327         (__arch_compare_and_exchange_val_32_acq): Likewise.
10328         (__arch_compare_and_exchange_val_64_acq): Likewise.
10329
10330 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
10331
10332         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
10333         * sysdeps/posix/ulimit.c: ... this.
10334         Include <limits.h>.
10335         * sysdeps/unix/bsd/ulimit.c: Remove file.
10336
10337 2013-01-23  Adam Conrad  <adconrad@0c3.net>
10338
10339         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
10340         (LDFLAGS-tst-array5): Likewise.
10341
10342 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
10343
10344         [BZ #15036]
10345         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
10346         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
10347         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
10348         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
10349
10350 2013-01-21  David S. Miller  <davem@davemloft.net>
10351
10352         * sysdeps/sparc/backtrace.c: New file.
10353         * sysdeps/sparc/sparc32/backtrace.h: New file.
10354         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
10355         * sysdeps/sparc/sparc64/backtrace.h: New file.
10356         * sysdeps/sparc/sparc64/backtrace.c: Delete.
10357         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
10358         -funwind-tables.
10359
10360 2013-01-21  Andreas Schwab  <schwab@suse.de>
10361
10362         [BZ #15020]
10363         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
10364         closed its stdout.
10365
10366 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
10367
10368         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
10369         "mpa2.h".
10370         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10371
10372 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
10373             Mark Mitchell  <mark@codesourcery.com>
10374             Tom de Vries  <tom@codesourcery.com>
10375             Paul Pluzhnikov  <ppluzhnikov@google.com>
10376
10377         * debug/tst-backtrace2.c: New file.
10378         * debug/tst-backtrace3.c: Likewise.
10379         * debug/tst-backtrace4.c: Likewise.
10380         * debug/tst-backtrace5.c: Likewise.
10381         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
10382         (CFLAGS-tst-backtrace3.c): Likewise.
10383         (CFLAGS-tst-backtrace4.c): Likewise.
10384         (CFLAGS-tst-backtrace5.c): Likewise.
10385         (LDFLAGS-tst-backtrace2): Likewise.
10386         (LDFLAGS-tst-backtrace3): Likewise.
10387         (LDFLAGS-tst-backtrace4): Likewise.
10388         (LDFLAGS-tst-backtrace5): Likewise.
10389         (tests): Add new tests tst-backtrace2, tst-backtrace3,
10390         tst-backtrace4 and tst-backtrace5.
10391
10392 2013-01-18  Anton Blanchard  <anton@samba.org>
10393             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
10394
10395         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
10396         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
10397         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
10398         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
10399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10400         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
10401         "+r" and remove output regs list as redundant.  Add explicit inline
10402         asm to specify register of return val to work around compiler codegen
10403         bug.  Remove (int) cast on return value.  Add return type parameter to
10404         use in macro so that this macro does not truncate return value for
10405         64-bit values.
10406         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
10407         pass to INTERNAL_VSYSCALL_NCS.
10408         (INLINE_VSYSCALL): Add 'long int' as return type to
10409         INTERNAL_VSYSCALL_NCS macro invocation.
10410         (INTERNAL_VSYSCALL): Add 'long int' as return type to
10411         INTERNAL_VSYSCALL_NCS macro invocation.
10412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
10413
10414 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
10415
10416         [BZ #14496]
10417         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
10418         Fix application of SIMD FP exception mask.
10419
10420         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
10421         mp_no from a power of two.
10422         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
10423         __mpexp_twomm1.  Use __pow_mp.
10424
10425         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
10426         multiplication.
10427
10428 2013-01-17  David S. Miller  <davem@davemloft.net>
10429
10430         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10431
10432 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
10433
10434         [BZ #15023]
10435         * include/complex.h: Condition contents on [!_COMPLEX_H].
10436         (__kernel_casinhf): New prototype.
10437         (__kernel_casinh): Likewise.
10438         (__kernel_casinhl): Likewise.
10439         * math/Makefile (libm_calls): Add k_casinh.
10440         * math/k_casinh.c: New file.
10441         * math/k_casinhf.c: Likewise.
10442         * math/k_casinhl.c: Likewise.
10443         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
10444         finite nonzero arguments.
10445         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
10446         finite nonzero arguments.
10447         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
10448         finite nonzero arguments.
10449         * math/s_casinh.c: Do not include <float.h>.
10450         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
10451         * math/s_casinhf.c: Do not include <float.h>.
10452         (__casinhf): Move code for finite nonzero arguments to
10453         k_casinhf.c.
10454         * math/s_casinhl.c: Do not include <float.h>.
10455         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
10456         redefine.
10457         (__casinhl): Move code for finite nonzero arguments to
10458         k_casinhl.c.
10459         * math/libm-test.inc (cacos_test): Add more tests.
10460         * sysdeps/i386/fpu/libm-test-ulps: Update.
10461         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10462
10463 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
10464
10465         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
10466         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
10467         [!HAVE_MREMAP]: Remove [defined linux] case.
10468         * malloc/arena.c: Do not include <malloc-sysdep.h>.
10469
10470 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
10471
10472         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
10473
10474 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
10475
10476         * elf/elf.h (R_386_SIZE32): New relocation.
10477         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
10478         R_386_SIZE32.
10479         (elf_machine_rela): Likewise.
10480         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
10481         R_X86_64_SIZE64 and R_X86_64_SIZE32.
10482
10483 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
10484
10485         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
10486         (FP_FAST_FMA): Do not define.
10487         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
10488         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
10489         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
10490         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
10491         !_SOFT_FLOAT]: Likewise.
10492         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
10493         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
10494         value.
10495         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
10496         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
10497         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
10498         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
10499         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
10500         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
10501         file.
10502
10503 2013-01-16  Andreas Schwab  <schwab@suse.de>
10504
10505         [BZ #14327]
10506         * include/stdlib.h (__mktemp): Add declaration.
10507         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
10508         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
10509
10510 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10511
10512         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
10513         definitions.
10514         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
10515         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
10516         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
10517         definitions here.
10518         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
10519         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
10520         definitions.
10521         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
10522         and ONE.
10523         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
10524         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
10525         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
10526         definitions.
10527         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
10528         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
10529         definitions.
10530         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
10531
10532         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
10533
10534 2013-01-15  David S. Miller  <davem@davemloft.net>
10535
10536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
10537         trunc{,f} to libm-sysdep_routes.
10538         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
10539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
10540         file.
10541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
10542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
10543         file.
10544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
10545         file.
10546         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
10547         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
10548         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
10549         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
10550         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
10551         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
10552         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
10553         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
10554
10555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
10556         nearbyint{,f} to libm-sysdep_routes.
10557         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
10558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
10559         New file.
10560         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
10561         file.
10562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
10563         New file.
10564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
10565         file.
10566         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
10567         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
10568         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
10569         file.
10570         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
10571         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
10572         file.
10573         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
10574         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
10575         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
10576
10577         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
10578         libc_feholdexcept and libc_fesetenv.
10579
10580 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
10581
10582         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
10583
10584 2013-01-14  David S. Miller  <davem@davemloft.net>
10585
10586         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
10587         (SPARC_ASM_VIS2_IFUNC): Likewise.
10588         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
10589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
10590         use of 'siam' instruction.
10591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
10592         Likewise.
10593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
10594         Likewise.
10595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
10596         Likewise.
10597         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
10598         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
10599         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
10600         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
10601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
10602         file.
10603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
10604         file.
10605         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
10606         file.
10607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
10608         file.
10609         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
10610         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
10611         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
10612         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
10613         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
10614         new VIS2 routines.
10615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
10616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
10617         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
10618         Likewise.
10619         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
10620         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
10621         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
10622         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
10623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
10624         routines to libm-sysdep_routines.
10625         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
10626
10627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
10628         fdim/fdimf to libm-sysdep_routines.
10629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
10630         file.
10631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
10632         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
10633         file.
10634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
10635         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
10636         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
10637         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
10638         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
10639         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
10640         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
10641
10642 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
10643
10644         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
10645         to optimize copies.
10646
10647         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
10648         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
10649         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
10650
10651         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
10652         local variable MPTWO.
10653         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
10654         Likewise.
10655
10656 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
10657
10658         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
10659         GLOB_NOESCAPE.
10660
10661 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
10662
10663         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
10664
10665 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
10666
10667         * manual/pattern.texi (glob_t): Document gl_flags.
10668         (glob64_t): Likewise.
10669
10670 2013-01-11  David S. Miller  <davem@davemloft.net>
10671
10672         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
10673         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
10674         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
10675         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
10676         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
10677         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
10678         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
10679         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
10680         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
10681         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
10682         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
10683         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
10684         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
10685
10686         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
10687         sparc V9 rather than using V8 code.
10688         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
10689         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
10690
10691         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
10692         Move to...
10693         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
10694         Here.
10695
10696 2013-01-11  Roland McGrath  <roland@hack.frob.com>
10697
10698         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
10699         not in the main loop.
10700         * configure: Regenerated.
10701
10702 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
10703
10704         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
10705         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
10706         to just #else.
10707         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
10708         [!__GLIBC_HAVE_LONG_LONG] case.
10709         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
10710         condition to just #else.
10711         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
10712         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
10713         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
10714         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
10715         unconditional.
10716         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
10717         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
10718         #elif condition to just #else.
10719         * sysdeps/unix/sysv/linux/sys/sysmacros.h
10720         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
10721         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
10722         #elif condition to just #else.
10723
10724 2013-01-11  Steve Ellcey  <sellcey@mips.com>
10725
10726         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
10727         (EF_MIPS_ARCH_64): Fix value.
10728         (EF_MIPS_ARCH_32R2): New.
10729         (EF_MIPS_ARCH_64R2): New.
10730
10731 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
10732
10733         * Makeconfig (+link-pie-before-libc): New.
10734         (+link-pie-after-libc): Likewise.
10735         (+link-pie-tests): Likewise.
10736         (+link-pie): Rewritten.
10737         (link-before-libc): Remove $(config-LDFLAGS).
10738         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
10739         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
10740         (config-LDFLAGS): Renamed to ...
10741         (rtld-LDFLAGS): This.
10742         (rtld-tests-LDFLAGS): New macro.
10743         (link-libc-rpath-link): Likewise.
10744         (link-libc-tests-rpath-link): Likewise.
10745         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
10746         (link-libc): Prepand $(link-libc-rpath-link).
10747         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
10748         (test-program-prefix): New macro.
10749         (test-via-rtld-prefix): Likewise.
10750         (test-program-cmd): Likewise.
10751         (host-test-program-cmd): Likewise.
10752         * Makefile ($(common-objpfx)testrun.sh): Replace
10753         $(run-program-prefix) with $(test-program-prefix).
10754         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
10755         $(rtld-LDFLAGS).
10756         ($(common-objpfx)shlib.lds): Likewise.
10757         (build-module-helper): Likewise.
10758         ($(common-objpfx)format.lds): Likewise.
10759         * Rules (binaries-pie-tests): New.
10760         (binaries-pie-notests): Likewise.
10761         (binaries-pie): Rewritten.
10762         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
10763         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
10764         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
10765         (make-test-out): Replace $(host-built-program-cmd) with
10766         $(host-test-program-cmd).
10767         * config.make.in (build-hardcoded-path-in-tests): New variable.
10768         * configure.in (--enable-hardcoded-path-in-tests): New configure
10769         option.
10770         (hardcoded_path_in_tests): New AC_SUBST.
10771         * configure: Regenerated.
10772         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
10773         $(built-program-cmd) with $(test-program-cmd).
10774         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
10775         (test_program_cmd): This.
10776         * elf/Makefile ($(objpfx)order.out): Run test with
10777         $(test-program-prefix).
10778         ($(objpfx)order2.out): Likewise.
10779         ($(objpfx)tst-initorder.out): Likewise.
10780         ($(objpfx)tst-initorder2.out): Likewise.
10781         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
10782         $(test-program-cmd).
10783         ($(objpfx)tst-array1-static.out): Likewise.
10784         ($(objpfx)tst-array2.out): Likewise.
10785         ($(objpfx)tst-array3.out): Likewise.
10786         ($(objpfx)tst-array4.out): Likewise.
10787         ($(objpfx)tst-array5.out): Likewise.
10788         ($(objpfx)tst-array5-static.out): Likewise.
10789         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
10790         $(test-program-cmd).
10791         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
10792         $(run-program-prefix) with $(test-program-prefix).
10793         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
10794         (test_program_prefix): This.
10795         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
10796         $(run-program-prefix) with $(test-program-prefix).
10797         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
10798         (test_program_prefix): This.
10799         * iconvdata/tst-tables.sh: Likewise.
10800         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
10801         $(run-program-prefix) with $(test-program-prefix).
10802         ($(objpfx)tst-translit.out): Likewise.
10803         ($(objpfx)tst-gettext2.out): Likewise.
10804         ($(objpfx)tst-gettext4.out): Likewise.
10805         ($(objpfx)tst-gettext6.out): Likewise.
10806         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
10807         (test_program_prefix): This.
10808         * intl/tst-gettext2.sh: Likewise.
10809         * intl/tst-gettext4.sh  Likewise.
10810         * intl/tst-gettext6.sh: Likewise.
10811         * intl/tst-translit.sh: Likewise.
10812         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
10813         with $(test-program-cmd).
10814         * libio/Makefile ($(objpfx)test-freopen.out): Replace
10815         $(run-program-prefix) with $(test-program-prefix).
10816         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
10817         (test_program_prefix): This.
10818         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
10819         $(run-program-prefix) with $(test-program-prefix).
10820         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
10821         (test_program_prefix): This.
10822         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
10823         * posix/Makefile ($(objpfx)globtest.out): Replace
10824         $(run-via-rtld-prefix) and $(test-wrapper) with
10825         $(test-program-prefix) and $(test-via-rtld-prefix).
10826         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
10827         $(test-program-prefix).
10828         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
10829         $(host-test-program-cmd).
10830         (tst-spawn-ARGS): Likewise.
10831         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
10832         $(test-program-prefix).
10833         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
10834         (test_via_rtld_prefix): This.
10835         (test_wrapper): Renamed to ...
10836         (test_program_prefix): This.
10837         (run_program_prefix): Replaced by test_program_prefix.
10838         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
10839         (test_program_prefix): This.
10840         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
10841         with $(host-test-program-cmd).
10842         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
10843         $(run-program-prefix) with $(test-program-prefix).
10844         ($(objpfx)tst-printf.out): Likewise.
10845         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
10846         $(test-program-cmd).
10847         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
10848         (test_program_prefix): This.
10849         * stdio-common/tst-unbputc.sh: Likewise.
10850         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
10851         $(run-program-prefix) with $(test-program-prefix).
10852         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
10853         (test_program_prefix): This.
10854         * string/Makefile ($(objpfx)tst-svc.out):  Replace
10855         $(built-program-cmd) with $(test-program-cmd).
10856
10857 2013-01-11  Andreas Jaeger  <aj@suse.de>
10858
10859         [BZ #15003]
10860         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
10861         value. Sync with Linux 3.7.
10862
10863 2013-01-10  David S. Miller  <davem@davemloft.net>
10864
10865         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
10866         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
10867         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
10868
10869 2013-01-10  Roland McGrath  <roland@hack.frob.com>
10870
10871         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
10872         never set.
10873         * configure: Regenerated.
10874
10875 2013-01-10  David S. Miller  <davem@davemloft.net>
10876
10877         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
10878         sparc V9 rather than using V8 code.
10879         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
10880         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
10881
10882 2013-01-10  Roland McGrath  <roland@hack.frob.com>
10883
10884         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
10885         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
10886         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
10887         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
10888         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
10889         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
10890         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
10891         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
10892         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
10893         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
10894         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
10895         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
10896         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
10897         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
10898         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
10899         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
10900         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
10901         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
10902         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
10903         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
10904         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
10905         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
10906         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
10907         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
10908         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
10909         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
10910         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
10911
10912 2013-01-10  David S. Miller  <davem@davemloft.net>
10913
10914         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10915
10916 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10917
10918         * posix/Makefile (tests-static): New variable.
10919         (tests): Add $(tests-static).
10920         (tst-exec-static-ARGS): New variable.
10921         (tst-spawn-static-ARGS): Likewise.
10922         * posix/tst-exec-static.c: New file.
10923         * posix/tst-spawn-static.c: Likewise.
10924         * posix/tst-exec.c: Support run directly.
10925         * posix/tst-spawn.c: Likewise.
10926
10927 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
10928
10929         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
10930         long.
10931         * math/bits/mathcalls.h (llrint): Likewise.
10932         (llround): Likewise.
10933         * stdlib/stdlib.h (struct drand48_data): Likewise.
10934         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
10935         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
10936         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
10937         Likewise.
10938         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
10939         Likewise.
10940         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
10941         (elf_greg_t): Likewise.
10942         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
10943         (__jmp_buf): Likewise.
10944         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
10945         definitions.
10946         (llrint): Likewise, for all definitions.
10947         (llrintl): Likewise.
10948
10949         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
10950         Remove [__GNUC__] condition.
10951         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
10952         condition to just [__USE_ISOC99].
10953         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
10954
10955 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
10956
10957         [BZ #14200]
10958         * sysdeps/unix/sysv/linux/x86/bits/environments.h
10959         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
10960         defined.
10961         (_POSIX_V6_ILP32_OFF32): Likewise.
10962         (_XBS5_ILP32_OFF32): Likewise.
10963         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
10964         (__ILP32_OFFBIG_LDFLAGS): Likewise.
10965
10966 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10967
10968         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
10969
10970         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
10971         doubles __mpexp_twomm1.  Adjust usage.
10972         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
10973         Remove.
10974
10975 2013-01-10  Andreas Schwab  <schwab@suse.de>
10976
10977         [BZ #14964]
10978         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
10979         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
10980
10981 2013-01-09  David S. Miller  <davem@davemloft.net>
10982
10983         [BZ #15003]
10984         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
10985         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
10986         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
10987         TCP_FASTOPEN): Define.
10988         (tcp_repair_opt): New structure.
10989         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
10990         enum values.
10991         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
10992         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
10993         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
10994         (tcp_cookie_transactions): New structure.
10995
10996 2013-01-09  Anton Blanchard  <anton@samba.org>
10997
10998         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
10999         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
11000         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
11001         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
11002
11003 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
11004
11005         * include/features.h (__USE_ANSI): Remove.
11006
11007 2013-01-09  Roland McGrath  <roland@hack.frob.com>
11008
11009         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
11010
11011         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
11012
11013 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
11014
11015         * sysdeps/s390/fpu/libm-test-ulps: Update.
11016
11017         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11018
11019         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
11020         (__acr): Likewise.
11021         (__cpy): Likewise.
11022         (norm): Likewise.
11023         (denorm): Likewise.
11024         (__mp_dbl): Likewise.
11025         (__dbl_mp): Likewise.
11026         (add_magnitudes): Likewise.
11027         (sub_magnitudes): Likewise.
11028         (__add): Likewise.
11029         (__sub): Likewise.
11030         (__mul): Likewise.
11031         (__inv): Likewise.
11032         (__dvd): Likewise.
11033         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
11034         (__acr): Likewise.
11035         (__cpy): Likewise.
11036         (norm): Likewise.
11037         (denorm): Likewise.
11038         (__mp_dbl): Likewise.
11039         (__dbl_mp): Likewise.
11040         (add_magnitudes): Likewise.
11041         (sub_magnitudes): Likewise.
11042         (__add): Likewise.
11043         (__sub): Likewise.
11044         (__mul): Likewise.
11045         (__inv): Likewise.
11046         (__dvd): Likewise.
11047         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
11048         (__acr): Likewise.
11049         (__cpy): Likewise.
11050         (norm): Likewise.
11051         (denorm): Likewise.
11052         (__mp_dbl): Likewise.
11053         (__dbl_mp): Likewise.
11054         (add_magnitudes): Likewise.
11055         (sub_magnitudes): Likewise.
11056         (__add): Likewise.
11057         (__sub): Likewise.
11058         (__mul): Likewise.
11059         (__inv): Likewise.
11060         (__dvd): Likewise.
11061
11062 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
11063
11064         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
11065         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
11066         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
11067         2 && __USE_EXTERN_INLINES]: Likewise.
11068
11069 2013-01-08  Andreas Jaeger  <aj@suse.de>
11070
11071         [BZ# 14985]
11072         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
11073         Remove.
11074         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
11075         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
11076
11077 2013-01-07  Anton Blanchard  <anton@samba.org>
11078
11079         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
11080         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
11081         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
11082         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
11083         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
11084         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11085         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
11086         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
11087         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
11088         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11089         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
11090         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
11091         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11092         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
11093         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
11094         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
11095         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
11096         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
11097         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
11098         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
11099         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
11100         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
11101         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
11102         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
11103         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
11104         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
11105         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11106         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
11107         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
11108         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11109         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
11110         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
11111         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11112         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
11113         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
11114         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
11115         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
11116         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
11117         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
11118         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
11119         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
11120         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
11121         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
11122
11123 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
11124
11125         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
11126         (__MALLOC_PMT): Likewise.
11127         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
11128         [__GNUC__], only on [_LIBC].
11129         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
11130         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
11131         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
11132         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
11133         forward declaration.
11134         (realloc_hook_ini): Likewise.
11135         (memalign_hook_ini): Likewise.
11136         (__libc_memalign): Do not use __MALLOC_PMT in variable
11137         declaration.
11138         (__libc_valloc): Likewise.
11139         (__libc_pvalloc): Likewise.
11140         (__libc_calloc): Likewise.
11141         (__posix_memalign): Likewise.
11142
11143         [BZ #14996]
11144         * math/s_casinh.c: Include <float.h>.
11145         (__casinh): Do not do computation with squaring and square root
11146         for large arguments.
11147         * math/s_casinhf.c: Include <float.h>.
11148         (__casinhf): Do not do computation with squaring and square root
11149         for large arguments.
11150         * math/s_casinhl.c: Include <float.h>.
11151         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
11152         (__casinhl): Do not do computation with squaring and square root
11153         for large arguments.
11154         * math/libm-test.inc (casin_test): Add more tests.
11155         (casinh_test): Likewise.
11156         * sysdeps/i386/fpu/libm-test-ulps: Update.
11157         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11158
11159 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
11160
11161         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
11162         (__x86_64_raw_data_cache_size): Likewise.
11163         (__x86_64_data_cache_size_half): Likewise.
11164         (__x86_64_raw_data_cache_size_half): Likewise.
11165         (__x86_64_shared_cache_size): Likewise.
11166         (__x86_64_raw_shared_cache_size): Likewise.
11167         (__x86_64_shared_cache_size_half): Likewise.
11168         (__x86_64_raw_shared_cache_size_half): Likewise.
11169         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
11170         to ...
11171         (__x86_data_cache_size): This.
11172         (__x86_64_raw_data_cache_size): Renamed to ...
11173         (__x86_raw_data_cache_size): This.
11174         (__x86_64_data_cache_size_half): Renamed to ...
11175         (__x86_data_cache_size_half): This.
11176         (__x86_64_raw_data_cache_size_half): Renamed to ...
11177         (__x86_raw_data_cache_size_half): This.
11178         (__x86_64_shared_cache_size): Renamed to ...
11179         (__x86_shared_cache_size): This.
11180         (__x86_64_raw_shared_cache_size): Renamed to ...
11181         (__x86_raw_shared_cache_size): This.
11182         (__x86_64_shared_cache_size_half): Renamed to ...
11183         (__x86_shared_cache_size_half): This.
11184         (__x86_64_raw_shared_cache_size_half): Renamed to ...
11185         (__x86_raw_shared_cache_size_half): This.
11186         * sysdeps/x86_64/memcpy.S: Updated.
11187         * sysdeps/x86_64/memset.S: Likewise.
11188         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
11189         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
11190         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
11191
11192 2013-01-04  David S. Miller  <davem@davemloft.net>
11193
11194         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11195
11196 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
11197
11198         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
11199         1 to avoid redefinition warning.
11200         (__USE_GNU): Don't define.
11201         (init_signaling_nan): Protoize.
11202
11203         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11204
11205 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11206
11207         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
11208         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
11209         (__cpymn): Likewise.
11210         (norm): Remove commented code.
11211         (denorm): Likewise.
11212         (__mp_dbl): Likewise.
11213         (__inv): Likewise.
11214         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
11215         (__cpymn): Likewise.
11216         (norm): Remove commented code.
11217         (denorm): Likewise.
11218         (__mp_dbl): Likewise.
11219         (__inv): Likewise.
11220
11221         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
11222         mp_no value for 1.0 and 2.0.
11223         (norm): Use RADIXI instead of radixi.d.
11224         (denorm): Likewise.
11225         (__mul): Use 0.0 instead of zero.d.
11226         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
11227         mp_no value for 1.0 and 2.0.
11228         (norm): Use RADIXI instead of radixi.d.
11229         (denorm): Likewise.
11230         (__mul): Use 0.0 instead of zero.d.
11231
11232 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
11233
11234         [BZ #14994]
11235         * math/s_casinh.c (__casinh): Reduce finite argument to first
11236         quadrant then set signs of results at the end.
11237         * math/s_casinhf.c (__casinhf): Likewise.
11238         * math/s_casinhl.c (__casinhl): Likewise.
11239         * math/libm-test.inc (casin_test): Add more tests.
11240         (casinh_test): Likewise.
11241         * sysdeps/i386/fpu/libm-test-ulps: Update.
11242         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11243
11244 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11245
11246         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
11247
11248         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
11249
11250         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
11251         declarations.
11252         (denorm): Likewise.
11253         (__mp_dbl): Likewise.
11254         (__inv): Likewise.
11255
11256         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
11257         and adjust the header comment.
11258
11259         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
11260         variable name from declaration.
11261
11262 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11263
11264         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11265         Initialize COMMON_CPUID_INDEX_7 element.
11266         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
11267         (CPUID_RTM): Likewise.
11268         (HAS_RTM): Likewise.
11269         (COMMON_CPUID_INDEX_7): New enum.
11270
11271 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
11272
11273         [BZ #14981]
11274         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
11275         size is zero, record memory as freed.
11276
11277 2013-01-03  Andreas Jaeger  <aj@suse.de>
11278
11279         * po/ia.po: Add new Interlingua translation.
11280
11281 2012-01-03  Allan McRae  <allan@archlinux.org>
11282
11283         * locale/programs/localedef.c: Fix description of '--posix' flag.
11284
11285 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
11286
11287         * NEWS: Update dates in second copyright notice.
11288         * README: Update copyright dates in example.
11289         * manual/libc.texinfo: Update copyright dates.
11290         * scripts/test-installation.pl: Update copyright date in --version
11291         output.
11292
11293         * hurd/ctty-input.c: Fix copyright notice formatting.
11294         * hurd/ctty-output.c: Likewise.
11295         * hurd/dtable.c: Likewise.
11296         * hurd/hurd-raise.c: Likewise.
11297         * hurd/hurdprio.c: Likewise.
11298         * hurd/msgportdemux.c: Likewise.
11299         * misc/sys/file.h: Likewise.
11300         * misc/sys/ioctl.h: Likewise.
11301         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
11302         * sysdeps/mach/hurd/chdir.c: Likewise.
11303         * sysdeps/mach/hurd/fchdir.c: Likewise.
11304         * sysdeps/mach/hurd/rename.c: Likewise.
11305         * sysdeps/mach/hurd/rmdir.c: Likewise.
11306         * sysdeps/mach/hurd/seekdir.c: Likewise.
11307         * sysdeps/mach/hurd/setsid.c: Likewise.
11308         * sysdeps/posix/wait3.c: Likewise.
11309
11310         * All files with FSF copyright notices: Update copyright dates
11311         using scripts/update-copyrights.
11312         * intl/plural.c: Regenerated.
11313         * locale/programs/charmap-kw.h: Likewise.
11314         * locale/programs/locfile-kw.h: Likewise.
11315
11316 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11317
11318         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
11319         four values.
11320
11321         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
11322         calculation loop and add branch prediction.
11323
11324         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
11325         check access beyond bounds of m1np.
11326
11327         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
11328         MPTWO.
11329         (__inv): Remove local variable MPTWO to use the global
11330         constant.
11331         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
11332         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
11333         variable MPTWO.
11334         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
11335         MP3HALFS static const.
11336
11337 2013-01-01  David S. Miller  <davem@davemloft.net>
11338
11339         * po/ca.po: Update from translation team.
11340
11341 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
11342
11343         * scripts/update-copyrights: New file.
11344         * Makeconfig: Reformat copyright notice.
11345         * ctype/ctype.h: Likewise.
11346         * debug/swprintf_chk.c: Likewise.
11347         * elf/dl-cache.c: Likewise.
11348         * elf/dl-debug.c: Likewise.
11349         * elf/dl-object.c: Likewise.
11350         * grp/initgroups.c: Likewise.
11351         * hurd/Makefile: Likewise.
11352         * hurd/hurd/signal.h: Likewise.
11353         * hurd/hurdfault.c: Likewise.
11354         * hurd/hurdioctl.c: Likewise.
11355         * hurd/hurdlookup.c: Likewise.
11356         * hurd/intr-msg.c: Likewise.
11357         * iconv/gconv_open.c: Likewise.
11358         * libio/swprintf.c: Likewise.
11359         * locale/lc-ctype.c: Likewise.
11360         * locale/nl_langinfo.c: Likewise.
11361         * mach/Machrules: Likewise.
11362         * mach/Makefile: Likewise.
11363         * malloc/obstack.h: Likewise.
11364         * manual/Makefile: Likewise.
11365         * manual/tsort.awk: Likewise.
11366         * misc/bits/stab.def: Likewise.
11367         * nis/nis_print_group_entry.c: Likewise.
11368         * nis/nis_table.c: Likewise.
11369         * nis/nss_compat/compat-pwd.c: Likewise.
11370         * nis/nss_compat/compat-spwd.c: Likewise.
11371         * po/Makefile: Likewise.
11372         * posix/fnmatch.c: Likewise.
11373         * posix/regex.h: Likewise.
11374         * resolv/Makefile: Likewise.
11375         * resolv/nss_dns/dns-network.c: Likewise.
11376         * resolv/res_hconf.c: Likewise.
11377         * scripts/gen-sorted.awk: Likewise.
11378         * soft-fp/soft-fp.h: Likewise.
11379         * stdio-common/printf.h: Likewise.
11380         * stdlib/monetary.h: Likewise.
11381         * stdlib/random.c: Likewise.
11382         * stdlib/random_r.c: Likewise.
11383         * sysdeps/generic/Makefile: Likewise.
11384         * sysdeps/gnu/Makefile: Likewise.
11385         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
11386         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
11387         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11388         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11389         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11390         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11391         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11392         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11393         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11394         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11395         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
11396         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
11397         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
11398         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
11399         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
11400         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
11401         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
11402         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
11403         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
11404         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
11405         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
11406         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
11407         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
11408         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
11409         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
11410         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
11411         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
11412         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
11413         * sysdeps/mach/hurd/errnos.awk: Likewise.
11414         * sysdeps/mach/hurd/fork.c: Likewise.
11415         * sysdeps/mach/hurd/getcwd.c: Likewise.
11416         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
11417         * sysdeps/mach/hurd/mmap.c: Likewise.
11418         * sysdeps/mach/hurd/utimes.c: Likewise.
11419         * sysdeps/mach/hurd/xmknod.c: Likewise.
11420         * sysdeps/posix/profil.c: Likewise.
11421         * sysdeps/posix/readdir_r.c: Likewise.
11422         * sysdeps/powerpc/bits/mathdef.h: Likewise.
11423         * sysdeps/powerpc/bits/setjmp.h: Likewise.
11424         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
11425         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
11426         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
11427         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
11428         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11429         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11430         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
11431         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
11432         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11433         * sysdeps/pthread/lio_listio.c: Likewise.
11434         * sysdeps/sparc/dl-procinfo.h: Likewise.
11435         * sysdeps/unix/i386/sysdep.S: Likewise.
11436         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
11437         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
11438         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
11439         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
11440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
11441         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
11442         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
11443         * sysdeps/unix/sysv/linux/speed.c: Likewise.
11444         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
11445         * sysdeps/wordsize-32/divdi3.c: Likewise.
11446         * time/sys/time.h: Likewise.
11447         * wcsmbs/Makefile: Likewise.
11448
11449 2013-01-01  David S. Miller  <davem@davemloft.net>
11450
11451         * po/fr.po: Update from translation team.
11452
11453         * catgets/gencat.c: Update copyright year.
11454         * csu/version.c: Likewise.
11455         * debug/catchsegv.sh: Likewise.
11456         * debug/pcprofiledump.c: Likewise.
11457         * debug/xtrace.sh: Likewise.
11458         * elf/ldconfig.c: Likewise.
11459         * elf/ldd.bash.in: Likewise.
11460         * elf/pldd.c: Likewise.
11461         * elf/sotruss.ksh: Likewise.
11462         * elf/sprof.c: Likewise.
11463         * iconv/iconv_prog.c: Likewise.
11464         * iconv/iconvconfig.c: Likewise.
11465         * locale/programs/locale.c: Likewise.
11466         * locale/programs/localedef.c: Likewise.
11467         * login/programs/pt_chown.c: Likewise.
11468         * malloc/memusage.sh: Likewise.
11469         * malloc/memusagestat.c: Likewise.
11470         * malloc/mtrace.pl: Likewise.
11471         * nscd/nscd.c: Likewise.
11472         * nss/getent.c: Likewise.
11473         * nss/makedb.c: Likewise.
11474         * posix/getconf.c: Likewise.
11475
11476 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
11477
11478         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
11479         numbers.
11480
11481 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
11482
11483         * math/bits/mathcalls.h (modf): Use __nonnull.
11484
11485 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11486
11487         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
11488         (split): Use macro CN instead of the bare value.
11489         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
11490         could be used.
11491         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
11492         instead of the bare value.
11493         (power1): Likewise.
11494
11495 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11496
11497         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
11498         __ATAN_TWOM.
11499         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
11500
11501         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
11502         their values.
11503         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
11504         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
11505         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
11506         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
11507
11508 2012-12-28  Andreas Jaeger  <aj@suse.de>
11509
11510         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
11511         values are from Linux 3.7.
11512
11513         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
11514         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
11515
11516 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11517
11518         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
11519         TRUE case.
11520
11521         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
11522         (norm): Likewise.
11523         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
11524         variables with preprocessor constants.
11525         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
11526         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
11527         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
11528
11529 2012-12-27  Bruno Haible  <bruno@clisp.org>
11530
11531         [BZ #14317]
11532         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
11533         only if needed.
11534
11535 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
11536
11537         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
11538         and use variable directly.
11539         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
11540
11541         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
11542         MPONE.
11543         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
11544         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
11545         variable MPONE.
11546         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
11547         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
11548         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
11549         include directive.  Remove local variable MPONE.
11550         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
11551         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
11552         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
11553
11554 2012-12-25  David S. Miller  <davem@davemloft.net>
11555
11556         * version.h (RELEASE): Set to "development".
11557         (VERSION): Set to "2.17.90".
11558         * NEWS: Add 2.18 section.
11559
11560 2012-12-21  David S. Miller  <davem@davemloft.net>
11561
11562         * po/hr.po: Update from translation team.
11563
11564 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11565
11566         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
11567
11568 2012-12-19  Steve Ellcey  <sellcey@mips.com>
11569
11570         * NEWS:  Mention new memcpy for MIPS.
11571
11572 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11573
11574         * manual/contrib.texi (Contributors): Spelling correction.
11575
11576 2012-12-15  David S. Miller  <davem@davemloft.net>
11577
11578         * po/ru.po: Update from translation team.
11579
11580 2012-12-13  David S. Miller  <davem@davemloft.net>
11581
11582         * NEWS: Mention IFUNC testsuite enhancements.
11583
11584         * po/pl.po: Update from translation team.
11585         * po/bg.po: Likewise.
11586
11587         * manual/contrib.texi (Contributors): Update entries for Hongjiu
11588         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
11589
11590 2012-12-11  David S. Miller  <davem@davemloft.net>
11591
11592         * po/sv.po: Update from translation team.
11593
11594         * po/vi.po: Update from translation team.
11595
11596         * po/cs.po: Update from translation team.
11597
11598         * po/de.po: Update from translation team.
11599         * po/eo.po: Likewise.
11600         * po/nl.po: Likewise.
11601
11602 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
11603
11604         [BZ #14246]
11605         * manual/argp.texi (Argp Helper Functions): Move node to follow
11606         Argp Parsing State.
11607
11608         [BZ #14872]
11609         * manual/conf.texi (Limits on File System Capacity): Mention if
11610         terminating null is included in the max size.
11611
11612 2012-12-10  Andreas Jaeger  <aj@suse.de>
11613
11614         * po/cs.po: Update from translation team.
11615
11616 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
11617
11618         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
11619         void pointer and cast to uintptr_t.
11620         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
11621         path.
11622         * sysdeps/s390/s390-64/memcpy.S: Likewise.
11623         * sysdeps/s390/s390-64/memset.S: Likewise.
11624
11625 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
11626
11627         [BZ #14833]
11628         * menual/message.texi (Message Translation): Fix typos.
11629         (Helper programs for gettext): Likewise.
11630
11631 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
11632
11633         [BZ #14898]
11634         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
11635         Change to -1.
11636
11637 2012-12-07  David S. Miller  <davem@davemloft.net>
11638
11639         * po/libc.pot: Update.
11640
11641 2012-12-07  Richard Henderson  <rth@redhat.com>
11642
11643         [BZ #10114]
11644         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
11645         normal/normal case to before the switch.
11646         (_FP_DIV): Likewise.
11647
11648 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
11649             Mike Frysinger  <vapier@gentoo.org>
11650
11651         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
11652         check for __NR_fadvise64_64.
11653
11654 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
11655
11656         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
11657         0, not just to plain "0" as a statement.
11658         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
11659         with cw.
11660
11661 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
11662
11663         * NEWS: Use sourceware.org in Bugzilla URL.
11664
11665 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
11666
11667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
11668         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
11669
11670         * stdio-common/tst-put-error.c (do_test): Add newline to the
11671         padded test to ensure flush.
11672
11673 2012-12-05  Jeff Law  <law@redhat.com>
11674
11675         * sunrpc/etc.rpc (fedfs_admin): Add entry.
11676
11677 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
11678
11679         * README: Don't refer to ports add-on as distributed separately.
11680         Mention AArch64 in list of systems supported in the ports add-on.
11681
11682         * LICENSES: Add more non-FSF copyright and license notices.
11683
11684         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
11685         ((unused)).
11686
11687         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
11688
11689         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
11690         10000 as width of padded output.
11691
11692 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
11693
11694         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
11695
11696         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
11697         variable LX with __attribute__ ((unused)).
11698         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
11699         Likewise.
11700         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
11701         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
11702         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
11703         with __attribute__ ((unused)).
11704
11705 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
11706
11707         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
11708
11709 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
11710
11711         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
11712         (CFLAGS-nldbl-acos.c): New variable.
11713         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
11714         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
11715         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
11716         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
11717         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
11718         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
11719         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
11720         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
11721         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
11722         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
11723         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
11724         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
11725         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
11726         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
11727         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
11728         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
11729         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
11730         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
11731         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
11732         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
11733         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
11734         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
11735         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
11736         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
11737         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
11738         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
11739         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
11740         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
11741         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
11742         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
11743         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
11744         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
11745         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
11746         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
11747         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
11748         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
11749         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
11750         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
11751         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
11752         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
11753         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
11754         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
11755         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
11756         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
11757         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
11758         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
11759         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
11760         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
11761         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
11762         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
11763         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
11764         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
11765         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
11766         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
11767         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
11768         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
11769         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
11770         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
11771         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
11772         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
11773         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
11774         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
11775         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
11776         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
11777         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
11778         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
11779         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
11780         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
11781         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
11782         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
11783         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
11784         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
11785         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
11786         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
11787         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
11788         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
11789         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
11790         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
11791         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
11792         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
11793         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
11794         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
11795         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
11796         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
11797         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
11798         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
11799         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
11800         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
11801         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
11802         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
11803         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
11804         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
11805         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
11806         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
11807         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
11808         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
11809         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
11810
11811         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
11812         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
11813
11814         [BZ #14914]
11815         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
11816         whole low double instead of just low 47 bits when splitting values
11817         into two parts.
11818
11819 2012-12-03  Allan McRae  <allan@archlinux.org>
11820
11821         * manual/stdio.texi (Predefined Printf Handlers): Remove
11822         @hsep and @vsep usage.
11823
11824 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
11825
11826         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
11827         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
11828
11829 2012-12-03  Jeff Law  <law@redhat.com>
11830
11831         * time/sys/time.h (settimeofday): Do not mark TV argument
11832         as __nonnull.
11833
11834 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
11835
11836         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
11837         when currently writing and seek to current position when not.
11838         * libio/Makefile (tests): Remove bug-fclose1.
11839         * libio/bug-fclose1.c: Delete.
11840
11841 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
11842
11843         * manual/arith.texi (feenableexcept): Fix typo.
11844         (fedisableexcept): Likewise.
11845
11846 2012-11-30  Roland McGrath  <roland@hack.frob.com>
11847
11848         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
11849         second, differently-typed declaration, rather than a cast.
11850
11851 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
11852
11853         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
11854         * include/rpc/svc.h: ... here.
11855
11856 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
11857
11858         [BZ #13013]
11859         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
11860         depending n and resplen2 to catch cases where answer
11861         equals answerp2.
11862
11863 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
11864
11865         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
11866         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
11867
11868 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
11869
11870         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
11871
11872 2012-11-29  Roland McGrath  <roland@hack.frob.com>
11873
11874         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
11875
11876 2012-11-28  Jeff Law  <law@redhat.com>
11877
11878         [BZ #13761]
11879         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
11880         dataset_temporary.  Track alloca usage into alloca_used.
11881         If dataset is large allocate and release it via malloc/free.
11882
11883 2012-06-04  Florian Weimer  <fweimer@redhat.com>
11884
11885         [BZ #14197]
11886         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
11887
11888 2012-11-28  David S. Miller  <davem@davemloft.net>
11889
11890         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11891
11892 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
11893
11894         [BZ #14803]
11895         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
11896         of pi/2 rounded to nearest to 64 bits.
11897         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
11898         nearest to 64 bits.
11899         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
11900         bits.
11901
11902 2012-11-28  Jeff Law <law@redhat.com>
11903             Martin Osvald <mosvald@redhat.com>
11904
11905         [BZ #14889]
11906         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
11907         * sunrpc/svc.c: Include time.h.
11908         (__svc_accept_failed): New function.
11909         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
11910         any reason other than EINTR, call __svc_accept_failed.
11911         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
11912         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
11913
11914 2012-11-28  Andreas Schwab  <schwab@suse.de>
11915
11916         * scripts/abilist.awk: Also handle indirect functions in .opd
11917         section.
11918
11919 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
11920
11921         [BZ #13881]
11922         * sysdeps/x86/fpu/powl_helper.c: New file.
11923         * sysdeps/x86/fpu/Makefile: Likewise.
11924         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
11925         (p3): New object.
11926         (__ieee754_powl): Use __powl_helper for finite arguments except
11927         integer exponents below 8.
11928         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
11929         (p3): New object.
11930         (__ieee754_powl): Use __powl_helper for finite arguments except
11931         integer exponents below 8.
11932         * math/libm-test.inc (pow_test): Add more tests and enable some
11933         previously disabled tests.
11934         * sysdeps/i386/fpu/libm-test-ulps: Update.
11935         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11936
11937 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
11938             Carlos O'Donell  <carlos_odonell@mentor.com>
11939
11940         * nss/makedb.c (is_prime): Assert that input is odd and greater
11941         than 4.  Note that fact in a comment too.
11942         (next_prime): Add 4 to input.
11943
11944 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
11945
11946         [BZ #11741]
11947         * libio/Makefile (tests): Add test case tst-fwrite-error.
11948         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
11949         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
11950         * libio/tst-fwrite-error.c: New test case.
11951
11952 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
11953
11954         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
11955         before casting to void *.
11956         * include/libc-internal.h (__pointer_type): New macro.
11957         (__integer_if_pointer_type_sub): Likewise.
11958         (__integer_if_pointer_type): Likewise.
11959         (cast_to_integer): Likewise.
11960         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
11961         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
11962         before casting to atomic64_t.
11963         (atomic_exchange_acq): Likewise.
11964         (__arch_exchange_and_add_body): Likewise.
11965         (__arch_add_body): Likewise.
11966         (atomic_add_negative): Likewise.
11967         (atomic_add_zero): Likewise.
11968
11969 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
11970
11971         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
11972         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
11973         (add_fdes): Likewise.
11974         (linear_search_fdes): Likewise.
11975         (binary_search_unencoded_fdes): Likewise.
11976
11977 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
11978
11979         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
11980
11981 2012-11-24  Adam Conrad  <adconrad@0c3.net>
11982
11983         * configure.in: Autodetect C++ header directories.
11984         * configure: Regenerated.
11985
11986 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
11987
11988         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
11989
11990 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
11991
11992         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11993
11994 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
11995
11996         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
11997         LDBL_MANT_DIG == 106]: Disable some tests.
11998         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
11999         Likewise.
12000         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
12001         Likewise.
12002
12003         [BZ #14871]
12004         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
12005         input for small inputs.  Return +/- pi/2 for large inputs.
12006         * math/libm-test.inc (atan_test): Add more tests.
12007
12008         * sysdeps/generic/unwind-dw2-fde-glibc.c
12009         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
12010         __attribute__ ((unused)).
12011
12012         [BZ #14645]
12013         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
12014         x * y if x and y are nonzero and z is zero.
12015
12016         [BZ #14811]
12017         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
12018         nonzero exponents with absolute value below 0x1p-117 to +/-
12019         0x1p-117.
12020
12021         [BZ #14869]
12022         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
12023         up arguments below 2**-450, not just those below 2**-500.
12024         * math/libm-test.inc (hypot_test): Add another test.
12025
12026         [BZ #14868]
12027         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
12028         Return a+b for ratio over 2**120, not 2**60.
12029         * math/libm-test.inc (hypot_test): Add another test.
12030
12031         * math/libm-test.inc (clog_test): Use
12032         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
12033         (clog10_test): Likewise.
12034
12035         [BZ #6778]
12036         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
12037
12038 2012-11-22  Andreas Schwab  <schwab@suse.de>
12039
12040         * sysdeps/i386/fpu/libm-test-ulps: Update.
12041
12042 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
12043
12044         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
12045         printf output with newline.
12046
12047 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
12048
12049         [BZ #14865]
12050         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
12051         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
12052         -z nodlopen, -z initfirst and -z execstack support.
12053         * configure: Regenerated.
12054
12055         * elf/elf.h (DF_1_NODIRECT): New macro.
12056         (DF_1_IGNMULDEF): Likewise.
12057         (DF_1_NOKSYMS): Likewise.
12058         (DF_1_NOHDR): Likewise.
12059         (DF_1_EDITED): Likewise.
12060         (DF_1_NORELOC): Likewise.
12061         (DF_1_SYMINTPOSE): Likewise.
12062         (DF_1_GLOBAUDIT): Likewise.
12063         (DF_1_SINGLETON): Likewise.
12064         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
12065         DT_1_SUPPORTED_MASK bits.
12066         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
12067
12068 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
12069
12070         * sysdeps/unix/make-syscalls.sh: Document prefixes.
12071
12072 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
12073
12074         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
12075         macro.
12076
12077         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
12078         (sendmmsg): Move declarations...
12079         * socket/sys/socket.h: ... here.
12080         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
12081         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
12082         include it from...
12083         * socket/recvmmsg.c: ... this new file.
12084         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
12085         (sendmmsg): Rename to __sendmmsg, create weak alias and make
12086         definition of __sendmmsg hidden.
12087         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
12088         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
12089         Move ENOSYS stub into and include it from...
12090         * socket/sendmmsg.c: ... this new file.
12091         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
12092         (sysdep_routines): Move recvmmsg and sendmmsg...
12093         * socket/Makefile (routines): ... here.
12094         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
12095         (GLIBC_PRIVATE): Add __sendmmsg.
12096         * include/sys/socket.h (__sendmmsg): Add declarations.
12097         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
12098         sendmmsg.
12099
12100 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
12101
12102         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
12103         variable I1 with __attribute__ ((unused)).
12104         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12105
12106 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
12107
12108         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
12109         DUMMY variables with __attribute__ ((unused)).
12110
12111         * bits/byteswap.h: Include <bits/types.h>.
12112         (__bswap_64): Use __uint64_t instead of unsigned long long int.
12113
12114 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
12115
12116         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
12117         string_t.  Do not manually set errno.
12118         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
12119         length with __strnlen.  Make sure to both set errno and return it on
12120         failure.
12121
12122 2012-11-19  David S. Miller  <davem@davemloft.net>
12123
12124         With help from Joseph Myers.
12125         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
12126         very large arguments properly.
12127         * math/libm-test.inc (atan_test): New tests.
12128         (atan2_test): New tests.
12129         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12130         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12131
12132 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
12133
12134         [BZ #14856]
12135         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
12136         Define to 3.
12137
12138         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
12139         [POSIX] (EADDRNOTAVAIL): Likewise.
12140         [POSIX] (EAFNOSUPPORT): Likewise.
12141         [POSIX] (EALREADY): Likewise.
12142         [POSIX] (ECONNABORTED): Likewise.
12143         [POSIX] (ECONNREFUSED): Likewise.
12144         [POSIX] (ECONNRESET): Likewise.
12145         [POSIX] (EDESTADDRREQ): Likewise.
12146         [POSIX] (EDQUOT): Likewise.
12147         [POSIX] (EHOSTUNREACH): Likewise.
12148         [POSIX] (EIDRM): Likewise.
12149         [POSIX] (EISCONN): Likewise.
12150         [POSIX] (ELOOP): Likewise.
12151         [POSIX] (EMULTIHOP): Likewise.
12152         [POSIX] (ENETDOWN): Likewise.
12153         [POSIX] (ENETUNREACH): Likewise.
12154         [POSIX] (ENOBUFS): Likewise.
12155         [POSIX] (ENODATA): Likewise.
12156         [POSIX] (ENOLINK): Likewise.
12157         [POSIX] (ENOMSG): Likewise.
12158         [POSIX] (ENOPROTOOPT): Likewise.
12159         [POSIX] (ENOSR): Likewise.
12160         [POSIX] (ENOSTR): Likewise.
12161         [POSIX] (ENOTCONN): Likewise.
12162         [POSIX] (ENOTSOCK): Likewise.
12163         [POSIX] (EOPNOTSUPP): Likewise.
12164         [POSIX] (EOVERFLOW): Likewise.
12165         [POSIX] (EPROTO): Likewise.
12166         [POSIX] (EPROTONOSUPPORT): Likewise.
12167         [POSIX] (EPROTOTYPE): Likewise.
12168         [POSIX] (ESTALE): Likewise.
12169         [POSIX] (ETIME): Likewise.
12170         [POSIX] (ETXTBSY): Likewise.
12171         [POSIX] (EWOULDBLOCK): Likewise.
12172         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
12173         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
12174         [POSIX] (SEEK_CUR): Likewise.
12175         [POSIX] (SEEK_END): Likewise.
12176         [POSIX || UNIX98] (mode_t): Do not require.
12177         [POSIX] (off_t): Likewise.
12178         [POSIX] (pid_t): Likewise.
12179         [POSIX] (sys/stat.h): Do not allow header.
12180         [POSIX] (unistd.h): Likewise.
12181         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
12182         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
12183         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
12184         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
12185         require.
12186         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
12187         sigevent): Specify elements.
12188         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
12189         entry.
12190         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
12191         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
12192
12193         * conform/data/cpio.h-data [POSIX]: Disable whole file.
12194         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
12195         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
12196         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
12197         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
12198         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
12199         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
12200         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
12201         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
12202         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
12203         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
12204         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
12205         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
12206         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
12207         Likewise.
12208         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
12209         Likewise.
12210         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
12211         Likewise.
12212         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
12213         Likewise.
12214         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
12215         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
12216         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
12217         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
12218         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
12219         Specify lower bound on value.
12220         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
12221         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
12222         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
12223         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
12224         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
12225         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
12226         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
12227         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
12228         value.
12229         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
12230         as optional.
12231         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
12232         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
12233         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
12234         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
12235         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
12236         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
12237         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
12238         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
12239         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
12240         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
12241         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
12242         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
12243         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
12244         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
12245         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
12246         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
12247         entry.
12248         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
12249         optional.
12250         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
12251         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
12252         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
12253         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
12254         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
12255         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
12256         Likewise.
12257         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
12258         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
12259         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
12260         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
12261         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
12262         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
12263         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
12264         as optional.
12265         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
12266         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
12267         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
12268         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
12269         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
12270         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
12271         specify as optional.
12272         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
12273         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
12274         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
12275         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
12276         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
12277         [XPG3] (NL_LANGMAX): Likewise.
12278         [POSIX || XPG3] (NL_MSGMAX): Likewise.
12279         [POSIX || XPG3] (NL_NMAX): Likewise.
12280         [POSIX || XPG3] (NL_SETMAX): Likewise.
12281         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
12282         [XPG3] (NZERO): Likewise.
12283         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
12284         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
12285         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
12286         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
12287         (REG_ERANGE): Expect.
12288         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
12289         optional-constant.
12290         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
12291         Use (void) in prototype.
12292         [POSIX] (*_t): Allow.
12293         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
12294         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
12295         (WRDE_BADVAL): Expect.
12296
12297         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
12298         expect.
12299         [XPG3 || XPG4] (O_RSYNC): Likewise.
12300         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
12301         Likewise.
12302         [XPG3 || XPG4] (pthread_sigmask): Likewise.
12303         [XPG3 || XPG4] (sigqueue): Likewise.
12304         [XPG3 || XPG4] (sigtimedwait): Likewise.
12305         [XPG3 || XPG4] (sigwaitinfo): Likewise.
12306         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
12307         [XPG3 || XPG4] (vsnprintf): Likewise.
12308         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
12309         Likewise.
12310         [XPG3 || XPG4] (blksize_t): Likewise.
12311         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
12312         Likewise.
12313         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
12314         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
12315         [XPG3 || XPG4] (struct itimerspec): Likewise.
12316         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
12317         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
12318         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
12319         [XPG3 || XPG4] (clockid_t): Likewise.
12320         [XPG3 || XPG4] (timer_t): Likewise.
12321         [XPG3 || XPG4] (clock_getres): Likewise.
12322         [XPG3 || XPG4] (clock_gettime): Likewise.
12323         [XPG3 || XPG4] (clock_settime): Likewise.
12324         [XPG3 || XPG4] (nanosleep): Likewise.
12325         [XPG3 || XPG4] (timer_create): Likewise.
12326         [XPG3 || XPG4] (timer_delete): Likewise.
12327         [XPG3 || XPG4] (timer_gettime): Likewise.
12328         [XPG3 || XPG4] (timer_getoverrun): Likewise.
12329         [XPG3 || XPG4] (timer_settime): Likewise.
12330         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
12331         [XPG3 || XPG4] (getlogin_r): Likewise.
12332         [XPG3 || XPG4] (pread): Likewise.
12333         [XPG3 || XPG4] (pthread_atfork): Likewise.
12334         [XPG3 || XPG4] (pwrite): Likewise.
12335
12336         [BZ #14835]
12337         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
12338         <bits/siginfo.h>.
12339
12340 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
12341
12342         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
12343         finalizing MALLSTREAM.
12344
12345         * sysdeps/mach/hurd/syncfs.c: New file.
12346
12347 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
12348
12349         [BZ #14719]
12350         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
12351         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
12352         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
12353         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
12354         (_nss_dns_gethostbyname4_r): Likewise.
12355         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
12356         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
12357
12358 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
12359
12360         [BZ #13763]
12361         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
12362
12363 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
12364
12365         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
12366         * elf/cache.c (print_entry): Print ",AArch64" for
12367         FLAG_AARCH64_LIB64
12368
12369         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
12370         * elf/cache.c (print_entry): Print ",hard-float" for
12371         FLAG_ARM_LIBHF.
12372
12373 2012-11-18  David S. Miller  <davem@davemloft.net>
12374
12375         With help from Joseph Myers.
12376         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
12377         cutoff to 2**-13.
12378         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
12379         cutoff to 2**-25.
12380         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
12381         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
12382         small.
12383         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
12384         * math/libm-test.inc (y0_test): New tests.
12385         (y1_test): New tests.
12386         * sysdeps/i386/fpu/libm-test-ulps: Update.
12387         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12388         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12389
12390 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
12391
12392         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
12393         64-bit targets.
12394         * configure: Regenerated.
12395
12396 2012-11-17  David S. Miller  <davem@davemloft.net>
12397
12398         [BZ #14811]
12399         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
12400         nonzero exponents with absolute value below 0x1p-128 to +/-
12401         0x1p-128.
12402
12403 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
12404
12405         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
12406
12407         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
12408
12409         * posix/getconf-speclist.c: New file.
12410         * posix/posix-envs.def: Likewise.
12411         * posix/confstr.c (START_ENV_GROUP): New macro.
12412         (END_ENV_GROUP): Likewise.
12413         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
12414         (KNOWN_PRESENT_ENV_STRING): Likewise.
12415         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
12416         (UNKNOWN_ENVIRONMENT): Likewise.
12417         (confstr): Include posix-envs.def instead of handling
12418         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
12419         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
12420         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
12421         (END_ENV_GROUP): Likewise.
12422         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
12423         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
12424         (UNKNOWN_ENVIRONMENT): Likewise.
12425         (__sysconf): Include posix-envs.def instead of handling associated
12426         cases directly here.
12427         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
12428         preprocessing getconf-speclist.c rather than running getconf or
12429         generating empty file.
12430
12431 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
12432
12433         * scripts/check-local-headers.sh: Ignore 'mach' headers.
12434
12435 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
12436
12437         [BZ #14672]
12438         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
12439
12440 2012-11-16  David S. Miller  <davem@davemloft.net>
12441
12442         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
12443         smaller than LDBL_EPSILON/2.0L, just return xm1.
12444
12445 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
12446
12447         * elf/tst-array1.c (init): Set constructor priority to 1000.
12448         (fini): Set destructor priority to 1000.
12449         * elf/tst-array2dep.c: Likewise.
12450
12451 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
12452
12453         [BZ #11741]
12454         * libio/fileops.c (_IO_new_file_write): Correctly return error.
12455         (_IO_new_file_xsputn): Also return EOF if none of the input
12456         data was written when overflow failed.
12457         * libio/iopadn.c (_IO_padn): Likewise.
12458         * libio/iowpadn.c (_IO_wpadn): Likewise.
12459         * stdio-common/tst-put-error.c: Add copyright notice.
12460         (do_test): Add case for printing padded string.
12461         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
12462         _IO_padn returned error.
12463         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
12464         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
12465         return EOF.
12466
12467 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
12468
12469         * libio/libioP.h: Add comment note that the references to C++
12470         bits are now obsolete.
12471
12472 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12473
12474         * math/libm-test.inc (check_complex): Use asprintf.
12475
12476 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
12477
12478         * debug/pcprofiledump.c (print_version): Update copyright year.
12479         * malloc/memusagestat.c (print_version): Likewise.
12480
12481 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
12482
12483         [BZ #14831]
12484         * elf/Makefile (tests): Add tst-audit8.
12485         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
12486         ($(objpfx)tst-audit8.out): New target.
12487         (tst-audit8-ENV): New variable.
12488         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
12489         audit if l_reloc_result is NULL.
12490         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
12491         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
12492         * elf/tst-audit8.c: New file.
12493
12494 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12495
12496         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
12497         * misc/Makefile (CFLAGS-select.c): Define.
12498         * posix/Makefile (CFLAGS-pause.c): Define.
12499
12500 2012-11-13  David S. Miller  <davem@davemloft.net>
12501
12502         * crypt/Makefile: Move test targets after toplevel Rules
12503         inclusion.  Grab any necessary sysdep routines when linking.
12504         * crypt/md5.c (md5_process_block): Remove define, we will always
12505         name it __md5_process_block.
12506         (md5_finish_ctx): Update md5_process_block call.
12507         (md5_stream): Likewise.
12508         (md5_process_bytes): Likewise.
12509         (md5_process_block): Rename to __md5_process_block and move to ...
12510         * crypt/md5-block.c: ... here.
12511         * crypt/sha256.c (sha256_process_block): Move to ...
12512         * crypt/sha256-block.c: ... here.
12513         * crypt/sha512.c (sha512_process_block): Move to ...
12514         * crypt/sha512-block.c: ... here.
12515         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
12516         path.
12517         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
12518         * sysdeps/sparc/sparc64/multiarch/Makefile
12519         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
12520         crypt subdir.
12521         (localedef-aux): Add md5 crypto assembler when in locale subdir.
12522         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
12523         multiarch changes.
12524         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
12525         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
12526         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
12527         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
12528         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
12529         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
12530         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
12531         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
12532         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
12533         file.
12534         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
12535         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
12536         file.
12537         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
12538
12539 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
12540
12541         * timezone/tzselect.ksh: Update from tzcode git revision
12542         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
12543         * timezone/zdump.c: Likewise.
12544         * timezone/zic.c: Likewise.
12545         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
12546         in TZVERSION setting, not $(PKGVERSION).
12547         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
12548         REPORT_BUGS_TO settings.
12549
12550         [BZ #14838]
12551         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
12552         macro.
12553
12554 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12555
12556         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
12557         detection to immediately after _FP_ROUND().
12558         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
12559         bits are 0.
12560
12561 2012-11-11  David S. Miller  <davem@davemloft.net>
12562
12563         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
12564         inttypes.h
12565         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
12566         __close rather than their public counterparts.
12567
12568 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
12569
12570         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
12571         file.
12572         [UNIX98] (sem_timedwait): Do not expect.
12573         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
12574         [XPG4 || UNIX98] (sockatmark): Do not expect.
12575         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
12576         (clock_getcpuclockid): Do not expect.
12577         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
12578         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
12579         Do not expect.
12580         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
12581         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
12582         [UNIX98] (vwscanf): Likewise.
12583         [UNIX98] (vswscanf): Likewise.
12584
12585 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
12586
12587         * timezone/version.h: Remove file.
12588         * timezone/README: Do not refer to version.h.
12589         * timezone/Makefile ($(objpfx)zic.o): New dependency on
12590         $(objpfx)version.h.
12591         ($(objpfx)zdump.o): Likewise.
12592         ($(objpfx)version.h): New target.
12593
12594         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
12595         2012i.
12596         * timezone/README: Don't mention modification to tzselect.ksh.
12597         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
12598         work on unmodified tzselect.ksh.  Substitute version numbers in
12599         tzselect.ksh.
12600
12601         * Makefile (format-me): Remove.
12602         (INSTALL): Adjust indentation.  Use commands directly instead of
12603         using $(format-me).
12604
12605         * aclocal.m4 (ACX_PKGVERSION): New macro.
12606         (ACX_BUGURL): Likewise.
12607         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
12608         (PKGVERSION): New AC_DEFINE_UNQUOTED.
12609         (REPORT_BUGS_TO): Likewise.
12610         * configure: Regenerated.
12611         * config.h.in (PKGVERSION): New macro.
12612         (REPORT_BUGS_TO): Likewise.
12613         * config.make.in (PKGVERSION): New variable.
12614         (PKGVERSION_TEXI): Likewise.
12615         (REPORT_BUGS_TO): Likewise.
12616         (REPORT_BUGS_TEXI): Likewise.
12617         * Makefile (format-me): Use -I$(common-objpfx)manual.
12618         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
12619         ($(common-objpfx)manual/%): New target.
12620         (manual/%): Remove target.
12621         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
12622         (print_version): Use PKGVERSION.
12623         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
12624         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
12625         and REPORT_BUGS_TO.
12626         ($(objpfx)xtrace): Likewise.
12627         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
12628         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
12629         (print_version): Use PKGVERSION.
12630         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
12631         (do_version): Use PKGVERSION.
12632         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
12633         REPORT_BUGS_TO.
12634         (common-ldd-rewrite): Likewise.
12635         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
12636         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
12637         (print_version): Use PKGVERSION.
12638         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
12639         * elf/pldd.c (argp_program_bug_address): Remove variable.
12640         (more_help): New function.
12641         (argp): Use more_help.
12642         (print_version): Use PKGVERSION.
12643         * elf/sln.c (main): Use PKGVERSION.
12644         (usage): Use REPORT_BUGS_TO.
12645         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
12646         (top level): Use PKGVERSION.
12647         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
12648         (print_version): Use PKGVERSION.
12649         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
12650         (print_version): Use PKGVERSION.
12651         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
12652         (print_version): Use PKGVERSION.
12653         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
12654         (print_version): Use PKGVERSION.
12655         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
12656         (print_version): Use PKGVERSION.
12657         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
12658         (print_version): Use PKGVERSION.
12659         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
12660         and BUGURL.
12661         ($(objpfx)memusage): Likewise.
12662         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
12663         (do_version): Use PKGVERSION.
12664         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
12665         (print_version): Use PKGVERSION.
12666         * malloc/mtrace.pl ($PACKAGE): Remove variable.
12667         ($PKGVERSION): New variable.
12668         ($REPORT_BUGS_TO): Likewise.
12669         (usage): Use $REPORT_BUGS_TO.
12670         (top level): Use $PKGVERSION.
12671         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
12672         ($(objpfx)pkgvers.texi): New rule.
12673         ($(objpfx)stamp-pkgvers): Likewise.
12674         * manual/install.texi: Include pkgvers.texi.
12675         (--with-pkgversion): Document new configure option.
12676         (--with-bugurl): Likewise.
12677         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
12678         than necessarily for this particular distribution.  Use
12679         REPORT_BUGS_TO for where to report bugs.
12680         * INSTALL: Regenerated.
12681         * manual/libc.texinfo: Include pkgvers.texi.
12682         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
12683         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
12684         (print_version): Use PKGVERSION.
12685         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
12686         (print_version): Use PKGVERSION.
12687         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
12688         (print_version): Use PKGVERSION.
12689         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
12690         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
12691         macro.
12692         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
12693         (print_version): Use PKGVERSION.
12694         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
12695         (print_version): Use PKGVERSION.
12696         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
12697         and PKGVERSION.
12698
12699         * timezone/checktab.awk: Update from tzcode 2012i.
12700         * timezone/ialloc.c: Likewise.
12701         * timezone/private.h: Likewise.
12702         * timezone/scheck.c: Likewise.
12703         * timezone/tzfile.h: Likewise.
12704         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
12705         (TZVERSION): Hardcode tzcode version number.
12706         * timezone/zdump.c: Update from tzcode 2012i.
12707         * timezone/zic.c: Likewise.
12708         * timezone/version.h: New file.
12709         * timezone/README: Describe version.h.  Update upstream location.
12710
12711         [BZ #14824]
12712         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
12713         (mktemp): Enable declaration.
12714         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
12715         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
12716         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
12717         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
12718         Likewise.
12719         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
12720         Likewise.
12721         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
12722         Likewise.
12723         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
12724         Likewise.
12725         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
12726         Likewise.
12727         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
12728         Likewise.
12729
12730         [BZ #14821]
12731         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
12732         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
12733         for copies of such integer values.
12734         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
12735         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
12736
12737 2012-11-09  Andreas Jaeger  <aj@suse.de>
12738
12739         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
12740         definitions and declarations that are provided by
12741         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
12742
12743 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12744
12745         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
12746         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
12747         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
12748         definition.
12749
12750 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12751
12752         * elf/elf.h: Update comment before AArch64 relocations.
12753
12754 2012-11-07  David S. Miller  <davem@davemloft.net>
12755
12756         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
12757         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
12758         (__start_context): Declare.
12759         (__makecontext_ret): Delete.
12760         (__makecontext): Hook up __start_context instead of
12761         __makecontext_ret.
12762         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
12763         (sysdep_routines): Add __start_context when in stdlib.
12764
12765 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12766
12767         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
12768         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
12769         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
12770         hardcoded "nm".
12771         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
12772         (READELF): New variable.  Use it instead of hardcoded "readelf".
12773
12774 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
12775
12776         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
12777         * sysdeps/x86/Makefile: Here.
12778         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
12779         * sysdeps/x86/tst-xmmymm.sh: This.
12780
12781 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
12782
12783         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
12784         expectations.
12785         [UNIX98] (pthread_barrier_t): Do not expect.
12786         [UNIX98] (pthread_barrierattr_t): Likewise.
12787         [UNIX98] (pthread_spinlock_t): Likewise.
12788         [UNIX98] (pthread_barrier_destroy): Likewise.
12789         [UNIX98] (pthread_barrier_init): Likewise.
12790         [UNIX98] (pthread_barrier_wait): Likewise.
12791         [UNIX98] (pthread_barrierattr_destroy): Likewise.
12792         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
12793         [UNIX98] (pthread_barrierattr_init): Likewise.
12794         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
12795         [UNIX98] (pthread_getcpuclockid): Likewise.
12796         [UNIX98] (pthread_mutex_timedlock): Likewise.
12797         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
12798         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
12799         [UNIX98] (pthread_sigmask): Likewise.
12800         [UNIX98] (pthread_spin_destroy): Likewise.
12801         [UNIX98] (pthread_spin_init): Likewise.
12802         [UNIX98] (pthread_spin_lock): Likewise.
12803         [UNIX98] (pthread_spin_trylock): Likewise.
12804         [UNIX98] (pthread_spin_unlock): Likewise.
12805         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
12806         Do not expect.
12807         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
12808         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
12809         [XPG3 || XPG4] (pthread_cond_t): Likewise.
12810         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
12811         [XPG3 || XPG4] (pthread_key_t): Likewise.
12812         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
12813         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
12814         [XPG3 || XPG4] (pthread_once_t): Likewise.
12815         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
12816         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
12817         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
12818         [XPG3 || XPG4] (pthread_t): Likewise.
12819
12820         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
12821         not expect.
12822         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
12823
12824         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
12825         Change function return type to int.
12826
12827         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
12828         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
12829         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
12830         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
12831         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
12832         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
12833         [!POSIX] (posix_madvise): Likewise.
12834         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
12835         && !UNIX98].
12836         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
12837         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
12838         (mode_t): Likewise.
12839         (posix_mem_offset): Likewise.
12840         (posix_typed_mem_get_info): Likewise.
12841         (posix_typed_mem_open): Likewise.
12842
12843         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
12844         Change condition to [XOPEN2K8].
12845
12846         * conform/conformtest.pl: Preprocess allow-header data with -x c
12847         instead of from stdin.
12848         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
12849         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
12850         [C99-based standards] (cerfc): Likewise.
12851         [C99-based standards] (cexp2): Likewise.
12852         [C99-based standards] (cexpm1): Likewise.
12853         [C99-based standards] (clog10): Likewise.
12854         [C99-based standards] (clog1p): Likewise.
12855         [C99-based standards] (clog2): Likewise.
12856         [C99-based standards] (clgamma): Likewise.
12857         [C99-based standards] (ctgamma): Likewise.
12858         [C99-based standards] (cerff): Likewise.
12859         [C99-based standards] (cerfcf): Likewise.
12860         [C99-based standards] (cexp2f): Likewise.
12861         [C99-based standards] (cexpm1f): Likewise.
12862         [C99-based standards] (clog10f): Likewise.
12863         [C99-based standards] (clog1pf): Likewise.
12864         [C99-based standards] (clog2f): Likewise.
12865         [C99-based standards] (clgammaf): Likewise.
12866         [C99-based standards] (ctgammaf): Likewise.
12867         [C99-based standards] (cerfl): Likewise.
12868         [C99-based standards] (cerfcl): Likewise.
12869         [C99-based standards] (cexp2l): Likewise.
12870         [C99-based standards] (cexpm1l): Likewise.
12871         [C99-based standards] (clog10l): Likewise.
12872         [C99-based standards] (clog1pl): Likewise.
12873         [C99-based standards] (clog2l): Likewise.
12874         [C99-based standards] (clgammal): Likewise.
12875         [C99-based standards] (ctgammal): Likewise.
12876         * conform/data/inttypes.h-data [C99-based standards]: Include
12877         stdint.h-data.  Remove all expectations for stdint.h contents.
12878         [C99-based standards] (PRI*): Do not allow.
12879         [C99-based standards] (SCN*): Likewise.
12880         [C99-based standards] (*_t): Likewise.
12881         [C99-based-standards] (PRId8): Expect macro.
12882         [C99-based-standards] (PRIi8): Likewise.
12883         [C99-based-standards] (PRIo8): Likewise.
12884         [C99-based-standards] (PRIu8): Likewise.
12885         [C99-based-standards] (PRIx8): Likewise.
12886         [C99-based-standards] (PRIX8): Likewise.
12887         [C99-based-standards] (SCNd8): Likewise.
12888         [C99-based-standards] (SCNi8): Likewise.
12889         [C99-based-standards] (SCNo8): Likewise.
12890         [C99-based-standards] (SCNu8): Likewise.
12891         [C99-based-standards] (SCNx8): Likewise.
12892         [C99-based-standards] (PRIdLEAST8): Likewise.
12893         [C99-based-standards] (PRIiLEAST8): Likewise.
12894         [C99-based-standards] (PRIoLEAST8): Likewise.
12895         [C99-based-standards] (PRIuLEAST8): Likewise.
12896         [C99-based-standards] (PRIxLEAST8): Likewise.
12897         [C99-based-standards] (PRIXLEAST8): Likewise.
12898         [C99-based-standards] (SCNdLEAST8): Likewise.
12899         [C99-based-standards] (SCNiLEAST8): Likewise.
12900         [C99-based-standards] (SCNoLEAST8): Likewise.
12901         [C99-based-standards] (SCNuLEAST8): Likewise.
12902         [C99-based-standards] (SCNxLEAST8): Likewise.
12903         [C99-based-standards] (PRIdFAST8): Likewise.
12904         [C99-based-standards] (PRIiFAST8): Likewise.
12905         [C99-based-standards] (PRIoFAST8): Likewise.
12906         [C99-based-standards] (PRIuFAST8): Likewise.
12907         [C99-based-standards] (PRIxFAST8): Likewise.
12908         [C99-based-standards] (PRIXFAST8): Likewise.
12909         [C99-based-standards] (SCNdFAST8): Likewise.
12910         [C99-based-standards] (SCNiFAST8): Likewise.
12911         [C99-based-standards] (SCNoFAST8): Likewise.
12912         [C99-based-standards] (SCNuFAST8): Likewise.
12913         [C99-based-standards] (SCNxFAST8): Likewise.
12914         [C99-based-standards] (PRId16): Likewise.
12915         [C99-based-standards] (PRIi16): Likewise.
12916         [C99-based-standards] (PRIo16): Likewise.
12917         [C99-based-standards] (PRIu16): Likewise.
12918         [C99-based-standards] (PRIx16): Likewise.
12919         [C99-based-standards] (PRIX16): Likewise.
12920         [C99-based-standards] (SCNd16): Likewise.
12921         [C99-based-standards] (SCNi16): Likewise.
12922         [C99-based-standards] (SCNo16): Likewise.
12923         [C99-based-standards] (SCNu16): Likewise.
12924         [C99-based-standards] (SCNx16): Likewise.
12925         [C99-based-standards] (PRIdLEAST16): Likewise.
12926         [C99-based-standards] (PRIiLEAST16): Likewise.
12927         [C99-based-standards] (PRIoLEAST16): Likewise.
12928         [C99-based-standards] (PRIuLEAST16): Likewise.
12929         [C99-based-standards] (PRIxLEAST16): Likewise.
12930         [C99-based-standards] (PRIXLEAST16): Likewise.
12931         [C99-based-standards] (SCNdLEAST16): Likewise.
12932         [C99-based-standards] (SCNiLEAST16): Likewise.
12933         [C99-based-standards] (SCNoLEAST16): Likewise.
12934         [C99-based-standards] (SCNuLEAST16): Likewise.
12935         [C99-based-standards] (SCNxLEAST16): Likewise.
12936         [C99-based-standards] (PRIdFAST16): Likewise.
12937         [C99-based-standards] (PRIiFAST16): Likewise.
12938         [C99-based-standards] (PRIoFAST16): Likewise.
12939         [C99-based-standards] (PRIuFAST16): Likewise.
12940         [C99-based-standards] (PRIxFAST16): Likewise.
12941         [C99-based-standards] (PRIXFAST16): Likewise.
12942         [C99-based-standards] (SCNdFAST16): Likewise.
12943         [C99-based-standards] (SCNiFAST16): Likewise.
12944         [C99-based-standards] (SCNoFAST16): Likewise.
12945         [C99-based-standards] (SCNuFAST16): Likewise.
12946         [C99-based-standards] (SCNxFAST16): Likewise.
12947         [C99-based-standards] (PRId32): Likewise.
12948         [C99-based-standards] (PRIi32): Likewise.
12949         [C99-based-standards] (PRIo32): Likewise.
12950         [C99-based-standards] (PRIu32): Likewise.
12951         [C99-based-standards] (PRIx32): Likewise.
12952         [C99-based-standards] (PRIX32): Likewise.
12953         [C99-based-standards] (SCNd32): Likewise.
12954         [C99-based-standards] (SCNi32): Likewise.
12955         [C99-based-standards] (SCNo32): Likewise.
12956         [C99-based-standards] (SCNu32): Likewise.
12957         [C99-based-standards] (SCNx32): Likewise.
12958         [C99-based-standards] (PRIdLEAST32): Likewise.
12959         [C99-based-standards] (PRIiLEAST32): Likewise.
12960         [C99-based-standards] (PRIoLEAST32): Likewise.
12961         [C99-based-standards] (PRIuLEAST32): Likewise.
12962         [C99-based-standards] (PRIxLEAST32): Likewise.
12963         [C99-based-standards] (PRIXLEAST32): Likewise.
12964         [C99-based-standards] (SCNdLEAST32): Likewise.
12965         [C99-based-standards] (SCNiLEAST32): Likewise.
12966         [C99-based-standards] (SCNoLEAST32): Likewise.
12967         [C99-based-standards] (SCNuLEAST32): Likewise.
12968         [C99-based-standards] (SCNxLEAST32): Likewise.
12969         [C99-based-standards] (PRIdFAST32): Likewise.
12970         [C99-based-standards] (PRIiFAST32): Likewise.
12971         [C99-based-standards] (PRIoFAST32): Likewise.
12972         [C99-based-standards] (PRIuFAST32): Likewise.
12973         [C99-based-standards] (PRIxFAST32): Likewise.
12974         [C99-based-standards] (PRIXFAST32): Likewise.
12975         [C99-based-standards] (SCNdFAST32): Likewise.
12976         [C99-based-standards] (SCNiFAST32): Likewise.
12977         [C99-based-standards] (SCNoFAST32): Likewise.
12978         [C99-based-standards] (SCNuFAST32): Likewise.
12979         [C99-based-standards] (SCNxFAST32): Likewise.
12980         [C99-based-standards] (PRId64): Likewise.
12981         [C99-based-standards] (PRIi64): Likewise.
12982         [C99-based-standards] (PRIo64): Likewise.
12983         [C99-based-standards] (PRIu64): Likewise.
12984         [C99-based-standards] (PRIx64): Likewise.
12985         [C99-based-standards] (PRIX64): Likewise.
12986         [C99-based-standards] (SCNd64): Likewise.
12987         [C99-based-standards] (SCNi64): Likewise.
12988         [C99-based-standards] (SCNo64): Likewise.
12989         [C99-based-standards] (SCNu64): Likewise.
12990         [C99-based-standards] (SCNx64): Likewise.
12991         [C99-based-standards] (PRIdLEAST64): Likewise.
12992         [C99-based-standards] (PRIiLEAST64): Likewise.
12993         [C99-based-standards] (PRIoLEAST64): Likewise.
12994         [C99-based-standards] (PRIuLEAST64): Likewise.
12995         [C99-based-standards] (PRIxLEAST64): Likewise.
12996         [C99-based-standards] (PRIXLEAST64): Likewise.
12997         [C99-based-standards] (SCNdLEAST64): Likewise.
12998         [C99-based-standards] (SCNiLEAST64): Likewise.
12999         [C99-based-standards] (SCNoLEAST64): Likewise.
13000         [C99-based-standards] (SCNuLEAST64): Likewise.
13001         [C99-based-standards] (SCNxLEAST64): Likewise.
13002         [C99-based-standards] (PRIdFAST64): Likewise.
13003         [C99-based-standards] (PRIiFAST64): Likewise.
13004         [C99-based-standards] (PRIoFAST64): Likewise.
13005         [C99-based-standards] (PRIuFAST64): Likewise.
13006         [C99-based-standards] (PRIxFAST64): Likewise.
13007         [C99-based-standards] (PRIXFAST64): Likewise.
13008         [C99-based-standards] (SCNdFAST64): Likewise.
13009         [C99-based-standards] (SCNiFAST64): Likewise.
13010         [C99-based-standards] (SCNoFAST64): Likewise.
13011         [C99-based-standards] (SCNuFAST64): Likewise.
13012         [C99-based-standards] (SCNxFAST64): Likewise.
13013         [C99-based-standards] (PRIdMAX): Likewise.
13014         [C99-based-standards] (PRIiMAX): Likewise.
13015         [C99-based-standards] (PRIoMAX): Likewise.
13016         [C99-based-standards] (PRIuMAX): Likewise.
13017         [C99-based-standards] (PRIxMAX): Likewise.
13018         [C99-based-standards] (PRIXMAX): Likewise.
13019         [C99-based-standards] (SCNdMAX): Likewise.
13020         [C99-based-standards] (SCNiMAX): Likewise.
13021         [C99-based-standards] (SCNoMAX): Likewise.
13022         [C99-based-standards] (SCNuMAX): Likewise.
13023         [C99-based-standards] (SCNxMAX): Likewise.
13024         [C99-based-standards] (PRIdPTR): Likewise.
13025         [C99-based-standards] (PRIiPTR): Likewise.
13026         [C99-based-standards] (PRIoPTR): Likewise.
13027         [C99-based-standards] (PRIuPTR): Likewise.
13028         [C99-based-standards] (PRIxPTR): Likewise.
13029         [C99-based-standards] (PRIXPTR): Likewise.
13030         [C99-based-standards] (SCNdPTR): Likewise.
13031         [C99-based-standards] (SCNiPTR): Likewise.
13032         [C99-based-standards] (SCNoPTR): Likewise.
13033         [C99-based-standards] (SCNuPTR): Likewise.
13034         [C99-based-standards] (SCNxPTR): Likewise.
13035         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
13036         allow.
13037         * conform/data/stdint.h-data: Update comments to clarify
13038         requirements.
13039         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
13040         type.
13041         [C99-based standards] (INT8_MAX): Likewise.
13042         [C99-based standards] (INT16_MIN): Likewise.
13043         [C99-based standards] (INT16_MAX): Likewise.
13044         [C99-based standards] (INT32_MIN): Likewise.
13045         [C99-based standards] (INT32_MAX): Likewise.
13046         [C99-based standards] (INT64_MIN): Likewise.
13047         [C99-based standards] (INT64_MAX): Likewise.
13048         [C99-based standards] (UINT8_MAX): Likewise.
13049         [C99-based standards] (UINT16_MAX): Likewise.
13050         [C99-based standards] (UINT32_MAX): Likewise.
13051         [C99-based standards] (UINT64_MAX): Likewise.
13052         [C99-based standards] (INT_LEAST8_MIN): Likewise.
13053         [C99-based standards] (INT_LEAST8_MAX): Likewise.
13054         [C99-based standards] (INT_LEAST16_MIN): Likewise.
13055         [C99-based standards] (INT_LEAST16_MAX): Likewise.
13056         [C99-based standards] (INT_LEAST32_MIN): Likewise.
13057         [C99-based standards] (INT_LEAST32_MAX): Likewise.
13058         [C99-based standards] (INT_LEAST64_MIN): Likewise.
13059         [C99-based standards] (INT_LEAST64_MAX): Likewise.
13060         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
13061         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
13062         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
13063         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
13064         [C99-based standards] (INT_FAST8_MIN): Likewise.
13065         [C99-based standards] (INT_FAST8_MAX): Likewise.
13066         [C99-based standards] (INT_FAST16_MIN): Likewise.
13067         [C99-based standards] (INT_FAST16_MAX): Likewise.
13068         [C99-based standards] (INT_FAST32_MIN): Likewise.
13069         [C99-based standards] (INT_FAST32_MAX): Likewise.
13070         [C99-based standards] (INT_FAST64_MIN): Likewise.
13071         [C99-based standards] (INT_FAST64_MAX): Likewise.
13072         [C99-based standards] (UINT_FAST8_MAX): Likewise.
13073         [C99-based standards] (UINT_FAST16_MAX): Likewise.
13074         [C99-based standards] (UINT_FAST32_MAX): Likewise.
13075         [C99-based standards] (UINT_FAST64_MAX): Likewise.
13076         [C99-based standards] (INTPTR_MIN): Likewise.
13077         [C99-based standards] (INTPTR_MAX): Likewise.
13078         [C99-based standards] (UINTPTR_MAX): Likewise.
13079         [C99-based standards] (INTMAX_MIN): Likewise.
13080         [C99-based standards] (INTMAX_MAX): Likewise.
13081         [C99-based standards] (UINTMAX_MAX): Likewise.
13082         [C99-based standards] (PTRDIFF_MIN): Likewise.
13083         [C99-based standards] (PTRDIFF_MAX): Likewise.
13084         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
13085         [C99-based standards] (SIZE_MAX): Likewise.
13086         [C99-based standards] (WCHAR_MAX): Likewise.
13087         [C99-based standards] (WINT_MAX): Likewise.
13088         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
13089         constraint on value.
13090         [C99-based standards] (WCHAR_MIN): Likewise.
13091         [C99-based standards] (WINT_MIN): Likewise.
13092         [C99-based standards] (*_t): Allow.
13093         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
13094         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
13095         Include math.h-data and complex.h-data.  Remove all expectations
13096         of math.h and complex.h contents.
13097         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
13098         at end of line.
13099         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
13100         (struct tm): Expect tag.
13101         [C99-based-standards] (wcstof): Expect function.
13102         [C99-based-standards] (wcstold): Likewise.
13103         [C99-based-standards] (wcstoll): Likewise.
13104         [C99-based-standards] (wcstoull): Likewise.
13105         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
13106         macro-int-constant.  Specify type.
13107         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
13108         constraint on value.
13109         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
13110         Specify type.
13111         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
13112         Specify value.
13113         [ISO C standards]: Do not allow headers.
13114         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
13115         wcs[abcdefghijklmnopqrstuvwxyz]*.
13116         [ISO C standards] (*_t): Do not allow.
13117         * conform/data/wctype.h-data [C99-based standards] (iswblank):
13118         Expect function.
13119         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
13120         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
13121         Specify type.
13122         [ISO C standards]: Do not allow headers.
13123         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
13124         is[abcdefghijklmnopqrstuvwxyz]*.
13125         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
13126         to[abcdefghijklmnopqrstuvwxyz]*.
13127         [ISO C standards] (*_t): Do not allow.
13128         * conform/data/stdalign.h-data: New file.
13129         * conform/data/stdbool.h-data: Likewise.
13130         * conform/data/stdnoreturn.h-data: Likewise.
13131
13132 2012-11-07  Roland McGrath  <roland@hack.frob.com>
13133
13134         [BZ #14815]
13135         * manual/filesys.texi (Directory Entries): Typo fix.
13136         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
13137
13138 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
13139
13140         * elf/elf.h (EM_AARCH64): New macro.
13141         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
13142         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
13143         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
13144         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
13145         (R_AARCH64_TLSDESC): Likewise.
13146         (NT_ARM_TLS): Likewise.
13147         (NT_ARM_HW_BREAK): Likewise.
13148         (NT_ARM_HW_WATCH): Likewise.
13149
13150 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
13151
13152         [BZ #14811]
13153         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
13154         (__ieee754_powl): Saturate nonzero exponents with absolute value
13155         below 0x1p-79 to +/- 0x1p-79.
13156         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
13157         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
13158         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
13159         nonzero exponents with absolute value below 0x1p-32 to +/-
13160         0x1p-32.
13161         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
13162         (__ieee754_powl): Saturate nonzero exponents with absolute value
13163         below 0x1p-79 to +/- 0x1p-79.
13164         * math/libm-test.inc (pow_test): Add more tests.
13165
13166 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13167
13168         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
13169         _dl_s390_cap_flags with kernel. Increase string length.
13170         (_dl_s390_platforms): Add z196 and zEC12.
13171
13172 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
13173
13174         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
13175         Change XOPEN21K to XOPEN2K.
13176
13177 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
13178
13179         * string/memmove.c: Use memcpy when possible.
13180
13181 2012-11-06  Andreas Jaeger  <aj@suse.de>
13182
13183         * po/eo.po: Update from translation team.
13184
13185 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
13186
13187         [BZ #14793]
13188         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
13189         exponent and small x and y exponents, scale x or y up.  Increase
13190         by 2 the exponent used in scaling up.
13191         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13192         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13193         * math/libm-test.inc (fma_test): Add more tests.
13194         (fma_test_towardzero): Likewise.
13195         (fma_test_downward): Likewise.
13196         (fma_test_upward): Likewise.
13197
13198 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
13199
13200         [BZ #14805]
13201         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
13202         fenv_t *.
13203
13204         [BZ #14801]
13205         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
13206         namespace for names of struct fields.
13207         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
13208         fenv_t fields.
13209         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
13210         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
13211
13212 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13213
13214         [BZ #3665]
13215         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
13216
13217 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
13218
13219         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
13220         PTR_DEMANGLE.
13221
13222         [BZ #5246]
13223         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
13224         PTR_DEMANGLE.
13225
13226 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
13227
13228         [BZ #14797]
13229         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
13230         definitely overflow as x * y not x * y + z.
13231         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13232         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13233         * math/libm-test.inc (fma_test): Add more tests.
13234         (fma_test_towardzero): Likewise.
13235         (fma_test_downward): Likewise.
13236         (fma_test_upward): Likewise.
13237
13238 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
13239
13240         [BZ #157]
13241
13242         * include/stub-tag.h: Remove file.
13243         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
13244         '#include' of it.
13245         * manual/maint.texi (Porting): Don't reference it.
13246         * Makerules ($(objpfx)stubs): Likewise.
13247         * dirent/closedir.c: Don't include <stub-tag.h>.
13248         * dirent/dirfd.c: Likewise.
13249         * dirent/fdopendir.c: Likewise.
13250         * dirent/getdents.c: Likewise.
13251         * dirent/getdents64.c: Likewise.
13252         * dirent/opendir.c: Likewise.
13253         * dirent/readdir.c: Likewise.
13254         * dirent/readdir64.c: Likewise.
13255         * dirent/readdir64_r.c: Likewise.
13256         * dirent/readdir_r.c: Likewise.
13257         * dirent/rewinddir.c: Likewise.
13258         * dirent/seekdir.c: Likewise.
13259         * dirent/telldir.c: Likewise.
13260         * gmon/profil.c: Likewise.
13261         * grp/setgroups.c: Likewise.
13262         * inet/if_index.c: Likewise.
13263         * io/access.c: Likewise.
13264         * io/chdir.c: Likewise.
13265         * io/chmod.c: Likewise.
13266         * io/chown.c: Likewise.
13267         * io/close.c: Likewise.
13268         * io/dup.c: Likewise.
13269         * io/dup2.c: Likewise.
13270         * io/dup3.c: Likewise.
13271         * io/euidaccess.c: Likewise.
13272         * io/faccessat.c: Likewise.
13273         * io/fchdir.c: Likewise.
13274         * io/fchmod.c: Likewise.
13275         * io/fchmodat.c: Likewise.
13276         * io/fchown.c: Likewise.
13277         * io/fchownat.c: Likewise.
13278         * io/fcntl.c: Likewise.
13279         * io/flock.c: Likewise.
13280         * io/fstatfs.c: Likewise.
13281         * io/fstatfs64.c: Likewise.
13282         * io/fstatvfs.c: Likewise.
13283         * io/fstatvfs64.c: Likewise.
13284         * io/futimens.c: Likewise.
13285         * io/fxstat.c: Likewise.
13286         * io/fxstat64.c: Likewise.
13287         * io/fxstatat.c: Likewise.
13288         * io/fxstatat64.c: Likewise.
13289         * io/getcwd.c: Likewise.
13290         * io/isatty.c: Likewise.
13291         * io/lchmod.c: Likewise.
13292         * io/lchown.c: Likewise.
13293         * io/link.c: Likewise.
13294         * io/linkat.c: Likewise.
13295         * io/lseek.c: Likewise.
13296         * io/lseek64.c: Likewise.
13297         * io/lxstat64.c: Likewise.
13298         * io/mkdir.c: Likewise.
13299         * io/mkdirat.c: Likewise.
13300         * io/mkfifo.c: Likewise.
13301         * io/mkfifoat.c: Likewise.
13302         * io/open.c: Likewise.
13303         * io/open64.c: Likewise.
13304         * io/openat.c: Likewise.
13305         * io/openat64.c: Likewise.
13306         * io/pipe.c: Likewise.
13307         * io/pipe2.c: Likewise.
13308         * io/poll.c: Likewise.
13309         * io/posix_fadvise.c: Likewise.
13310         * io/posix_fadvise64.c: Likewise.
13311         * io/posix_fallocate.c: Likewise.
13312         * io/posix_fallocate64.c: Likewise.
13313         * io/read.c: Likewise.
13314         * io/readlink.c: Likewise.
13315         * io/readlinkat.c: Likewise.
13316         * io/rmdir.c: Likewise.
13317         * io/sendfile.c: Likewise.
13318         * io/sendfile64.c: Likewise.
13319         * io/statfs.c: Likewise.
13320         * io/statfs64.c: Likewise.
13321         * io/statvfs.c: Likewise.
13322         * io/statvfs64.c: Likewise.
13323         * io/symlink.c: Likewise.
13324         * io/symlinkat.c: Likewise.
13325         * io/ttyname.c: Likewise.
13326         * io/ttyname_r.c: Likewise.
13327         * io/umask.c: Likewise.
13328         * io/unlink.c: Likewise.
13329         * io/unlinkat.c: Likewise.
13330         * io/utime.c: Likewise.
13331         * io/utimensat.c: Likewise.
13332         * io/write.c: Likewise.
13333         * io/xmknod.c: Likewise.
13334         * io/xmknodat.c: Likewise.
13335         * io/xstat.c: Likewise.
13336         * io/xstat64.c: Likewise.
13337         * login/getpt.c: Likewise.
13338         * login/grantpt.c: Likewise.
13339         * login/unlockpt.c: Likewise.
13340         * math/e_acoshl.c: Likewise.
13341         * math/e_acosl.c: Likewise.
13342         * math/e_asinl.c: Likewise.
13343         * math/e_atan2l.c: Likewise.
13344         * math/e_atanhl.c: Likewise.
13345         * math/e_coshl.c: Likewise.
13346         * math/e_expl.c: Likewise.
13347         * math/e_fmodl.c: Likewise.
13348         * math/e_gammal_r.c: Likewise.
13349         * math/e_hypotl.c: Likewise.
13350         * math/e_j0l.c: Likewise.
13351         * math/e_j1l.c: Likewise.
13352         * math/e_jnl.c: Likewise.
13353         * math/e_lgammal_r.c: Likewise.
13354         * math/e_log10l.c: Likewise.
13355         * math/e_log2l.c: Likewise.
13356         * math/e_logl.c: Likewise.
13357         * math/e_powl.c: Likewise.
13358         * math/e_rem_pio2l.c: Likewise.
13359         * math/e_sinhl.c: Likewise.
13360         * math/e_sqrtl.c: Likewise.
13361         * math/fclrexcpt.c: Likewise.
13362         * math/fedisblxcpt.c: Likewise.
13363         * math/feenablxcpt.c: Likewise.
13364         * math/fegetenv.c: Likewise.
13365         * math/fegetexcept.c: Likewise.
13366         * math/fegetround.c: Likewise.
13367         * math/feholdexcpt.c: Likewise.
13368         * math/fesetenv.c: Likewise.
13369         * math/fesetround.c: Likewise.
13370         * math/feupdateenv.c: Likewise.
13371         * math/fgetexcptflg.c: Likewise.
13372         * math/fraiseexcpt.c: Likewise.
13373         * math/fsetexcptflg.c: Likewise.
13374         * math/ftestexcept.c: Likewise.
13375         * math/k_cosl.c: Likewise.
13376         * math/k_rem_pio2l.c: Likewise.
13377         * math/k_sinl.c: Likewise.
13378         * math/k_tanl.c: Likewise.
13379         * math/s_asinhl.c: Likewise.
13380         * math/s_atanl.c: Likewise.
13381         * math/s_cbrtl.c: Likewise.
13382         * math/s_erfl.c: Likewise.
13383         * math/s_expm1l.c: Likewise.
13384         * math/s_log1pl.c: Likewise.
13385         * math/s_tanhl.c: Likewise.
13386         * misc/acct.c: Likewise.
13387         * misc/brk.c: Likewise.
13388         * misc/chflags.c: Likewise.
13389         * misc/chroot.c: Likewise.
13390         * misc/fchflags.c: Likewise.
13391         * misc/fgetxattr.c: Likewise.
13392         * misc/flistxattr.c: Likewise.
13393         * misc/fremovexattr.c: Likewise.
13394         * misc/fsetxattr.c: Likewise.
13395         * misc/fsync.c: Likewise.
13396         * misc/ftruncate.c: Likewise.
13397         * misc/futimes.c: Likewise.
13398         * misc/futimesat.c: Likewise.
13399         * misc/getdomain.c: Likewise.
13400         * misc/getdtsz.c: Likewise.
13401         * misc/gethostid.c: Likewise.
13402         * misc/gethostname.c: Likewise.
13403         * misc/getloadavg.c: Likewise.
13404         * misc/getpagesize.c: Likewise.
13405         * misc/getsysstats.c: Likewise.
13406         * misc/getxattr.c: Likewise.
13407         * misc/gtty.c: Likewise.
13408         * misc/ioctl.c: Likewise.
13409         * misc/lgetxattr.c: Likewise.
13410         * misc/listxattr.c: Likewise.
13411         * misc/llistxattr.c: Likewise.
13412         * misc/lremovexattr.c: Likewise.
13413         * misc/lsetxattr.c: Likewise.
13414         * misc/lutimes.c: Likewise.
13415         * misc/madvise.c: Likewise.
13416         * misc/mincore.c: Likewise.
13417         * misc/mlock.c: Likewise.
13418         * misc/mlockall.c: Likewise.
13419         * misc/mmap.c: Likewise.
13420         * misc/mprotect.c: Likewise.
13421         * misc/msync.c: Likewise.
13422         * misc/munlock.c: Likewise.
13423         * misc/munlockall.c: Likewise.
13424         * misc/munmap.c: Likewise.
13425         * misc/preadv.c: Likewise.
13426         * misc/preadv64.c: Likewise.
13427         * misc/ptrace.c: Likewise.
13428         * misc/pwritev.c: Likewise.
13429         * misc/pwritev64.c: Likewise.
13430         * misc/readv.c: Likewise.
13431         * misc/reboot.c: Likewise.
13432         * misc/remap_file_pages.c: Likewise.
13433         * misc/removexattr.c: Likewise.
13434         * misc/revoke.c: Likewise.
13435         * misc/select.c: Likewise.
13436         * misc/setdomain.c: Likewise.
13437         * misc/setegid.c: Likewise.
13438         * misc/seteuid.c: Likewise.
13439         * misc/sethostid.c: Likewise.
13440         * misc/sethostname.c: Likewise.
13441         * misc/setregid.c: Likewise.
13442         * misc/setreuid.c: Likewise.
13443         * misc/setxattr.c: Likewise.
13444         * misc/sstk.c: Likewise.
13445         * misc/stty.c: Likewise.
13446         * misc/swapoff.c: Likewise.
13447         * misc/swapon.c: Likewise.
13448         * misc/sync.c: Likewise.
13449         * misc/syncfs.c: Likewise.
13450         * misc/syscall.c: Likewise.
13451         * misc/truncate.c: Likewise.
13452         * misc/ualarm.c: Likewise.
13453         * misc/usleep.c: Likewise.
13454         * misc/ustat.c: Likewise.
13455         * misc/utimes.c: Likewise.
13456         * misc/vhangup.c: Likewise.
13457         * misc/writev.c: Likewise.
13458         * posix/_exit.c: Likewise.
13459         * posix/alarm.c: Likewise.
13460         * posix/execve.c: Likewise.
13461         * posix/fexecve.c: Likewise.
13462         * posix/fork.c: Likewise.
13463         * posix/fpathconf.c: Likewise.
13464         * posix/getaddrinfo.c: Likewise.
13465         * posix/getegid.c: Likewise.
13466         * posix/geteuid.c: Likewise.
13467         * posix/getgid.c: Likewise.
13468         * posix/getgroups.c: Likewise.
13469         * posix/getlogin.c: Likewise.
13470         * posix/getlogin_r.c: Likewise.
13471         * posix/getpgid.c: Likewise.
13472         * posix/getpid.c: Likewise.
13473         * posix/getppid.c: Likewise.
13474         * posix/getresgid.c: Likewise.
13475         * posix/getresuid.c: Likewise.
13476         * posix/getsid.c: Likewise.
13477         * posix/getuid.c: Likewise.
13478         * posix/glob64.c: Likewise.
13479         * posix/nanosleep.c: Likewise.
13480         * posix/pathconf.c: Likewise.
13481         * posix/pause.c: Likewise.
13482         * posix/posix_madvise.c: Likewise.
13483         * posix/pread.c: Likewise.
13484         * posix/pread64.c: Likewise.
13485         * posix/pwrite.c: Likewise.
13486         * posix/pwrite64.c: Likewise.
13487         * posix/sched_getaffinity.c: Likewise.
13488         * posix/sched_getp.c: Likewise.
13489         * posix/sched_gets.c: Likewise.
13490         * posix/sched_primax.c: Likewise.
13491         * posix/sched_primin.c: Likewise.
13492         * posix/sched_rr_gi.c: Likewise.
13493         * posix/sched_setaffinity.c: Likewise.
13494         * posix/sched_setp.c: Likewise.
13495         * posix/sched_sets.c: Likewise.
13496         * posix/sched_yield.c: Likewise.
13497         * posix/setgid.c: Likewise.
13498         * posix/setlogin.c: Likewise.
13499         * posix/setpgid.c: Likewise.
13500         * posix/setresgid.c: Likewise.
13501         * posix/setresuid.c: Likewise.
13502         * posix/setsid.c: Likewise.
13503         * posix/setuid.c: Likewise.
13504         * posix/sleep.c: Likewise.
13505         * posix/spawni.c: Likewise.
13506         * posix/sysconf.c: Likewise.
13507         * posix/times.c: Likewise.
13508         * posix/wait.c: Likewise.
13509         * posix/wait3.c: Likewise.
13510         * posix/wait4.c: Likewise.
13511         * posix/waitpid.c: Likewise.
13512         * resolv/gai_sigqueue.c: Likewise.
13513         * resource/getpriority.c: Likewise.
13514         * resource/getrlimit.c: Likewise.
13515         * resource/getrusage.c: Likewise.
13516         * resource/nice.c: Likewise.
13517         * resource/setpriority.c: Likewise.
13518         * resource/setrlimit.c: Likewise.
13519         * resource/ulimit.c: Likewise.
13520         * rt/aio_cancel.c: Likewise.
13521         * rt/aio_fsync.c: Likewise.
13522         * rt/aio_read.c: Likewise.
13523         * rt/aio_sigqueue.c: Likewise.
13524         * rt/aio_suspend.c: Likewise.
13525         * rt/aio_write.c: Likewise.
13526         * rt/clock_getres.c: Likewise.
13527         * rt/clock_gettime.c: Likewise.
13528         * rt/clock_nanosleep.c: Likewise.
13529         * rt/clock_settime.c: Likewise.
13530         * rt/lio_listio.c: Likewise.
13531         * rt/mq_close.c: Likewise.
13532         * rt/mq_getattr.c: Likewise.
13533         * rt/mq_notify.c: Likewise.
13534         * rt/mq_open.c: Likewise.
13535         * rt/mq_receive.c: Likewise.
13536         * rt/mq_send.c: Likewise.
13537         * rt/mq_setattr.c: Likewise.
13538         * rt/mq_timedreceive.c: Likewise.
13539         * rt/mq_timedsend.c: Likewise.
13540         * rt/mq_unlink.c: Likewise.
13541         * rt/shm_open.c: Likewise.
13542         * rt/shm_unlink.c: Likewise.
13543         * rt/timer_create.c: Likewise.
13544         * rt/timer_delete.c: Likewise.
13545         * rt/timer_getoverr.c: Likewise.
13546         * rt/timer_gettime.c: Likewise.
13547         * rt/timer_settime.c: Likewise.
13548         * setjmp/__longjmp.c: Likewise.
13549         * setjmp/setjmp.c: Likewise.
13550         * signal/kill.c: Likewise.
13551         * signal/killpg.c: Likewise.
13552         * signal/raise.c: Likewise.
13553         * signal/sigaction.c: Likewise.
13554         * signal/sigaltstack.c: Likewise.
13555         * signal/sigblock.c: Likewise.
13556         * signal/sigignore.c: Likewise.
13557         * signal/sigintr.c: Likewise.
13558         * signal/signal.c: Likewise.
13559         * signal/sigpause.c: Likewise.
13560         * signal/sigpending.c: Likewise.
13561         * signal/sigqueue.c: Likewise.
13562         * signal/sigreturn.c: Likewise.
13563         * signal/sigset.c: Likewise.
13564         * signal/sigsetmask.c: Likewise.
13565         * signal/sigstack.c: Likewise.
13566         * signal/sigsuspend.c: Likewise.
13567         * signal/sigtimedwait.c: Likewise.
13568         * signal/sigvec.c: Likewise.
13569         * signal/sigwait.c: Likewise.
13570         * signal/sigwaitinfo.c: Likewise.
13571         * signal/sysv_signal.c: Likewise.
13572         * socket/accept.c: Likewise.
13573         * socket/accept4.c: Likewise.
13574         * socket/bind.c: Likewise.
13575         * socket/connect.c: Likewise.
13576         * socket/getpeername.c: Likewise.
13577         * socket/getsockname.c: Likewise.
13578         * socket/getsockopt.c: Likewise.
13579         * socket/isfdtype.c: Likewise.
13580         * socket/listen.c: Likewise.
13581         * socket/recv.c: Likewise.
13582         * socket/recvfrom.c: Likewise.
13583         * socket/recvmsg.c: Likewise.
13584         * socket/send.c: Likewise.
13585         * socket/sendmsg.c: Likewise.
13586         * socket/sendto.c: Likewise.
13587         * socket/setsockopt.c: Likewise.
13588         * socket/shutdown.c: Likewise.
13589         * socket/sockatmark.c: Likewise.
13590         * socket/socket.c: Likewise.
13591         * socket/socketpair.c: Likewise.
13592         * stdio-common/ctermid.c: Likewise.
13593         * stdio-common/cuserid.c: Likewise.
13594         * stdio-common/remove.c: Likewise.
13595         * stdio-common/rename.c: Likewise.
13596         * stdio-common/renameat.c: Likewise.
13597         * stdio-common/tempname.c: Likewise.
13598         * stdlib/getcontext.c: Likewise.
13599         * stdlib/makecontext.c: Likewise.
13600         * stdlib/setcontext.c: Likewise.
13601         * stdlib/swapcontext.c: Likewise.
13602         * stdlib/system.c: Likewise.
13603         * streams/fattach.c: Likewise.
13604         * streams/fdetach.c: Likewise.
13605         * streams/getmsg.c: Likewise.
13606         * streams/getpmsg.c: Likewise.
13607         * streams/putmsg.c: Likewise.
13608         * streams/putpmsg.c: Likewise.
13609         * sysdeps/unix/bsd/getpt.c: Likewise.
13610         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
13611         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
13612         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
13613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
13614         Likewise.
13615         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
13616         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
13617         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
13618         * sysvipc/msgctl.c: Likewise.
13619         * sysvipc/msgget.c: Likewise.
13620         * sysvipc/msgrcv.c: Likewise.
13621         * sysvipc/msgsnd.c: Likewise.
13622         * sysvipc/semctl.c: Likewise.
13623         * sysvipc/semget.c: Likewise.
13624         * sysvipc/semop.c: Likewise.
13625         * sysvipc/semtimedop.c: Likewise.
13626         * sysvipc/shmat.c: Likewise.
13627         * sysvipc/shmctl.c: Likewise.
13628         * sysvipc/shmdt.c: Likewise.
13629         * sysvipc/shmget.c: Likewise.
13630         * termios/tcdrain.c: Likewise.
13631         * termios/tcflow.c: Likewise.
13632         * termios/tcflush.c: Likewise.
13633         * termios/tcgetattr.c: Likewise.
13634         * termios/tcgetpgrp.c: Likewise.
13635         * termios/tcsendbrk.c: Likewise.
13636         * termios/tcsetattr.c: Likewise.
13637         * termios/tcsetpgrp.c: Likewise.
13638         * time/adjtime.c: Likewise.
13639         * time/clock.c: Likewise.
13640         * time/getitimer.c: Likewise.
13641         * time/gettimeofday.c: Likewise.
13642         * time/setitimer.c: Likewise.
13643         * time/settimeofday.c: Likewise.
13644         * time/stime.c: Likewise.
13645         * time/time.c: Likewise.
13646
13647 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
13648
13649         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
13650         /usr/old/bin.
13651
13652         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
13653         instead of spaces.
13654         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
13655
13656 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
13657
13658         [BZ #14796]
13659         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
13660         FE_TONEAREST before applying Dekker multiplication and Knuth
13661         addition.  Clear inexact exceptions and check for exact zero
13662         results afterwards.
13663         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13664         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
13665         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13666         * math/libm-test.inc (fma_test): Add more tests.
13667         (fma_test_towardzero): Likewise.
13668         (fma_test_downward): Likewise.
13669         (fma_test_upward): Likewise.
13670         * sysdeps/generic/math_private.h (default_libc_fesetround): New
13671         function.
13672         (libc_fesetround): New macro.
13673         (libc_fesetroundf): Likewise.
13674         (libc_fesetroundl): Likewise.
13675         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
13676         function.
13677         (libc_fesetround_387): Likewise.
13678         (libc_fesetroundf): New macro.
13679         (libc_fesetround): Likewise.
13680         (libc_fesetroundl): Likewise.
13681         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
13682         function.
13683         (libc_fesetroundf): New macro.
13684         (libc_fesetround): Likewise.
13685         (libc_fesetroundl): Likewise.
13686         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
13687         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
13688         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
13689         libm_hidden_ver.
13690         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
13691         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
13692         libm_hidden_def.
13693         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
13694         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
13695         libm_hidden_ver.
13696         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
13697         libm_hidden_def.
13698
13699         [BZ #3439]
13700         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
13701         integer constant usable in #if and use that to give value to enum
13702         constant.
13703         (FE_DIVBYZERO): Likewise.
13704         (FE_UNDERFLOW): Likewise.
13705         (FE_OVERFLOW): Likewise.
13706         (FE_INVALID): Likewise.
13707         (FE_INVALID_SNAN): Likewise.
13708         (FE_INVALID_ISI): Likewise.
13709         (FE_INVALID_IDI): Likewise.
13710         (FE_INVALID_ZDZ): Likewise.
13711         (FE_INVALID_IMZ): Likewise.
13712         (FE_INVALID_COMPARE): Likewise.
13713         (FE_INVALID_SOFTWARE): Likewise.
13714         (FE_INVALID_SQRT): Likewise.
13715         (FE_INVALID_INTEGER_CONVERSION): Likewise.
13716         (FE_TONEAREST): Likewise.
13717         (FE_TOWARDZERO): Likewise.
13718         (FE_UPWARD): Likewise.
13719         (FE_DOWNWARD): Likewise.
13720         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
13721         (FE_DIVBYZERO): Likewise.
13722         (FE_OVERFLOW): Likewise.
13723         (FE_UNDERFLOW): Likewise.
13724         (FE_INEXACT): Likewise.
13725         (FE_TONEAREST): Likewise.
13726         (FE_DOWNWARD): Likewise.
13727         (FE_UPWARD): Likewise.
13728         (FE_TOWARDZERO): Likewise.
13729         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
13730         (FE_UNDERFLOW): Likewise.
13731         (FE_OVERFLOW): Likewise.
13732         (FE_DIVBYZERO): Likewise.
13733         (FE_INVALID): Likewise.
13734         (FE_TONEAREST): Likewise.
13735         (FE_TOWARDZERO): Likewise.
13736         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
13737         (FE_OVERFLOW): Likewise.
13738         (FE_UNDERFLOW): Likewise.
13739         (FE_DIVBYZERO): Likewise.
13740         (FE_INEXACT): Likewise.
13741         (FE_TONEAREST): Likewise.
13742         (FE_TOWARDZERO): Likewise.
13743         (FE_UPWARD): Likewise.
13744         (FE_DOWNWARD): Likewise.
13745         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
13746         (FE_DIVBYZERO): Likewise.
13747         (FE_OVERFLOW): Likewise.
13748         (FE_UNDERFLOW): Likewise.
13749         (FE_INEXACT): Likewise.
13750         (FE_TONEAREST): Likewise.
13751         (FE_DOWNWARD): Likewise.
13752         (FE_UPWARD): Likewise.
13753         (FE_TOWARDZERO): Likewise.
13754
13755 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
13756
13757         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
13758
13759 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
13760
13761         * scripts/cross-test-ssh.sh (command): Use newlines to separate
13762         commands.  Quote $PWD.
13763         (blacklist_exports): Don't use remove_newlines.  Replace "declare
13764         -x" by "export".
13765         (remove_newlines): Remove.
13766
13767 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
13768
13769         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
13770         * stdlib/stdlib.h (atof): Moved to ...
13771         * include/bits/stdlib-float.h: Here.  New file.
13772         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
13773         * stdlib/bits/stdlib-float.h: New file.
13774         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
13775         -mno-sse -mno-mmx.
13776         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
13777         <xmmintrin.h>.
13778
13779 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
13780
13781         * conform/conformtest.pl (@headers): Add fenv.h.
13782         * conform/data/fenv.h-data: New file.
13783         * include/fenv.h [_ISOMAC]: Disable all contents of file except
13784         include of <math/fenv.h>.
13785
13786         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
13787         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
13788         && !UNIX98].  Enables tests for XOPEN2K8.
13789         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
13790         POSIX2008]: Likewise.
13791
13792         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
13793         (struct rusage): Do not expect type or its members.
13794
13795         [BZ #3439]
13796         * math/math.h (FP_NAN): Define macro to integer constant usable in
13797         #if and use that to give value to enum constant.
13798         (FP_INFINITE): Likewise.
13799         (FP_ZERO): Likewise.
13800         (FP_SUBNORMAL): Likewise.
13801         (FP_NORMAL): Likewise.
13802
13803 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
13804
13805         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
13806         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
13807         arguments.
13808
13809 2012-11-02  Roland McGrath  <roland@hack.frob.com>
13810
13811         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
13812         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
13813         autoconf-time if not.
13814         * configure.in: Remove AC_PREREQ.
13815
13816 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13817
13818         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
13819         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
13820         of the internal implementation.
13821
13822 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
13823
13824         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
13825         except include of <misc/sys/syslog.h>.
13826
13827 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13828
13829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
13830         function returns with a NULL context exit with zero.
13831
13832 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13833
13834         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
13835
13836 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
13837
13838         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
13839         (run_program_cmd): This.
13840         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
13841         (tst_langinfo): New variable.  Use it.
13842
13843 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
13844
13845         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
13846         floating point opcodes.
13847
13848 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
13849
13850         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
13851         variable.
13852
13853         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
13854
13855         * sysdeps/mach/hurd/powerpc: Remove directory.
13856         * sysdeps/mach/powerpc: Likewise.
13857
13858 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13859
13860         * scripts/check-local-headers.sh: Ignore c++ headers.
13861
13862 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
13863
13864         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
13865         __libc_cleanup_region_start argument.
13866
13867 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
13868
13869         [BZ #14784]
13870         [BZ #14785]
13871         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
13872         x * y using scaling, not as x * y + z.
13873         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13874         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13875         * math/libm-test.inc (fma_test): Add more tests.
13876         (fma_test_towardzero): Likewise.
13877         (fma_test_downward): Likewise.
13878         (fma_test_upward): Likewise.
13879
13880 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
13881
13882         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
13883
13884 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
13885
13886         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
13887         New variable.
13888
13889 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
13890
13891         * rt/tst-shm.c (worker): Correct checking for mmap failure.
13892
13893 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
13894
13895         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13896         Fix sort order.
13897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13898         Likewise.
13899
13900 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13901
13902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
13903         Fix the order of the list for glibc 2.17.
13904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
13905         Likewise.
13906
13907 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
13908
13909         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13910
13911 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
13912
13913         [BZ #14610]
13914         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
13915         for low part of x being zero before using __atanl (y).
13916         * math/libm-test.inc (atan2_test): Add another test.
13917
13918         * manual/install.texi (Configuring and compiling): Document
13919         general use of test-wrapper and test-wrapper-env.
13920         * INSTALL: Regenerated.
13921
13922         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
13923         (__fma): Do not extract and scale down low bits on after-rounding
13924         systems when result rounded to normal precision would have normal
13925         exponent.
13926         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
13927         (__fmal): Do not extract and scale down low bits on after-rounding
13928         systems when result rounded to normal precision would have normal
13929         exponent.
13930         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
13931         (__fmal): Do not extract and scale down low bits on after-rounding
13932         systems when result rounded to normal precision would have normal
13933         exponent.
13934         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
13935         macro.
13936         (fma_test): Add more tests.
13937         (fma_test_towardzero): Likewise.
13938         (fma_test_downward): Likewise.
13939         (fma_test_upward): Likewise.
13940
13941 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
13942
13943         * sysdeps/i386/tininess.h: Renamed to ...
13944         * sysdeps/x86/tininess.h: This.
13945         * sysdeps/x86_64/tininess.h: Removed.
13946
13947 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
13948
13949         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
13950         input.  Use $(build-program-cmd).
13951         ($(objpfx)tst-array1-static.out): Likewise.
13952         ($(objpfx)tst-array2.out): Likewise.
13953         ($(objpfx)tst-array3.out): Likewise.
13954         ($(objpfx)tst-array4.out): Likewise.
13955         ($(objpfx)tst-array5.out): Likewise.
13956         ($(objpfx)tst-array5-static.out): Likewise.
13957
13958 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
13959
13960         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
13961         if defined.
13962
13963         * nss/nsswitch.h (nss_interface_function): Provide new
13964         macro for use with NSS functions.
13965         * grp/initgroups.c: Use new macro.
13966         * nss/getXXbyYY.c: Likewise.
13967         * nss/getXXbyYY_r.c: Likewise.
13968         * nss/getXXent.c: Likewise.
13969         * nss/getXXent_r.c: Likewise.
13970         * sysdeps/posix/getaddrinfo.c: Likewise.
13971
13972 2012-10-30  Andreas Jaeger  <aj@suse.de>
13973
13974         * po/ru.po: Update Russion translation from translation project.
13975
13976 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
13977
13978         [BZ #14152]
13979         [BZ #14783]
13980         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
13981         result and shift together with sticky bit instead of replicating
13982         round-to-nearest rounding.
13983         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13984         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13985         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
13986         missing underflow exceptions.
13987         (fma_test_towardzero): Add more tests.
13988         (fma_test_downward): Likewise.
13989         (fma_test_upward): Likewise.
13990
13991         [BZ #14047]
13992         * sysdeps/generic/tininess.h: New file.
13993         * sysdeps/i386/tininess.h: Likewise.
13994         * sysdeps/sh/tininess.h: Likewise.
13995         * sysdeps/x86_64/tininess.h: Likewise.
13996         * stdlib/tst-strtod-underflow.c: Likewise.
13997         * stdlib/tst-tininess.c: Likewise.
13998         * stdlib/strtod_l.c: Include <tininess.h>.
13999         (round_and_return): Do not set errno for exact underflow cases.
14000         Force an underflow exception when setting errno for underflow.
14001         Determine underflow based on rounding to normal precision if
14002         TININESS_AFTER_ROUNDING.
14003         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
14004         ERANGE for exact underflow cases.
14005         * stdlib/Makefile (tests): Add tst-tininess and
14006         tst-strtod-underflow.
14007         ($(objpfx)tst-tininess): Use $(link-libm).
14008         ($(objpfx)tst-strtod-underflow): Likewise.
14009
14010 2012-10-30  Andreas Jaeger  <aj@suse.de>
14011
14012         [BZ#14767]
14013         * elf/Makefile (tests): Remove conditional for have-initfini-array
14014         since this is now always required and the variable does not exist
14015         anymore.
14016         (tests-static): Likewise.
14017         (modules-names): Likewise.
14018
14019         * po/eo.po: Add Esperanto translation from translation project.
14020
14021         * elf/tst-array1.c (fini_array): Make writeable so that it can be
14022         merged with constructor/destructor.
14023         (init_array): Likewise.
14024         * elf/tst-array2dep.c (fini_array): Likewise.
14025         (init_array): Likewise.
14026
14027 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
14028
14029         * manual/message.texi: Delete @cartouche tags.
14030
14031 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
14032
14033         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
14034         EOPNOTSUPP.
14035         * sysdeps/mach/hurd/fsync.c: Likewise.
14036
14037         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
14038         [_POSIX_REALTIME_SIGNALS]: Change condition to
14039         [_POSIX_REALTIME_SIGNALS > 0].
14040
14041 2012-10-27  Andreas Jaeger  <aj@suse.de>
14042
14043         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
14044         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
14045         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
14046         [__WORDSIZE != 64]: Likewise.
14047
14048 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
14049
14050         *  iconvdata/tst-table.sh: Remove ${SHELL}.
14051         *  iconvdata/tst-tables.sh: Likewise.
14052
14053 2012-10-25  David S. Miller  <davem@davemloft.net>
14054
14055         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14056         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
14057         of strtoull.
14058
14059         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
14060         ifunc-impl-list.c
14061         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14062         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
14063         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
14064         file.
14065
14066 2012-10-25  Roland McGrath  <roland@hack.frob.com>
14067
14068         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14069         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
14070         __getdirentries.
14071
14072 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
14073             Jim Blandy  <jimb@codesourcery.com>
14074
14075         * scripts/cross-test-ssh.sh: New file.
14076         * manual/install.texi (Configuring and compiling): Document use of
14077         cross-test-ssh.sh.
14078         * INSTALL: Regenerated.
14079
14080 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
14081
14082         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
14083         EOPNOTSUPP.
14084
14085 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
14086
14087         * Makeconfig (run-program-prefix): Fix comment.
14088
14089 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
14090             Jim Blandy  <jimb@codesourcery.com>
14091
14092         * Makeconfig (test-wrapper): New variable,
14093         (test-wrapper-env): Likewise.
14094         [$(cross-compiling) = yes && $(test-wrapper) != ""]
14095         (run-built-tests): Define to yes.
14096         (run-program-prefix): Use $(test-wrapper).
14097         (built-program-cmd): Likewise.
14098         * Rules (make-test-out): Use $(test-wrapper-env) and
14099         $(host-built-program-cmd).
14100         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
14101         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
14102         tst-pathopt.sh.
14103         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
14104         $(test-wrapper-env) to tst-rtld-load-self.sh.
14105         ($(objpfx)order2.out): Use $(test-wrapper).
14106         ($(objpfx)tst-initorder.out): Likewise.
14107         ($(objpfx)tst-initorder2.out): Likewise.
14108         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
14109         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
14110         (test_wrapper_env): New variable.  Use it to run ld.so.
14111         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
14112         Use it to run ld.so.
14113         (test_wrapper_env): Likewise.
14114         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
14115         $(test-wrapper) to run-iconv-test.sh.
14116         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
14117         (ICONV): Use $test_wrapper.
14118         * posix/Makefile ($(objpfx)globtest.out): Pass
14119         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
14120         globtest.sh, not $(run-program-prefix).
14121         * posix/globtest.sh (run_via_rtld_prefix): New variable.
14122         (test_wrapper): Likewise.
14123         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
14124         set together with run_via_rtld_prefix.
14125         (run_program_prefix): Define in terms of test_wrapper and
14126         run_via_rtld_prefix.
14127
14128 2012-10-24  Roland McGrath  <roland@hack.frob.com>
14129
14130         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
14131         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
14132         Targets removed.
14133
14134         [BZ #14743]
14135         * include/time.h: Remove librt_hidden_proto (clock_gettime).
14136         Declare __clock_getres, __clock_gettime, __clock_settime,
14137         __clock_nanosleep, and __clock_getcpuclockid.
14138         * rt/clock_gettime.c: Define __clock_gettime as an alias.
14139         Remove librt_hidden_def (clock_gettime).
14140         * sysdeps/unix/clock_gettime.c: Likewise.
14141         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
14142         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
14143         * rt/clock_getres.c: Define __clock_getres as an alias.
14144         * sysdeps/posix/clock_getres.c: Likewise.
14145         * rt/clock_settime.c: Define __clock_settime as an alias.
14146         * sysdeps/unix/clock_settime.c: Likewise.
14147         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
14148         * sysdeps/unix/clock_nanosleep.c: Likewise.
14149         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
14150         * rt/clock-compat.c: New file.
14151         * rt/Makefile (librt-routines): Add clock-compat and move
14152         $(clock-routines) to ...
14153         (routines): ... here, new variable.
14154         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
14155         Don't add get_clockfreq here.
14156         * rt/Versions (libc: GLIBC_2.17): New version set.
14157         Add clock_* symbols here.
14158         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
14159         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
14160         (GLIBC_2.17): Add clock_* symbols.
14161         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
14162         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
14163         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
14164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
14165         Likewise.
14166         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
14167         Likewise.
14168         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
14169         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
14170         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
14171         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
14172         * NEWS: Mention the move.
14173
14174         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
14175         Use __open, __read, __close rather than their public counterparts.
14176         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14177         (__get_clockfreq_via_cpuinfo): Likewise.
14178         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
14179         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
14180
14181         * config.h.in (HAVE_IFUNC): New #undef.
14182         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
14183         was successful.
14184         * configure: Regenerated.
14185
14186 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
14187
14188         * configure.in: Move READELF check to start of file.
14189         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
14190         libc_cv_asm_gnu_indirect_function in the process.
14191         * configure: Regenerated.
14192
14193 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
14194
14195         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
14196         send the output to /dev/null.
14197         (libc_cv_cc_with_libunwind): Likewise.
14198         (libc_cv_as_noexecstack): Likewise.
14199         * configure: Regenerate.
14200
14201 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
14202
14203         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
14204
14205         * posix/globtest.sh (TMPDIR): Do not set.
14206         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
14207         (testout): Likewise.
14208
14209 2012-10-24  Andreas Jaeger  <aj@suse.de>
14210
14211         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
14212         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
14213         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
14214         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
14215         posix_fadvise64, posix_fallocate64.
14216
14217         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
14218         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
14219         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
14220         Likewise.
14221         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
14222         Likewise.
14223         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
14224
14225         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
14226         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
14227         <bits/fcntl-linux.h>.
14228         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
14229
14230         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
14231         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
14232         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
14233         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
14234         [__WORDSIZE != 64]: Likewise.
14235
14236 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
14237
14238         * Makeconfig (run-built-tests): New variable.
14239         * Rules [$(cross-compiling) = yes]: Change condition to
14240         [$(run-built-tests) = no].
14241         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
14242         to [$(run-built-tests) = yes].
14243         * elf/Makefile [$(cross-compiling) = no]: Likewise
14244         * grp/Makefile [$(cross-compiling) = no]: Likewise.
14245         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
14246         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
14247         * intl/Makefile [$(cross-compiling) = no]: Likewise.
14248         * io/Makefile [$(cross-compiling) = no]: Likewise.
14249         * libio/Makefile [$(cross-compiling) = no]: Likewise.
14250         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
14251         * misc/Makefile [$(cross-compiling) = no]: Likewise.
14252         * posix/Makefile [$(cross-compiling) = no]: Likewise.
14253         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
14254         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
14255         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
14256         * string/Makefile [$(cross-compiling) = no]: Likewise.
14257
14258         * posix/Makefile ($(objpfx)globtest.out): Pass
14259         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
14260         $(rtld-installed-name).
14261         * posix/globtest.sh (elf_objpfx): Remove variable.
14262         (rtld_installed_name): Likewise.
14263         (library_path): Likewise.
14264         (run_program_prefix): New variable.  Use for running globtest
14265         binary.
14266
14267 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
14268             Joseph Myers  <joseph@codesourcery.com>
14269
14270         * Makeconfig (host-built-program-cmd): New variable.
14271         * elf/Makefile (tst-stackguard1-ARGS): Use
14272         $(host-built-program-cmd).
14273         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
14274         (tst-spawn-ARGS): Likewise.
14275         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
14276
14277 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
14278             Jim Blandy  <jimb@codesourcery.com>
14279
14280         * Makeconfig (run-via-rtld-prefix): New variable.
14281         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
14282         (built-program-cmd): Likewise.
14283
14284 2012-10-22  Andreas Jaeger  <aj@suse.de>
14285
14286         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
14287         __O_RSYNC if it exists, otherwise to O_SYNC.
14288
14289 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
14290             Joseph Myers  <joseph@codesourcery.com>
14291
14292         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
14293         /dev/null.
14294         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
14295         from /dev/null
14296         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
14297         /dev/null.
14298
14299 2012-10-22  Andreas Jaeger  <aj@suse.de>
14300
14301         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
14302         Define always.
14303         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
14304
14305         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14306         bits/fcntl-linux.h.
14307
14308         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
14309         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
14310
14311         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
14312         to __O_LARGEFILE.
14313         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
14314         to __O_LARGEFILE.
14315
14316 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
14317             Joseph Myers  <joseph@codesourcery.com>
14318
14319         * config.make.in (NM): New variable.
14320
14321 2012-10-21  Andreas Jaeger  <aj@suse.de>
14322
14323         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
14324         definitions and declarations that are provided by
14325         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
14326
14327 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
14328
14329         [BZ #14683]
14330         * elf/Makefile (tests-static): Add tst-leaks1-static.
14331         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
14332         ($(objpfx)tst-leaks1-static): New rule.
14333         ($(objpfx)tst-leaks1-static-mem): Likewise.
14334         (tst-leaks1-static-ENV): New macro.
14335         * elf/dl-open.c (dl_open_worker): Check the main application
14336         only if SHARED is defined.
14337         * elf/tst-leaks1-static.c: New file.
14338
14339 2012-10-20  Andreas Jaeger  <aj@suse.de>
14340
14341         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
14342         generic values for Linux.
14343         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
14344         and declarations that are provided by <bits/fcntl-linux.h> and
14345         include <bits/fcntl-linux.h>.
14346         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14347         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14348
14349 2012-10-20  Roland McGrath  <roland@hack.frob.com>
14350
14351         * io/fcntl.h: Move include of <bits/types.h> to the top and
14352         include it unconditionally.
14353
14354 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
14355
14356         * wcsmbs/Makefile (tests-ifunc): New variable.
14357         (tests): Add $(tests-ifunc).
14358         * wcsmbs/test-wcschr-ifunc.c: New file.
14359         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
14360         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
14361         * wcsmbs/test-wcslen-ifunc.c: Likewise.
14362         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
14363         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
14364
14365         * string/Makefile (tests-ifunc): New variable.
14366         (tests): Add $(tests-ifunc).
14367         * string/test-memccpy.c (TEST_NAME): New macro.
14368         * string/test-memchr.c (TEST_NAME): Likewise.
14369         * string/test-memcmp.c (TEST_NAME): Likewise.
14370         * string/test-memcpy.c (TEST_NAME): Likewise.
14371         * string/test-memmem.c (TEST_NAME): Likewise.
14372         * string/test-memmove.c (TEST_NAME): Likewise.
14373         * string/test-memset.c (TEST_NAME): Likewise.
14374         * string/test-rawmemchr.c (TEST_NAME): Likewise.
14375         * string/test-stpcpy.c (TEST_NAME): Likewise.
14376         * string/test-stpncpy.c (TEST_NAME): Likewise.
14377         * string/test-strcasecmp.c (TEST_NAME): Likewise.
14378         * string/test-strcasestr.c (TEST_NAME): Likewise.
14379         * string/test-strcat.c (TEST_NAME): Likewise.
14380         * string/test-strchr.c (TEST_NAME): Likewise.
14381         * string/test-strcmp.c(TEST_NAME): Likewise.
14382         * string/test-strcpy.c (TEST_NAME): Likewise.
14383         * string/test-strcspn.c (TEST_NAME): Likewise.
14384         * string/test-strlen.c (TEST_NAME): Likewise.
14385         * string/test-strncasecmp.c (TEST_NAME): Likewise.
14386         * string/test-strncmp.c (TEST_NAME): Likewise.
14387         * string/test-strncpy.c (TEST_NAME): Likewise.
14388         * string/test-strnlen.c (TEST_NAME): Likewise.
14389         * string/test-strpbrk.c (TEST_NAME): Likewise.
14390         * string/test-strrchr.c (TEST_NAME): Likewise.
14391         * string/test-strspn.c (TEST_NAME): Likewise.
14392         * string/test-strstr.c (TEST_NAME): Likewise.
14393         * string/test-bcopy-ifunc.c: New file.
14394         * string/test-bzero-ifunc.c: Likewise.
14395         * string/test-memccpy-ifunc.c: Likewise.
14396         * string/test-memchr-ifunc.c: Likewise.
14397         * string/test-memcmp-ifunc.c: Likewise.
14398         * string/test-memcpy-ifunc.c: Likewise.
14399         * string/test-memmem-ifunc.c: Likewise.
14400         * string/test-memmove-ifunc.c: Likewise.
14401         * string/test-mempcpy-ifunc.c: Likewise.
14402         * string/test-memset-ifunc.c: Likewise.
14403         * string/test-rawmemchr-ifunc.c: Likewise.
14404         * string/test-stpcpy-ifunc.c: Likewise.
14405         * string/test-stpncpy-ifunc.c: Likewise.
14406         * string/test-strcasecmp-ifunc.c: Likewise.
14407         * string/test-strcasestr-ifunc.c: Likewise.
14408         * string/test-strcat-ifunc.c: Likewise.
14409         * string/test-strchr-ifunc.c: Likewise.
14410         * string/test-strchrnul-ifunc.c: Likewise.
14411         * string/test-strcmp-ifunc.c: Likewise.
14412         * string/test-strcpy-ifunc.c: Likewise.
14413         * string/test-strcspn-ifunc.c: Likewise.
14414         * string/test-strlen-ifunc.c: Likewise.
14415         * string/test-strncasecmp-ifunc.c: Likewise.
14416         * string/test-strncat-ifunc.c: Likewise.
14417         * string/test-strncmp-ifunc.c: Likewise.
14418         * string/test-strncpy-ifunc.c: Likewise.
14419         * string/test-strnlen-ifunc.c: Likewise.
14420         * string/test-strpbrk-ifunc.c: Likewise.
14421         * string/test-strrchr-ifunc.c: Likewise.
14422         * string/test-strspn-ifunc.c: Likewise.
14423         * string/test-strstr-ifunc.c: Likewise.
14424
14425         * debug/Makefile (tests-ifunc): New variable.
14426         (tests): Add $(tests-ifunc).
14427         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
14428         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
14429         * debug/test-stpcpy_chk-ifunc.c: New file.
14430         * debug/test-strcpy_chk-ifunc.c: Likewise.
14431
14432 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
14433
14434         [BZ #13601]
14435         * elf/dl-load.c (open_verify): Retry read if the entire ELF
14436         header is not read in.
14437
14438 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
14439
14440         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
14441         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
14442         directly.  Pass built executable to script as
14443         $(built-program-cmd).
14444         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
14445         $testprogram without using LD_LIBRARY_PATH and $ldso.
14446
14447         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
14448         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
14449         $(rtld-installed-name).
14450         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
14451         (rtld_installed_name): Likewise.
14452         (library_path): Likewise.
14453         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
14454         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
14455         $(run-program-prefix) to tst-tables.sh.
14456         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
14457         it to run tst-table-from and tst-table-to.
14458         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
14459         Pass it to tst-table.sh.
14460         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
14461         $(run-program-prefix) to tst-gettext.sh.
14462         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
14463         tst-translit.sh.
14464         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
14465         tst-gettext2.sh.
14466         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
14467         to run tst-gettext.
14468         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
14469         to run tst-gettext2.
14470         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
14471         to run tst-translit.
14472         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
14473         $(run-program-prefix) to tst-mtrace.sh.
14474         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
14475         to run tst-mtrace.
14476         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
14477         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
14478         $(rtld-installed-name).
14479         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
14480         (rtld_installed_name): Likewise.
14481         (run_program_prefix): New variable.  Use it to run wordexp-test.
14482
14483         * Makeconfig (ARCH): Remove all definitions.
14484         (machine): Likewise.
14485         [ARCH]: Remove conditional code.
14486         [!objdir]: Give error.
14487         [!objdir] (objpfx): Remove.
14488         [!objdir] (common-objpfx): Likewise.
14489         [!objdir] (common-objdir): Likewise.
14490         * configure.in (config_makefile): Remove.  Hardcode Makefile in
14491         AC_CONFIG_FILES call.
14492         * configure: Regenerated.
14493
14494         [BZ #13888]
14495         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
14496         or TMPDIR.
14497         (testout): Likewise.
14498
14499         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
14500         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
14501         $(rtld-installed-name).
14502         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
14503         (rtld_installed_name): Likwise.
14504         (runit): Remove function.
14505         (run_getconf): New variable,  Use it for running getconf binary.
14506
14507 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
14508
14509         [BZ #14716]
14510         * string/test-memmem.c (check_result): New function.
14511         (do_one_test): Use it.
14512         (check1): New function.
14513         (test_main): Use it.
14514
14515 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
14516
14517         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
14518
14519 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
14520
14521         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
14522         (_G_LSEEK64): Likewise.
14523         (_G_MMAP64): Likewise.
14524         (_G_FSTAT64): Likewise.
14525         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
14526         (_G_LSEEK64): Likewise.
14527         (_G_MMAP64): Likewise.
14528         (_G_FSTAT64): Likewise.
14529         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
14530         unconditional.  Call __mmap64 directly.
14531         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
14532         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
14533         __lseek64 directly.
14534         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
14535         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
14536         __mmap64 directly.
14537         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
14538         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
14539         __lseek64 directly.
14540         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
14541         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
14542         __lseek64 directly.
14543         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
14544         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
14545         __lseek64 directly.
14546         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
14547         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
14548         __fxstat64 directly.
14549         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
14550         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
14551         unconditional.
14552         (freopen64) [!_G_OPEN64]: Remove conditional code.
14553         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
14554         unconditional.
14555         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
14556         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
14557         unconditional.
14558         (ftello64) [!_G_LSEEK64]: Remove conditional code.
14559         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
14560         unconditional.
14561         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
14562         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
14563         unconditional.
14564         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
14565         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
14566         unconditional.
14567         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
14568         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
14569         unconditional.
14570         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
14571         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
14572         unconditional.
14573         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
14574
14575 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14576
14577         [BZ #12140]
14578         * manual/memory.texi (Malloc Tunable Parameters): Add note
14579         about free list pointers overwriting some perturb bytes.
14580         Wording suggested by Roland McGrath.
14581
14582 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
14583
14584         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
14585         (lgamma_test): Likewise.
14586         (tgamma_test): Likewise.
14587
14588 2012-10-16  Florian Weimer  <fweimer@redhat.com>
14589
14590         [BZ #14700]
14591         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
14592         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
14593
14594 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
14595
14596         * NEWS: Mention BZ #14716.
14597         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
14598         when removing AVAILABLE1_USES_J macro.
14599
14600 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
14601
14602         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
14603         (__bswap_64): __uint64_t for unsigned 64-bit int.
14604
14605 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
14606
14607         * include/string.h (memmem): Declare libc hidden alias.
14608         * string/memmem.c (memmem): Define libc hidden alias.
14609         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
14610         __read, __close instead of open, read, close.
14611
14612 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
14613
14614         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
14615         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
14616         global and hidden.
14617         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
14618         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
14619         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
14620         Likewise.
14621         (__rawmemchr_sse2): Likewise.
14622         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
14623         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
14624         (__strchr_sse2): Likewise.
14625         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
14626         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
14627         (__strcasecmp_sse2): Likewise.
14628         (__strncasecmp_sse2): Likewise.
14629         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
14630         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
14631         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
14632         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
14633         (__strrchr_sse2): Likewise.
14634         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
14635         ifunc-impl-list.c.
14636         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
14637         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
14638         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
14639         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14640         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
14641         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
14642         * sysdeps/x86_64/multiarch/memset.S: Likewise.
14643         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
14644         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
14645         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
14646         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
14647         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
14648         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
14649         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
14650         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
14651         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
14652         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
14653         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
14654         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
14655         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
14656         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
14657         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
14658         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
14659         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
14660         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
14661         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
14662         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
14663         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
14664         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
14665         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
14666
14667         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
14668         global and hidden.
14669         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
14670         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
14671         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
14672         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
14673         Likewise.
14674         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
14675         Likewise.
14676         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
14677         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
14678         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
14679         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
14680         ifunc-impl-list.c.
14681         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
14682         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
14683         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
14684         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
14685         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
14686         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
14687         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
14688         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
14689         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
14690         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
14691         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
14692         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
14693         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
14694         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
14695         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
14696         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
14697         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
14698         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
14699         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
14700         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
14701         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
14702         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
14703         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
14704         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
14705         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
14706         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
14707         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
14708         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
14709         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
14710         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
14711         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
14712         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
14713         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
14714         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
14715         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
14716         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
14717         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
14718         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
14719         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
14720         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
14721         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
14722
14723         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
14724         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
14725         * include/ifunc-impl-list.h: New file.
14726         * misc/ifunc-impl-list.c: Likewise.
14727         * misc/Makefile (routines): Add ifunc-impl-list.
14728         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
14729         * string/test-string.h: Include <ifunc-impl-list.h>.
14730         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
14731         impl_array): New variables.
14732         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
14733         are defined.
14734         (test_init): Call __libc_ifunc_impl_list to initialize
14735         func_list if TEST_IFUNC and TEST_NAME are defined.
14736
14737         * string/Makefile (strop-tests): Add bcopy and bzero.
14738         * string/test-bcopy.c: New file.
14739         * string/test-bzero.c: Likewise.
14740         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
14741         defined.
14742         * string/test-memset.c: Support bzero test if TEST_BZERO is
14743         defined.
14744         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
14745         __libc_memmove.
14746         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
14747         __libc_memset.
14748         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
14749         of memset.
14750
14751 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
14752
14753         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
14754         * configure: Regenerated.
14755
14756         * Makeconfig (+link-static-before-libc): Don't include
14757         $(link-static-libc).
14758
14759         * libio/libio.h (_IO_pos_t): Remove.
14760
14761 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
14762
14763         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
14764         McGrath.
14765
14766 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
14767
14768         * crypt/crypt-entry.c: Include fips-private.h.
14769         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
14770         * crypt/md5c-test.c (main): Tolerate disabled MD5.
14771         * sysdeps/unix/sysv/linux/fips-private.h: New file.
14772         * sysdeps/generic/fips-private.h: New file, dummy fallback.
14773
14774 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
14775
14776         * crypt/crypt-private.h: Include stdbool.h.
14777         (_ufc_setup_salt_r): Return bool.
14778         * crypt/crypt-entry.c: Include errno.h.
14779         (__crypt_r): Return NULL with EINVAL for bad salt.
14780         * crypt/crypt_util.c (bad_for_salt): New.
14781         (_ufc_setup_salt_r): Check that salt is long enough and within
14782         the specified alphabet.
14783         * crypt/badsalttest.c: New file.
14784         * crypt/Makefile (tests): Add it.
14785         ($(objpfx)badsalttest): New.
14786
14787 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
14788
14789         * NEWS: Add entry for BZ #14602.
14790
14791 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
14792
14793         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
14794         type-generic.
14795         * math/libm-test.inc: Update comment listing what functions and
14796         macros are tested.
14797         (isgreater_test): New function.
14798         (isgreaterequal_test): Likewise.
14799         (isless_test): Likewise.
14800         (islessequal_test): Likewise.
14801         (islessgreater_test): Likewise.
14802         (isunordered_test): Likewise.
14803         (main): Call the new functions.
14804
14805 2012-10-09  Roland McGrath  <roland@hack.frob.com>
14806
14807         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
14808         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
14809         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
14810         * sysdeps/i386/configure: Regenerated.
14811         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
14812         * sysdeps/mach/configure: Regenerated.
14813         * sysdeps/mach/hurd/configure: Regenerated.
14814         * sysdeps/powerpc/configure: Regenerated.
14815         * sysdeps/powerpc/powerpc32/configure: Regenerated.
14816         * sysdeps/powerpc/powerpc64/configure: Regenerated.
14817         * sysdeps/s390/s390-32/configure: Regenerated.
14818         * sysdeps/s390/s390-64/configure: Regenerated.
14819         * sysdeps/sh/configure: Regenerated.
14820         * sysdeps/sparc/configure: Regenerated.
14821         * sysdeps/unix/sysv/linux/configure: Regenerated.
14822         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
14823         * sysdeps/x86_64/configure: Regenerated.
14824
14825         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
14826         defined.  Don't check if MAP is NULL.
14827
14828 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
14829
14830         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
14831         (_G_stat64): Likewise.
14832         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
14833         (_G_stat64): Likewise.
14834         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
14835         instead of struct _G_stat64.
14836         * libio/fileops.c (mmap_remap_check): Likewise.
14837         (decide_maybe_mmap): Likewise.
14838         (_IO_new_file_seekoff): Likewise.
14839         (_IO_file_stat): Likewise.
14840         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
14841         _G_off64_t.
14842         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
14843         instead of struct _G_stat64.
14844         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
14845
14846 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
14847
14848         [BZ #14602]
14849         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
14850         Replace with ...
14851         (CHECK_EOL): New macro.
14852         (two_way_short_needle): Check beginning of haystack for EOL.  Use
14853         CHECK_EOL.
14854         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
14855         Replace with CHECK_EOL.
14856         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
14857         Replace with CHECK_EOL.
14858
14859 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
14860
14861         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
14862         type-generic.
14863         * math/libm-test.inc: Update comment listing what functions and
14864         macros are tested.
14865         (finite_test): New function.
14866         (isinf_test): Likewise.
14867         (isnan_test): Likewise.
14868         (fpclassify_test): Test subnormal input.
14869         (isfinite_test): Likewise.
14870         (isnormal_test): Likewise.
14871         (main): Call the new functions.
14872
14873 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
14874
14875         [BZ #14660]
14876         * Makerules (%.dynsym): Force C locale when running
14877         $(OBJDUMP) --dynamic-syms.
14878
14879 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
14880
14881         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
14882         <stdint.h>.
14883
14884 2012-10-06  David S. Miller  <davem@davemloft.net>
14885
14886         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
14887         upper 32-bits of the length value in %o2 since we use branch-on-register
14888         tests which consider the entire 64-bit register.
14889
14890 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
14891
14892         * string/test-strstr.c (check2): Add a test for page boundary.
14893
14894 2012-10-05  David S. Miller  <davem@davemloft.net>
14895
14896         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
14897         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
14898         file.
14899         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
14900         sysdep_routines.
14901         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
14902         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
14903         and bzero when HWCAP_SPARC_CRYPTO is present.
14904
14905 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
14906
14907         [BZ #14602]
14908         * string/test-strstr.c (check2): New function.
14909         (test_main): Call check2.
14910
14911         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
14912         and bug-strchr1.
14913         * string/bug-strcasestr1.c (do_test): Moved to ...
14914         * string/test-strcasestr.c (check1): Here.  New function.
14915         (do_one_test): Break out result checking code into ...
14916         (check_result): This.  New function.
14917         (do_one_test): Call check_result.
14918         (test_main): Call check1.
14919         * string/bug-strchr1.c (do_test): Moved to ...
14920         * string/test-strchr.c (check1): Here.  New function.
14921         (do_one_test): Break out result checking code into ...
14922         (check_result): This.  New function.
14923         (do_one_test): Call check_result.
14924         (test_main): Call check1.
14925         * string/bug-strstr1.c (main): Moved to ...
14926         * string/test-strstr.c (check1): Here.  New function.
14927         (do_one_test): Break out result checking code into ...
14928         (check_result): This.  New function.
14929         (do_one_test): Call check_result.
14930         (test_main): Call check1.
14931         * string/bug-strcasestr1.c: Removed.
14932         * string/bug-strchr1.c: Likewise.
14933         * string/bug-strstr1.c: Likewise.
14934
14935         * elf/Makefile (dl-routines): Add hwcaps.
14936         * elf/dl-support.c (_dl_important_hwcaps): Removed.
14937         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
14938         (_dl_important_hwcaps): Moved to ...
14939         * elf/dl-hwcaps.c: Here.  New file.
14940         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
14941
14942         [BZ #14557]
14943         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
14944         if IS_IN_rtld isn't defined.
14945
14946         * elf/dl-support.c (_dl_sysinfo_map): New.
14947         Include "get-dynamic-info.h" and "setup-vdso.h".
14948         (_dl_non_dynamic_init): Call setup_vdso.
14949         * elf/dynamic-link.h: Don't include <assert.h>.
14950         (elf_get_dynamic_info): Moved to ...
14951         * elf/get-dynamic-info.h: Here.  New file.
14952         * elf/dynamic-link.h: Include "get-dynamic-info.h".
14953         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
14954         * elf/setup-vdso.h: Here.  New file.
14955         * elf/rtld.c: Include "setup-vdso.h".
14956         (dl_main): Call setup_vdso.
14957
14958 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
14959
14960         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
14961         creal in comment listing functions tested.  List finite, isinf,
14962         isnan, isless, islessequal, isgreater, isgreaterequal,
14963         islessgreater, isunordered, lgamma_r and pow10 as functions and
14964         macros not tested.  Mention which functions not tested are aliases
14965         for other functions.  Fix typo.  Note that signs of NaNs are not
14966         tested.
14967
14968         * scripts/config.guess: Update from config.git.
14969         * scripts/config.sub: Likewise.
14970
14971 2012-10-04  Roland McGrath  <roland@hack.frob.com>
14972
14973         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
14974         * misc/madvise.c (madvise): Renamed to __madvise.
14975         Make madvise a weak alias.
14976         * include/sys/mman.h: Declare __madvise.
14977         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
14978         * sysdeps/unix/syscalls.list
14979         (madvise): Make __madvise the strong name, and madvise a weak alias.
14980         * sysdeps/unix/sysv/linux/syscalls.list
14981         (madvise, mmap): Remove redundant entries.
14982         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
14983         * malloc/malloc.c (mtrim): Likewise.
14984         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
14985
14986 2012-10-03  Roland McGrath  <roland@hack.frob.com>
14987
14988         * sysdeps/mach/hurd/dl-cache.c: File removed.
14989         * config.h.in (USE_LDCONFIG): New #undef.
14990         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
14991         * configure: Regenerated.
14992         * elf/Makefile (dl-routines): Add dl-cache only under
14993         [$(use-ldconfig) = yes].
14994         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
14995         cache on [USE_LDCONFIG].
14996         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
14997         [USE_LDCONFIG].
14998         * elf/rtld.c (dl_main): Likewise.
14999
15000 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
15001
15002         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
15003         _SC_LEVEL4_CACHE_LINESIZE.
15004
15005 2012-10-03  Roland McGrath  <roland@hack.frob.com>
15006
15007         * sysdeps/unix/bsd/confstr.h: File removed.
15008
15009 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
15010
15011         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
15012         sys/sdt-config.h.
15013
15014 2012-10-02  Roland McGrath  <roland@hack.frob.com>
15015
15016         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
15017         Make 'mapoff' field ElfW(Off) rather than off_t.
15018
15019 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
15020
15021         * nscd/Makefile: Remove nscd-cflags and all its users.
15022         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
15023         (CFLAGS-nonlib): Add compiler flags for nscd modules.
15024
15025         [BZ #10631]
15026         * malloc.c (malloc_printerr): Clarify error message.
15027
15028 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
15029
15030         [BZ #14648]
15031         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15032         Set bit_FMA_Usable if FMA is supported.
15033         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
15034         macro.
15035         (bit_FMA4_Usable): Updated.
15036         (index_FMA_Usable): New macro.
15037         (CPUID_FMA): Likewise
15038         (HAS_FMA): Defined with bit_FMA_Usable.
15039
15040 2012-10-01  Roland McGrath  <roland@hack.frob.com>
15041
15042         * bits/types.h (__swblk_t): Type removed.
15043         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
15044         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
15045         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
15046         (__SWBLK_T_TYPE): Likewise.
15047         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
15048         (__SWBLK_T_TYPE): Likewise.
15049         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15050         (__SWBLK_T_TYPE): Likewise.
15051         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
15052         (__SWBLK_T_TYPE): Likewise.
15053
15054 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
15055             Honza Horak <hhorak@redhat.com>
15056
15057         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
15058         (xdr_mapname): Use YPMAXMAP as maxsize.
15059         (xdr_peername): Use YPMAXPEER as maxsize.
15060         (xdr_keydat): Use YPAXRECORD as maxsize.
15061         (xdr_valdat): Use YPMAXRECORD as maxsize.
15062
15063 2012-10-01  Roland McGrath  <roland@hack.frob.com>
15064
15065         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
15066
15067         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
15068         * csu/init-first.c: ... here.
15069         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
15070         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
15071         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
15072         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
15073         * sysdeps/i386/init-first.c: File removed.
15074         * sysdeps/sh/init-first.c: File removed.
15075
15076 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
15077
15078         [BZ #14645]
15079         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
15080         if x * y might underflow to zero and z is zero.
15081         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
15082         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
15083         * math/libm-test.inc (min_subnorm_value): New variable.
15084         (fma_test): Add more tests.
15085         (fma_test_towardzero): Likewise.
15086         (fma_test_downward): Likewise
15087         (fma_test_upward): Likewise.
15088         (initialize): Set min_subnorm_value.
15089
15090 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
15091
15092         [BZ #14638]
15093         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
15094         0 + 0.
15095         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
15096         mode for addition resulting in exact zero.
15097         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
15098         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
15099         exact 0 + 0.
15100         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
15101         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
15102         * math/libm-test.inc (fma_test): Add more tests.
15103         (fma_test_towardzero): New function.
15104         (fma_test_downward): Likewise.
15105         (fma_test_upward): Likewise.
15106         (main): Call the new functions.
15107
15108 2012-09-28  David S. Miller  <davem@davemloft.net>
15109
15110         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
15111
15112 2012-09-28  Roland McGrath  <roland@hack.frob.com>
15113
15114         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
15115         instead of SIGALRM.
15116
15117         * sysdeps/gnu/_G_config.h: Moved to ...
15118         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
15119         * sysdeps/mach/hurd/_G_config.h: Moved to ...
15120         * sysdeps/generic/_G_config.h: ... here.
15121
15122         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
15123
15124         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
15125
15126         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
15127         Conditionalize target on [libnss_test1.so-version].
15128
15129         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
15130
15131         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
15132         (elfobjdir): Move out of conditionals.
15133
15134         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
15135         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
15136         (__nss_lookup_function): Conditionalize label remove_from_tree on
15137         [!DO_STATIC_NSS || SHARED], matching its only use.
15138
15139 2012-09-28  David S. Miller  <davem@davemloft.net>
15140
15141         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
15142         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
15143         file.
15144         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
15145         sysdep_routines.
15146         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
15147         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
15148         when HWCAP_SPARC_CRYPTO is present.
15149
15150 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
15151
15152         * io/tst-mknodat.c: Create a FIFO instead of a socket.
15153
15154 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
15155
15156         [BZ #6530]
15157         * stdio-common/vfprintf.c (process_string_arg): Revert
15158         2000-07-22 change.
15159
15160 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
15161
15162         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
15163         for testcase.
15164         * stdio-common/tst-sprintf.c: Include <locale.h>
15165         (main): Test sprintf's handling of incomplete multibyte
15166         characters.
15167
15168 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
15169
15170         * elf/dl-runtime.c (VERSYMIDX): Removed.
15171         * elf/dl-version.c (VERSYMIDX): Likewise.
15172         * elf/do-rel.h (VERSYMIDX): Likewise.
15173         (VALIDX): Likewise.
15174         * elf/dynamic-link.h (VERSYMIDX): Likewise.
15175         * elf/rtld.c (VALIDX): Likewise.
15176         (ADDRIDX): Likewise.
15177         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
15178         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
15179         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
15180         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
15181         (VALIDX): Likewise.
15182         (ADDRIDX): Likewise.
15183
15184 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
15185
15186         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
15187
15188 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
15189
15190         [BZ #11438]
15191         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
15192         to global scope.
15193         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
15194         addresses are in the same scope as 192.0.2/24.
15195         * posix/gai.conf: Document new scope table defaults.
15196
15197 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15198
15199         [BZ #5298]
15200         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
15201         for ftell.  Compute offsets from write pointers instead.
15202         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
15203
15204 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15205
15206         [BZ #14543]
15207         * libio/Makefile (tests): New test case tst-fseek.
15208         * libio/tst-fseek.c: New test case to verify that fseek/ftell
15209         combination works in wide mode.
15210         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
15211         state when the external buffer state changes.
15212
15213 2012-09-27  David S. Miller  <davem@davemloft.net>
15214
15215         [BZ #14376]
15216         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
15217         pass reloc->r_addend in as the 'high' argument to
15218         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
15219
15220         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15221
15222 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
15223
15224         * rt/tst-aio2.c: Include <pthread.h>.
15225         * rt/tst-aio3.c: Likewise.
15226
15227 2012-09-27  Steve Ellcey  <sellcey@mips.com>
15228
15229         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
15230
15231 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
15232
15233         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
15234         contents on [SHARED].
15235
15236 2012-09-26  Marek Polacek  <polacek@redhat.com>
15237
15238         [BZ #14530]
15239         [BZ #13741]
15240         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
15241         for C++ and GCC <4.3 as well as for non GCC compilers.
15242
15243 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
15244
15245         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15246
15247 2012-09-25  Roland McGrath  <roland@hack.frob.com>
15248
15249         * Makefile.in (all, install): Declare with .PHONY.
15250         Reported by Michael Hope <michael.hope@linaro.org>.
15251
15252 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15253
15254         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
15255         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
15256         system header.
15257         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
15258         Likewise.
15259         (sydep_routines): Add the new and the internal functions.
15260         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
15261         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
15262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
15263         (GLIBC_2.17): Add the new function.
15264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
15265         (GLIBC_2.17): Likewise.
15266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
15267         (GLIBC_2.17): Likewise.
15268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
15269         (GLIBC_2.17): Likewise.
15270         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
15271
15272 2012-09-25  Alan Modra  <amodra@gmail.com>
15273
15274         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
15275         Add release barrier before setting once_control to say
15276         initialisation is done.  Add hints on lwarx.  Use macro in
15277         place of isync.
15278         (clear_once_control): Add release barrier.
15279
15280 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
15281
15282         [BZ #13629]
15283         * math/s_clog.c (__clog): Handle more values close to |z| = 1
15284         specially.
15285         * math/s_clog10.c (__clog10): Likewise.
15286         * math/s_clog10f.c (__clog10f): Likewise.
15287         * math/s_clog10l.c (__clog10l): Likewise.
15288         * math/s_clogf.c (__clogf): Likewise.
15289         * math/s_clogl.c (__clogl): Likewise.
15290         * math/Makefile (libm-calls): Add x2y2m1.
15291         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
15292         (__x2y2m1): Likewise.
15293         (__x2y2m1l): Likewise.
15294         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
15295         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
15296         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
15297         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
15298         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
15299         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
15300         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
15301         * sysdeps/i386/fpu/libm-test-ulps: Update.
15302         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15303
15304         [BZ #14621]
15305         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
15306         int as type of variable DEPTH.
15307         (glob): Use size_t instead of int as type of variables NEWCOUNT
15308         and OLD_PATHC.
15309
15310 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15311
15312         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
15313         Add s_sincosf-sse2.
15314         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
15315         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
15316         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
15317         macros for using routine as __sincosf_ia32.
15318         Use macro for function declaration and weak_alias.
15319         * sysdeps/i386/fpu/libm-test-ulps: Update.
15320
15321         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
15322         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15323
15324         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
15325         subnormal argument.
15326         * math/s_cexpf.c (__cexpf): Likewise.
15327         * math/s_csinf.c (__csinf): Likewise.
15328         * math/s_csinhf.c (__csinhf): Likewise.
15329         * math/s_ctanf.c (__ctanf): Likewise.
15330         * math/s_ctanhf.c (__ctanhf): Likewise.
15331         * math/s_ccosh.c (__ccoshf): Likewise.
15332         * math/s_cexp.c (__cexpl): Likewise.
15333         * math/s_csin.c (__csin): Likewise.
15334         * math/s_csinh.c (__csinh): Likewise.
15335         * math/s_ctan.c (__ctan): Likewise.
15336         * math/s_ctanh.c (ctanh): Likewise.
15337         * math/s_ccoshl.c (__ccoshl): Likewise.
15338         * math/s_cexpl.c (__cexpl): Likewise.
15339         * math/s_csinl.c (__csinl): Likewise.
15340         * math/s_csinhl.c (__csinhl): Likewise.
15341         * math/s_ctanl.c (__ctanl): Likewise.
15342         * math/s_ctanhl.c (__ctanhl): Likewise.
15343
15344 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
15345
15346         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
15347         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
15348         (_IO_off_t): Define to __off_t, not _G_off_t.
15349         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
15350         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
15351         (_IO_wint_t): Define to wint_t, not _G_wint_t.
15352         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
15353         type of __dummy and __dummy2 fields.
15354         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
15355         (_G_ssize_t): Likewise.
15356         (_G_off_t): Likewise.
15357         (_G_pid_t): Likewise.
15358         (_G_uid_t): Likewise.
15359         (_G_wchar_t): Likewise.
15360         (_G_wint_t): Likewise.
15361         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
15362         (_G_ssize_t): Likewise.
15363         (_G_off_t): Likewise.
15364         (_G_pid_t): Likewise.
15365         (_G_uid_t): Likewise.
15366         (_G_wchar_t): Likewise.
15367         (_G_wint_t): Likewise.
15368         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
15369         (_G_ssize_t): Likewise.
15370         (_G_off_t): Likewise.
15371         (_G_pid_t): Likewise.
15372         (_G_uid_t): Likewise.
15373         (_G_wchar_t): Likewise.
15374         (_G_wint_t): Likewise.
15375
15376 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
15377
15378         * malloc/arena.c: Include malloc-sysdep.h.
15379         (shrink_heap): Use check_may_shrink_heap to decide if madvise
15380         is sufficient to shrink the heap or an unmap is needed.
15381         * sysdeps/generic/malloc-sysdep.h: New file.  Define
15382         new function check_may_shrink_heap.
15383         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
15384         new function check_may_shrink_heap.
15385
15386 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
15387
15388         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
15389         comments.
15390
15391 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
15392
15393         * catgets/test-gencat.sh: Add "set -e".
15394         * elf/tst-pathopt.sh: Likewise.
15395         * grp/tst_fgetgrent.sh: Likewise.
15396         * iconvdata/run-iconv-test.sh: Likewise.
15397         * intl/tst-gettext.sh: Likewise.
15398         * intl/tst-gettext2.sh: Likewise.
15399         * intl/tst-gettext4.sh: Likewise.
15400         * intl/tst-gettext6.sh: Likewise.
15401         * intl/tst-translit.sh: Likewise.
15402         * io/ftwtest-sh: Likewise.
15403         * libio/test-freopen.sh: Likewise.
15404         * malloc/tst-mtrace.sh: Likewise.
15405         * posix/globtest.sh: Likewise.
15406         * posix/tst-getconf.sh: Likewise.
15407         * posix/wordexp-tst.sh: Likewise.
15408         * stdio-common/tst-printf.sh: Likewise.
15409         * stdio-common/tst-unbputc.sh: Likewise.
15410         * stdlib/tst-fmtmsg.sh: Likewise.
15411         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
15412         * catgets/Makefile: Do not specify -e option when running
15413         testsuite shell scripts.
15414         * elf/Makefile: Likewise.
15415         * grp/Makefile: Likewise.
15416         * iconvdata/Makefile: Likewise.
15417         * intl/Makefile: Likewise.
15418         * io/Makefile: Likewise.
15419         * libio/Makefile: Likewise.
15420         * malloc/Makefile: Likewise.
15421         * posix/Makefile: Likewise.
15422         * stdio-common/Makefile: Likewise.
15423         * stdlib/Makefile: Likewise.
15424         * sysdeps/x86_64/Makefile: Likewise.
15425
15426         * io/ftwtest-sh: Add copyright header.
15427         * posix/globtest.sh: Likewise.
15428         * posix/tst-getconf.sh: Likewise.
15429         * posix/wordexp-tst.sh: Likewise.
15430         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
15431
15432 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
15433
15434         [BZ #13679]
15435         * Makeconfig (+link): Defined as $(+link-static) if
15436         $(build-shared) isn't yes.
15437         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
15438         isn't yes.
15439         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
15440
15441         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
15442
15443         [BZ #14562]
15444         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
15445         new chunk size with MALLOC_ALIGN_MASK.
15446
15447 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
15448
15449         [BZ #5044]
15450         * stdio-common/printf_fphex.c: Include <stdbool.h> and
15451         <rounding-mode.h>.
15452         (__printf_fphex): Determine rounding using get_rounding_mode and
15453         round_away.
15454         * stdio-common/tst-printf-round.c (struct hex_test): New
15455         structure.
15456         (hex_tests): New variable.
15457         (test_hex_in_one_mode): New function.
15458         (do_test): Also run tests for hex float output.
15459
15460 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
15461
15462         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
15463         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
15464         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
15465         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
15466         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
15467         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
15468         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
15469         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
15470
15471 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
15472
15473         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
15474         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
15475         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
15476         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
15477
15478 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
15479
15480         [BZ #14579]
15481         * elf/rtld.c (dl_main): Limit the check for self loading to normal
15482         mode only.
15483         * elf/tst-rtld-load-self.sh: New test.
15484         * elf/Makefile: Run it.
15485
15486 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
15487
15488         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
15489         (tst-writev-ENV): Remove.
15490         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
15491
15492 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
15493
15494         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
15495
15496 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
15497
15498         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
15499         unconditional.
15500         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
15501         Likewise.
15502         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
15503         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
15504         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
15505         Likewise.
15506
15507 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
15508
15509         [BZ #14587]
15510         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
15511         * config.make.in (have-cpp-asm-debuginfo): Removed.
15512         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
15513         * configure: Regenerated.
15514
15515 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
15516
15517         [BZ #5044]
15518         * stdio-common/printf_fp.c: Include <stdbool.h> and
15519         <rounding-mode.h>.
15520         (___printf_fp): Determine rounding using get_rounding_mode and
15521         round_away.
15522         * stdio-common/tst-printf-round.c: New file.
15523         * stdio-common/Makefile (tests): Add tst-printf-round.
15524         (link-libm): New variable.
15525         ($(objpfx)tst-printf-round): Depend in $(link-libm).
15526
15527 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
15528
15529         [BZ #14576]
15530         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
15531         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
15532         Likewise.
15533         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
15534         Likewise.
15535
15536 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
15537
15538         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
15539         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
15540         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
15541         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
15542
15543 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
15544
15545         [BZ #14518]
15546         * include/rounding-mode.h: New file.
15547         * sysdeps/generic/get-rounding-mode.h: Likewise.
15548         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
15549         * stdlib/strtod_l.c: Include <rounding-mode.h>.
15550         (MAX_VALUE): New macro.
15551         (MIN_VALUE): Likewise.
15552         (overflow_value): New function.
15553         (underflow_value): Likewise.
15554         (round_and_return): Use overflow_value and underflow_value to
15555         determine return values in overflow and underflow cases.  Use
15556         round_away to determine rounding depending on rounding mode.
15557         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
15558         determine return values in overflow and underflow cases.
15559         * stdlib/tst-strtod-round.c: Include <fenv.h>.
15560         (struct test_results): New structure.
15561         (struct test): Use struct test_results to store expected results
15562         for all rounding modes.
15563         (TEST): Include expected results for all rounding modes.
15564         (test_in_one_mode): New function.
15565         (do_test): Use test_in_one_mode to compute and check results.
15566         Check results for all rounding modes.
15567         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
15568         $(link-libm).
15569
15570 2012-12-09  Allan McRae  <allan@archlinux.org>
15571
15572         * sysdeps/i386/fpu/libm-test-ulps: Update
15573
15574 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
15575
15576         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
15577         (_G_int32_t): Likewise.
15578         (_G_uint16_t): Likewise.
15579         (_G_uint32_t): Likewise.
15580         (_G_HAVE_BOOL): Likewise.
15581         (_G_HAVE_ATEXIT): Likewise.
15582         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
15583         (_G_HAVE_IO_FILE_OPEN): Likewise.
15584         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
15585         (_G_int32_t): Likewise.
15586         (_G_uint16_t): Likewise.
15587         (_G_uint32_t): Likewise.
15588         (_G_HAVE_BOOL): Likewise.
15589         (_G_HAVE_ATEXIT): Likewise.
15590         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
15591         (_G_HAVE_IO_FILE_OPEN): Likewise.
15592         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
15593         (_G_int32_t): Likewise.
15594         (_G_uint16_t): Likewise.
15595         (_G_uint32_t): Likewise.
15596         (_G_HAVE_BOOL): Likewise.
15597         (_G_HAVE_ATEXIT): Likewise.
15598         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
15599         (_G_HAVE_IO_FILE_OPEN): Likewise.
15600
15601 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
15602
15603         * csu/libc-tls.c: Update copyright years.
15604
15605 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
15606
15607         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
15608         [!_G_USING_THUNKS]: Remove conditional code.
15609         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
15610         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
15611
15612         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
15613         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
15614         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
15615         (_G_VTABLE_LABEL_PREFIX): Likewise.
15616         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
15617         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
15618         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
15619         (_G_VTABLE_LABEL_PREFIX): Likewise.
15620         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
15621         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
15622         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
15623         (_G_VTABLE_LABEL_PREFIX): Likewise.
15624         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
15625
15626 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
15627
15628         * libio/Makefile: Include ../Makeconfig before tests.
15629         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
15630         only if $(build-shared) is yes.
15631
15632         * iconv/gconv_db.c: Update copyright years.
15633
15634 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15635
15636         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
15637         unwind info if defined PIC. Fix special cases description.
15638         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
15639
15640         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
15641         DP_HI_MASK entry.
15642         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
15643
15644 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
15645
15646         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
15647
15648         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
15649         is NULL.
15650
15651         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
15652         (LDLIBS-tst-chk4): This.
15653         (LDFLAGS-tst-chk5): Renamed to ...
15654         (LDLIBS-tst-chk5): This.
15655         (LDFLAGS-tst-chk6): Renamed to ...
15656         (LDLIBS-tst-chk6): This.
15657         (LDFLAGS-tst-lfschk4): Renamed to ...
15658         (LDLIBS-tst-lfschk4): This.
15659         (LDFLAGS-tst-lfschk5): Renamed to ...
15660         (LDLIBS-tst-lfschk5): This.
15661         (LDFLAGS-tst-lfschk6): Renamed to ...
15662         (LDLIBS-tst-lfschk6): This.
15663
15664         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
15665         on $(common-objpfx)soversions.mk.
15666
15667 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
15668
15669         [BZ #10014]
15670         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
15671         example host name.
15672
15673 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
15674
15675         * malloc/arena.c (arena_get_retry): New function that gets
15676         another arena for the caller to try its request on.
15677         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
15678         current arena cannot fulfill the request.
15679         (__libc_memalign): Likewise.
15680         (__libc_memalign): Likewise.
15681         (__libc_pvalloc): Likewise.
15682         (__libc_calloc): Likewise.
15683
15684 2012-09-05  John Tobey  <john.tobey@gmail.com>
15685
15686         [BZ #13542]
15687         * manual/arith.texi (Operations on Complex): Fix description
15688         of carg branch cut.
15689
15690 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
15691
15692         [BZ #10014]
15693         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
15694         host name.
15695
15696         [BZ #10038]
15697         * manual/memory.texi (Memory): Make order of menu items match
15698         order of sections.
15699
15700 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15701
15702         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
15703         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
15704         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
15705
15706 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15707
15708         * csu/libc-tls.c (static_dtv): Renamed to ...
15709         (_dl_static_dtv): This.  Make it global.
15710         (_dl_initial_dtv): Removed.
15711         (__libc_setup_tls): Updated.
15712         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
15713         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
15714         DL_INITIAL_DTV.
15715
15716 2012-09-06  Petr Machata  <pmachata@redhat.com>
15717
15718         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
15719         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
15720         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
15721         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
15722
15723 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15724
15725         [BZ #14545]
15726         * csu/libc-tls.c (_dl_initial_dtv): New variable.
15727         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
15728         freeing dtv[-1].
15729
15730 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
15731
15732         [BZ #14544]
15733         * Makeconfig (link-static-before-libc): Replace $(+prector)
15734         with $(+prectorT).
15735         (link-static-after-libc): Replace $(+postctor) with
15736         $(+postctorT).
15737         (link-bounded): Replace $(+prector)/$(+postctor) with
15738         $(+prectorT)/$(+postctorT).
15739         (+prectorT): New macro.
15740         (+postctorT): Likewise.
15741
15742 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
15743
15744         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
15745         (round_str): Handle values above the maximum for IBM long double
15746         as inexact.
15747         * stdlib/tst-strtod-round.c (tests): Regenerated.
15748
15749 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15750
15751         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
15752         assembler flag.
15753         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
15754         zarch_nohighgprs around the zarch optimized routines.
15755         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
15756         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
15757         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
15758         for zarch.
15759
15760 2012-09-05  David S. Miller  <davem@davemloft.net>
15761
15762         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15763
15764         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
15765         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
15766         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
15767         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15768         entries.
15769
15770 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15771
15772         * malloc/arena.c: Fold copyright years.
15773         * malloc/mcheck.c, malloc/memusage.c: Likewise.
15774
15775 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15776
15777         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
15778
15779 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15780
15781         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
15782
15783 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15784
15785         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
15786         change internal state upon failure.
15787
15788 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
15789
15790         * malloc/mcheck.c (mcheck_check_all): Fix typo.
15791         * malloc/memusage.c (mmap): Likewise.
15792         (mmap64, mremap): Likewise.  Adjust name in comment.
15793
15794 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
15795
15796         * libio/fileops.c: Fix typos in comments.
15797         * libio/oldfileops.c: Likewise.
15798         * libio/wfileops.c: Likewise.
15799
15800 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
15801
15802         [BZ #1349]
15803         * malloc/Makefile (tests): Add tst-malloc-usable test case.
15804         (tst-malloc-usable-ENV): Set environment for test case.
15805         * malloc/hooks.c (malloc_check_get_size): New function to get
15806         requested size.
15807         * malloc/malloc.c (musable): Use malloc_check_get_size.
15808         * malloc/tst-malloc-usable.c: New test case.
15809
15810 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
15811
15812         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
15813
15814 2012-09-05  Allan McRae  <allan@archlinux.org>
15815
15816         [BZ #13966]
15817         * configure.in (CXX_SYSINCLUDES): Use compiler output to
15818         determine header location.
15819         * configure: Regenerated.
15820
15821 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
15822
15823         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
15824         float format.
15825         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
15826         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
15827         format.
15828         (test): Regenerate.
15829
15830 2012-09-04  David S. Miller  <davem@davemloft.net>
15831
15832         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
15833         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
15834         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
15835
15836 2012-09-04  Florian Weimer  <fweimer@redhat.com>
15837
15838         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
15839         failures.
15840
15841         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
15842
15843 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
15844
15845         [BZ #9914]
15846         * libio/iogetdelim.c: Include <limits.h>.
15847         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
15848         + len + 1 would overflow.
15849
15850 2012-09-03  Andreas Jaeger  <aj@suse.de>
15851
15852         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15853         * sysdeps/i386/fpu/libm-test-ulps: Update.
15854
15855 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15856
15857         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
15858         Add s_sinf-sse2, s_conf-sse2.
15859
15860         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
15861         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
15862         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
15863         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
15864
15865         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
15866         for using routine as __sinf_ia32.
15867         Use macro for function declaration and weak_alias.
15868         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
15869         for using routine as __cosf_ia32.
15870         Use macro for function declaration and weak_alias.
15871
15872         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
15873         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
15874
15875         * sysdeps/x86_64/fpu/s_sinf.S: New file.
15876         * sysdeps/x86_64/fpu/s_cosf.S: New file.
15877         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15878
15879         * math/libm-test.inc (cos_test): Add more test cases.
15880         (sin_test): Likewise.
15881         (sincos_test): Likewise.
15882
15883 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15884
15885         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
15886         (IFUNC_RESOLVE): Make pointers to the specialized implementations
15887         hidden.
15888         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
15889
15890 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
15891
15892         [BZ #14538]
15893         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
15894         first element of the GOT.
15895         (elf_machine_load_address): Return the difference between
15896         the runtime address of _DYNAMIC and elf_machine_dynamic ().
15897
15898 2012-09-01  Allan McRae  <allan@archlinux.org>
15899
15900         [BZ #13412]
15901         * configure.in (AWK): Require gawk version 3.0 or later.
15902         * configure: Regenerated.
15903
15904 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
15905
15906         * sysdeps/unix/sysv/linux/kernel-features.h
15907         (__ASSUME_POSIX_CPU_TIMERS): Remove.
15908         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
15909         [__NR_clock_getres]: Make code unconditional.
15910         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
15911         (clock_getcpuclockid): Remove code left unreachable by removal of
15912         conditionals.
15913         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
15914         code unconditional.
15915         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
15916         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
15917         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
15918         Make code unconditional.
15919         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
15920         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
15921         * sysdeps/unix/sysv/linux/clock_settime.c
15922         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
15923         conditional code.
15924         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
15925         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
15926
15927 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
15928
15929         [BZ #14476]
15930         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
15931         scripts/test-installation.pl.
15932
15933         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
15934         and $ld_so_version if it is set.
15935
15936 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
15937
15938         [BZ #14516]
15939         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
15940         failure if reading from procfs failed.
15941         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
15942
15943 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
15944
15945         * sysdeps/unix/sysv/linux/kernel-features.h
15946         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
15947         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
15948         Remove conditional code.
15949         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15950         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
15951         Remove conditional code.
15952         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15953         * sysdeps/unix/sysv/linux/i386/fxstat.c
15954         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15955         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15956         * sysdeps/unix/sysv/linux/i386/fxstatat.c
15957         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15958         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15959         * sysdeps/unix/sysv/linux/i386/lxstat.c
15960         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
15961         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15962         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
15963         Remove conditional code.
15964         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15965         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
15966         Remove conditional code.
15967         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15968         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
15969         <kernel-features.h>.
15970         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
15971         Remove.
15972         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
15973         Remove conditional code.
15974         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
15975         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
15976         Remove conditional.
15977
15978 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
15979
15980         [BZ #5400]
15981         * NEWS: Add fixed bug number.
15982
15983 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
15984
15985         [BZ #14519]
15986         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
15987         underflowing exponent in case of negative sign.
15988         * stdlib/tst-strtod-round-data: Add more tests.
15989         * stdlib/tst-strtod-round.c (tests): Regenerated.
15990
15991         [BZ #3479]
15992         * stdlib/strtod_l.c (NDIG): Remove.
15993         (HEXNDIG): Likewise.
15994         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
15995         smallest representable value.
15996         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
15997         lie within an exact representation of 1/2 ulp of the result.
15998         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
15999         unconditionally.
16000         (TENS_P9_IDX): Define unconditionally.
16001         (TENS_P9_SIZE): Likewise.
16002         (TENS_P10_IDX): Likewise.
16003         (TENS_P10_SIZE): Likewise.
16004         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
16005         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
16006         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
16007         entries for 10^2^13 and 10^2^14.
16008         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
16009         (TENS_P13_IDX): Define.
16010         (TENS_P13_SIZE): Likewise.
16011         (TENS_P14_IDX): Likewise.
16012         (TENS_P14_SIZE): Likewise.
16013         (_fpioconst_pow10): Change array size to
16014         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
16015         unconditional.
16016         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
16017         1024]: Add entries for 10^2^13 and 10^2^14.
16018         [LAST_POW10 > _LAST_POW10]: Remove #error.
16019         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
16020         (_fpioconst_pow10): Change array size to
16021         FPIOCONST_POW10_ARRAY_SIZE.
16022         * stdlib/gen-fpioconst.c: New file.
16023         * stdlib/gen-tst-strtod-round.c: Likewise.
16024         * stdlib/tst-strtod-round-data: Likewise.
16025         * stdlib/tst-strtod-round.c: Likewise.
16026         * stdlib/Makefile (tests): Add tst-strtod-round.
16027
16028         [BZ #14459]
16029         * stdlib/strtod_l.c: Include <stdint.h>.
16030         (NDEBUG): Do not define.
16031         (round_and_return): Change EXPONENT parameter to type intmax_t.
16032         Rearrange calculations to avoid internal overflow possibilities.
16033         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
16034         Rearrange calculations to avoid internal overflow possibilities.
16035         Assert that number fits inside MPNSIZE limbs.
16036         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
16037         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
16038         calculations and add assertions to avoid internal overflow
16039         possibilities.  Add casts to avoid signed/unsigned operations.
16040         * stdlib/tst-strtod-overflow.c: New file.
16041         * stdlib/Makefile (tests): Add tst-strtod-overflow.
16042
16043 2012-08-25  Marek Polacek  <polacek@redhat.com>
16044
16045         * time/time.h: Fix some typos in comments.
16046
16047 2012-08-23  Roland McGrath  <roland@hack.frob.com>
16048
16049         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
16050         * posix/tst-rfc3484-2.c: Likewise.
16051         * posix/tst-rfc3484-3.c: Likewise.
16052
16053 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
16054
16055         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
16056         (EF_ARM_ABI_FLOAT_HARD): Likewise.
16057
16058 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
16059
16060         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
16061         #include of fxstatat64.c.
16062
16063 2012-08-22  Roland McGrath  <roland@hack.frob.com>
16064
16065         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
16066         * shadow/getspent_r.c: Likewise.
16067         * shadow/getspnam.c: Likewise.
16068         * shadow/getspnam_r.c: Likewise.
16069         * gshadow/getsgent.c: Likewise.
16070         * gshadow/getsgent_r.c: Likewise.
16071         * gshadow/getsgnam.c: Likewise.
16072         * gshadow/getsgnam_r.c: Likewise.
16073         * inet/getnetbyad.c: Likewise.
16074         * inet/getnetbyad_r.c: Likewise.
16075         * inet/getnetbynm.c: Likewise.
16076         * inet/getnetbynm_r.c: Likewise.
16077         * inet/getnetent.c: Likewise.
16078         * inet/getnetent_r.c: Likewise.
16079         * inet/getproto.c: Likewise.
16080         * inet/getproto_r.c: Likewise.
16081         * inet/getprtent.c: Likewise.
16082         * inet/getprtent_r.c: Likewise.
16083         * inet/getprtname.c: Likewise.
16084         * inet/getprtname_r.c: Likewise.
16085         * inet/getrpcbyname.c: Likewise.
16086         * inet/getrpcbyname_r.c: Likewise.
16087         * inet/getrpcbynumber.c: Likewise.
16088         * inet/getrpcbynumber_r.c: Likewise.
16089         * inet/getrpcent.c: Likewise.
16090         * inet/getrpcent_r.c: Likewise.
16091         * inet/getaliasent.c: Likewise.
16092         * inet/getaliasent_r.c: Likewise.
16093         * inet/getaliasname.c: Likewise.
16094         * inet/getaliasname_r.c: Likewise.
16095         * nscd/getgrgid_r.c: Likewise.
16096         * nscd/getgrnam_r.c: Likewise.
16097         * nscd/gethstbyad_r.c: Likewise.
16098         * nscd/gethstbynm3_r.c: Likewise.
16099         * nscd/getpwnam_r.c: Likewise.
16100         * nscd/getpwuid_r.c: Likewise.
16101         * nscd/getsrvbynm_r.c: Likewise.
16102         * nscd/getsrvbypt_r.c: Likewise.
16103         * nscd/gai.c: Likewise.
16104
16105         * configure.in (build_nscd): New substituted variable, set
16106         by --disable-build-nscd and defaults to $use_nscd.
16107         * configure: Regenerated.
16108         * config.make.in (build-nscd): New substituted variable.
16109         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
16110         Change conditional to require [$(build-nscd) = yes] as well.
16111         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
16112
16113         [BZ# 13696]
16114         * configure.in (use_nscd): New substituted variable, set by
16115         --disable-nscd.  If enabled, define USE_NSCD.
16116         * configure: Regenerated.
16117         * config.h.in: Add USE_NSCD.
16118         * config.make.in (use-nscd): New substituted variable.
16119         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
16120         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
16121         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
16122         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
16123         (CFLAGS-getgrnam_r.c): Likewise.
16124         (CFLAGS-initgroups.c): Likewise.
16125         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
16126         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
16127         Variables removed.
16128         * inet/getnetgrent_r.c
16129         (nscd_setnetgrent): New function, broken out of ...
16130         (setnetgrent): ... here.  Call it.
16131         (innetgr): Conditionalize nscd bits on [USE_NSCD].
16132         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
16133         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
16134         * nscd/Makefile (routines, aux): Move definitions after include of
16135         Makeconfig.  Conditionalize on [$(use-nscd) != no].
16136         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
16137         Conditionalize on [USE_NSCD].
16138         (is_nscd, nscd_init_cb): Likewise.
16139         (nss_load_library): Conditionalize init callback on [USE_NSCD].
16140         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
16141         * nss/nss_db/db-init.c: Likewise.
16142         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
16143         [USE_NSCD].
16144         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
16145         (make_request): Use it.
16146         (cache_valid_p): New function.
16147         (__check_pf): Use it.
16148         * NEWS: Add item for --disable-nscd.
16149
16150 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
16151
16152         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
16153         to support sed >= 4.2.1-20-ga9bf076.
16154         * configure: Regenerated.
16155
16156 2012-08-22  Roland McGrath  <roland@hack.frob.com>
16157
16158         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
16159         Conditionalize whole body on [IREL].
16160
16161 2012-08-22  Jeff Law <law@redhat.com>
16162
16163         [BZ #14505]
16164         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
16165         if the family is PF_UNSPEC.
16166
16167 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
16168
16169         * Makerules (lib-version): Rename from V.
16170         (install-lib-nosubdir): Change V to lib-version.
16171
16172 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
16173
16174         [BZ #14252]
16175         * powerpc32/power6/wcschr.c: New file.
16176         * powerpc32/power6/wcscpy.c: New file.
16177         * powerpc32/power6/wcsrchr.c: New file.
16178         * powerpc64/power6/wcschr.c: New file.
16179         * powerpc64/power6/wcscpy.c: New file.
16180         * powerpc64/power6/wcsrchr.c: New file.
16181
16182 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
16183
16184         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
16185         (two_way_short_needle): Use it.
16186         * string/strstr.c (AVAILABLE1_USES_J): Define.
16187         * string/strcasestr.c: Likewise.
16188
16189         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
16190         array references.
16191         * string/strcasestr.c (TOLOWER): Make side-effect safe.
16192
16193         [BZ #11607]
16194         * NEWS: Add an entry.
16195         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
16196         define their defaults.
16197         (two_way_short_needle): Detect end-of-string on-the-fly.
16198         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
16199         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
16200         * string/bug-strcasestr1.c: New test.
16201         * string/Makefile: Run it.
16202
16203 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
16204
16205         [BZ #11607]
16206         * string/str-two-way.h (two_way_short_needle): Optimize matching of
16207         the first character.
16208
16209 2012-08-21  Roland McGrath  <roland@hack.frob.com>
16210
16211         * csu/elf-init.c (__libc_csu_irel): Function removed.
16212         * csu/libc-start.c (apply_irel): New function.
16213         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
16214
16215 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
16216
16217         * sysdeps/unix/sysv/linux/kernel-features.h
16218         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
16219         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
16220         <kernel-features.h>.
16221         [__NR_fadvise64_64]: Make code unconditional.
16222         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
16223         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
16224         !__NR_fadvise64_64)]: Likewise.
16225         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
16226         !__NR_fadvise64_64))]: Likewise.
16227         [__NR_fadvise64]: Make code unconditional.
16228         [!__NR_fadvise64]: Remove conditional code.
16229         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
16230         <kernel-features.h>.
16231         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
16232         unconditional.
16233         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
16234         conditional code.
16235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
16236         not include <kernel-features.h>.
16237         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
16238         unconditional.
16239         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
16240         conditional code.
16241         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
16242         include <kernel-features.h>.
16243         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
16244         unconditional.
16245         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
16246         conditional code.
16247
16248 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
16249
16250         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
16251         slight instruction rearrangements per scrollpipe analysis.
16252         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
16253
16254 2012-08-20  Roland McGrath  <roland@hack.frob.com>
16255
16256         * manual/syslog.texi (syslog; vsyslog, closelog):
16257         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
16258         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
16259
16260         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
16261         DSOCAPS to match condition on defining it.
16262
16263 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
16264
16265         * sysdeps/unix/sysv/linux/kernel-features.h
16266         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
16267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
16268         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
16269         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
16270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
16271         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
16272         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
16273         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
16274         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
16275         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
16276
16277         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
16278         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
16279
16280         * sysdeps/unix/sysv/linux/kernel-features.h
16281         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
16282         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
16283         unconditional.
16284         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16285         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
16286         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
16287         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16288         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
16289         Make code unconditional.
16290         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16291         (__mmap64) [!__NR_mmap2]: Likewise.
16292         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
16293         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
16294         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16295         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
16296         [__NR_mmap2]: Make code unconditional.
16297         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16298         (__mmap64) [!__NR_mmap2]: Likewise.
16299
16300 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16301
16302         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
16303
16304 2012-08-18  Andreas Jaeger  <aj@suse.de>
16305
16306         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
16307
16308 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
16309
16310         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
16311         * include/unistd.h (__have_sock_cloexec): Likewise.
16312         (__have_pipe2): Likewise.
16313         (__have_dup3): Likewise.
16314
16315 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
16316
16317         [BZ #9685]
16318         * include/unistd.h (__have_pipe2): Change define into an extern int.
16319         (__have_dup3): Likewise.
16320         * socket/have_sock_cloexec.c: Include fcntl.h.
16321         (__have_pipe2): New variable.
16322         (__have_dup3): Likewise.
16323
16324 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
16325
16326         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
16327
16328 2012-08-17  Marek Polacek  <polacek@redhat.com>
16329
16330         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
16331         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
16332
16333 2012-08-17  Roland McGrath  <roland@hack.frob.com>
16334
16335         * configure.in: Add AC_SUBST for sysheaders.
16336         * configure: Regenerated.
16337         * config.make.in (sysheaders): New substituted variable.
16338
16339         * sysdeps/unix/mkfifo.c: Moved ...
16340         * sysdeps/posix/mkfifo.c: ... here.
16341         * sysdeps/unix/mkfifoat.c: Moved ...
16342         * sysdeps/posix/mkfifoat.c: ... here.
16343
16344         * sysdeps/unix/utime.c: Moved ...
16345         * sysdeps/posix/utime.c: ... here.
16346
16347         * sysdeps/unix/time.c: Moved ...
16348         * sysdeps/posix/time.c: ... here.
16349         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
16350         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
16351
16352         * sysdeps/unix/nice.c: Moved ...
16353         * sysdeps/posix/nice.c: ... here.
16354
16355         * sysdeps/unix/alarm.c: Moved ...
16356         * sysdeps/posix/alarm.c: ... here.
16357
16358         * intl/Makefile ($(codeset_mo)): Depend on the input file.
16359
16360 2012-08-17  Jeff Law <law@redhat.com>
16361
16362         * intl/Makefile (codeset_mo): New variable.
16363         ($(codeset_mo)): New target.
16364         (tst-codeset.out): Depend on that.  Remove explicit rule.
16365         (tst-gettext3.out, tst-gettext5.out): Likewise.
16366         (LOCPATH-ENV, tst-codeset-ENV): New variables.
16367         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
16368         * intl/tst-codeset.sh: Remove.
16369         * intl/tst-gettext3.sh: Likewise.
16370         * intl/tst-gettext5.sh: Likewise.
16371
16372 2012-08-17  Roland McGrath  <roland@hack.frob.com>
16373
16374         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
16375         * sysdeps/unix/syscalls.list: ... here.
16376
16377         * sysdeps/posix/getaddrinfo.c
16378         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
16379         (gaiconf_init, gaiconf_reload): Use them.
16380         [!_STATBUF_ST_NSEC]
16381         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
16382         Define using time_t rather than struct timespec.
16383
16384         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
16385         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
16386         Macros removed.
16387         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
16388         [!NO_THREADS].
16389         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
16390         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
16391         Likewise.
16392
16393         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
16394         __libc_cleanup_push argument.
16395
16396         * bits/param.h: New file.
16397         * misc/sys/param.h: New file.
16398         * include/sys/param.h: New file.
16399         * misc/Makefile (headers): Add bits/param.h.
16400         * sysdeps/generic/sys/param.h: File removed.
16401         * sysdeps/unix/sysv/linux/bits/param.h: New file.
16402         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
16403         * sysdeps/mach/hurd/bits/param.h: New file.
16404         * sysdeps/mach/hurd/sys/param.h: File removed.
16405
16406         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
16407         last change.
16408
16409         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
16410         [_IO_MTSAFE_IO].
16411         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
16412         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
16413         New macros.
16414
16415         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
16416         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
16417         rather than -D_IO_MTSAFE_IO conditionally.
16418         * stdio-common/Makefile (CPPFLAGS): Likewise.
16419         * wcsmbs/Makefile (CPPFLAGS): Likewise.
16420         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
16421         Use $(libio-mtsafe).
16422         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
16423         of -D_IO_MTSAFE_IO.
16424         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
16425         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
16426         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
16427         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
16428         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
16429         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
16430         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
16431         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
16432         (CFLAGS-fread_u_chk.c): Likewise.
16433         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
16434         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
16435         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
16436         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
16437         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
16438         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
16439         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
16440         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
16441         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
16442
16443         * libio/Makefile: Test [$(libc-reentrant) = yes]
16444         instead of [$(filter %REENTRANT, $(defines)) nonempty].
16445
16446         * Makeconfig
16447         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
16448         * sysdeps/pthread/configure: File removed.
16449         * sysdeps/pthread/Makeconfig: New file.
16450         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
16451         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
16452
16453 2012-08-16  Gary Benson  <gbenson@redhat.com>
16454
16455         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
16456         unmapping the first object in a namespace.
16457
16458 2012-08-16  Roland McGrath  <roland@hack.frob.com>
16459
16460         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
16461         (__internal_setnetgrent): ... this.  Add internal_function to
16462         definition.  Add libc_hidden_def.
16463         (setnetgrent): Update caller.
16464         (internal_endnetgrent): Renamed to ...
16465         (__internal_endnetgrent): ... this.  Add internal_function to
16466         definition.  Add libc_hidden_def.
16467         (endnetgrent): Update caller.
16468         (internal_getnetgrent_r): Renamed to ...
16469         (__internal_getnetgrent_r): ... this.  Add internal_function to
16470         definition.  Add libc_hidden_def.
16471         (__getnetgrent_r): Update caller.
16472         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
16473
16474 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
16475
16476         * stdlib/longlong.h: Update from GCC.
16477
16478 2012-08-16  Roland McGrath  <roland@hack.frob.com>
16479
16480         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
16481         on _QL, which is set by umul_ppmm but never used.
16482         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
16483         variables, which are set by GMP macros but never used.
16484         * stdio-common/_itowa.c (_itowa): Likewise.
16485         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
16486         * stdlib/mod_1.c (mpn_mod_1): Likewise.
16487
16488 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
16489
16490         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
16491         struct La_sh_regs is not constant.
16492         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
16493         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
16494         and struct La_sparc64_regs are not constant.
16495
16496 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
16497
16498         * sysdeps/unix/sysv/linux/kernel-features.h
16499         (__ASSUME_POSIX_TIMERS): Remove.
16500         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
16501         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
16502         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
16503         Make code unconditional.
16504         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
16505         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
16506         Make code unconditional.
16507         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
16508         * sysdeps/unix/sysv/linux/clock_nanosleep.c
16509         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
16510         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
16511         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
16512         Make code unconditional.
16513         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
16514         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
16515         (__libc_missing_posix_timers): Remove.
16516
16517 2012-08-15  Roland McGrath  <roland@hack.frob.com>
16518
16519         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
16520         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
16521
16522         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
16523
16524         * elf/dl-sym.c: Include <stdlib.h>.
16525
16526         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
16527         constants, which avoids warnings in 32-bit builds.
16528
16529         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
16530         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
16531
16532         * misc/lseek.c: File moved to ...
16533         * io/lseek.c: ... here.
16534
16535         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
16536
16537         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
16538         shifting LEN more than 31 bits at once.
16539
16540 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16541
16542         [BZ #14195]
16543         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
16544         segmentation fault for a case of two empty input strings.
16545         * string/test-strncasecmp.c (check1): Renamed to...
16546         (bz12205): ...this.
16547         (bz14195): Add new testcase for two empty input strings and N > 0.
16548         (test_main): Call new testcase, adapt for renamed function.
16549
16550 2012-08-15  Andreas Jaeger  <aj@suse.de>
16551
16552         [BZ #14090]
16553         * crypt/md5test2.c: New test, based on test supplied by Serge
16554         Belyshev <belyshev@depni.sinp.msu.ru>.
16555         * crypt/Makefile (xtests): Add md5test-giant..
16556         * crypt/Makefile ($(objpfx)md5test-giant): Add.
16557
16558 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
16559
16560         [BZ #14090]
16561         * crypt/md5.c (md5_process_block): Don't assume the buffer
16562         length is less than 2**32.
16563         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
16564         length is less than 2**64.
16565
16566 2012-08-15  Roland McGrath  <roland@hack.frob.com>
16567
16568         * string/str-two-way.h: Include <sys/param.h>.
16569         (MAX): Macro removed.
16570
16571         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
16572         Move #define and #undef of memmove to just before and after
16573         including <string.h>.
16574
16575         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
16576         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
16577         and after including <string.h>.  Move declarations of
16578         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
16579         to before #include "string/memmove.c".
16580
16581         * include/dirent.h: Declare __getdirentries.
16582
16583         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
16584         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
16585
16586 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
16587
16588         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
16589         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
16590         * sysdeps/i386/configure: Regenerated.
16591         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
16592         STABS_CURRENT_FILE, and STABS_FUN.
16593         (END): Remove call to STABS_FUN_END.
16594         (STABS_CURRENT_FILE1): Delete.
16595         (STABS_CURRENT_FILE): Likewise.
16596         (STABS_FUN): Likewise.
16597         (STABS_FUN_END): Likewise.
16598         (STABS_FUN2): Likewise.
16599         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
16600         * sysdeps/x86_64/configure: Regenerated.
16601
16602 2012-08-14  Roland McGrath  <roland@hack.frob.com>
16603
16604         * elf/dl-open.c: Include <atomic.h>.
16605         * elf/dl-lookup.c: Likewise.
16606
16607 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
16608
16609         * sysdeps/unix/sysv/linux/kernel-features.h
16610         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
16611         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
16612         unconditionally.
16613         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
16614         unconditionally.
16615         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
16616         condition on __ASSUME_CLONE_THREAD_FLAGS.
16617
16618 2012-08-14  Andreas Jaeger  <aj@suse.de>
16619
16620         * sysdeps/i386/fpu/libm-test-ulps: Update.
16621
16622 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
16623
16624         * include/atomic.h (atomic_exchange_and_add): Split into ...
16625         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
16626         New atomic macros.
16627
16628 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
16629
16630         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16631
16632 2012-08-13  Jeff Law <law@redhat.com>
16633
16634         * manual/stdio.texi (snprintf): Clarify handling of the trailing
16635         null byte in the output string.
16636
16637 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
16638
16639         * sysdeps/unix/sysv/linux/kernel-features.h
16640         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
16641         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
16642         (__ASSUME_ARG_MAX_STACK_BASED): Define.
16643         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
16644         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
16645         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
16646         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
16647
16648 2012-08-09  Jeff Law <law@redhat.com>
16649
16650         [BZ #13939]
16651         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
16652         When avoid_arena is set, don't retry in the that arena.  Pick the
16653         next one, whatever it might be.
16654         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
16655         (arena_lock): Pass in new parameter to arena_get2.
16656         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
16657         arena_get2.
16658         (__libc_malloc): Unify retrying after main arena failure with
16659         __libc_memalign version.
16660         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
16661
16662 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
16663
16664         [BZ #14166]
16665         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
16666         to __redirect_strstr.
16667         (__strstr_sse42): Use typeof __redirect_strstr.
16668         (__strstr_ia32): Likewise.
16669         (__libc_strstr): New prototype.
16670         (strstr): Renamed to ...
16671         (__libc_strstr): This.
16672         (strstr): New strong alias of __libc_strstr.
16673         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
16674         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
16675         __redirect_time.
16676         Include <time.h>.
16677         (__libc_time): New prototype.
16678         (time_ifunc): Replace time with __libc_time.
16679         (time): New strong alias and hidden definition of __libc_time.
16680         (__GI_time): Remove strong alias.
16681         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
16682         Include <stddef.h>.
16683         (memmove): Redefined to __redirect_memmove.
16684         (__memmove_sse2): Use typeof __redirect_memmove.
16685         (__memmove_ssse3): Likewise.
16686         (__memmove_ssse3_back): Likewise.
16687         (__libc_memmove): New prototype.
16688         (memmove): Renamed to ...
16689         (__libc_memmove): This.
16690         (memmove): New strong alias of __libc_memmove.
16691
16692 2012-08-08  Mark Salter  <msalter@redhat.com>
16693
16694         * elf/elf.h
16695         (R_MN10300_TLS_GD): Define.
16696         (R_MN10300_TLS_LD): Likewise.
16697         (R_MN10300_TLS_LDO): Likewise.
16698         (R_MN10300_TLS_GOTIE): Likewise.
16699         (R_MN10300_TLS_IE): Likewise.
16700         (R_MN10300_TLS_LE): Likewise.
16701         (R_MN10300_TLS_DTPMOD): Likewise.
16702         (R_MN10300_TLS_DTPOFF): Likewise.
16703         (R_MN10300_TLS_TPOFF): Likewise.
16704         (R_MN10300_SYM_DIFF): Likewise.
16705         (R_MN10300_ALIGN): Likewise.
16706         (R_MN10300_NUM): Update.
16707
16708 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
16709
16710         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
16711         Remove.
16712
16713 2012-08-08  Roland McGrath  <roland@hack.frob.com>
16714
16715         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
16716
16717         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
16718         sysdeps/unix -> sysdeps/posix move.
16719         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
16720
16721 2012-08-07      Allan McRae     <allan@archlinux.org>
16722
16723         [BZ #14303]
16724         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
16725         (SUNOS_CPP): Likewise.
16726         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
16727         not found.
16728         (open_input): Call CPP using execvp.
16729
16730 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
16731
16732         * sysdeps/unix/sysv/linux/kernel-features.h
16733         (__ASSUME_PROT_GROWSUPDOWN): Remove.
16734         (__ASSUME_NO_CLONE_DETACHED): Likewise.
16735         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
16736         (__ASSUME_WAITID_SYSCALL): Likewise.
16737         * sysdeps/unix/sysv/linux/dl-execstack.c
16738         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
16739         code unconditional.
16740         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
16741         conditional code.
16742         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
16743         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
16744         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
16745         code.
16746         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
16747         unconditional.
16748         [__ASSUME_WAITID_SYSCALL]: Likewise.
16749         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
16750
16751 2012-08-07  Roland McGrath  <roland@hack.frob.com>
16752
16753         * sysdeps/unix/closedir.c: Renamed to ...
16754         * sysdeps/posix/closedir.c: ... here.
16755         * sysdeps/unix/dirfd.c: Renamed to ...
16756         * sysdeps/posix/dirfd.c: ... here.
16757         * sysdeps/unix/dirstream.h: Renamed to ...
16758         * sysdeps/posix/dirstream.h: ... here.
16759         * sysdeps/unix/fdopendir.c: Renamed to ...
16760         * sysdeps/posix/fdopendir.c: ... here.
16761         * sysdeps/unix/opendir.c: Renamed to ...
16762         * sysdeps/posix/opendir.c: ... here.
16763         * sysdeps/unix/readdir.c: Renamed to ...
16764         * sysdeps/posix/readdir.c: ... here.
16765         * sysdeps/unix/readdir_r.c: Renamed to ...
16766         * sysdeps/posix/readdir_r.c: ... here.
16767         * sysdeps/unix/rewinddir.c: Renamed to ...
16768         * sysdeps/posix/rewinddir.c: ... here.
16769         * sysdeps/unix/seekdir.c: Renamed to ...
16770         * sysdeps/posix/seekdir.c: ... here.
16771         * sysdeps/unix/telldir.c: Renamed to ...
16772         * sysdeps/posix/telldir.c: ... here.
16773         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
16774         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
16775         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
16776         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
16777
16778         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
16779         * bits/fcntl.h: ... here.
16780
16781         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
16782         not 0.
16783         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
16784         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
16785         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
16786         (struct flock): Move l_start, l_len to the beginning.
16787         Use __pid_t for l_pid.
16788         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
16789         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
16790         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
16791         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
16792         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
16793         [__USE_LARGEFILE64] (struct flock64): New type.
16794         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
16795
16796         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
16797         * bits/dirent.h: ... here.
16798
16799         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
16800         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
16801
16802 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
16803
16804         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16805         Change from 2.6.0 to 2.6.16.
16806         * sysdeps/unix/sysv/linux/configure: Regenerated.
16807         * sysdeps/unix/sysv/linux/kernel-features.h
16808         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
16809         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
16810         version.
16811         (__ASSUME_UTIMES): Likewise.
16812         (__ASSUME_CLONE_STOPPED): Remove.
16813         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
16814         architectures, not kernel version.
16815         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
16816         (__ASSUME_NO_CLONE_DETACHED): Likewise.
16817         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
16818         (__ASSUME_WAITID_SYSCALL): Likewise.
16819         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
16820         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
16821         * README: State 2.6.16 as minimum Linux kernel version.  Do not
16822         refer to older versions.
16823
16824 2012-08-06  Roland McGrath  <roland@hack.frob.com>
16825
16826         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
16827         Define alphasort64 as an alias.
16828         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
16829         Define versionsort64 as an alias.
16830         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
16831         Define scandir64 as an alias.
16832         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
16833         Define scandirat64 as an alias.
16834         * dirent/alphasort64.c (alphasort64):
16835         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
16836         * dirent/versionsort64.c: Likewise.
16837         * dirent/scandir64.c: Likewise.
16838         * dirent/scandirat64.c: Likewise.
16839         * sysdeps/wordsize-64/alphasort.c: File removed.
16840         * sysdeps/wordsize-64/alphasort64.c: File removed.
16841         * sysdeps/wordsize-64/scandir.c: File removed.
16842         * sysdeps/wordsize-64/scandir64.c: File removed.
16843         * sysdeps/wordsize-64/scandirat.c: File removed.
16844         * sysdeps/wordsize-64/scandirat64.c: File removed.
16845         * sysdeps/wordsize-64/versionsort.c: File removed.
16846         * sysdeps/wordsize-64/versionsort64.c: File removed.
16847         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
16848         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
16849         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
16850         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
16851         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
16852         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
16853         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
16854         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
16855
16856         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
16857         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
16858         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
16859         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16860         [defined __arch64__ || defined __sparcv9]
16861         (__INO_T_MATCHES_INO64_T): New macro.
16862         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
16863         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
16864         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
16865         * sysdeps/unix/sysv/linux/bits/dirent.h
16866         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
16867         (_DIRENT_MATCHES_DIRENT64): New macro.
16868
16869         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
16870         Define lockf64 as an alias.
16871         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
16872         Define fseeko64 as an alias.
16873         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
16874         Define ftello64 as an alias.
16875         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
16876         Define _IO_fgetpos64 and fgetpos64 as aliases.
16877         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
16878         Define _IO_fsetpos64 and fsetpos64 as aliases.
16879         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
16880         Conditionalize body on this.
16881         * libio/fseeko64.c: Likewise.
16882         * libio/ftello64.c: Likewise.
16883         * libio/iofgetpos64.c: Likewise.
16884         * libio/iofsetpos64.c: Likewise.
16885         * sysdeps/wordsize-64/lockf.c: File removed.
16886         * sysdeps/wordsize-64/lockf64.c: File removed.
16887         * sysdeps/wordsize-64/fseeko.c: File removed.
16888         * sysdeps/wordsize-64/fseeko64.c: File removed.
16889         * sysdeps/wordsize-64/ftello.c: File removed.
16890         * sysdeps/wordsize-64/ftello64.c: File removed.
16891         * sysdeps/wordsize-64/iofgetpos.c: File removed.
16892         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
16893         * sysdeps/wordsize-64/iofsetpos.c: File removed.
16894         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
16895         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
16896         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
16897         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
16898         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
16899         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
16900         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
16901         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
16902         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
16903         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
16904         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
16905
16906         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
16907         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
16908         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
16909         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
16910         [defined __arch64__ || defined __sparcv9]
16911         (__OFF_T_MATCHES_OFF64_T): New macro.
16912         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
16913         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
16914         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
16915         (__OFF_T_MATCHES_OFF64_T): New macro.
16916
16917 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
16918
16919         * stdlib/secure-getenv.c (__secure_getenv): Replace
16920         GLIBC_2_16 with GLIBC_2_17.
16921
16922 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
16923
16924         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
16925         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
16926
16927 2012-08-03  David S. Miller  <davem@davemloft.net>
16928
16929         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16930
16931 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
16932
16933         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
16934         Remove.
16935         (__ASSUME_CORRECT_SI_PID): Likewise.
16936         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
16937         (__ASSUME_TMPFS_NAME): Likewise.
16938         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
16939         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
16940         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
16941         (HAVE_AUX_SECURE): Make definition unconditional.
16942         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
16943         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
16944
16945 2012-08-03  Roland McGrath  <roland@hack.frob.com>
16946
16947         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
16948         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
16949         * sysdeps/mach/hurd/eloop-threshold.h: New file.
16950         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
16951         __eloop_threshold instead of SYMLOOP_MAX.
16952
16953         * sysdeps/generic/eloop-threshold.h: New file.
16954         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
16955         of MAXSYMLINKS.
16956         * elf/chroot_canon.c (chroot_canon): Likewise.
16957
16958 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
16959
16960         [BZ #13717]
16961         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16962         Change to 2.6.0 everywhere.
16963         * sysdeps/unix/sysv/linux/configure: Regenerated.
16964         * sysdeps/unix/sysv/linux/kernel-features.h
16965         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
16966         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
16967         kernel versions.
16968         (__ASSUME_POSIX_TIMERS): Define unconditionally.
16969         (__ASSUME_FUTEX_REQUEUE): Remove.
16970         (__ASSUME_STATFS64): Define unconditionally.
16971         (__ASSUME_AT_SECURE): Likewise.
16972         (__ASSUME_CORRECT_SI_PID): Likewise.
16973         (__ASSUME_TGKILL): Define without depending on kernel version for
16974         i386.
16975         (__ASSUME_UTIMES): Likewise.
16976         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
16977         kernel version.
16978         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
16979         (__ASSUME_TMPFS_NAME): Likewise.
16980         * README: Update reference to Linux kernel versions.
16981
16982 2012-08-02  Marek Polacek  <polacek@redhat.com>
16983
16984         [BZ# 14150]
16985         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
16986         libc_cv_asm_type_prefix with %.
16987         * configure: Regenerated.
16988         * include/libc-symbols.h: Remove comment about
16989         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
16990         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
16991         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
16992         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
16993         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
16994         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
16995         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
16996         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
16997         * elf/tst-unique2mod1.c: Likewise.
16998         * elf/tst-unique1mod2.c: Likewise.
16999         * elf/tst-unique1mod1.c: Likewise.
17000         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
17001         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
17002         Replace ASM_TYPE_DIRECTIVE with .type.
17003         * sysdeps/s390/s390-64/sysdep.h: Likewise.
17004         * sysdeps/i386/sysdep.h: Likewise.
17005         * sysdeps/x86_64/sysdep.h: Likewise.
17006         * sysdeps/sh/sysdep.h: Likewise.
17007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17008         Do not define ASM_TYPE_DIRECTIVE.
17009         * sysdeps/powerpc/sysdep.h: Likewise.
17010         * sysdeps/powerpc/powerpc32/sysdep.h:
17011         Replace ASM_TYPE_DIRECTIVE with .type.
17012         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
17013         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
17014         * sysdeps/i386/fpu/e_powf.S: Likewise.
17015         * sysdeps/i386/fpu/e_expl.S: Likewise.
17016         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
17017         * sysdeps/i386/fpu/e_acosh.S: Likewise.
17018         * sysdeps/i386/fpu/e_pow.S: Likewise.
17019         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
17020         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
17021         * sysdeps/i386/fpu/s_expm1.S: Likewise.
17022         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
17023         * sysdeps/i386/fpu/e_log2.S: Likewise.
17024         * sysdeps/i386/fpu/e_log2l.S: Likewise.
17025         * sysdeps/i386/fpu/e_scalb.S: Likewise.
17026         * sysdeps/i386/fpu/e_powl.S: Likewise.
17027         * sysdeps/i386/fpu/e_log10f.S: Likewise.
17028         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
17029         * sysdeps/i386/fpu/e_logl.S: Likewise.
17030         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
17031         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
17032         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
17033         * sysdeps/i386/fpu/e_log2f.S: Likewise.
17034         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
17035         * sysdeps/i386/fpu/e_log.S: Likewise.
17036         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
17037         * sysdeps/i386/fpu/e_logf.S: Likewise.
17038         * sysdeps/i386/fpu/e_log10l.S: Likewise.
17039         * sysdeps/i386/fpu/e_atanh.S: Likewise.
17040         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
17041         * sysdeps/i386/fpu/e_log10.S: Likewise.
17042         * sysdeps/i386/fpu/s_frexp.S: Likewise.
17043         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
17044         * sysdeps/i386/fpu/s_asinh.S: Likewise.
17045         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
17046         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
17047         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
17048         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
17049         * sysdeps/i386/i686/strtok.S: Likewise.
17050         * sysdeps/i386/i386-mcount.S: Likewise.
17051         * sysdeps/i386/strtok.S: Likewise.
17052         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
17053         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17054         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17055         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17056         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
17057         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17058         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
17059         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
17060         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17061         * sysdeps/x86_64/_mcount.S: Likewise.
17062         * sysdeps/x86_64/strtok.S: Likewise.
17063         * sysdeps/sh/_mcount.S: Likewise.
17064
17065 2012-08-01  Roland McGrath  <roland@hack.frob.com>
17066
17067         * libio/iofopen.c: Include <fcntl.h>.
17068         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
17069         (_IO_fopen64, fopen64): Define as aliases.
17070         * libio/iofopen64.c: Include <fcntl.h>.
17071         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
17072         Conditionalize body on this.
17073         * sysdeps/wordsize-64/iofopen.c: File removed.
17074         * sysdeps/wordsize-64/iofopen64.c: File removed.
17075
17076 2012-08-01  Marek Polacek  <polacek@redhat.com>
17077
17078         * libc/Makeconfig: Use elf in place of binfmt-subdir.
17079         Use dlfcn directly instead of a variable.
17080         (binfmt-subdir): Do not define.
17081         (dlfcn): Likewise.
17082
17083 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
17084
17085         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
17086         Remove all definitions.
17087         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
17088         <kernel-features.h>.
17089         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
17090         (miss_F_GETOWN_EX): Remove all definitions.
17091         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
17092         macro definition.
17093         [!__ASSUME_FCNTL64]: Remove conditional code.
17094         [__ASSUME_FCNTL64]: Make code unconditional.
17095         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
17096         <kernel-features.h>.
17097         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
17098         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
17099         (lockf64) [__NR_fcntl64]: Make code unconditional.
17100         (lockf64) [__ASSUME_FCNTL64]: Likewise.
17101
17102         * sysdeps/unix/sysv/linux/kernel-features.h
17103         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
17104         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
17105         Make code unconditional.
17106         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
17107         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
17108         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
17109         [__NR_vfork]: Make code unconditional.
17110         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
17111         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
17112         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
17113         [__NR_vfork]: Make code unconditional.
17114         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
17115         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
17116
17117 2012-08-01  Roland McGrath  <roland@hack.frob.com>
17118
17119         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
17120         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
17121
17122         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
17123         Define mkstemp64 as an alias.
17124         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
17125         Define mkstemps64 as an alias.
17126         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
17127         Define mkostemp64 as an alias.
17128         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
17129         Define mkostemps64 as an alias.
17130         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
17131         Conditionalize body on this.
17132         * misc/mkostemp64.c: Likewise.
17133         * misc/mkostemps64.c: Likewise.
17134         * misc/mkstemps64.c: Likewise.
17135         * sysdeps/wordsize-64/mkstemp64.c: File removed.
17136         * sysdeps/wordsize-64/mkostemp64.c: File removed.
17137         * sysdeps/wordsize-64/mkostemp.c: File removed.
17138         * sysdeps/wordsize-64/mkstemp.c: File removed.
17139         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
17140         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
17141         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
17142         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
17143
17144         [BZ #14138]
17145         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
17146         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
17147         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
17148         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
17149
17150         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
17151         compat_symbol macros from <shlib-compat.h> rather than the underlying
17152         default_symbol_version and symbol_version macros, so that DEFAULT
17153         lines in shlib-versions are respected.
17154         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
17155
17156 2012-08-01  Florian Weimer  <fweimer@redhat.com>
17157
17158         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
17159         Declare with warn_unused_result.
17160         (setgid, setregid, setegid, setresgid): Likewise.
17161         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
17162         Likewise.
17163         * WUR-REPORT: Remove set*id functions.
17164
17165 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
17166
17167         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
17168
17169 2012-07-31  Roland McGrath  <roland@hack.frob.com>
17170
17171         [BZ #10191]
17172         * include/sys/socket.h (__libc_accept, __libc_accept4):
17173         Add attribute_hidden.
17174         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
17175
17176         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
17177         use of PTR_MANGLE.
17178         * inet/getnetgrent_r.c (setup): Likewise.
17179
17180         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
17181
17182 2012-07-31  David S. Miller  <davem@davemloft.net>
17183
17184         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17185
17186 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
17187
17188         [BZ #13629]
17189         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
17190         value between 1.0 and 2.0 and smaller part has absolute value less
17191         than 1.0.
17192         * math/s_clog10.c (__clog10): Likewise.
17193         * math/s_clog10f.c (__clog10f): Likewise.
17194         * math/s_clog10l.c (__clog10l): Likewise.
17195         * math/s_clogf.c (__clogf): Likewise.
17196         * math/s_clogl.c (__clogl): Likewise.
17197         * math/libm-test.inc (clog_test): Add more tests.
17198         (clog10_test): Likewise.
17199         * sysdeps/i386/fpu/libm-test-ulps: Update.
17200         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17201
17202 2012-07-31  Florian Weimer  <fweimer@redhat.com>
17203
17204         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
17205         Exit with zero in case no suitable GID is found, and write a
17206         message to standard error.
17207
17208 2012-07-30  Roland McGrath  <roland@hack.frob.com>
17209
17210         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
17211         rather than to 1.
17212         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
17213         (MAXPATHLEN): Removed.
17214         (NOGROUP, NODEV): New macros.
17215         (setbit, clrbit, isset, isclr): New macros.
17216         (howmany, roundup, powerof2): New macros.
17217         (DEV_BSIZE): New macro.
17218
17219         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
17220         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
17221
17222         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
17223         definition on [!__NO_LONG_DOUBLE_MATH].
17224
17225         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
17226         PTR_MANGLE and PTR_DEMANGLE.
17227
17228         * socket/accept4.c (accept4): Rename to __libc_accept4.
17229         Define accept4 as a weak alias.
17230
17231         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
17232         on [_DIRENT_HAVE_D_TYPE].
17233         * io/ftw.c (ftw_dir): Likewise.
17234
17235         * io/xmknod.c (__xmknod): Don't check PATH for being null.
17236
17237         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
17238
17239         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
17240         Use the BSD numbers rather than the arbitrary ones we had.
17241         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
17242         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
17243         (SIGXCPU, SIGXFSZ): New macros.
17244         (_NSIG): Now 32.
17245
17246         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
17247         initializer on [_LIBC_REENTRANT].
17248
17249         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
17250         definitions inside [_POSIX_MAPPED_FILES].
17251
17252         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
17253
17254         * dirent/opendir.c: Include <fcntl.h>.
17255
17256         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
17257         (__libc_getspecific): Likewise.
17258         (__libc_key_create): Likewise.
17259
17260         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
17261         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
17262         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
17263         (tmpfile64): Define as alias.
17264         * sysdeps/wordsize-64/tmpfile.c: File removed.
17265         * sysdeps/wordsize-64/tmpfile64.c: File removed.
17266         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
17267         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
17268
17269         * stdio-common/vfscanf.c: Include <stdbool.h>.
17270         * nss/makedb.c: Likewise.
17271         * stdio-common/_i18n_number.h: Likewise.
17272         * argp/argp-help.c: Likewise.
17273         * posix/wordexp.c: Likewise.
17274         * sysdeps/posix/spawni.c: Likewise.
17275         * nss/nss_files/files-initgroups.c: Likewise.
17276         * stdio-common/reg-modifier.c: Include <stdlib.h>.
17277         * nss/nss_files/files-initgroups.c: Likewise.
17278         * nss/nss_db/db-netgrp.c: Likewise.
17279         * nss/nss_db/db-initgroups.c: Likewise.
17280         * io/fchmodat.c: Include <sys/stat.h>.
17281
17282         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
17283         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
17284
17285         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
17286         [HAVE_MMAP].
17287
17288         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
17289         Add multiple inclusion protection.
17290
17291 2012-07-27  David S. Miller  <davem@davemloft.net>
17292
17293         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17294
17295 2012-07-27  Gary Benson  <gbenson@redhat.com>
17296
17297         [BZ #14298]
17298         * elf/rtld.c: Include <stap-probe.h>.
17299         (dl_main): Added static probes "init_start" and "init_complete".
17300         * elf/dl-load.c: Include <stap-probe.h>.
17301         (lose): Take new parameter "nsid".
17302         Added static probe "map_failed".
17303         (_dl_map_object_from_fd): Pass namespace id to lose.
17304         Added static probe "map_start".
17305         (open_verify): Pass namespace id to lose.
17306         * elf/dl-open.c: Include <stap-probe.h>.
17307         (dl_open_worker) Added static probes "map_complete", "reloc_start"
17308         and "reloc_complete".
17309         * elf/dl-close.c: Include <stap-probe.h>.
17310         (_dl_close_worker): Added static probes "unmap_start" and
17311         "unmap_complete".
17312         * elf/rtld-debugger-interface.txt: New file documenting the above.
17313
17314 2012-07-26  Roland McGrath  <roland@hack.frob.com>
17315
17316         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
17317         rather than a string variable.
17318         * sunrpc/rpc_main.c (h_output): Likewise.
17319         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
17320
17321 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
17322
17323         * inet/check_native.c: New file.
17324
17325 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
17326
17327         [BZ #13629]
17328         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
17329         if larger part has absolute value 1.0.
17330         * math/s_clog10.c (__clog10): Likewise.
17331         * math/s_clog10f.c (__clog10f): Likewise.
17332         * math/s_clog10l.c (__clog10l): Likewise.
17333         * math/s_clogf.c (__clogf): Likewise.
17334         * math/s_clogl.c (__clogl): Likewise.
17335         * math/libm-test.inc (clog_test): Add more tests.
17336         (clog10_test): Likewise.
17337         * sysdeps/i386/fpu/libm-test-ulps: Update.
17338         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17339
17340         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
17341         (pltexit): Likewise.
17342         (La_regs): Likewise.
17343         (La_retval): Likewise.
17344         (int_retval): Likewise.
17345         Update #error for removed macros to refer only to definitions in
17346         tst-audit.h.
17347         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
17348         macro.
17349         (pltexit): Likewise.
17350         (La_regs): Likewise.
17351         (La_retval): Likewise.
17352         (int_retval): Likewise.
17353         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
17354         macro.
17355         (pltexit): Likewise.
17356         (La_regs): Likewise.
17357         (La_retval): Likewise.
17358         (int_retval): Likewise.
17359         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
17360         macro.
17361         (pltexit): Likewise.
17362         (La_regs): Likewise.
17363         (La_retval): Likewise.
17364         (int_retval): Likewise.
17365         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
17366         macro.
17367         (pltexit): Likewise.
17368         (La_regs): Likewise.
17369         (La_retval): Likewise.
17370         (int_retval): Likewise.
17371         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
17372         macro.
17373         (pltexit): Likewise.
17374         (La_regs): Likewise.
17375         (La_retval): Likewise.
17376         (int_retval): Likewise.
17377         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
17378         macro.
17379         (pltexit): Likewise.
17380         (La_regs): Likewise.
17381         (La_retval): Likewise.
17382         (int_retval): Likewise.
17383         * sysdeps/generic/tst-audit.h: Update comment to refer only to
17384         macro definitions in tst-audit.h.
17385         * sysdeps/i386/tst-audit.h: New file.
17386         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
17387         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
17388         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
17389         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
17390         * sysdeps/sh/tst-audit.h: Likewise.
17391         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
17392         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
17393         * sysdeps/x86_64/tst-audit.h: Likewise.
17394
17395 2012-07-26  Andreas Jaeger  <aj@suse.de>
17396
17397         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
17398         ptrace.
17399
17400         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
17401         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
17402         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
17403         PTRACE_O_MASK.
17404         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
17405         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
17406         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
17407
17408         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
17409         value.
17410
17411         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
17412         _sigsys.
17413         (si_call_addr, si_syscall, si_arch): Define new macro.
17414         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
17415         _sigsys.
17416         (si_call_addr, si_syscall, si_arch): Define new marcro.
17417         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
17418         _sigsys.
17419         (si_call_addr, si_syscall, si_arch): Define new macro.
17420         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
17421         _sigsys.
17422         (si_call_addr, si_syscall, si_arch): Define new macro.
17423
17424 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
17425
17426         [BZ #13717]
17427         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
17428         Change to 2.4.21 where previously 2.4.1.
17429         * sysdeps/unix/sysv/linux/configure: Regenerated.
17430         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
17431         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
17432         Linux kernel version.
17433         (__ASSUME_STD_AUXV): Remove.
17434         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
17435         kernel version.
17436         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
17437         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
17438         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
17439         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
17440         (__ASSUME_NETLINK_SUPPORT): Likewise.
17441         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
17442         (__no_netlink_support): Remove conditional definition.
17443         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
17444         Remove.
17445         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
17446         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
17447         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
17448         (if_nameindex_ioctl): Remove.
17449         (if_nameindex_netlink): Do not handle __no_netlink_support.
17450         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
17451         code.
17452         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
17453         Remove conditional code.
17454         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
17455         code.
17456         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
17457         unconditional.
17458         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
17459         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
17460         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
17461         Remove.
17462         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
17463         [!__ASSUME_STD_AUXV]: Remove conditional code.
17464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
17465         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
17466         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
17467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
17468         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
17469         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
17470         code.
17471         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
17472         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
17473         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
17474         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
17475         conditional code.
17476         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
17477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
17478         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
17479         code.
17480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
17481         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
17482         conditional code.
17483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
17484         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
17485         code unconditional.
17486         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17487         conditional code.
17488         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
17489         unconditional.
17490         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17491         conditional code.
17492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
17493         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
17494         unconditional.
17495         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17496         conditional code.
17497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
17498         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
17499         code unconditional.
17500         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17501         conditional code.
17502         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
17503         unconditional.
17504         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17505         conditional code.
17506         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
17507         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
17508         code unconditional.
17509         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17510         conditional code.
17511         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
17512         unconditional.
17513         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
17514         conditional code.
17515
17516 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
17517
17518         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
17519         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
17520         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
17521         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
17522         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
17523         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
17524         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
17525         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
17526         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
17527         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
17528         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
17529         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
17530         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
17531         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
17532         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
17533         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
17534         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
17535         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
17536         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
17537         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
17538         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
17539         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
17540         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
17541
17542 2012-07-25  Florian Weimer  <fweimer@redhat.com>
17543
17544         * Versions.def: Add GLIBC_2.17.
17545         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
17546         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
17547         Introduce __libc_secure_getenv.
17548         * stdlib/Versions (2.17): Add secure_getenv
17549         (GLIBC_PRIVATE): Add __libc_secure_getenv.
17550         * stdlib/secure-getenv.c: Rename __secure_getenv to
17551         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
17552         symbol __secure_getenv for GLIBC_2.0.
17553         * stdlib/tst-secure-getenv.c: New.
17554         * stdlib/Makefile (tests): Add testcase.
17555         * manual/startup.texi (Environment Access): Document
17556         secure_getenv.
17557         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
17558         __libc_secure_getenv.
17559         * inet/ruserpass.c (ruserpass): Likewise.
17560         * malloc/mtrace.c (mtrace): Likewise.
17561         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
17562         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
17563         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
17564         * sysdeps/posix/tempname.c: Likewise.  Evaluate
17565         HAVE_SECURE_GETENV.
17566         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
17567         __secure_getenv to __libc_secure_getenv.
17568         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
17569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17570         Likewise.
17571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
17572         Likewise.
17573         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
17574         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
17575         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
17576         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
17577         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
17578         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
17579         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
17580
17581 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
17582
17583         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
17584         (struct La_i86_retval): Likewise.
17585         (struct La_x86_64_regs): Likewise.
17586         (struct La_x86_64_retval): Likewise.
17587         (struct La_x32_regs): Likewise.
17588         (struct La_x32_retval): Likewise.
17589         (struct La_ppc32_regs): Likewise.
17590         (struct La_ppc32_retval): Likewise.
17591         (struct La_ppc64_regs): Likewise.
17592         (struct La_ppc64_retval): Likewise.
17593         (struct La_sh_regs): Likewise.
17594         (struct La_sh_retval): Likewise.
17595         (struct La_s390_32_regs): Likewise.
17596         (struct La_s390_32_retval): Likewise.
17597         (struct La_s390_64_regs): Likewise.
17598         (struct La_s390_64_retval): Likewise.
17599         (struct La_sparc32_regs): Likewise.
17600         (struct La_sparc32_retval): Likewise.
17601         (struct La_sparc64_regs): Likewise.
17602         (struct La_sparc64_retval): Likewise.
17603         (struct audit_ifaces): Remove architecture-specific pltenter and
17604         pltexit members.
17605         * sysdeps/i386/ldsodefs.h: New file.
17606         * sysdeps/powerpc/ldsodefs.h: Likewise.
17607         * sysdeps/s390/ldsodefs.h: Likewise.
17608         * sysdeps/sh/ldsodefs.h: Likewise.
17609         * sysdeps/sparc/ldsodefs.h: Likewise.
17610         * sysdeps/x86_64/ldsodefs.h: Likewise.
17611
17612 2012-07-25  Marek Polacek  <polacek@redhat.com>
17613
17614         [BZ #6808]
17615         * math/libm-test.inc (yn_test): Add another test.
17616         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
17617         to ERANGE when the result is +-Inf.
17618         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
17619         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
17620         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
17621         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
17622
17623 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
17624
17625         * conform/data/time.h-data (NULL): Use macro-constant.  Require
17626         equal to 0.
17627         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
17628         clock_t.
17629         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
17630
17631 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
17632
17633         * configure.in <sysdeps resolving>: Correct printing
17634         Implies_before.
17635         * configure: Regenerate.
17636
17637 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
17638
17639         * math/w_ilogb.c: Include <limits.h>.
17640         * math/w_ilogbl.c: Likewise.
17641
17642 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
17643
17644         * manual/lang.texi (__va_copy): Document primarily as ISO C99
17645         va_copy.  Document allowing for unavailable va_copy only as
17646         pre-C99 compatibility.
17647         * manual/string.texi (Copying and Concatenation): Use va_copy
17648         instead of __va_copy in concat example.
17649
17650 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
17651
17652         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
17653         (__sendto): Use create_address_port.  Initialize APORT and deallocate
17654         it if not null.
17655
17656         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
17657         with O_NOLINK passed to __file_name_lookup.
17658
17659         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
17660         with O_NOLINK passed to __file_name_lookup.
17661
17662         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
17663         negative N or less than NGIDS.
17664
17665         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
17666         type to string_t.  Set ERANGE as errno and return it if NAME is not big
17667         enough.  Use memcpy instead of strncpy.
17668
17669 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
17670
17671         * elf/Makefile (check-data): Remove.
17672         (localplt.data): New vpath directive.
17673         ($(objpfx)check-localplt.out): Use localplt.data from vpath
17674         instead of $(check-data).
17675         * scripts/data/localplt-generic.data: Move to ...
17676         * sysdeps/generic/localplt.data: ... here.
17677         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
17678         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
17679         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
17680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
17681         ... here.
17682         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
17683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
17684         ... here.
17685         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
17686         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
17687         ... here.
17688         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
17689         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
17690         ... here.
17691         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
17692         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
17693         ... here.
17694         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
17695         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
17696         ... here.
17697
17698 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17699
17700         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
17701         PPC32 and PPC64 files.
17702         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
17703         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
17704
17705 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17706
17707         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
17708         __makecontext_ret to ...
17709         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
17710         ... here and call exit if uc_link is NULL.  New file.
17711         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
17712         __makecontext_ret.S.
17713         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
17714         __makecontext_ret to ...
17715         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
17716         ... here and call exit if uc_link is NULL.  New file.
17717         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
17718         __makecontext_ret.S.
17719
17720 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17721
17722         * elf/elf.h (R_390_IRELATIVE): New definition.
17723         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
17724         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
17725         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
17726         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
17727         (elf_machine_lazy_rel): Likewise.
17728         * sysdeps/s390/dl-irel.h: New file.
17729         * sysdeps/s390/s390-64/memcpy.S: New asm code.
17730         * sysdeps/s390/s390-64/memset.S: New asm code.
17731         * sysdeps/s390/s390-64/memcmp.S: New asm code.
17732         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
17733         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
17734         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
17735         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
17736         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
17737         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
17738         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
17739         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
17740         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
17741         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
17742         * sysdeps/s390/s390-32/memcpy.S: New asm code.
17743         * sysdeps/s390/s390-32/memset.S: New asm code.
17744         * sysdeps/s390/s390-32/memcmp.S: New asm code.
17745
17746 2012-07-17  Marek Polacek  <polacek@redhat.com>
17747
17748         [BZ #14349]
17749         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
17750         * sysdeps/s390/s390-64/configure.in: Likewise.
17751         * sysdeps/sparc/configure.in: Likewise.
17752         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
17753         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
17754         * sysdeps/i386/configure.in: Likewise.
17755         * sysdeps/x86_64/configure.in: Likewise.
17756         * sysdeps/sh/configure.in: Likewise.
17757         * sysdeps/s390/s390-32/configure: Regenerated.
17758         * sysdeps/s390/s390-64/configure: Likewise.
17759         * sysdeps/x86_64/configure: Likewise.
17760         * sysdeps/sh/configure: Likewise.
17761         * sysdeps/powerpc/powerpc64/configure: Likewise.
17762         * sysdeps/powerpc/powerpc32/configure: Likewise.
17763         * sysdeps/sparc/configure: Likwise.
17764         * sysdeps/i386/configure: Likewise.
17765
17766         * elf/dl-open.c: Comment fixes.
17767
17768 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
17769
17770         * Makefile [CXX] (check-data): Remove.
17771         [CXX] (c++-types.data): New vpath directive.
17772         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
17773         vpath.  Do not allow for C++ type data being missing.
17774         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
17775         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
17776         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
17777         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
17778         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
17779         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
17780         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
17781         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
17782         ... here.
17783         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
17784         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
17785         ... here.
17786         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
17787         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
17788         ... here.
17789         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
17790         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
17791         ... here.
17792         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
17793         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
17794         ... here.
17795         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
17796         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
17797         ... here.
17798         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
17799         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
17800         ... here.
17801         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
17802         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
17803
17804         * elf/tls-macros.h (TLS_LE): Move architecture-specific
17805         definitions to architecture-specific files.
17806         (TLS_IE): Likewise.
17807         (TLS_LD): Likewise.
17808         (TLS_GD): Likewise.
17809         * sysdeps/i386/tls-macros.h: New file.
17810         * sysdeps/powerpc/tls-macros.h: Likewise.
17811         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
17812         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
17813         * sysdeps/sh/tls-macros.h: Likewise.
17814         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
17815         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
17816         * sysdeps/x86_64/tls-macros.h: Likewise.
17817
17818 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
17819
17820         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
17821         zero value for regular exit case.
17822
17823         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
17824         (__start_context): Preserve zero value for regular exit case.
17825
17826 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
17827             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17828
17829         * manual/setjmp.texi (setcontext): Clarify normal process
17830         termination when uc_link is the null pointer.
17831         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
17832         exit call.
17833
17834 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
17835
17836         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
17837         preprocessor.  Test for each exception mask separately.
17838
17839 2012-07-16  Andreas Jaeger  <aj@suse.de>
17840
17841         * po/ru.po: Update from translation team.
17842
17843 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
17844
17845         * conform/data/string.h-data (NULL): Use macro-constant.  Require
17846         equal to 0.
17847         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
17848         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
17849         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
17850         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
17851         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17852
17853 2012-07-13  Andreas Jaeger  <aj@suse.de>
17854
17855         * po/fr.po: Update from translation team.
17856
17857 2012-07-12  Marek Polacek  <polacek@redhat.com>
17858
17859         [BZ #14173]
17860         * math/libm-test.inc (yn_test): Add test for BZ #14173.
17861         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
17862         loop condition.
17863
17864 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
17865
17866         [BZ #13717]
17867         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
17868         Change to 2.4.1 where previously 2.4.0.
17869         * sysdeps/unix/sysv/linux/configure: Regenerated.
17870         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
17871         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
17872         version.
17873         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
17874         (__ASSUME_AT_CLKTCK): Remove.
17875         (__ASSUME_AT_PAGESIZE): Likewise.
17876         (__ASSUME_AT_XID): Likewise.
17877         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
17878         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
17879         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
17880         unconditionally.
17881         (HAVE_AUX_PAGESIZE): Likewise.
17882         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
17883         [__ASSUME_AT_CLKTCK]: Make code unconditional.
17884         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
17885
17886 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
17887
17888         [BZ #14307]
17889         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
17890         the temporary buffer used to invoke __gethostbyname2_r,
17891         __gethostbyaddr_r and gethostbyname4_r to make room for struct
17892         host_data / struct gaih_addrtuple.
17893         * resolv/nss_dns/dns-host.c (global scope): Move definition of
17894         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
17895         header file nss/nsswitch.h.
17896         * nss/nsswitch.h (global scope): Add definition of implementation
17897         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
17898         resolv/nss_dns/dns-host.c).
17899
17900 2012-07-11  Andreas Jaeger  <aj@suse.de>
17901
17902         * po/fr.po: Update from translation team.
17903
17904         * po/sv.po: Update from translation team
17905         * po/fr.po: Another update from translation team.
17906
17907 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17908
17909         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
17910         for subnormals or multiply small sinh result by itself.
17911         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17912         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17913
17914 2012-07-11  David S. Miller  <davem@davemloft.net>
17915
17916         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17917
17918 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
17919
17920         [BZ #14347]
17921         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
17922         (INTERNAL_MARK): Shift it here.
17923
17924 2012-07-10  Marek Polacek  <polacek@redhat.com>
17925
17926         [BZ #14151]
17927         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
17928         libc_cv_asm_global_directive with .globl.
17929         * configure: Regenerated.
17930         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
17931         with .globl.
17932         * sysdeps/i386/configure: Regenerated.
17933         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
17934         with .globl.
17935         * sysdeps/x86_64/configure: Regenerated.
17936         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
17937         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
17938         * elf/tst-unique2mod2.c: Likewise.
17939         * elf/tst-unique2mod1.c: Likewise.
17940         * elf/tst-unique1mod2.c: Likewise.
17941         * elf/tst-unique1mod1.c: Likewise.
17942         * sysdeps/s390/s390-32/sysdep.h: Likewise.
17943         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
17944         * sysdeps/s390/s390-64/sysdep.h: Likewise.
17945         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
17946         * sysdeps/mach/sysdep.h: Likewise.
17947         * sysdeps/i386/sysdep.h: Likewise.
17948         * sysdeps/i386/i386-mcount.S: Likewise.
17949         * sysdeps/x86_64/_mcount.S: Likewise.
17950         * sysdeps/x86_64/sysdep.h: Likewise.
17951         * sysdeps/sh/_mcount.S: Likewise.
17952         * sysdeps/sh/sysdep.h: Likewise.
17953         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
17954         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
17955         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
17956         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
17957         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
17958         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
17959         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
17960         * locale/localeinfo.h: Likewise.
17961         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
17962         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
17963
17964 2012-07-09  Roland McGrath  <roland@hack.frob.com>
17965
17966         [BZ #14336]
17967         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
17968         system".
17969         * manual/message.texi (The Uniforum approach): Likewise.
17970         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
17971         (glibc iconv Implementation): Likewise.
17972
17973 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
17974
17975         [BZ #14337]
17976         * math/s_clog.c (__clog): Avoid scaling a value down where that
17977         could result in underflow.
17978         * math/s_clog10.c (__clog10): Likewise.
17979         * math/s_clog10f.c (__clog10f): Likewise.
17980         * math/s_clog10l.c (__clog10l): Likewise.
17981         * math/s_clogf.c (__clogf): Likewise.
17982         * math/s_clogl.c (__clogl): Likewise.
17983         * math/libm-test.inc (clog_test): Add more tests.
17984         (clog10_test): Likewise.
17985         * sysdeps/i386/fpu/libm-test-ulps: Update.
17986         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17987
17988 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
17989
17990         [BZ #14283]
17991         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
17992         by 7 not 8 to examine high bit of fractional part.
17993
17994         [BZ #14042]
17995         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
17996         for call to __mcount_internal.
17997         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
17998         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
17999         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
18000
18001 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
18002
18003         [BZ #14154]
18004         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
18005         approximation for values within 0x1p-13f of an odd multiple of
18006         pi/4.
18007         * math/libm-test.inc (tan_test): Do not allow spurious underflow
18008         exception.  Add more tests.
18009         * sysdeps/i386/fpu/libm-test-ulps: Update.
18010
18011         [BZ #6778]
18012         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
18013         inputs and return -1 for them.  Do not check for +Inf in case not
18014         reachable for +Inf.
18015         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
18016         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
18017         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
18018         and return -1 for them.  Do not check for +Inf in case not
18019         reachable for +Inf.
18020         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
18021         define.
18022         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
18023         and return -1 for them.  Do not check for +Inf in case not
18024         reachable for +Inf.
18025         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
18026         spurious underflow.
18027         * sysdeps/i386/fpu/libm-test-ulps: Update.
18028         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18029
18030 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
18031
18032         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
18033
18034 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
18035
18036         [BZ #14157]
18037         [BZ #14331]
18038         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
18039         could result in spurious underflow.  Scale down values above
18040         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
18041         * math/s_csqrtf.c (__csqrtf): Likewise.
18042         * math/s_csqrtl.c (__csqrtl): Likewise.
18043         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
18044         spurious underflow.
18045         * sysdeps/i386/fpu/libm-test-ulps: Update.
18046         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18047
18048 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
18049
18050         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
18051         xopen-msg.sed.
18052         * catgets/xopen-msg.awk: New file.
18053         * catgets/xopen-msg.sed: Removed.
18054
18055         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
18056         po2text.sed.
18057         * intl/po2test.awk: New file.
18058         * intl/po2test.sed: Removed.
18059
18060 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
18061
18062         [BZ #14328]
18063         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
18064         or multiply small sinh result by itself.
18065         * math/s_ctanf.c (__ctanf): Likewise.
18066         * math/s_ctanh.c (__ctanh): Likewise.
18067         * math/s_ctanhf.c (__ctanhf): Likewise.
18068         * math/s_ctanhl.c (__ctanhl): Likewise.
18069         * math/s_ctanl.c (__ctanl): Likewise.
18070         * math/libm-test.inc (ctan_test_tonearest): New function.
18071         (ctan_test_towardzero): Likewise.
18072         (ctan_test_downward): Likewise.
18073         (ctan_test_upward): Likewise.
18074         (ctanh_test_tonearest): Likewise.
18075         (ctanh_test_towardzero): Likewise.
18076         (ctanh_test_downward): Likewise.
18077         (ctanh_test_upward): Likewise.
18078         (main): Call these new functions.
18079         * sysdeps/i386/fpu/libm-test-ulps: Update.
18080         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18081
18082 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
18083
18084         * .gitignore: Delete /ports entry.
18085
18086 2012-07-03  Andreas Jaeger  <aj@suse.de>
18087
18088         * po/bg.po: Update from translation team.
18089         * po/cs.po: Likewise.
18090         * po/de.po: Likewise.
18091         * po/hr.po: Likewise.
18092         * po/nl.pl: Likewise.
18093         * po/pl.po: Likewise.
18094         * po/vi.po: Likewise.
18095
18096 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
18097
18098         * Makeconfig [!+link] (+link-before-libc): New variable.
18099         [!+link] (+link-after-libc): Likewise.
18100         [!+link] (+link-tests): Likewise.
18101         [!+link] (+link): Define in terms of $(+link-before-libc) and
18102         $(+link-after-libc).
18103         [!+link-static] (+link-static-before-libc): New variable.
18104         [!+link-static] (+link-static-after-libc): Likewise.
18105         [!+link-static] (+link-static-tests): Likewise.
18106         [!+link-static] (+link-static): Define in terms of
18107         $(+link-static-before-libc) and $(+link-static-after-libc).
18108         [build-shared] (link-libc-before-gnulib): New variable.
18109         [build-shared] (link-libc-tests): Likewise.
18110         [build-shared] (link-libc): Define in terms of
18111         $(link-libc-before-gnulib).
18112         [!build-shared] (link-libc-tests): New variable.
18113         (link-libc-static-tests): New variable.
18114         [!gnulib] (gnulib-arch): New variable.
18115         [!gnulib] (gnulib-tests): Likewise.
18116         [!gnulib] (static-gnulib-arch): Likewise.
18117         [!gnulib] (static-gnulib-tests): Likewise.
18118         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
18119         Define with "=" instead of ":=".
18120         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
18121         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
18122         * Rules (binaries-all-notests): New variable.
18123         (binaries-all-tests): Likewise.
18124         (binaries-static-notests): Likewise.
18125         (binaries-static-tests): Likewise.
18126         (binaries-all): Define using $(binaries-all-notests) and
18127         $(binaries-all-tests).
18128         (binaries-static): Define using $(binaries-static-notests) and
18129         $(binaries-static-tests).
18130         (binaries-shared-tests): New variable.
18131         (binaries-shared-notests): Likewise.
18132         (binaries-shared): Remove variable.
18133         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
18134         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
18135         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
18136         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
18137         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
18138         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
18139         * elf/Makefile (sln-modules): New variable.
18140         (extra-objs): Add $(sln-modules:=.o).
18141         (ldconfig-modules): Add static-stubs.
18142         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
18143         * elf/static-stubs.c: New file.
18144
18145         [BZ #14283]
18146         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
18147         by 7 not 8 to examine high bit of fractional part.  Use volatile
18148         variables when splitting into final array of floats if
18149         __FLT_EVAL_METHOD__ != 0.
18150         * math/libm-test.inc (cos_test): Add another test.
18151         (sin_test): Likewise.
18152         * sysdeps/i386/fpu/libm-test-ulps: Update.
18153
18154         [BZ #14273]
18155         * math/libm-test.inc (cosh_test): Add more tests.
18156
18157         * version.h (RELEASE): Set to "development".
18158         (VERSION): Set to "2.16.90".
18159
18160 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
18161
18162         * NEWS: Update copyright. Remove last-updated date.
18163         Mention math library bug fixes and timezone data changes.
18164         * README: Mention GNU/Hurd, x32, and HPPA support status.
18165
18166 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
18167
18168         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
18169
18170 2012-06-27  Andreas Jaeger  <aj@suse.de>
18171
18172         * manual/contrib.texi (Contributors): Add Samuel Thibault.
18173
18174 2012-06-25  Andreas Jaeger  <aj@suse.de>
18175
18176         * sysdeps/s390/fpu/libm-test-ulps: Update.
18177
18178 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
18179             Thomas Schwinge  <thomas@codesourcery.com>
18180
18181         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
18182         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
18183         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
18184         fanotify_mark.
18185
18186 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
18187
18188         * sysdeps/mach/start.c: Remove file.
18189         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
18190         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
18191         * sysdeps/sh/init-first.c: Likewise.
18192
18193         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
18194         registers for frame unwinding purposes, add CFI directives.
18195         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
18196         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
18197         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
18198         Likewise.
18199
18200         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
18201         __fortify_fail returning.
18202         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
18203
18204         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
18205         sysdeps/sh/____longjmp_chk.S.
18206         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
18207         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
18208         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
18209         (gen-as-const-headers): Append sigaltstack-offsets.sym.
18210
18211         * sysdeps/sh/abort-instr.h: New file.
18212         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
18213         process in case exit returns.
18214
18215         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
18216         initialize the GOT register before use.
18217
18218         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
18219         calculation of ARGC > 4.
18220
18221         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
18222         meaningful names to some local labels.
18223
18224 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18225             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18226
18227         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
18228         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
18229         (__arch_compare_and_exchange_val_16_acq): Likewise.
18230         (__arch_compare_and_exchange_val_32_acq): Likewise.
18231         (atomic_exchange_and_add): Fix gUSA sequence.
18232         (atomic_add): Likewise.
18233         (atomic_add_negative): Likewise.
18234         (atomic_add_zero): Likewise.
18235         (atomic_bit_test_set): Likewise.
18236
18237 2012-06-22  Andreas Schwab  <schwab@redhat.com>
18238
18239         [BZ #13579]
18240         * include/link.h (struct link_map): Add l_free_initfini.
18241         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
18242         l_initfini.
18243         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
18244         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
18245         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
18246         set.
18247
18248 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
18249
18250         * configure.in: Use AC_LANG_SOURCE.
18251         * configure: Regenerate.
18252
18253 2012-06-22  Roland McGrath  <roland@hack.frob.com>
18254
18255         * configure.in (libc_cv_localstatedir): New substituted variable.
18256         * configure: Regenerated.
18257         * config.make.in (localstatedir): New variable, substituted from
18258         libc_cv_localstatedir.
18259         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
18260         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
18261         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
18262         * sysdeps/gnu/configure: Regenerated.
18263
18264 2012-06-21  Jeff Law  <law@redhat.com>
18265
18266         [BZ #14277]
18267         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
18268         free.  Simplify list management for _LIBC case.
18269
18270 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
18271
18272         [BZ #14273]
18273         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
18274         Clear sign bit of 64-bit integer value before comparing against
18275         overflow value.
18276
18277         * sysdeps/mach/configure: Regenerated.
18278
18279 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
18280
18281         [BZ #14278]
18282         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
18283
18284 2012-06-21  Jeff Law  <law@redhat.com>
18285
18286         [BZ #13882]
18287         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
18288         uint16_t for elements in the "seen" array to avoid char overflows.
18289         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18290         * elf/dl-open.c (dl_open_worker): Likewise.
18291
18292 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
18293
18294         * scripts/list-sources.sh: Scan PORTS for translations.
18295         * po/libc.pot: Regenerated.
18296
18297 2012-06-21  Andreas Jaeger  <aj@suse.de>
18298
18299         [BZ #12194]
18300         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
18301         warning.
18302         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
18303         * bits/byteswap-16.h (__bswap_16): Likewise.
18304         * bits/byteswap.h (__bswap_constant_16): Likewise.
18305
18306 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
18307
18308         [BZ #14117]
18309         * sysdeps/i386/fpu_control.h: Removed.
18310         * sysdeps/x86_64/fpu_control.h: Moved to ...
18311         * sysdeps/x86/fpu_control.h: Here.
18312
18313         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
18314         (_FPU_SETCW): Likewise.
18315
18316 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
18317
18318         [BZ #14117]
18319         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
18320         * sysdeps/x86/fpu/bits/mathinline.h: This.
18321         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
18322
18323         [BZ #14050]
18324         [BZ #14117]
18325         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
18326         functions if __x86_64__ is defined.
18327
18328 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
18329
18330         * string/endian.h: Add !__ASSEMBLER__ condition for including
18331         conversion interfaces.
18332
18333 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
18334
18335         [BZ #14241]
18336         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
18337         of ABS(x) in calculating zero to negative powers other than odd
18338         integers.
18339         * math/libm-test.inc (pow_test): Add more tests.
18340
18341 2012-06-15  Andreas Jaeger  <aj@suse.de>
18342
18343         * manual/contrib.texi (Contributors): Update entry of Liubov
18344         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
18345         Machado Filho.
18346
18347 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
18348
18349         * string/string.h: Add __wur to GNU version of strerror_r.
18350
18351 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
18352
18353         [BZ #14229]
18354         * string/Makefile (tests): Add tst-strtok_r.
18355         * string/tst-strtok_r.c: New file.
18356         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
18357         RAX_LP/RDX_LP on SAVE_PTR.
18358
18359 2012-06-14  Roland McGrath  <roland@hack.frob.com>
18360
18361         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
18362
18363 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
18364
18365         * libm_test.inc (csqrt_test): Allow more spurious underflow
18366         exceptions.
18367         (j0_test): Likewise.
18368         (j1_test): Likewise.
18369         (y0_test): Likewise.
18370         (y1_test): Likewise.
18371
18372 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
18373
18374         * po/Makefile (libc.pot): Use UTF-8 charset.
18375
18376 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
18377
18378         [BZ #14210]
18379         Suppress sign-conversion warning from FD_SET.
18380         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
18381         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
18382         not unsigned long int.
18383         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
18384
18385 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
18386
18387         [BZ #14050]
18388         [BZ #14117]
18389         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
18390         __extern_always_inline instead of __extern_inline.
18391         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
18392         (__signbit): Likewise.
18393         (__signbitl): Support C++ namespace.
18394         (lrintf): New inline function.
18395         (lrint): Likewise.
18396         (llrintf): Likewise.
18397         (llrint): Likewise.
18398         (fmaxf): Likewise.
18399         (fmax): Likewise.
18400         (fminf): Likewise.
18401         (fmin): Likewise.
18402         (rint): Likewise.
18403         (rintf): Likewise.
18404         (ceil): Likewise.
18405         (ceilf): Likewise.
18406         (floor): Likewise.
18407         (floorf): Likewise.
18408         (nearbyint): Likewise.
18409         (nearbyintf): Likewise.
18410
18411 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
18412
18413         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
18414         non-default versions.
18415
18416 2012-06-11  Roland McGrath  <roland@hack.frob.com>
18417
18418         [BZ #14218]
18419         * manual/argp.texi (Argp): Reword argp_parse description slightly.
18420
18421 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
18422
18423         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
18424         (FE_UPWARD, FE_DOWNWARD): Don't define.
18425         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
18426         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
18427
18428         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
18429         reading it.
18430         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
18431         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18432
18433 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18434
18435         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
18436         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
18437         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
18438         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
18439
18440 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
18441
18442         [BZ #14117]
18443         * sysdeps/i386/fpu/bits/fenv.h: Removed.
18444         * sysdeps/i386/fpu/Implies: New file.
18445         * sysdeps/x86_64/fpu/Implies: Likewise.
18446         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
18447         * sysdeps/x86/fpu/bits/fenv.h: This.
18448
18449         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
18450         __SSE_MATH__.
18451
18452 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
18453
18454         [BZ #14134]
18455         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
18456         character 0xffff that matches the last element of the
18457         conversion table.
18458
18459 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18460
18461         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
18462         fmodl commit.
18463
18464 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18465
18466         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
18467         values higher than 25.6283.
18468
18469 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18470
18471         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
18472         subnormal exponent extraction and add some __builtin_expect.
18473         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
18474         Fix for subnormal mantissa calculation.
18475
18476 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
18477
18478         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
18479         cpu2 is -1 and errno is not ENOSYS.
18480
18481 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
18482
18483         [BZ #14117]
18484         * sysdeps/i386/i486/bits/string.h: Renamed to ...
18485         * sysdeps/x86/bits/string.h: This.
18486         * sysdeps/x86_64/bits/string.h: Removed.
18487
18488         * sysdeps/i386/i486/bits/string.h: Define inline functions only
18489         if not compiling for x86-64, but compiling for >= i486.
18490
18491         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
18492         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
18493
18494         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
18495         New macro from Linux kernel 3.4.0.
18496         (FP_XSTATE_MAGIC2): Likewise.
18497         (FP_XSTATE_MAGIC2_SIZE): Likewise.
18498         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
18499         (struct _fpx_sw_bytes): New struct.
18500         (struct _xsave_hdr): Likewise.
18501         (struct _ymmh_state): Likewise.
18502         (struct _xstate): Likewise.
18503
18504         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
18505         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
18506         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
18507         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
18508         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
18509         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
18510
18511         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
18512         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
18513         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
18514         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
18515         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
18516         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
18517
18518 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18519
18520         [BZ #13743]
18521         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
18522         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
18523         (sysdep_headers): Include sys/platform/ppc.h.
18524         * sysdeps/powerpc/test-gettimebase.c: Test for
18525         __ppc_get_timebase() to catch future ISA opcode/insn changes.
18526         * manual/Makefile (appendices): Include platform.texi.
18527         * manual/contrib.texi (Contributors): Update @node pointers.
18528         * manual/maint.texi (Maintenance): Likewise.
18529         (Platform): New node.
18530         * manual/platform.texi: New file.  Document the new features.
18531
18532 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
18533             Jakub Jelinek  <jakub@redhat.com>
18534
18535         [BZ #14188]
18536         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
18537         where __builtin_expect is unavailable.
18538
18539 2012-06-03  David S. Miller  <davem@davemloft.net>
18540
18541         * stdlib/longlong.h: Updated from GCC.
18542
18543 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
18544
18545         [BZ #14042]
18546         * sysdeps/powerpc/powerpc32/mcount.c: New file.
18547         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
18548         __mcount_internal.
18549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
18550         (GLIBC_2.16): Likewise.
18551
18552 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
18553
18554         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
18555
18556 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
18557
18558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
18559         (default-abi): New variable.
18560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
18561         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
18562         variable.
18563         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
18564         Likewise.
18565         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
18566         Likewise.
18567         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
18568         Likewise.
18569
18570         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
18571         definition.  Document in comment.
18572
18573 2012-06-01  David S. Miller  <davem@davemloft.net>
18574
18575         * stdlib/longlong.h: Updated from GCC.
18576
18577 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
18578
18579         [BZ #14117]
18580         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
18581         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
18582         sys/debugreg.h sys/io.h here.
18583         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
18584         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
18585         sys/io.h.
18586         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
18587         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
18588         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
18589         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
18590         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
18591         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
18592
18593         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
18594         Define only if __x86_64__ is defined.
18595
18596 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
18597
18598         [BZ #14048]
18599         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
18600         Use int64_t for variable i.
18601         * math/libm-test.inc (fmod_test): Add more tests.
18602
18603         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
18604         z computation is not scheduled after fetestexcept.
18605         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
18606         Use math_force_eval instead of asm to ensure calculation scheduled
18607         before exception test.
18608         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
18609         Ensure a1 + u.d computation is not scheduled after fetestexcept.
18610
18611 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
18612
18613         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
18614         computation is not scheduled after fetestexcept.
18615
18616 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
18617
18618         [BZ #14117]
18619         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
18620         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
18621
18622 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18623
18624         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
18625         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
18626
18627 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
18628
18629         [BZ #14117]
18630         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
18631         <bits/wordsize.h>.
18632         (__WCHAR_MIN): Support __WORDSIZE == 64.
18633         (__WCHAR_MAX): Likewise.
18634
18635         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
18636         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
18637
18638         [BZ #14183]
18639         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
18640         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
18641
18642         [BZ #14117]
18643         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
18644         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
18645
18646         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
18647         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
18648
18649         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
18650         Defined to 1 if __x86_64__ isn't defined.
18651         (_STAT_VER_LINUX_OLD): New.
18652         (st_atime): Remove duplicate.
18653         (st_mtime): Likewise.
18654         (st_ctime): Likewise.
18655
18656 2012-05-31  David S. Miller  <davem@davemloft.net>
18657
18658         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
18659         entries.
18660
18661 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
18662
18663         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
18664         gen-libm-test.pl.
18665
18666         [BZ #14132]
18667         * elf/dl-reloc.c: Include <_itoa.h>.
18668         (_dl_reloc_bad_type): Remove use of INTUSE.
18669         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
18670         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
18671         * stdio-common/psiginfo.c (psiginfo): Likewise.
18672         * stdio-common/psignal.c (psignal): Likewise.
18673         * string/strsignal.c (strsignal): Likewise.
18674         * include/signal.h (_sys_siglist): Declare hidden proto.
18675         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
18676         INTVARDEF with libc_hidden_data_def.
18677         * stdio-common/itoa-udigits.c: Likewise.
18678         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
18679         (_itoa_lower_digits_internal): Remove declaration.
18680         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
18681         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
18682         (_sys_sigabbrev_internal): Remove aliases.
18683         (_sys_siglist): Define hidden alias.
18684
18685 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
18686
18687         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18688         bits/sysctl.h.
18689
18690 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
18691
18692         [BZ #14117]
18693         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
18694         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
18695
18696         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
18697         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
18698         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
18699         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
18700         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
18701         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
18702
18703         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
18704         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
18705         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
18706
18707         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
18708         with __addr.
18709         (insw): Likewise.
18710         (insl): Likewise.
18711         (outsb): Likewise.
18712         (outsw): Likewise.
18713         (outsl): Likewise.
18714
18715         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
18716         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
18717         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
18718
18719         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
18720         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
18721         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
18722         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
18723         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
18724         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
18725
18726         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
18727         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
18728
18729         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
18730         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
18731
18732         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
18733         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
18734         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
18735
18736         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
18737         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
18738         to ...
18739         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
18740
18741         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
18742         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
18743         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
18744
18745         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
18746         for x86-64.
18747         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
18748
18749 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
18750
18751         * math/math.h (M_El): Use two more decimal places.
18752         (M_LOG2El): Likewise.
18753         (M_LOG10El): Likewise.
18754         (M_LN2l): Likewise.
18755         (M_LN10l): Likewise.
18756         (M_PIl): Likewise.
18757         (M_PI_2l): Likewise.
18758         (M_PI_4l): Likewise.
18759         (M_1_PIl): Likewise.
18760         (M_2_PIl): Likewise.
18761         (M_2_SQRTPIl): Likewise.
18762         (M_SQRT2l): Likewise.
18763         (M_SQRT1_2l): Likewise.
18764
18765 2012-05-31  David S. Miller  <davem@davemloft.net>
18766
18767         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
18768         values between float registers.
18769         * sysdeps/sparc/sparc64/memset.S: Likewise.
18770         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
18771
18772 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
18773
18774         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
18775         -D_FORTIFY_SOURCE=1.
18776         (CPPFLAGS-tst-longjmp_chk.c): Define.
18777         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
18778         (CPPFLAGS-tst-longjmp_chk2.c): Define.
18779         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
18780         CFLAGS-tst-wchar-h.c.
18781
18782 2012-05-31  Marek Polacek  <polacek@redhat.com>
18783
18784         [BZ #14132]
18785         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
18786         __endmntent_internal): Remove declaration.
18787         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
18788         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
18789         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
18790
18791 2012-05-30  David S. Miller  <davem@davemloft.net>
18792
18793         * sysdeps/sparc/sparc32/soft-fp/q_util.c
18794         (___Q_simulate_exceptions): Use real FP ops rather than writing
18795         into the %fsr.
18796         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
18797         Likewise.
18798
18799 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18800
18801         [BZ #14117]
18802         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
18803         * sysdeps/x86/bits/xtitypes.h: This.
18804
18805         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
18806         * sysdeps/x86/bits/wordsize.h: This.
18807
18808         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
18809         * sysdeps/x86/bits/huge_vall.h: This.
18810
18811         * sysdeps/i386/bits/select.h: Removed.
18812         * sysdeps/x86_64/bits/select.h: Renamed to ...
18813         * sysdeps/x86/bits/select.h: This.
18814
18815         * sysdeps/i386/bits/setjmp.h: Removed.
18816         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
18817         * sysdeps/x86/bits/setjmp.h: This.
18818
18819         * sysdeps/i386/bits/mathdef.h: Removed.
18820         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
18821         * sysdeps/x86/bits/mathdef.h: This.
18822
18823 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
18824
18825         [BZ #14132]
18826         * include/sys/socket.h (__connect_internal)
18827         (__libc_sa_len_internal): Remove declaration.
18828         (__connect, __libc_sa_len): Declare hidden_proto.
18829         (SA_LEN): Remove use of INTUSE.
18830         * socket/connect.c: Add libc_hidden_def.
18831         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
18832         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
18833         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
18834         alias.
18835         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
18836         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
18837         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
18838         of adding _internal alias.
18839
18840 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18841
18842         [BZ #14117]
18843         * sysdeps/i386/bits/link.h: Removed.
18844         * sysdeps/i386/bits/linkmap.h: Likewise.
18845         * sysdeps/x86_64/bits/link.h: Renamed to ...
18846         * sysdeps/x86/bits/link.h: This.
18847         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
18848         * sysdeps/x86/bits/linkmap.h: This.
18849
18850         * sysdeps/i386/bits/endian.h: Removed.
18851         * sysdeps/x86_64/bits/endian.h: Renamed to ...
18852         * sysdeps/x86/bits/endian.h: This.
18853
18854         * sysdeps/i386/bits/byteswap.h: Removed.
18855         * sysdeps/i386/bits/byteswap-16.h: Likewise.
18856         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
18857         * sysdeps/x86/bits/byteswap.h: This.
18858         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
18859         * sysdeps/x86/bits/byteswap-16.h: This.
18860         * sysdeps/i386/Implies: Add x86.
18861         * sysdeps/x86_64/Implies: Likewise.
18862
18863 2012-05-30  David S. Miller  <davem@davemloft.net>
18864
18865         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
18866         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
18867         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
18868         (FP_TRAPPING_EXCEPTIONS): Define.
18869         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
18870         (FP_TRAPPING_EXCEPTIONS): Define.
18871         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
18872         subnormals only when inexact has been signalled or underflow
18873         exceptions are enabled.
18874         (_FP_PACK_CANONICAL): Likewise.
18875
18876 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18877
18878         [BZ #14183]
18879         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
18880         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
18881
18882 2012-05-30  Richard Henderson  <rth@twiddle.net>
18883
18884         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
18885         with #ifndef NOT_IN_libc.
18886
18887         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
18888         marked to avoid plt entry.
18889
18890 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
18891
18892         [BZ #14112]
18893         * Makeconfig (default-abi): New macro.
18894         (abi-includes): Likewise.
18895         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
18896         $(abi-$(default-abi)-lib-soname) for soname if defined.
18897         ($(common-objpfx)gnu/lib-names.stmp): Generate from
18898         abi-variants.
18899         * Makefile (installed-stubs): Likewise.
18900         * include/stubs-biarch.h: Removed.
18901         * scripts/lib-names.awk: Only handle one library at a time.
18902         * scripts/soversions.awk: Remove WORDSIZE support.
18903         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
18904         entries.
18905         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
18906         Removed.
18907         (syscall-list-default-condition): Likewise.
18908         (syscall-list-default-condition): Likewise.
18909         (syscall-list-includes): Likewise.
18910         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
18911         syscall-list-* with abi-*.  Handle undefined abi-variants.
18912         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
18913         * sysdeps/unix/sysv/linux/i386/Implies: New file.
18914         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
18915         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
18916         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
18917         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
18918         Removed.
18919         (syscall-list-32-options): Likewise.
18920         (syscall-list-32-condition): Likewise.
18921         (syscall-list-64-options): Likewise.
18922         (syscall-list-64-condition): Likewise.
18923         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
18924         macro.
18925         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
18926         Renamed to ...
18927         (abi-*): This.
18928         (abi-64-ld-soname): New macro.
18929         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
18930         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
18931         Renamed to ...
18932         (abi-*): This.
18933         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
18934         * sysdeps/x86_64/x32/shlib-versions: Likewise.
18935
18936 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
18937
18938         * sysdeps/unix/sysv/linux/kernel-features.h
18939         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
18940         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
18941         include <kernel-features.h>.
18942         [!__NR_ftruncate64]: Remove conditional code.
18943         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18944         [__NR_ftruncate64]: Make code unconditional.
18945         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18946         * sysdeps/unix/sysv/linux/truncate64.c: Do not
18947         include <kernel-features.h>.
18948         [!__NR_ftruncate64]: Remove conditional code.
18949         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18950         [__NR_ftruncate64]: Make code unconditional.
18951         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18952         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
18953         include <kernel-features.h>.
18954         [!__NR_ftruncate64]: Remove conditional code.
18955         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18956         [__NR_ftruncate64]: Make code unconditional.
18957         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
18959         include <kernel-features.h>.
18960         [!__NR_ftruncate64]: Remove conditional code.
18961         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18962         [__NR_ftruncate64]: Make code unconditional.
18963         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
18964
18965         * configure.in (libc_cv_fpie): Weaken to a compile test using
18966         LIBC_TRY_CC_OPTION.
18967         * configure: Regenerated.
18968
18969 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18970
18971         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
18972         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
18973         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
18974         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
18975         Refreshed.
18976         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
18977         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
18978         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
18979         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
18980         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
18981         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
18982         Refreshed.
18983
18984 2012-05-27  David S. Miller  <davem@davemloft.net>
18985
18986         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
18987         (___Q_zero): New.
18988         (__Q_simulate_exceptions): Return void.  Change to simulate
18989         exceptions by writing into the %fsr.
18990         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
18991         (__Qp_handle_exceptions): Likewise.
18992         (numbers): Delete.
18993         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
18994         __Qp_handle_exceptions.
18995         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
18996         __Qp_handle_exceptions.
18997         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
18998         as unused and give dummy FP_RND_NEAREST initializer.
18999         (FP_INHIBIT_RESULTS): Define.
19000         (___Q_simulate_exceptions): Update declaration.
19001         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
19002         formatting.
19003         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
19004         as unused and give dummy FP_RND_NEAREST initializer.
19005         (__Qp_handle_exceptions): Update declaration.
19006         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
19007         formatting.
19008
19009 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
19010
19011         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
19012         the temporary FPU control word.
19013         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
19014         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
19015         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
19016         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
19017         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
19018         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
19019         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
19020         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
19021         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
19022         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
19023         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19024
19025 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
19026
19027         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
19028         fields.
19029
19030 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
19031
19032         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
19033         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
19034         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
19035         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
19036         Likewise.
19037         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
19038         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
19039         Likewise.
19040
19041 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
19042
19043         * po/h.po: Update from translation team.
19044
19045 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
19046
19047         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
19048
19049         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
19050         handling of denormals.
19051         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
19052         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
19053         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
19054         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
19055         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
19056         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
19057         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
19058         Likewise.
19059
19060 2012-05-26  Marek Polacek  <polacek@redhat.com>
19061
19062         [BZ #14152]
19063         * math/libm-test.inc (fma_test): Don't always expect underflow
19064         exception.
19065
19066 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19067
19068         [BZ #12416]
19069         * elf/tst-execstack.c: Include stackinfo.h.
19070         (do_test): Adjust test case to ensure that pthread_getattr_np
19071         behaviour remains the same after marking stack executable.
19072
19073 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
19074
19075         * sysdeps/unix/sysv/linux/kernel-features.h
19076         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
19077         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
19078         kernel-features.h.
19079         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
19080         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
19081         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
19082         kernel-features.h.
19083         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
19084         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
19085
19086 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
19087
19088         * configure.in: Define the default includes to being none.
19089         * configure: Regenerated.
19090
19091 2012-05-25  Roland McGrath  <roland@hack.frob.com>
19092
19093         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
19094         * sysdeps/x86_64/setjmp.S: Likewise.
19095         * sysdeps/i386/bsd-setjmp.S: Likewise.
19096         * sysdeps/i386/bsd-_setjmp.S: Likewise.
19097         * sysdeps/i386/setjmp.S: Likewise.
19098         * sysdeps/i386/__longjmp.S: Likewise.
19099         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
19100         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
19101
19102         * include/stap-probe.h: New file.
19103         * configure.in: Handle --enable-systemtap.
19104         * configure: Regenerated.
19105         * config.h.in (USE_STAP_PROBE): New #undef.
19106         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
19107         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
19108         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
19109
19110 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
19111
19112         [BZ #13717]
19113         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
19114         to 2.4.0 where earlier.
19115         * sysdeps/unix/sysv/linux/configure: Regenerated.
19116         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
19117         <kernel-features.h>.
19118         [__ASSUME_32BITUIDS]: Make code unconditional.
19119         [!__ASSUME_32BITUIDS]: Remove conditional code.
19120         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
19121         <kernel-features.h>.
19122         [__ASSUME_32BITUIDS]: Make code unconditional.
19123         [!__ASSUME_32BITUIDS]: Remove conditional code.
19124         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
19125         [__ASSUME_32BITUIDS]: Make code unconditional.
19126         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
19127         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
19128         <kernel-features.h>.
19129         [__ASSUME_32BITUIDS]: Make code unconditional.
19130         [!__ASSUME_32BITUIDS]: Remove conditional code.
19131         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
19132         <kernel-features.h>.
19133         [__ASSUME_32BITUIDS]: Make code unconditional.
19134         [!__ASSUME_32BITUIDS]: Remove conditional code.
19135         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
19136         <kernel-features.h>.
19137         [__ASSUME_32BITUIDS]: Make code unconditional.
19138         [!__ASSUME_32BITUIDS]: Remove conditional code.
19139         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
19140         <kernel-features.h>.
19141         [__ASSUME_32BITUIDS]: Make code unconditional.
19142         [!__ASSUME_32BITUIDS]: Remove conditional code.
19143         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
19144         <kernel-features.h>.
19145         [__ASSUME_32BITUIDS]: Make code unconditional.
19146         [!__ASSUME_32BITUIDS]: Remove conditional code.
19147         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
19148         <kernel-features.h>.
19149         [__ASSUME_32BITUIDS]: Make code unconditional.
19150         [!__ASSUME_32BITUIDS]: Remove conditional code.
19151         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
19152         <kernel-features.h>.
19153         [__ASSUME_32BITUIDS]: Make code unconditional.
19154         [!__ASSUME_32BITUIDS]: Remove conditional code.
19155         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
19156         <kernel-features.h>.
19157         [__ASSUME_32BITUIDS]: Make code unconditional.
19158         [!__ASSUME_32BITUIDS]: Remove conditional code.
19159         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
19160         <kernel-features.h>.
19161         [__ASSUME_32BITUIDS]: Make code unconditional.
19162         [!__ASSUME_32BITUIDS]: Remove conditional code.
19163         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
19164         <kernel-features.h>.
19165         [__ASSUME_32BITUIDS]: Make code unconditional.
19166         [!__ASSUME_32BITUIDS]: Remove conditional code.
19167         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
19168         <kernel-features.h>.
19169         [__NR_setresgid] (__setresgid): Do not declare.
19170         [__ASSUME_32BITUIDS]: Make code unconditional.
19171         [!__ASSUME_32BITUIDS]: Remove conditional code.
19172         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
19173         <kernel-features.h>.
19174         [__NR_setresuid] (__setresuid): Do not declare.
19175         [__ASSUME_32BITUIDS]: Make code unconditional.
19176         [!__ASSUME_32BITUIDS]: Remove conditional code.
19177         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
19178         <kernel-features.h>.
19179         [__ASSUME_32BITUIDS]: Make code unconditional.
19180         [!__ASSUME_32BITUIDS]: Remove conditional code.
19181         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
19182         <kernel-features.h>.
19183         [__ASSUME_32BITUIDS]: Make code unconditional.
19184         [!__ASSUME_32BITUIDS]: Remove conditional code.
19185         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
19186         <kernel-features.h>.
19187         [__ASSUME_32BITUIDS]: Make code unconditional.
19188         [!__ASSUME_32BITUIDS]: Remove conditional code.
19189         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
19190         <kernel-features.h>.
19191         [__ASSUME_32BITUIDS]: Make code unconditional.
19192         [!__ASSUME_32BITUIDS]: Remove conditional code.
19193         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
19194         <kernel-features.h>.
19195         [__ASSUME_32BITUIDS]: Make code unconditional.
19196         [!__ASSUME_32BITUIDS]: Remove conditional code.
19197         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
19198         <kernel-features.h>.
19199         [__ASSUME_32BITUIDS]: Make code unconditional.
19200         [!__ASSUME_32BITUIDS]: Remove conditional code.
19201         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
19202         <kernel-features.h>.
19203         [__ASSUME_32BITUIDS]: Make code unconditional.
19204         [!__ASSUME_32BITUIDS]: Remove conditional code.
19205         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
19206         <kernel-features.h>.
19207         [__ASSUME_32BITUIDS]: Make code unconditional.
19208         [!__ASSUME_32BITUIDS]: Remove conditional code.
19209         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
19210         <kernel-features.h>.
19211         [__ASSUME_32BITUIDS]: Make code unconditional.
19212         [!__ASSUME_32BITUIDS]: Remove conditional code.
19213         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
19214         <kernel-features.h>.
19215         [__ASSUME_32BITUIDS]: Make code unconditional.
19216         [!__ASSUME_32BITUIDS]: Remove conditional code.
19217         * sysdeps/unix/sysv/linux/kernel-features.h
19218         (__ASSUME_SETRESUID_SYSCALL): Remove.
19219         (__ASSUME_SETRESGID_SYSCALL): Likewise.
19220         (__ASSUME_32BITUIDS): Likewise.
19221         (__ASSUME_LDT_WORKS): Likewise.
19222         (__ASSUME_O_DIRECTORY): Likewise.
19223         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
19224         architecture but not kernel version.
19225         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
19226         (__ASSUME_MMAP2_SYSCALL): Likewise.
19227         (__ASSUME_STAT64_SYSCALL): Likewise.
19228         (__ASSUME_IPC64): Likewise.
19229         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
19230         <kernel-features.h>.
19231         [__ASSUME_32BITUIDS]: Make code unconditional.
19232         [!__ASSUME_32BITUIDS]: Remove conditional code.
19233         * sysdeps/unix/sysv/linux/opendir.c: Do not include
19234         <kernel-features.h>.
19235         [__ASSUME_O_DIRECTORY]: Make code unconditional.
19236         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
19237         132096]: Remove conditional code.
19238         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
19239         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
19240         <kernel-features.h>.
19241         [__ASSUME_32BITUIDS]: Make code unconditional.
19242         [!__ASSUME_32BITUIDS]: Remove conditional code.
19243         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
19244         <kernel-features.h>.
19245         [__ASSUME_32BITUIDS]: Make code unconditional.
19246         [!__ASSUME_32BITUIDS]: Remove conditional code.
19247         * sysdeps/unix/sysv/linux/setegid.c: Do not include
19248         <kernel-features.h>.
19249         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
19250         unconditional.
19251         (__setresgid): Do not declare.
19252         [__ASSUME_32BITUIDS]: Make code unconditional.
19253         [!__ASSUME_32BITUIDS]: Remove conditional code.
19254         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
19255         <kernel-features.h>.
19256         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
19257         unconditional.
19258         (__setresuid): Do not declare.
19259         [__ASSUME_32BITUIDS]: Make code unconditional.
19260         [!__ASSUME_32BITUIDS]: Remove conditional code.
19261         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
19262         <kernel-features.h>.
19263         [__ASSUME_32BITUIDS]: Make code unconditional.
19264         [!__ASSUME_32BITUIDS]: Remove conditional code.
19265         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
19266         <kernel-features.h>.
19267         [__ASSUME_32BITUIDS]: Make code unconditional.
19268         [!__ASSUME_32BITUIDS]: Remove conditional code.
19269
19270 2012-05-25  Richard Henderson  <rth@twiddle.net>
19271
19272         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
19273         dl_hwcap to ifunc resolver.
19274         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
19275         elf_ifunc_invoke.
19276         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
19277         dl_hwcap to ifunc resolver.
19278         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
19279
19280 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
19281
19282         [BZ #14153]
19283         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
19284         for |x| <= 2**-26, not 2**-57.
19285         * math/libm-test.inc (acos_test): Do not allow spurious underflow
19286         exception.
19287
19288 2012-05-24  Jeff Law  <law@redhat.com>
19289
19290         * stdio-common/Makefile (tests): Add bug25.
19291         * stdio-common/bug25.c: New test.
19292
19293 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
19294
19295         [BZ #13576]
19296         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
19297         multiple of MALLOC_ALIGNMENT in size.
19298         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
19299
19300 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
19301
19302         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
19303         Require >= 256.
19304         (FILENAME_MAX): Use macro-int-constant.
19305         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
19306         (_IOFBF): Use macro-int-constant.
19307         (_IOLBF): Likewise.
19308         (_IONBF): Likewise.
19309         (SEEK_CUR): Likewise.
19310         (SEEK_END): Likewise.
19311         (SEEK_SET): Likewise.
19312         (TMP_MAX): Likewise.
19313         (EOF): Use macro-int-constant.  Require < 0.
19314         (NULL): Use macro-constant.  Require == 0.
19315         (stdin): Require type to be FILE *.
19316         (stdout): Likewise.
19317         (stderr): Likewise.
19318         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
19319         macro-int-constant.
19320         (EXIT_SUCCESS): Likewise.
19321         (NULL): Use macro-constant.  Require == 0.
19322         (RAND_MAX): Use macro-int-constant.
19323         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
19324         [C99-based standards] (strtof): Require function.
19325         [C99-based standards] (strtold): Likewise.
19326         [C99-based standards] (strtoll): Likewise.
19327         [C99-based standards] (strtoull): Likewise.
19328         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
19329         [ISO || ISO99 || ISO11] (limits.h): Likewise.
19330         [ISO || ISO99 || ISO11] (math.h): Likewise.
19331         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
19332         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
19333         [ISO || ISO99 || ISO11] (*_t): Do not allow.
19334
19335 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
19336
19337         [BZ #14132]
19338         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
19339         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
19340         * intl/dgettext.c (DCGETTEXT): Likewise.
19341         * intl/gettext.c (DCGETTEXT): Likewise.
19342         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
19343         * posix/regex_internal.h (gettext): Likewise.
19344         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
19345         Remove declaration.
19346         * include/argz.h (__argz_count_internal)
19347         (__argz_stringify_internal): Remove declaration.
19348         (__argz_count, __argz_stringify): Declare hidden proto.
19349         * intl/dcgettext.c: Remove use of INTDEF.
19350         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
19351         * string/argz-stringify.c: Likewise.
19352         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
19353         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
19354         Declare hidden proto.
19355         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
19356         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
19357         Declare hidden proto.
19358         * include/stdio.h (__asprintf_internal): Don't declare.
19359         (__asprintf): Don't define as macro.  Declare hidden proto.
19360         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
19361         (__fsetlocking): Declare hidden proto.
19362         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
19363         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
19364         hidden proto.
19365         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
19366         (_IO_setlinebuf): Remove use of INTUSE.
19367         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
19368         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
19369         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
19370         Remove declaration.
19371         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
19372         (_IO_do_flush): Remove use of INTUSE.
19373         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
19374         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
19375         (_IO_adjust_column, _IO_least_wmarker)
19376         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
19377         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
19378         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
19379         (_IO_default_doallocate, _IO_wdefault_doallocate)
19380         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
19381         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
19382         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
19383         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
19384         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
19385         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
19386         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
19387         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
19388         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
19389         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
19390         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
19391         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
19392         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
19393         proto.
19394         (_IO_flush_all_internal, _IO_adjust_column_internal)
19395         (_IO_default_uflow_internal, _IO_default_finish_internal)
19396         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
19397         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
19398         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
19399         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
19400         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
19401         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
19402         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
19403         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
19404         (_IO_file_close_internal, _IO_file_close_it_internal)
19405         (_IO_file_underflow_internal, _IO_file_overflow_internal)
19406         (_IO_file_init_internal, _IO_file_attach_internal)
19407         (_IO_file_fopen_internal, _IO_file_read_internal)
19408         (_IO_file_sync_internal, _IO_file_seek_internal)
19409         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
19410         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
19411         (_IO_str_underflow_internal, _IO_str_overflow_internal)
19412         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
19413         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
19414         (_IO_list_all_internal, _IO_link_in_internal)
19415         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
19416         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
19417         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
19418         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
19419         (_IO_do_write_internal, _IO_padn_internal)
19420         (_IO_getline_info_internal, _IO_getline_internal)
19421         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
19422         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
19423         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
19424         (_IO_vfscanf_internal, _IO_vfprintf_internal)
19425         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
19426         (_IO_init_internal, _IO_un_link_internal): Don't declare.
19427         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
19428         with libc_hidden_ver, remove use of INTUSE.
19429         * libio/genops.c: Likewise.
19430         * libio/freopen.c: Likewise.
19431         * libio/freopen64.c: Likewise.
19432         * libio/iofclose.c: Likewise.
19433         * libio/iofdopen.c: Likewise.
19434         * libio/iofflush.c: Likewise.
19435         * libio/iofflush_u.c: Likewise.
19436         * libio/iofgets.c: Likewise.
19437         * libio/iofgets_u.c: Likewise.
19438         * libio/iofopen.c: Likewise.
19439         * libio/iofopncook.c: Likewise.
19440         * libio/iofread.c: Likewise.
19441         * libio/iofread_u.c: Likewise.
19442         * libio/ioftell.c: Likewise.
19443         * libio/iofwrite.c: Likewise.
19444         * libio/iogetline.c: Likewise.
19445         * libio/iogets.c: Likewise.
19446         * libio/iogetwline.c: Likewise.
19447         * libio/iopadn.c: Likewise.
19448         * libio/iopopen.c: Likewise.
19449         * libio/ioseekoff.c: Likewise.
19450         * libio/ioseekpos.c: Likewise.
19451         * libio/iosetbuffer.c: Likewise.
19452         * libio/iosetvbuf.c: Likewise.
19453         * libio/ioungetc.c: Likewise.
19454         * libio/ioungetwc.c: Likewise.
19455         * libio/iovdprintf.c: Likewise.
19456         * libio/iovsprintf.c: Likewise.
19457         * libio/iovsscanf.c: Likewise.
19458         * libio/memstream.c: Likewise.
19459         * libio/obprintf.c: Likewise.
19460         * libio/oldfileops.c: Likewise.
19461         * libio/oldiofclose.c: Likewise.
19462         * libio/oldiofdopen.c: Likewise.
19463         * libio/oldiofopen.c: Likewise.
19464         * libio/oldiopopen.c: Likewise.
19465         * libio/oldstdfiles.c: Likewise.
19466         * libio/putc.c: Likewise.
19467         * libio/setbuf.c: Likewise.
19468         * libio/setlinebuf.c: Likewise.
19469         * libio/stdfiles.c: Likewise.
19470         * libio/strops.c: Likewise.
19471         * libio/vasprintf.c: Likewise.
19472         * libio/vscanf.c: Likewise.
19473         * libio/vsnprintf.c: Likewise.
19474         * libio/vswprintf.c: Likewise.
19475         * libio/wfiledoalloc.c: Likewise.
19476         * libio/wfileops.c: Likewise.
19477         * libio/wgenops.c: Likewise.
19478         * libio/wmemstream.c: Likewise.
19479         * libio/wstrops.c: Likewise.
19480         * libio/__fpurge.c: Likewise.
19481         * libio/__fsetlocking.c: Likewise.
19482         * assert/assert.c: Likewise.
19483         * debug/fgets_chk.c: Likewise.
19484         * debug/fgets_u_chk.c: Likewise.
19485         * debug/fread_chk.c: Likewise.
19486         * debug/fread_u_chk.c: Likewise.
19487         * debug/gets_chk.c: Likewise.
19488         * debug/obprintf_chk.c: Likewise.
19489         * debug/vasprintf_chk.c: Likewise.
19490         * debug/vdprintf_chk.c: Likewise.
19491         * debug/vsnprintf_chk.c: Likewise.
19492         * debug/vsprintf_chk.c: Likewise.
19493         * malloc/mtrace.c: Likewise.
19494         * misc/error.c: Likewise.
19495         * misc/syslog.c: Likewise.
19496         * stdio-common/asprintf.c: Likewise.
19497         * stdio-common/fxprintf.c: Likewise.
19498         * stdio-common/getw.c: Likewise.
19499         * stdio-common/isoc99_fscanf.c: Likewise.
19500         * stdio-common/isoc99_scanf.c: Likewise.
19501         * stdio-common/isoc99_vfscanf.c: Likewise.
19502         * stdio-common/isoc99_vscanf.c: Likewise.
19503         * stdio-common/isoc99_vsscanf.c: Likewise.
19504         * stdio-common/printf-prs.c: Likewise.
19505         * stdio-common/printf_fp.c: Likewise.
19506         * stdio-common/printf_fphex.c: Likewise.
19507         * stdio-common/printf_size.c: Likewise.
19508         * stdio-common/putw.c: Likewise.
19509         * stdio-common/scanf.c: Likewise.
19510         * stdio-common/sprintf.c: Likewise.
19511         * stdio-common/tmpfile.c: Likewise.
19512         * stdio-common/vfprintf.c: Likewise.
19513         * stdio-common/vfscanf.c: Likewise.
19514         * stdlib/strfmon_l.c: Likewise.
19515         * sunrpc/openchild.c: Likewise.
19516         * sunrpc/xdr_stdio.c: Likewise.
19517         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
19518         * sysdeps/mach/hurd/tmpfile.c: Likewise.
19519
19520 2012-05-24  Roland McGrath  <roland@hack.frob.com>
19521
19522         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
19523
19524         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
19525         in the third column, to generate for the shared library an IFUNC
19526         that uses _dl_vdso_vsym.
19527         * Makerules (COMPILE.c, compile-stdin.c): New variables.
19528         * Makeconfig (object-suffixes-noshared): New variable.
19529
19530         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
19531         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
19532         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
19533         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
19534
19535         [BZ #14132]
19536         * include/sys/time.h (__gettimeofday): Remove macro.
19537         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
19538         * time/gettimeofday.c (__gettimeofday): Remove #undef.
19539         Remove INTDEF.
19540         (__gettimeofday): Add libc_hidden_def.
19541         (gettimeofday): Add libc_hidden_weak.
19542         * sysdeps/mach/gettimeofday.c: Likewise.
19543         * sysdeps/posix/gettimeofday.c: Likewise.
19544         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
19545         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
19546         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
19547         (__gettimeofday_internal): Remove strong_alias.
19548         (__gettimeofday): Add libc_hidden_def.
19549         (gettimeofday): Add libc_hidden_weak.
19550         * sysdeps/unix/syscalls.list (gettimeofday):
19551         Remove __gettimeofday_internal alias.
19552
19553 2012-05-24  Daniel Jacobowitz  <drow@false.org>
19554             H.J. Lu  <hongjiu.lu@intel.com>
19555
19556         [BZ #12495]
19557         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
19558         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
19559         (largebin_index_32_big): New.
19560         (largebin_index): Use it for 16-byte alignment.
19561         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
19562         correction with front_misalign.
19563
19564 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
19565
19566         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
19567         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
19568         Likewise.
19569         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
19570         Likewise.
19571         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
19572         Likewise.
19573         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
19574         Likewise.
19575         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
19576         Likewise.
19577         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
19578         Likewise.
19579         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
19580         Likewise.
19581         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
19582         Likewise.
19583         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
19584         Likewise.
19585         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
19586         Likewise.
19587         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
19588         Likewise.
19589         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
19590         Likewise.
19591
19592         * scripts/data/c++-types-x32-linux-gnu.data: New file.
19593         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
19594
19595 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
19596
19597         [BZ #10846]
19598         [BZ #14036]
19599         * math/libm-test.inc (exp_test): Add test from bug 14036.
19600         (pow_test): Add test from bug 10846.
19601
19602         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
19603         and other flags.
19604         (special_function): Do not include flags in test name.
19605         (parse_args): Likewise.
19606         * sysdeps/i386/fpu/libm-test-ulps: Update.
19607         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
19608         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
19609         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
19610         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19611
19612         * math/gen-libm-test.pl (%beautify): Add entries for underflow
19613         exceptions.
19614         * math/libm-test.inc ("Philosophy"): Update comment about
19615         exception testing.
19616         (UNDERFLOW_EXCEPTION): New macro.
19617         (UNDERFLOW_EXCEPTION_OK): Likewise.
19618         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
19619         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
19620         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
19621         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
19622         (INVALID_EXCEPTION_OK): Update value.
19623         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
19624         (OVERFLOW_EXCEPTION_OK): Likewise.
19625         (IGNORE_ZERO_INF_SIGN): Likewise.
19626         (test_exceptions): Handle underflow exceptions.
19627         (acos_test): Update for underflow exception expectations.
19628         (cexp_test): Likewise.
19629         (clog_test): Likewise.
19630         (clog10_test): Likewise.
19631         (csqrt_test): Likewise.
19632         (ctan_test): Likewise.
19633         (ctanh_test): Likewise.
19634         (exp_test): Likewise.
19635         (exp10_test): Likewise.
19636         (exp2_test): Likewise.
19637         (expm1_test): Likewise.
19638         (fma_test): Likewise.
19639         (j0_test): Likewise.
19640         (jn_test): Likewise.
19641         (nexttoward_test): Likewise.
19642         (pow_test): Likewise.
19643         (scalbn_test): Likewise.
19644         (scalbln_test): Likewise.
19645         (tan_test): Likewise.
19646         (y1_test): Likewise.
19647         * sysdeps/i386/fpu/libm-test-ulps: Update.
19648         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19649
19650 2012-05-23  David S. Miller  <davem@davemloft.net>
19651
19652         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
19653         (__libc_sigaction): Remove unused local variables.
19654
19655 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
19656
19657         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
19658
19659 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19660
19661         mktime: avoid signed integer overflow
19662         * time/mktime.c (__mktime_internal): Do not mishandle the case
19663         where diff == INT_MIN.
19664
19665         mktime: simplify computation of average
19666         * time/mktime.c (ranged_convert): Use new time_t_avg function
19667         instead of rolling our own (probably-slower) code.
19668
19669         mktime: do not assume signed right shift propagates sign bit
19670         * time/mktime.c (isdst_differ): New static function.
19671         (__mktime_internal): No need to normalize tm_isdst now.
19672         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
19673         tm_isdst values.
19674
19675         mktime: merge another wrapv change from gnulib
19676         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
19677         from some compilers.
19678
19679         mktime: remove incorrect attempt at unusual arithmetics
19680         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
19681         The code didn't really work on such machines anyway.
19682         (TYPE_MINIMUM): Assume two's complement.
19683         (twos_complement_arithmetic): Verify that long_int and time_t
19684         are two's complement (or unsigned, in the latter case).
19685
19686         mktime: check signed shifts on long_int and time_t, too
19687         * time/mktime.c (SHR): Check that shifts work as desired
19688         on the types long_int and time_t too, as SHR is used on
19689         such types.
19690
19691         mktime: do not assume 'long' is wide enough
19692         * time/mktime.c (verify): Move decl up.
19693         (long_int): New type.
19694         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
19695         to remove assumption in the code that 'long' is wide enough to
19696         store year values.  This assumption is not true on x32 and on
19697         some non-glibc platforms.
19698
19699         mktime: merge wrapv change from gnulib
19700         * time/mktime.c (WRAPV): New macro.
19701         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
19702         (guess_time_tm, __mktime_internal): Do not assume that signed
19703         integer overflow wraps around; modern compilers generate code
19704         where this assumption is no longer valid.
19705
19706 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
19707
19708         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
19709         Replace "jmp L(pseudo_end)" with "ret".
19710         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
19711         Likewise.
19712
19713 2012-05-23  Andreas Jaeger  <aj@suse.de>
19714
19715         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
19716         * sysdeps/unix/sysv/linux/poll.c: Remove file.
19717
19718 2012-05-23  Andreas Jaeger  <aj@suse.de>
19719             Maximilian Attems  <max@stro.at>
19720
19721         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
19722         New macros.
19723
19724 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
19725
19726         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
19727         code so that pseudo_end is just ret and the stack pointer is
19728         correct also for static library in error case.
19729
19730 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
19731
19732         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
19733         move to syscalls.list.
19734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
19735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
19736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
19737         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
19738
19739         * manual/install.texi (Running make install): Do not mention Linux
19740         kernel version for which pt_chown is not needed.
19741         (Linux): Do not mention problems with nscd with 2.0 kernels.
19742         * INSTALL: Regenerated.
19743
19744 2012-05-23  Andreas Jaeger  <aj@suse.de>
19745
19746         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
19747         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
19748         macro.
19749         * sysdeps/unix/sysv/linux/s390/bits/mman.h
19750         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19751         * sysdeps/unix/sysv/linux/sh/bits/mman.h
19752         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19753         * sysdeps/unix/sysv/linux/i386/bits/mman.h
19754         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19755         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
19756         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19757         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
19758         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
19759         * sysdeps/unix/sysv/linux/bits/in.h
19760         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
19761
19762 2012-05-22  Roland McGrath  <roland@hack.frob.com>
19763
19764         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
19765         (PREPARE_VERSION): Just use assert instead, it will be elided
19766         under [NDEBUG] anyway.
19767
19768 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19769
19770         * sysdeps/unix/sysv/linux/Makefile: Include
19771         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
19772         (sysdep_routines): Remove sysctl.
19773         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
19774         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
19775         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
19776         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
19777         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
19778
19779 2012-05-22  Andreas Jaeger  <aj@suse.de>
19780
19781         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
19782         that pseudo_end is just ret and the stack pointer is correct also
19783         for static library in error case.
19784
19785 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
19786
19787         [BZ #14122]
19788         * nss/nsswitch.c (defconfig_entries): New variable.
19789         (__nss_database_lookup): Don't leak defconfig entries.
19790         (nss_parse_service_list): Don't leak on error paths.
19791         (free_database_entries): New function.
19792         (free_defconfig): New function.
19793         (free_mem): Move common code to free_database_entries.
19794
19795 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19796
19797         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
19798         Add arch_prctl.
19799         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
19800
19801         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
19802         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
19803         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
19804         New macro.
19805         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
19806         (INTERNAL_SYSCALL_TYPES): Likewise.
19807         (LOAD_ARGS_TYPES_[1-6]): Likewise.
19808         (LOAD_REGS_TYPES_[1-6]): Likewise.
19809         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
19810         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
19811
19812 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19813
19814         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
19815         copysignl for GLIBC_2_0.
19816         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
19817         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
19818         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
19819         logbl for GLIBC_2_0.
19820         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
19821         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
19822
19823 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19824
19825         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
19826         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
19827
19828         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
19829         Use "neg %eax".
19830
19831         * time/mktime.c: Update copyright years.
19832
19833 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19834
19835         mktime: merge comment-quoting-style change from gnulib
19836         * time/mktime.c: Quote 'like this' in comments.
19837         The GNU coding standards suggest that we no longer quote `like this',
19838         as "`" and "'" are typically rendered asymmetrically nowadays.
19839         The typical gnulib style is to quote 'like this' when quoting
19840         code, and "like this" when quoting English.
19841
19842         * time/mktime.c (compile-command): Add "-I.".
19843
19844         mktime: merge mktime-internal.h change from gnulib
19845         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
19846
19847         mktime: merge time_r change from gnulib
19848         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
19849
19850         mktime: merge DEBUG change from gnulib
19851         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
19852         case system <time.h> has a #define.
19853
19854         mktime: merge <sys/types.h> change from gnulib
19855         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
19856         since <time.t> is now guaranteed to define time_t.
19857
19858         mktime: merge HAVE_CONFIG_H change from gnulib
19859         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
19860
19861 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
19862
19863         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
19864         Use "neg %eax".
19865
19866         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
19867         __rlim_t cast.
19868         (struct rusage): Use anonymous union to pad each field to
19869         __syscall_slong_t.
19870
19871 2012-05-21  David S. Miller  <davem@davemloft.net>
19872
19873         * Makefules (o-iterator): Remove .s cases.
19874         (compile-command.s): Delete.
19875         (COMPILE.s): Delete.
19876         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
19877
19878 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
19879
19880         * configure.in (libc_cv_predef_stack_protector): Only consider
19881         "foobar" and "__stack_chk_fail" lines in libc_undefs.
19882         * configure: Regenerated.
19883
19884 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19885
19886         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
19887         New macro.  Use R*LP on int and pointer.
19888         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
19889         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
19890         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
19891         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
19892
19893         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
19894         [__WORDSIZE_TIME64_COMPAT32] instead of
19895         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
19896         (struct utmp): Likewise.
19897         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
19898         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
19899         Renamed to ...
19900         (__WORDSIZE_TIME64_COMPAT32): This.
19901         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
19902         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
19903         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
19904         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
19905         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
19906         (__WORDSIZE_TIME64_COMPAT32): New macro.
19907
19908 2012-05-21  Andreas Jaeger  <aj@suse.de>
19909
19910         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
19911         only if [SHARED]. Add prototype for __wcschr_ia32.
19912
19913 2012-05-21  Roland McGrath  <roland@hack.frob.com>
19914
19915         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
19916         of %rbp unmolested in the jmp_buf while mangling the low bits.
19917         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
19918         unmolested high bits of %rbp while demangling the low bits.
19919         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
19920
19921 2012-05-21  Andreas Jaeger  <aj@suse.de>
19922
19923         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
19924         * sunrpc/svc_simple.c: Use it for registerrpc.
19925         * sunrpc/xcrypt.c: Use it for passwd2des.
19926
19927         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
19928
19929 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19930
19931         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
19932         Don't define if [__SYSCALL_WORDSIZE != 32].
19933         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
19934         New macro.
19935
19936 2012-05-21  Bruno Haible  <bruno@clisp.org>
19937             Andreas Jaeger  <aj@suse.de>
19938
19939         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
19940         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
19941         inptr and inend for must_buffer_ch.
19942         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
19943         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
19944         * stdio-common/Makefile (tests): Remove bug15.
19945         (bug15-ENV): Remove macro.
19946         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
19947         anymore.
19948
19949 2012-05-19  Andreas Jaeger  <aj@suse.de>
19950             Roland McGrath  <roland@hack.frob.com>
19951
19952         * manual/contrib.texi: Completely rewritten. It contains now an
19953         alphabetical list of contributors and their contributions.
19954
19955 2012-05-21  Richard Henderson  <rth@twiddle.net>
19956
19957         * misc/getauxval.c (__getauxval): Use unsigned long int.
19958         * misc/sys/auxv.h: Include <sys/cdefs.h>.
19959         (getauxval): Use unsigned long int.
19960
19961 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
19962
19963         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
19964
19965 2012-05-21  Roland McGrath  <roland@hack.frob.com>
19966
19967         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
19968         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
19969         __alignof__ (long double).
19970
19971 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19972
19973         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19974
19975 2012-05-20  Richard Henderson  <rth@twiddle.net>
19976
19977         * misc/getauxval.c: New file.
19978         * misc/sys/auxv.h: New file.
19979         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
19980         (routines): Add getauxval.
19981         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
19982         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
19983         * elf/dl-sysdep.c (_dl_auxv): Remove.
19984         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
19985         * elf/dl-support.c (_dl_auxv): New variable.
19986         (_dl_aux_init): Initialize it.
19987         * manual/startup.texi (Auxiliary Vector): New node.
19988         * sysdeps/generic/bits/hwcap.h: New file.
19989         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
19990         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
19991         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
19992         * sysdeps/sparc/sysdep.h: ... here.  Include it.
19993         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
19994         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
19995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
19996         Update.
19997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
19998         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
19999         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
20000         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
20001         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
20002         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
20003         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
20004         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
20005
20006 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20007
20008         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20009
20010 2012-05-19  David S. Miller  <davem@davemloft.net>
20011
20012         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20013
20014 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
20015
20016         [BZ #14123]
20017         * math/s_ccosh.c: Include <float.h>
20018         (__ccosh): Avoid internal overflow calculating sinh and cosh
20019         values before multiplying by sin and cos values.
20020         * math/s_ccoshf.c: Likewise.
20021         * math/s_ccoshl.c: Likewise.
20022         * math/s_csin.c: Likewise.
20023         * math/s_csinf.c: Likewise.
20024         * math/s_csinl.c: Likewise.
20025         * math/s_csinh.c: Likewise.
20026         * math/s_csinhf.c: Likewise.
20027         * math/s_csinhl.c: Likewise.
20028         * math/libm-test.inc (ccos_test): Add more tests.
20029         (ccosh_test): Likewise.
20030         (csin_test): Likewise.
20031         (csinh_test): Likewise.
20032         * sysdeps/i386/fpu/libm-test-ulps: Update.
20033         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20034
20035 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
20036
20037         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
20038         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
20039
20040         * sysdeps/x86_64/x32/_itoa.h: Add comment.
20041
20042 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
20043
20044         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
20045         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
20046         * sysdeps/powerpc/soft-fp/Versions: Likewise.
20047         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
20048         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
20049         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
20050         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
20051         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
20052         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
20053         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
20054         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
20055         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
20056         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
20057         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
20058         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
20059         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
20060         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
20061         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
20062         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
20063         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
20064         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
20065         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
20066         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
20067         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
20068         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
20069         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
20070         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
20071         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
20072         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
20073         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
20074         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
20075
20076 2012-05-18  Andreas Jaeger  <aj@suse.de>
20077
20078         * csu/.gitignore: Delete.
20079
20080 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
20081
20082         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
20083         (timex): Use __syscall_slong_t.
20084
20085 2012-05-18  Andreas Jaeger  <aj@suse.de>
20086             Carlos O'Donell  <carlos_odonell@mentor.com>
20087
20088         * manual/install.texi (Configuring and compiling): Update
20089         description about files modified in the source directory.
20090         * INSTALL: Regenerated.
20091
20092 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
20093
20094         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
20095         value.  Use "or" to set return value to -1.
20096         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
20097         negate return value.
20098
20099 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20100
20101         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
20102         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
20103         failure if the compiler has Graphite support disabled.
20104         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
20105         Likewise.
20106         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
20107         CFLAGS-memmove.c): Likewise.
20108         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
20109         Likewise.
20110
20111 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
20112
20113         * sysdeps/x86_64/x32/_itoa.h: New file.
20114
20115         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
20116         getdents system call only if kernel and user dirents have the
20117         same d_ino and d_off.
20118
20119         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
20120         LLONG_MAX != LONG_MAX.
20121         (_itoa_word): Use _ITOA_WORD_TYPE on value.
20122         (_fitoa_word): Likewise.
20123
20124         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
20125         years.
20126         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
20127         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
20128         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
20129
20130         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
20131         include <bits/wordsize.h>.  Check __x86_64__ instead of
20132         __WORDSIZE.
20133         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
20134         if __x86_64__ is defined.  Use anonymous union on fpstate.
20135
20136         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
20137         anonymous union.
20138
20139 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
20140
20141         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
20142         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
20143         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
20144         Refer to _rtld_local_ro instead of _rtld_global_ro.
20145         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
20146         Likewise.
20147         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
20148         Likewise.
20149         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
20150         Likewise.
20151         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
20152         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
20153         of _rtld_global, and rtld_progname instead of _dl_argv[0].
20154
20155         * sysdeps/powerpc/powerpc32/dl-machine.c
20156         (__elf_machine_runtime_setup) [PROF]: Don't reference
20157         _dl_prof_resolve.
20158
20159 2012-05-18  Andreas Jaeger  <aj@suse.de>
20160
20161         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
20162         function only available for GCCs before 3.4 since GCC 3.4
20163         introduced a builtin.
20164         (lrint): Likewise.
20165         (llrintf): Likewise.
20166         (llrint): Likewise.
20167         (fmaxf): Likewise.
20168         (fmax): Likewise.
20169         (fminf): Likewise.
20170         (fmin): Likewise.
20171         (rint): Likewise.
20172         (rintf): Likewise.
20173         (nearbyint): Likewise.
20174         (nearbyintf): Likewise.
20175         (ceil): Likewise.
20176         (ceilf): Likewise.
20177         (floor): Likewise.
20178         (floorf): Likewise.
20179
20180 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
20181
20182         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
20183         on both fields and cast pointer to __syscall_ulong_t.
20184
20185         * bits/types.h (__fsword_t): New type.
20186         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
20187         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
20188         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20189         (__FSWORD_T_TYPE): Likewise.
20190         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
20191         (__FSWORD_T_TYPE): Likewise.
20192         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20193         (__FSWORD_T_TYPE): Likewise.
20194         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
20195         (__FSWORD_T_TYPE): Likewise.
20196         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
20197         __SWORD_TYPE with __fsword_t.
20198         (statfs64): Likewise.
20199
20200 2012-05-17  David S. Miller  <davem@davemloft.net>
20201
20202         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
20203
20204 2012-05-17  Andreas Jaeger  <aj@suse.de>
20205
20206         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
20207         warning.
20208
20209 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
20210
20211         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
20212
20213 2012-05-17  Andreas Jaeger  <aj@suse.de>
20214
20215         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
20216         when it is used.
20217
20218 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
20219
20220         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
20221
20222 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
20223
20224         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
20225         * sysdeps/x86_64/tst-mallocalign1.c: New file.
20226
20227 2012-05-17  Andreas Jaeger  <aj@suse.de>
20228             Carlos O'Donell  <carlos_odonell@mentor.com>
20229
20230         [BZ #14059]
20231         * sysdeps/x86_64/multiarch/init-arch.h
20232         (bit_YMM_Usable): Rename to...
20233         (bit_AVX_Usable): ... this.
20234         (bit_FMA4_Usable): New macro.
20235         (bit_XMM_state): New macro.
20236         (bit_YMM_state): New macro.
20237         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
20238         [__ASSEMBLER__] (index_AVX_Usable): ... this.
20239         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
20240         (CPUID_OSXSAVE): New macro.
20241         (CPUID_AVX): New macro.
20242         (CPUID_FMA4): New macro.
20243         (index_YMM_Usable): Rename to...
20244         (index_AVX_Usable): ... this.
20245         (HAS_AVX): Use HAS_ARCH_FEATURE.
20246         (HAS_FMA4): Likewise.
20247         (HAS_YMM_USABLE): Remove.
20248         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20249         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
20250         are present.
20251         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
20252         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
20253         * sysdeps/x86_64/multiarch/Makefile: Likewise.
20254         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
20255         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
20256
20257 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
20258
20259         * math/libm-test.c: Support platforms without multiple rounding modes.
20260         * math/bug-nextafter.c: Support platforms without FP exceptions.
20261         * math/bug-nexttoward.c: Likewise.
20262         * math/test-fenv.c: Likewise.
20263         * math/test-misc.c: Likewise.
20264         * stdlib/bug-getcontext.c: Likewise.
20265
20266 2012-05-17  Andreas Jaeger  <aj@suse.de>
20267
20268         * manual/examples/search.c (critter_cmp): Change signature to
20269         avoid warnings.
20270         * manual/string.texi (Collation Functions): Likewise.
20271
20272 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20273
20274         * bits/types.h: Fold copyright years.
20275         * bits/typesizes.h: Likewise.
20276         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
20277         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
20278         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
20279         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
20280         * time/time.h: Likewise.
20281
20282 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
20283
20284         [BZ #208]
20285         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
20286         in instead of returning them.  Return void.
20287         (__libc_mallinfo): Accumulate over all arenas.
20288         (__malloc_stats): Adjust for change in int_mallinfo interface.
20289
20290 2012-05-16  Roland McGrath  <roland@hack.frob.com>
20291
20292         [BZ #10375]
20293         * configure.in (NM): Add AC_CHECK_TOOL for it.
20294         (libc_extra_cflags): New substituted variable.
20295         Check for -fstack-protector being used implicitly.
20296         * configure: Regenerated.
20297         * config.make.in (config-extra-cflags): New variable,
20298         gets @libc_extra_cflags@.
20299         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
20300
20301         [BZ #10375]
20302         * configure.in: Check for _FORTIFY_SOURCE being predefined.
20303         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
20304         * configure: Regenerated.
20305         * config.make.in (CPPUNDEFS): New substituted variable.
20306         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
20307         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
20308         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
20309
20310 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20311
20312         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
20313         (mq_attr): Use __syscall_slong_t.
20314
20315 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20316
20317         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
20318         Check __x86_64__ instead of __WORDSIZE.
20319         (_STAT_VER_LINUX): Likewise.
20320         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
20321         __syscall_ulong_t and __syscall_slong_t.
20322         (stat64): Likewise.
20323
20324 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20325
20326         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
20327
20328 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20329
20330         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
20331
20332 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20333
20334         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
20335         __syscall_ulong_t.
20336
20337         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
20338         include <bits/wordsize.h>.  Check __x86_64__ instead of
20339         __WORDSIZE.
20340         (greg_t): Use "__extension__ long long int" if __x86_64__ is
20341         defined.
20342         (mcontext_t): Replace "unsigned long" with "unsigned long long".
20343
20344         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
20345         include <bits/wordsize.h>.  Check __x86_64__ instead of
20346         __WORDSIZE.
20347         (user_regs_struct): Use "__extension__ unsigned long long"
20348         instead of "unsigned long" if __x86_64__ is defined.
20349         (user): Likewise.  Pad after pointer field if __ILP32__ is
20350         defined.
20351
20352 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
20353
20354         * configure.in (makeinfo): Require version 4.5 or later.  Allow
20355         versions 5 to 9.
20356         * configure: Regenerated.
20357         * manual/install.texi (texinfo): Increase version requirement to
20358         4.5 or later.
20359         * INSTALL: Regenerated.
20360
20361         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
20362
20363 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20364
20365         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
20366
20367         * sysdeps/x86_64/x32/ffs.c: New file.
20368
20369         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
20370         __syscall_ulong_t.
20371         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
20372         defined.  Use __syscall_ulong_t.
20373         (shminfo): Use __syscall_ulong_t.
20374         (shm_info): Likewise.
20375
20376         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
20377         __syscall_ulong_t.
20378
20379         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
20380         <bits/wordsize.h>.
20381         (msgqnum_t): Use __syscall_ulong_t.
20382         (msglen_t): Likewise.
20383         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
20384         __syscall_ulong_t.
20385
20386         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
20387         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
20388
20389         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
20390
20391         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
20392         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
20393
20394         * sysvipc/sys/msg.h (msgbuf): Replace long int with
20395         __syscall_slong_t.
20396
20397         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
20398         include <bits/wordsize.h>.  Check __x86_64__ instead of
20399         __WORDSIZE.
20400
20401         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
20402         "unsigned long long int" if __x86_64__ is defined.
20403         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
20404
20405         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
20406         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
20407         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
20408
20409         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
20410         <stdint.h>.
20411         (GET_PC): Cast to uintptr_t first.
20412         (GET_FRAME): Likewise.
20413         (GET_STACK): Likewise.
20414
20415         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
20416         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
20417         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
20418         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
20419         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
20420         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
20421         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
20422         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
20423         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
20424         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
20425         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
20426         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
20427         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
20428         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
20429         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
20430         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
20431         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
20432         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
20433         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
20434         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
20435         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
20436         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
20437         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
20438         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
20439         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
20440         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
20441         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
20442         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
20443         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
20444
20445 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
20446
20447         * Makerules (+depfiles): Also collect depfiles from .oS in
20448         $(extra-objs).
20449         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
20450         .oS, $(libnldbl-routines)).
20451
20452         * Makerules (native-compile-mkdep-flags): Define.
20453         * sunrpc/Makefile (extra-objs): Add $(addprefix
20454         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
20455         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
20456         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
20457         calling $(make-target-directory).
20458
20459 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20460
20461         * bits/types.h (__snseconds_t): Removed.
20462         * time/time.h (struct timespec): Replace __snseconds_t with
20463         __syscall_slong_t.
20464         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
20465         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
20466         Likewise.
20467         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20468         (__SNSECONDS_T_TYPE): Likewise.
20469         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
20470         (__SNSECONDS_T_TYPE): Likewise.
20471         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20472         (__SNSECONDS_T_TYPE): Likewise.
20473
20474 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20475
20476         * sysdeps/mach/hurd/bits/typesizes.h
20477         (__SYSCALL_SLONG_TYPE): New macro.
20478         (__SYSCALL_ULONG_TYPE): Likewise.
20479
20480 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20481
20482         * bits/types.h (__syscall_slong_t): New type.
20483         (__syscall_ulong_t): Likewise.
20484
20485         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
20486         (__SYSCALL_ULONG_TYPE): Likewise.
20487         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20488         (__SYSCALL_SLONG_TYPE): Likewise.
20489         (__SYSCALL_ULONG_TYPE): Likewise.
20490         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
20491         (__SYSCALL_SLONG_TYPE): Likewise.
20492         (__SYSCALL_ULONG_TYPE): Likewise.
20493         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20494         (__SYSCALL_SLONG_TYPE): Likewise.
20495         (__SYSCALL_ULONG_TYPE): Likewise.
20496
20497 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20498
20499         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
20500         Add sigaltstack-offsets.sym.
20501         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
20502         <sigaltstack-offsets.h>.
20503         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
20504         longjmp_msg pointer.
20505         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
20506         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
20507         signal stack.
20508         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
20509
20510 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
20511
20512         * elf/stackguard-macros.h: Remove file.
20513         * sysdeps/generic/stackguard-macros.h: New file.
20514         * sysdeps/i386/stackguard-macros.h: Likewise.
20515         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
20516         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
20517         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
20518         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
20519         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
20520         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
20521         * sysdeps/x86_64/stackguard-macros.h: Likewise.
20522         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
20523         <elf/stackguard-macros.h>.
20524
20525         [BZ #14109]
20526         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
20527         __aligned__ in attribute.
20528         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
20529         (gregset_t): Likewise.
20530
20531 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20532
20533         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
20534         * sysdeps/x86_64/64/Implies-after: Here.  New file.
20535         * sysdeps/x86_64/x32/Implies-after: New file.
20536
20537 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20538
20539         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
20540         and access return value for _dl_profile_fixup.  Use R10_LP to
20541         load frame size.
20542
20543 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20544
20545         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
20546
20547 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20548
20549         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
20550         * sysdeps/x86_64/x32/sysdep.h: New file.
20551
20552 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20553
20554         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
20555         * sysdeps/x86_64/setjmp.S: Likewise.
20556
20557 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20558
20559         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
20560         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
20561         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
20562         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
20563         remove unused global constant.
20564
20565 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
20566
20567         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
20568         include of <not-cancel.h>.
20569
20570 2012-05-15  Roland McGrath  <roland@hack.frob.com>
20571
20572         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
20573
20574 2012-05-15  Jeff Law  <law@redhat.com>
20575             Andreas Jaeger  <aj@suse.de>
20576
20577         [BZ #13594]
20578         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
20579         out from...
20580         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
20581         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
20582         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
20583         code changing __hst_map_handle.map.
20584
20585 2012-05-15  Roland McGrath  <roland@hack.frob.com>
20586
20587         * configure.in (sysnames): Look for Implies-before and Implies-after
20588         files.
20589         * configure: Regenerated.
20590
20591 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20592
20593         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
20594         8-byte data alignment with LP_SIZE alignment.
20595
20596 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20597
20598         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
20599         into R10_LP.
20600
20601 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20602
20603         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
20604
20605 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20606
20607         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
20608         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
20609         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
20610         Likewise.
20611         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
20612
20613 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20614
20615         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
20616         (stackinfo_sub_sp): Likewise.
20617
20618 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20619
20620         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
20621         RAX_LP.
20622
20623 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20624
20625         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
20626         into R*_LP.
20627
20628 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20629
20630         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
20631         sizes into R*_LP.
20632
20633 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20634
20635         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
20636
20637 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20638
20639         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
20640         into R11_LP and load __x86_64_shared_cache_size_half into
20641         R8_LP.
20642
20643 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
20644
20645         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
20646         R8_LP.
20647
20648 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20649
20650         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
20651         logb for POWER7.
20652         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
20653         logbf for POWER7.
20654         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
20655         logbl for POWER7.
20656         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
20657         powerpc32/power7/fpu/s_logb.c via #include.
20658         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
20659         powerpc32/power7/fpu/s_logbf.c via #include.
20660         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
20661         powerpc32/power7/fpu/s_logbl.c via #include.
20662
20663 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
20664
20665         * README.libm: Remove file.
20666
20667 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20668
20669         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
20670         count for x32.  Use R*_LP and omit operand-size suffix.
20671
20672 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20673
20674         * shlib-versions: Move x86_64-.*-linux.* entries to ...
20675         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
20676         * sysdeps/x86_64/x32/shlib-versions: New file.
20677
20678 2012-05-14  Roland McGrath  <roland@hack.frob.com>
20679
20680         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
20681         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
20682         Use _dl_fatal_printf instead.
20683
20684 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
20685
20686         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
20687         set if not set by the user.  Do not allow for being unset.
20688         * sysdeps/unix/sysv/linux/configure: Regenerated.
20689
20690 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20691
20692         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
20693         the `q' suffix from lea and replace .quad with ASM_ADDR.
20694
20695 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20696
20697         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
20698         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
20699         instead of $17.
20700         (PTR_DEMANGLE): Likewise.
20701
20702 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20703
20704         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
20705         (LP_OP): Likewise.
20706         (ASM_ADDR): Likewise.
20707         (RAX_LP): Likewise.
20708         (RBP_LP): Likewise.
20709         (RBX_LP): Likewise.
20710         (RCX_LP): Likewise.
20711         (RDI_LP): Likewise.
20712         (RSI_LP): Likewise.
20713         (RSP_LP): Likewise.
20714         (R8_LP): Likewise.
20715         (R9_LP): Likewise.
20716         (R10_LP): Likewise.
20717         (R10_LP): Likewise.
20718         (R11_LP): Likewise.
20719         (R12_LP): Likewise.
20720         (R13_LP): Likewise.
20721         (R14_LP): Likewise.
20722         (R15_LP): Likewise.
20723
20724 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20725
20726         * sysdeps/x86_64/x32/dl-machine.h: New file.
20727
20728 2012-05-14  Andreas Jaeger  <aj@suse.de>
20729
20730         * manual/Makefile (subdir): Remove export of subdir.
20731         (all): Remove target.
20732         (.PHONY): Remove all from list.
20733         (mkinstalldirs): Remove.
20734         (.PHONY): Remove installdirs from list.
20735         ($(inst_infodir)/libc.info): Use make-target-directory.
20736         (installdirs): Remove.
20737         (subdir_%): Remove.
20738         (glibc-targets): Remove.
20739         (lib): Remove.
20740         (stubs): Remove.
20741         ($(objpfx)stubs ../po/manual.pot): Remove.
20742         ($(objpfx)stamp%): Remove.
20743         (make-target-directory): Remove.
20744         (subdir_install): Remove.
20745         (routines): Remove.
20746         (aux): Remove.
20747         (sources): Remove.
20748         (objects): Remove.
20749         (headers): Remove.
20750
20751         [BZ #13750]
20752         * manual/.gitignore: Remove, it's not needed anymore.
20753         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
20754         all files in it.
20755         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
20756         directory.
20757         (texis): Renamed to $(objpfx)texis.
20758         (texis-path): New, contains path to generated files.
20759         (chapters.%): Use texis-path for complete path, add extra argument
20760         libc-texinfo.sh.
20761         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
20762         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
20763         (summary,texi, stamp-summary): Use complete path of
20764         files. Generate files in build dir.
20765         (dir-add.texi): Build in build dir.
20766         (libm-err.texi,stamp-libm-err): Likewise.
20767         (version.texi, stamp-version): Likewise.
20768         (.%c.texi): Likewise.
20769         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
20770         (mostlyclean): Remove target.
20771         (realclean): Remove target.
20772         (generated): Add new variable with contents from mostlyclean and
20773         realclean, remove entries duplicated in common-mostlyclean, add
20774         stamp-libm-err and stamp-version.
20775         (generated-dirs): Add libc directory.
20776         ($(inst_infodir)/libc.info): Install files from build dir.
20777
20778         * manual/install.texi (Configuring and compiling): Adjust since
20779         the info files are not part of the tar ball anymore.
20780
20781 2012-05-14  Andreas Jaeger  <aj@suse.de>
20782
20783         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
20784         variable.
20785
20786 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
20787
20788         [BZ #13717]
20789         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
20790         to 2.2.0 where earlier.
20791         * sysdeps/unix/sysv/linux/configure: Regenerated.
20792         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
20793         Remove conditional code.
20794         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
20795         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
20796         Remove conditional code.
20797         [!__NR_lchown]: Likewise.
20798         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
20799         [__NR_lchown]: Likewise.
20800         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
20801         comment referencing __ASSUME_LCHOWN_SYSCALL.
20802         * sysdeps/unix/sysv/linux/i386/sigaction.c
20803         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20804         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20805         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
20806         Remove conditional code.
20807         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
20808         (__protocol_available): Remove #if 0 code.
20809         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
20810         conditional code.
20811         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
20812         * sysdeps/unix/sysv/linux/kernel-features.h
20813         (__ASSUME_GETCWD_SYSCALL): Don't define.
20814         (__ASSUME_REALTIME_SIGNALS): Likewise.
20815         (__ASSUME_PREAD_SYSCALL): Likewise.
20816         (__ASSUME_PWRITE_SYSCALL): Likewise.
20817         (__ASSUME_POLL_SYSCALL): Likewise.
20818         (__ASSUME_LCHOWN_SYSCALL): Likewise.
20819         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
20820         non-SPARC.
20821         (__ASSUME_SIOCGIFNAME): Don't define.
20822         (__ASSUME_MSG_NOSIGNAL): Likewise.
20823         (__ASSUME_SENDFILE): Define unconditionally.
20824         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
20825         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
20826         conditional code.
20827         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
20828         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
20829         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
20830         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
20831         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
20832         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
20833         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
20834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
20835         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20836         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
20838         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20839         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20840         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
20841         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20842         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
20844         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20845         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
20847         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20848         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
20850         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
20851         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
20853         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20854         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
20856         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20857         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20858         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
20859         Remove conditional code.
20860         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20861         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
20862         Remove conditional code.
20863         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20864         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
20865         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
20866         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
20867         Remove conditional code.
20868         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20869         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
20870         Remove conditional code.
20871         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20872         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
20873         Remove conditional code.
20874         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20875         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
20876         Remove conditional code.
20877         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
20878         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
20879         Remove conditional code.
20880         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20881         * sysdeps/unix/sysv/linux/sh/pwrite64.c
20882         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
20883         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
20884         * sysdeps/unix/sysv/linux/sigaction.c
20885         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20886         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20887         * sysdeps/unix/sysv/linux/sigpending.c
20888         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20889         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20890         * sysdeps/unix/sysv/linux/sigprocmask.c
20891         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20892         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20893         * sysdeps/unix/sysv/linux/sigsuspend.c
20894         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
20895         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
20896         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
20897         (__libc_missing_rt_sigs): Remove.
20898         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
20899         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
20900         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
20901         Remove conditional code.
20902         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
20903         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
20904         return 1.
20905         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
20906         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
20907         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
20908         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
20909
20910 2012-05-14  Andreas Jaeger  <aj@suse.de>
20911
20912         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
20913         it's not used in glibc.
20914         (__coshm1): Likewise.
20915         (__acosh1p): Likewise.
20916         (__sgn): Likewise.
20917
20918         * manual/string.texi (Copying and Concatenation): Add missing
20919         variable in concat example.
20920         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
20921
20922 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20923
20924         [BZ #14103]
20925         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
20926         __builtin_clzl with __builtin_clzll.
20927
20928 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
20929
20930         [BZ #14104]
20931         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
20932         libc_freeres_ptr.
20933
20934 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20935
20936         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
20937         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
20938         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
20939         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
20940
20941 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
20942
20943         * NEWS: Update ia64 info.
20944
20945 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
20946
20947         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
20948         used as bcopy.
20949
20950 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
20951
20952         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
20953         * sysdeps/unix/syscalls.list (dup3): Likewise.
20954         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
20955         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
20956
20957 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
20958
20959         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
20960         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
20961
20962 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
20963
20964         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
20965         thread pointer.
20966         (TLS_IE): Use mov/add instead of movq/addq to load thread
20967         pointer.
20968         (TLS_GD_PREFIX): New.
20969         (TLS_GD): Use it.
20970
20971 2012-05-11  David S. Miller  <davem@davemloft.net>
20972
20973         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
20974         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
20975         (_FPU_SETCW): Likewise.
20976
20977 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20978
20979         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
20980         is 32-byte aligned.
20981
20982 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
20983
20984         [BZ #11837]
20985         * iconvdata/gb18030.c: Update tables.
20986         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
20987         characters specially.
20988         (BODY for TO_LOOP): Add encoding of missing ranges.
20989
20990 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
20991
20992         [BZ #13673]
20993         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
20994         * sysdeps/mach/hurd/dup3.c: Likewise.
20995         * sysdeps/mach/hurd/readlinkat.c: Likewise.
20996         * sysdeps/powerpc/memmove.c:: Likewise.
20997
20998 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20999
21000         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
21001         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
21002
21003 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
21004
21005         * elf/elf.h (R_X86_64_RELATIVE64): New.
21006         (R_X86_64_NUM): Updated.
21007         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
21008         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
21009         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
21010         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
21011         tst-quad1pie tst-quad2pie
21012         (modules-names): Add tst-quadmod1 tst-quadmod2.
21013         ($(objpfx)tst-quad1): New dependency.
21014         ($(objpfx)tst-quad2): Likewise.
21015         ($(objpfx)tst-quad1pie): Likewise.
21016         ($(objpfx)tst-quad2pie): Likewise.
21017         * sysdeps/x86_64/tst-quad1.c: New file.
21018         * sysdeps/x86_64/tst-quad1pie.c: New file.
21019         * sysdeps/x86_64/tst-quad2.c: Likewise.
21020         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
21021         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
21022         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
21023         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
21024         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
21025
21026 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21027
21028         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
21029         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
21030         * streams/stropts.h (t_scalar_t): Define type.
21031
21032         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
21033         (_PATH_PRESERVE): Set to "/var/lib".
21034         (_PATH_RWHODIR): Set to "/var/spool/rwho".
21035
21036         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
21037         instead of int.
21038
21039         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
21040         if __dir_mkfile succeeded.
21041
21042         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
21043         checking for _hurd_dtablesize.  Unlock it right after having
21044         finished _hurd_dtable allocation.
21045
21046 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21047
21048         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
21049         * sysdeps/mach/hurd/configure: Regenerated.
21050         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
21051         special-casing to...
21052         * sysdeps/gnu/configure.in: ... this new file.
21053         * sysdeps/unix/sysv/linux/configure: Regenerated.
21054         * sysdeps/gnu/configure: New generated file.
21055
21056         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
21057         for Linux: use nsec instead of usec, as well as:
21058         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
21059         members of type struct timespec.
21060         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
21061         New macros.
21062         (struct stat64): Likewise.
21063         (_STATBUF_ST_NSEC): New macro.
21064         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
21065
21066         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
21067         __strtoul_internal rather than strtoul.
21068
21069 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
21070
21071         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
21072         and reject them.
21073
21074 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21075
21076         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
21077         which preserves existing values.
21078         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
21079
21080 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
21081
21082         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
21083         TIMEOUT values.  Return EINVAL for NFDS values either negative or
21084         greater than FD_SETSIZE.
21085
21086 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21087
21088         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
21089         allocated, call __vm_protect to finish enabling the existing space, and
21090         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
21091         allocate the remainder.
21092
21093 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
21094
21095         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
21096         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
21097
21098 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21099
21100         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
21101         sysdeps/mach/hurd/readlink.c.
21102
21103         * posix/tst-sysconf.c (posix_options): Only use
21104         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
21105         _POSIX_SYNCHRONIZED_IO when they are defined
21106         * sysdeps/mach/hurd/bits/posix_opt.h:
21107         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
21108         (_XOPEN_REALTIME): Undefine macro.
21109         (_XOPEN_REALTIME_THREADS): Undefine macro.
21110         (_XOPEN_SHM): Undefine macro.
21111         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
21112         macro to -1.
21113         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
21114         macro to -1.
21115         (_POSIX_ASYNC_IO): Undefine macro.
21116         (_POSIX_PRIORITIZED_IO): Undefine macro.
21117         (_POSIX_SPIN_LOCKS): Define macro to -1.
21118
21119         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
21120         SA_NODEFER, SA_RESETHAND.
21121         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
21122         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
21123         F_DUPFD_CLOEXEC.
21124
21125 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21126
21127         * elf/Makefile (pldd-modules): Define unconditionally.
21128
21129 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21130
21131         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
21132
21133 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21134
21135         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
21136         Return ENOENT when name is empty.
21137         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
21138
21139 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21140
21141         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
21142
21143         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
21144
21145 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21146
21147         Fix mlock in all cases except non-readable pages.
21148         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
21149         instead of VM_PROT_ALL as parameter to __vm_wire function.
21150
21151         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
21152         (__mkdir): When path is `/', just fail with EEXIST.
21153         * sysdeps/mach/hurd/mkdirat.c: Likewise.
21154
21155 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21156
21157         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
21158         <sys/uio.h> (for writev).
21159         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
21160         and <sys/param.h> (for MIN).
21161
21162 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
21163
21164         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
21165         REQUESTED_TIME.  Properly set the remaining time and return EINTR
21166         if interrupted.
21167
21168 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21169
21170         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
21171         Depend on against $(link-rpcuserlibs).
21172
21173 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21174
21175         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
21176         (__libc_stack_end): Do not use attribute_relro.
21177         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
21178         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
21179         to libthread-provided value.
21180         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
21181         attribute_relro.
21182
21183 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21184
21185         [BZ #3748]
21186         * bits/libc-lock.h (__libc_once_get): New macro.
21187         * sysdeps/mach/bits/libc-lock.h: Likewise.
21188         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
21189         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
21190         instead of using implementation details.
21191
21192         * libio/fileops.c: Unconditionally include <kernel-features.h>.
21193         * libio/freopen.c: Likewise.
21194         * libio/freopen64.c: Likewise.
21195         * misc/syslog.c: Likewise.
21196         * nscd/connections.c: Likewise.
21197         * nscd/netgroupcache.c: Likewise.
21198         * sysdeps/posix/getcwd.c: Likewise.
21199
21200 2012-05-10  Roland McGrath  <roland@hack.frob.com>
21201
21202         * math/w_ilogbf.c: Add #include <limits.h>.
21203
21204 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21205
21206         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
21207         path instead of returning without unlocking.
21208
21209         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
21210         immediate-write ioctls.
21211         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
21212
21213 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21214
21215         * sysdeps/mach/hurd/i386/init-first.c (init): Use
21216         __builtin_frame_address instead of making assumptions about the
21217         location of the return address relative to DATA.  Force early load of
21218         the return address.
21219         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
21220         __builtin_frame_address.
21221
21222         dup3 for GNU Hurd.
21223         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
21224         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
21225         implement dup3 and do some further code clean-ups.
21226         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
21227         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
21228
21229 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21230
21231         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
21232
21233         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
21234         HURD_CRITICAL_END around holding _hurd_dtable_lock.
21235         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
21236         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
21237         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
21238         d->port.lock.
21239
21240         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
21241         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
21242         when handler == SIG_ERR, not when handler != SIG_ERR.
21243
21244 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21245
21246         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
21247         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
21248         definitions.
21249
21250         accept4 for GNU Hurd.
21251         * include/sys/socket.h (__libc_accept4): New prototype.
21252         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
21253         to implement __libc_accept4.
21254         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
21255         __libc_accept4.
21256         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
21257
21258         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
21259         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
21260         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
21261         signal-defines.sym.
21262
21263 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21264
21265         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
21266
21267 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21268
21269         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
21270         assertion on O_CLOEXEC flag.
21271         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
21272         * hurd/intern-fd.c: Likewise.
21273         * hurd/port2fd.c: Likewise.
21274
21275 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21276
21277         [BZ #3906]
21278         * bits/in.h (IPV6_PKTINFO): Define new macro.
21279         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
21280
21281 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21282
21283         [BZ #13954]
21284         [BZ #13955]
21285         [BZ #13956]
21286         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
21287         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
21288         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
21289         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
21290         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
21291         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
21292         * math/libm-test.inc (logb_test) : Additional logb tests.
21293
21294 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
21295             Andreas Jaeger  <aj@suse.de>
21296
21297         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
21298         * configure: Regenerated.
21299         * config.h.in (LINK_OBSOLETE_RPC): New macro.
21300         * config.make.in (link-obsolete-rpc): New substituted variable.
21301         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
21302         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
21303         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
21304         (shared-only-routines): Don't set it under [link-obsolete-rpc],
21305         so that libc.a contains the symbols.
21306         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
21307         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
21308         * sunrpc/auth_none.c: Likewise.
21309         * sunrpc/auth_unix.c: Likewise.
21310         * sunrpc/authdes_prot.c: Likewise.
21311         * sunrpc/authuxprot.c: Likewise.
21312         * sunrpc/clnt_gen.c: Likewise.
21313         * sunrpc/clnt_perr.c: Likewise.
21314         * sunrpc/clnt_raw.c: Likewise.
21315         * sunrpc/clnt_simp.c: Likewise.
21316         * sunrpc/clnt_tcp.c: Likewise.
21317         * sunrpc/clnt_udp.c: Likewise.
21318         * sunrpc/clnt_unix.c: Likewise.
21319         * sunrpc/des_crypt.c: Likewise.
21320         * sunrpc/des_soft.c: Likewise.
21321         * sunrpc/get_myaddr.c: Likewise.
21322         * sunrpc/key_call.c: Likewise.
21323         * sunrpc/key_prot.c: Likewise.
21324         * sunrpc/netname.c: Likewise.
21325         * sunrpc/pm_getmaps.c: Likewise.
21326         * sunrpc/pm_getport.c: Likewise.
21327         * sunrpc/pmap_clnt.c: Likewise.
21328         * sunrpc/pmap_prot.c: Likewise.
21329         * sunrpc/pmap_prot2.c: Likewise.
21330         * sunrpc/pmap_rmt.c: Likewise.
21331         * sunrpc/publickey.c: Likewise.
21332         * sunrpc/rpc_cmsg.c: Likewise.
21333         * sunrpc/rpc_common.c: Likewise.
21334         * sunrpc/rpc_dtable.c: Likewise.
21335         * sunrpc/rpc_prot.c: Likewise.
21336         * sunrpc/rpc_thread.c: Likewise.
21337         * sunrpc/rtime.c: Likewise.
21338         * sunrpc/svc.c: Likewise.
21339         * sunrpc/svc_auth.c: Likewise.
21340         * sunrpc/svc_raw.c: Likewise.
21341         * sunrpc/svc_run.c: Likewise.
21342         * sunrpc/svc_tcp.c: Likewise.
21343         * sunrpc/svc_udp.c: Likewise.
21344         * sunrpc/svc_unix.c: Likewise.
21345         * sunrpc/svcauth_des.c: Likewise.
21346         * sunrpc/xcrypt.c: Likewise.
21347         * sunrpc/xdr.c: Likewise.
21348         * sunrpc/xdr_array.c: Likewise.
21349         * sunrpc/xdr_float.c: Likewise.
21350         * sunrpc/xdr_intXX_t.c: Likewise.
21351         * sunrpc/xdr_mem.c: Likewise.
21352         * sunrpc/xdr_rec.c: Likewise.
21353         * sunrpc/xdr_ref.c: Likewise.
21354         * sunrpc/xdr_sizeof.c: Likewise.
21355         * sunrpc/xdr_stdio.c: Likewise.
21356
21357 2012-05-10  Roland McGrath  <roland@hack.frob.com>
21358
21359         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
21360         change.  Update copyright years.
21361
21362 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
21363
21364         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
21365
21366 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
21367             Joseph Myers  <joseph@codesourcery.com>
21368             Paul Pluzhnikov  <ppluzhnikov@google.com>
21369
21370         [BZ #14012]
21371         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
21372         requiring rpcgen.
21373         [cross-compiling] (extra-libs): Likewise.
21374         [cross-compiling] (extra-libs-others): Likewise.
21375         [cross-compiling] (librpcsvc-routines): Likewise.
21376         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
21377         [cross-compiling] (omit-deps): Likewise.
21378         (sunrpc-CPPFLAGS): New variable.
21379         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
21380         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
21381         (cross-rpcgen-objs): New variable.
21382         (extra-objs): Append $(cross-rpcgen-objs).
21383         ($(cross-rpcgen-objs)): New rule.
21384         ($(objpfx)cross-rpcgen): Likewise.
21385         (rpcgen-cmd): Define to use $(built-program-file).  Expand
21386         comment.
21387         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
21388         ($(objpfx)x%.stmp): Likewise.
21389         * sunrpc/proto.h [IS_IN_build] (_): Define.
21390         [IS_IN_build] (_libc_intl_domainname): Likewise.
21391
21392 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
21393
21394         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
21395         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
21396         and R_X86_64_TPOFF64.
21397
21398 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
21399
21400         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
21401         sysdeps/unix/sysv/syscalls.list.
21402         (stime): Likewise.
21403         (utime): Likewise.
21404         * sysdeps/unix/sysv/syscalls.list: Remove file.
21405
21406 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
21407
21408         [BZ #3440]
21409         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
21410         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
21411         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
21412         (__LC_IDENTIFICATION): Make these macros useful in #if
21413         expressions, as required by C99.
21414
21415 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
21416
21417         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
21418         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
21419         after this.
21420
21421 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
21422
21423         * stdlib/longlong.h: Updated from GCC.
21424
21425 2012-05-09  Andreas Jaeger  <aj@suse.de>
21426
21427         * nscd/nscd.c (run_modes): Make named enum, reorder so that
21428         default is first entry.
21429         (run_mode): Set type.
21430         (main): Remove informal message about syslog.
21431         (options): Fix typo.
21432
21433         [BZ #14053]
21434         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
21435         to asm.
21436         (lrint): Likewise.
21437         (llrintf): Likewise.
21438         (llrint): Likewise.
21439         (rint): Likewise.
21440         (rintf): Likewise.
21441         (nearbyint): Likewise.
21442         (nearbyintf): Likewise.
21443
21444 2012-05-09  Andreas Jaeger  <aj@suse.de>
21445             Pedro Alves  <palves@redhat.com>
21446
21447         * nscd/nscd.c (run_mode): Use enum.
21448         (main): Cleanup coding style issue.
21449
21450 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
21451             Andreas Jaeger  <aj@suse.de>
21452
21453         * nscd/nscd.c (go_background): Replaced with...
21454         (run_mode): ... this.
21455         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
21456         (options): Add -F --foreground.
21457         (main): Implement it.
21458         (parse_opt): Parse it.
21459
21460 2012-05-09  Andreas Jaeger  <aj@suse.de>
21461
21462         [BZ #14083]
21463         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
21464         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
21465         -Wconversion warning.
21466         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
21467         Likewise.
21468
21469 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
21470
21471         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
21472         == 0.
21473         (LC_ALL): Use macro-int-constant.
21474         (LC_COLLATE): Likewise.
21475         (LC_CTYPE): Likewise.
21476         (LC_MESSAGES): Likewise.
21477         (LC_MONETARY): Likewise.
21478         (LC_NUMERIC): Likewise.
21479         (LC_TIME): Likewise.
21480         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
21481         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
21482         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21483         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
21484         Specify type.
21485         [C99-based standards] (float_t): Expect type.
21486         [C99-based standards] (double_t): Expect type.
21487         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
21488         type.
21489         [C99-based standards] (HUGE_VALL): Likewise.
21490         [C99-based standards] (INFINITY): Likewise.
21491         [C99-based standards] (NAN): Likewise.
21492         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
21493         [C99-based standards] (FP_NAN): Likewise.
21494         [C99-based standards] (FP_NORMAL): Likewise.
21495         [C99-based standards] (FP_SUBNORMAL): Likewise.
21496         [C99-based standards] (FP_ZERO): Likewise.
21497         [C99-based standards] (FP_FAST_FMA): Use
21498         optional-macro-int-constant.  Specify type.  Require == 1.
21499         [C99-based standards] (FP_FAST_FMAF): Likewise.
21500         [C99-based standards] (FP_FAST_FMAL): Likewise.
21501         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
21502         [C99-based standards] (FP_ILOGBNAN): Likewise.
21503         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
21504         Specify type.
21505         [C99-based standards] (MATH_ERREXCEPT): Likewise.
21506         [C99-based standards] (math_errhandling): Specify type.
21507         [ISO99 || ISO11] (signgam): Do not allow.
21508         [non-C99-based standards] (copysignf): Do not allow.
21509         [non-C99-based standards] (exp2f): Likewise.
21510         [non-C99-based standards] (log2f): Likewise.
21511         [non-C99-based standards] (modff): Allow.
21512         [non-C99-based standards] (erff): Do not allow.
21513         [non-C99-based standards] (erfcf): Likewise.
21514         [non-C99-based standards] (gammaf): Likewise.
21515         [non-C99-based standards] (hypotf): Likewise.
21516         [non-C99-based standards] (j0f): Likewise.
21517         [non-C99-based standards] (j1f): Likewise.
21518         [non-C99-based standards] (jnf): Likewise.
21519         [non-C99-based standards] (lgammaf): Likewise.
21520         [non-C99-based standards] (tgammaf): Likewise.
21521         [non-C99-based standards] (y0f): Likewise.
21522         [non-C99-based standards] (y1f): Likewise.
21523         [non-C99-based standards] (ynf): Likewise.
21524         [non-C99-based standards] (isnanf): Likewise.
21525         [non-C99-based standards] (acoshf): Likewise.
21526         [non-C99-based standards] (asinhf): Likewise.
21527         [non-C99-based standards] (atanhf): Likewise.
21528         [non-C99-based standards] (cbrtf): Likewise.
21529         [non-C99-based standards] (expm1f): Likewise.
21530         [non-C99-based standards] (ilogbf): Likewise.
21531         [non-C99-based standards] (log1pf): Likewise.
21532         [non-C99-based standards] (logbf): Likewise.
21533         [non-C99-based standards] (nextafterf): Likewise.
21534         [non-C99-based standards] (remainderf): Likewise.
21535         [non-C99-based standards] (rintf): Likewise.
21536         [non-C99-based standards] (scalbf): Likewise.
21537         [non-C99-based standards] (copysignl): Likewise.
21538         [non-C99-based standards] (exp2l): Likewise.
21539         [non-C99-based standards] (log2l): Likewise.
21540         [non-C99-based standards] (modfl): Allow.
21541         [non-C99-based standards] (erfl): Do not allow.
21542         [non-C99-based standards] (erfcl): Likewise.
21543         [non-C99-based standards] (gammal): Likewise.
21544         [non-C99-based standards] (hypotl): Likewise.
21545         [non-C99-based standards] (j0l): Likewise.
21546         [non-C99-based standards] (j1l): Likewise.
21547         [non-C99-based standards] (jnl): Likewise.
21548         [non-C99-based standards] (lgammal): Likewise.
21549         [non-C99-based standards] (tgammal): Likewise.
21550         [non-C99-based standards] (y0l): Likewise.
21551         [non-C99-based standards] (y1l): Likewise.
21552         [non-C99-based standards] (ynl): Likewise.
21553         [non-C99-based standards] (isnanl): Likewise.
21554         [non-C99-based standards] (acoshl): Likewise.
21555         [non-C99-based standards] (asinhl): Likewise.
21556         [non-C99-based standards] (atanhl): Likewise.
21557         [non-C99-based standards] (cbrtl): Likewise.
21558         [non-C99-based standards] (expm1l): Likewise.
21559         [non-C99-based standards] (ilogbl): Likewise.
21560         [non-C99-based standards] (log1pl): Likewise.
21561         [non-C99-based standards] (logbl): Likewise.
21562         [non-C99-based standards] (nextafterl): Likewise.
21563         [non-C99-based standards] (remainderl): Likewise.
21564         [non-C99-based standards] (rintl): Likewise.
21565         [non-C99-based standards] (scalbl): Likewise.
21566         [ISO || ISO99 || ISO11] (*_t): Do not allow.
21567         [non-C99-based standards] (FP_*): Do not allow.
21568         [C99-based standards] (FP_*): Change to
21569         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
21570         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
21571         allow.
21572         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
21573         (SIG_ERR): Likewise.
21574         [X/Open-based standards] (SIG_HOLD): Likewise.
21575         (SIG_IGN): Likewise.
21576         (SIGABRT): Use macro-int-constant.  Specify type.  Require
21577         positive value.
21578         (SIGFPE): Likewise.
21579         (SIGILL): Likewise.
21580         (SIGINT): Likewise.
21581         (SIGSEGV): Likewise.
21582         (SIGTER): Likewise.
21583         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
21584         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
21585         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
21586         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
21587         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
21588         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
21589         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
21590         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
21591         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
21592         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
21593         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
21594         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
21595         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
21596         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
21597         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
21598         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
21599         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
21600         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
21601         [X/Open-based standards] (SIGTRAP): Likewise.
21602         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
21603         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
21604         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
21605         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
21606         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
21607         allow.
21608
21609 2012-05-08  Ian Wienand  <ianw@vmware.com>
21610
21611         [BZ #14080]
21612         * time/tzset.c (__tzset_parse_tz): Update default rules for
21613         daylight time changes in the Energy Policy Act of 2005.
21614
21615 2012-05-09  Andreas Jaeger  <aj@suse.de>
21616
21617         [BZ #13983]
21618         * elf/ldconfig.c (parse_conf): Change string to make clear that
21619         ldconfig only issued a warning if ld.so.conf does not exist.
21620
21621 2012-05-08  David S. Miller  <davem@davemloft.net>
21622
21623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
21624         movxtod instead of popping the value on the stack.
21625
21626         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21627
21628 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
21629
21630         * config.h.in: Add HAVE_ARM_PCS_VFP.
21631
21632 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
21633
21634         [BZ #13979]
21635         * include/features.h: Warn if user requests __FORTIFY_SOURCE
21636         checking but the checks are disabled for any reason.
21637
21638 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
21639
21640         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
21641         and ELF64_R_TYPE with ELFW(R_TYPE).
21642
21643 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
21644
21645         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
21646         (ulimit): Likewise.
21647
21648         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
21649         (settimeofday): Likewise.
21650
21651 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
21652
21653         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
21654         a struct th_u2 inside the union, and move tu_block/tu_code into
21655         a new th_u3 union of tu_block/tu_code inside of that.  Move
21656         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
21657         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
21658         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
21659         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
21660         (th_stuff): Change to th_u1.tu_stuff.
21661         (th_data): Define.
21662         (th_msg): Change to th_u1.th_u2.tu_data.
21663
21664 2012-05-07  David S. Miller  <davem@davemloft.net>
21665
21666         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21667
21668         [BZ #14074]
21669         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
21670         (SETUP_PIC_REG): Use it.
21671         (SETUP_PIC_REG_LEAF): Use it.
21672
21673 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
21674
21675         [BZ #13885]
21676         [BZ #13923]
21677         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
21678         USE_AS_EXPM1L.
21679         (EXPL_FINITE): Likewise.
21680         (FLDLOG): Likewise.
21681         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
21682         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
21683         e_expl.S.
21684         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
21685         USE_AS_EXPM1L.
21686         (EXPL_FINITE): Likewise.
21687         (FLDLOG): Likewise.
21688         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
21689         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
21690         e_expl.S.
21691         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
21692         test of -max_value argument for long double.
21693         * sysdeps/i386/fpu/libm-test-ulps: Update.
21694         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21695
21696 2012-05-06  David S. Miller  <davem@davemloft.net>
21697
21698         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
21699         quad soft-float symbols whose references which are compiler
21700         generated.
21701         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
21702
21703 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
21704
21705         [BZ #13884]
21706         [BZ #13914]
21707         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
21708         USE_AS_EXP10L.
21709         (EXPL_FINITE): Likewise.
21710         (FLDLOG): Likewise.
21711         (c0): Likewise.
21712         (c1): Likewise.
21713         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
21714         Adjust comments for base varying.
21715         (__expl_finite): Change alias to EXPL_FINITE.
21716         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
21717         e_expl.S.
21718         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
21719         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
21720         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
21721         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
21722         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
21723         USE_AS_EXP10L.
21724         (EXPL_FINITE): Likewise.
21725         (FLDLOG): Likewise.
21726         (c0): Likewise.
21727         (c1): Likewise.
21728         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
21729         Adjust comments for base varying.
21730         (__expl_finite): Change alias to EXPL_FINITE.
21731         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
21732         tests for bugs.
21733         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21734
21735         [BZ #14064]
21736         * math/libm-test.inc (check_float_internal): Correct ulp
21737         calculation for subnormal expected results.
21738
21739 2012-05-06  Andreas Jaeger  <aj@suse.de>
21740
21741         * Makeconfig (+math-flags): New, set to -frounding-math.
21742         (+cflags): Add +math-flags so that all of glibc gets compiled with
21743         it.
21744
21745         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
21746
21747 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
21748
21749         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
21750         Disable one test.
21751
21752         [BZ #13787]
21753         [BZ #13922]
21754         [BZ #14036]
21755         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
21756         (__ieee754_expl): Allow for and saturate large arguments.
21757         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
21758         (u_threshold): Likewise.
21759         (__exp): Call __ieee754_exp before checking for overflow and
21760         underflow.
21761         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
21762         (u_threshold): Likewise.
21763         (__expf): Call __ieee754_expf before checking for overflow and
21764         underflow.
21765         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
21766         (u_threshold): Likewise.
21767         (__expl): Call __ieee754_expl before checking for overflow and
21768         underflow.
21769         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
21770         (__ieee754_expl): Allow for and saturate large arguments.
21771         * math/libm-test.inc (exp_test): Add another test.  Do not allow
21772         missing overflow exception on overflow.
21773         (expm1_test): Do not allow missing overflow exception on overflow.
21774
21775         * sysdeps/i386/fpu/e_expl.c: Move to ...
21776         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
21777         rather than using inline asm.
21778         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
21779         * sysdeps/x86_64/fpu/e_expl.S: Copy from
21780         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
21781
21782         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
21783         (nice): Likewise.
21784         (poll): Likewise.
21785         (signal): Likewise.
21786         (time): Likewise.
21787         (times): Likewise.
21788
21789 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
21790
21791         * sysdeps/unix/syscalls.list (adjtime): Add entry from
21792         sysdeps/unix/common/syscalls.list.
21793         (fchmod): Likewise.
21794         (fchown): Likewise.
21795         (ftruncate): Likewise.
21796         (getrusage): Likewise.
21797         (gettimeofday): Likewise.
21798         (setpgid): Likewise.
21799         (setregid): Likewise.
21800         (setreuid): Likewise.
21801         (sigaction): Likewise.
21802         (truncate): Likewise.
21803         (vhangup): Likewise.
21804         * sysdeps/unix/common/syscalls.list: Remove file.
21805         * sysdeps/unix/bsd/Implies: Don't include unix/common.
21806         * sysdeps/unix/sysv/linux/Implies: Likewise.
21807
21808 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
21809
21810         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
21811         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
21812         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
21813         Moved to ...
21814         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
21815         Here.
21816         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
21817         to ...
21818         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
21819         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
21820         to ...
21821         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
21822         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
21823         to ...
21824         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
21825         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
21826         to ...
21827         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
21828         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
21829         to ...
21830         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
21831         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
21832         to ...
21833         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
21834         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
21835         to ...
21836         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
21837         Here.
21838         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
21839         to ...
21840         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
21841         Here.
21842         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
21843         to ...
21844         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
21845         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
21846         Moved to ...
21847         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
21848         Here.
21849         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
21850         to ...
21851         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
21852
21853 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
21854
21855         * sysdeps/unix/common/bits/dirent.h: Remove file.
21856         * sysdeps/unix/common/bits/fcntl.h: Likewise.
21857
21858         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
21859         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
21860         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
21861         * sysdeps/unix/bsd/isatty.c: Likewise.
21862         * sysdeps/unix/bsd/tcdrain.c: Likewise.
21863         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
21864         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
21865
21866 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21867
21868         [BZ #13563]
21869         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
21870         long double comparison inaccuracies.
21871         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
21872         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21873
21874 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
21875
21876         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
21877         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
21878
21879 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
21880
21881         [BZ #14049]
21882         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
21883         nonzero digits before rounding a hex value.
21884         * stdlib/tst-strtod.c (tests): Add another test.
21885
21886 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21887
21888         * sysdeps/s390/fpu/libm-test-ulps: Update.
21889
21890 2012-05-03  Andreas Jaeger  <aj@suse.de>
21891
21892         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
21893         does not get optimized out.
21894         (malloc_opt_barrier): New.
21895
21896 2012-05-03  Andreas Jaeger  <aj@suse.de>
21897             Roland McGrath  <roland@hack.frob.com>
21898
21899         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
21900         intermediate file deletion.
21901         (generated): Add .symlist files.
21902
21903 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
21904
21905         [BZ #13775]
21906         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
21907         Redirect under this condition.
21908         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
21909         [__USE_GNU] (__dprintf_chk): Not under this condition.
21910         [__USE_GNU] (__vdprintf_chk): Likewise.
21911         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
21912         under this condition.
21913         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
21914         [__USE_XOPEN2K8] (dprintf): Define under this condition.
21915         [__USE_XOPEN2K8] (vdprintf): Likewise.
21916         [__USE_GNU] (__dprintf_chk): Not under this condition.
21917         [__USE_GNU] (__vdprintf_chk): Likewise.
21918         [__USE_GNU] (dprintf): Likewise.
21919         [__USE_GNU] (vdprintf): Likewise.
21920
21921 2012-05-03  Roland McGrath  <roland@hack.frob.com>
21922
21923         * elf/Makefile (common-generated): Set this instead of generated for
21924         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
21925         $(all-built-dso)-derived lists.
21926
21927 2012-05-03  Andreas Jaeger  <aj@suse.de>
21928
21929         * sysdeps/i386/fpu/libm-test-ulps: Update.
21930
21931         * FAQ: Removed.
21932         * FAQ.in: Likewise.
21933         * scripts/gen-FAQ.pl: Likewise.
21934         * manual/install.texi (Installation): Point to online location of
21935         FAQ.
21936         * Makefile (files-for-dist): Remove FAQ.
21937         (FAQ): Remove.
21938
21939 2012-05-02  Allan McRae  <allan@archlinux.org>
21940
21941         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
21942         (LDFLAGS-reldepmod5.so): Likewise.
21943         (LDFLAGS-reldep6mod1.so): Likewise.
21944         (LDFLAGS-reldep6mod4.so): Likewise.
21945         (LDFLAGS-reldep8mod3.so): Likewise.
21946         (LDFLAGS-unload4mod1.so): Likewise.
21947         (LDFLAGS-unload4mod2.so): Likewise.
21948         (LDFLAGS-tst-initorder): Likewise.
21949         (LDFLAGS-tst-initordera2.so): Likewise.
21950         (LDFLAGS-tst-initordera3.so): Likewise.
21951         (LDFLAGS-tst-initordera4.so): Likewise.
21952         (LDFLAGS-tst-initorderb2.so): Likewise.
21953         (LDFLAGS-noload): Likewise.
21954         (LDFLAGS-next): Likewise.
21955         (LDFLAGS-order2mod1.so): Likewise.
21956         (LDFLAGS-order2mod2.so): Likewise.
21957         (LDFLAGS-tst-initorder2): Likewise.
21958         (LDFLAGS-tst-initorder2a.so): Likewise.
21959         (LDFLAGS-tst-initorder2b.so): Likewise.
21960         (LDFLAGS-tst-initorder2c.so): Likewise.
21961         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
21962
21963 2012-05-02  David S. Miller  <davem@davemloft.net>
21964
21965         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21966
21967 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
21968
21969         [BZ #14055]
21970         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
21971
21972 2012-05-02  Andreas Jaeger  <aj@suse.de>
21973
21974         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
21975         since we manipulate rounding mode.
21976         (CPPFLAGS-test-idouble.c): Likewise.
21977         (CPPFLAGS-test-ifloat.c): Likewise.
21978         (CFLAGS-test-ldouble.c): Likewise.
21979         (CFLAGS-test-double.c): Likewise.
21980         (CFLAGS-test-float.c): Likewise.
21981         (CFLAGS-test-misc.c): Likewise.
21982         (CFLAGS-test-test-fenv.c): Likewise.
21983
21984 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21985
21986         [BZ #2550]
21987         [BZ #2570]
21988         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
21989         comparisons to determine direction to adjust input.
21990
21991 2012-05-01  Roland McGrath  <roland@hack.frob.com>
21992
21993         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
21994         output to the target.
21995
21996         * scripts/localplt.awk: New file.
21997         * elf/Makefile ($(objpfx)check-localplt): Target removed.
21998         (check-localplt-CFLAGS): Variable removed.
21999         ($(all-built-dso:=.jmprel)): New static pattern rule.
22000         (generated): Add those targets.
22001         (localplt-built-dso): New variable.
22002         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
22003
22004         * elf/check-localplt.c: File removed.
22005
22006         * scripts/check-execstack.awk: New file.
22007         * elf/Makefile ($(objpfx)check-execstack): Target removed.
22008         (check-execstack-CFLAGS): Variable removed.
22009         ($(objpfx)check-execstack.h): Target removed.
22010         ($(objpfx)execstack-default): New target.
22011         (generated): Add that instead of check-execstack.h.
22012         ($(all-built-dso:=.phdr)): New static pattern rule.
22013         (generated): Add those targets.
22014         * elf/check-execstack.c: File removed.
22015
22016         * scripts/check-textrel.awk: New file.
22017         * elf/Makefile ($(objpfx)check-textrel): Target removed.
22018         (check-textrel-CFLAGS): Variable removed.
22019         (all-built-dso): Use := to define.o
22020         ($(all-built-dso:=.dyn)): New static pattern rule.
22021         (generated): Add those targets.
22022         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
22023         * config.make.in (READELF): New substituted variable.
22024         * elf/check-textrel.c: File removed.
22025
22026 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
22027
22028         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
22029         allow.
22030         * conform/data/ctype.h-data [C99-based standards] (isblank):
22031         Expect function.
22032         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
22033         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
22034         [ISO || ISO99 || ISO11] (*_t): Do not allow.
22035         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
22036         Specify type.  Require positive value.
22037         (EILSEQ): Likewise.
22038         (ERANGE): Likewise.
22039         [ISO || POSIX] (EILSEQ): Do not expect.
22040         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
22041         Specify type.  Require positive value.
22042         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
22043         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
22044         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
22045         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
22046         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
22047         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
22048         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
22049         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
22050         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
22051         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
22052         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
22053         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
22054         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
22055         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
22056         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
22057         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
22058         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
22059         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
22060         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
22061         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
22062         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
22063         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
22064         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
22065         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
22066         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
22067         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
22068         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
22069         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
22070         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
22071         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
22072         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
22073         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
22074         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
22075         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
22076         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
22077         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
22078         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
22079         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
22080         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
22081         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
22082         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
22083         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
22084         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
22085         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
22086         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
22087         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
22088         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
22089         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
22090         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
22091         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
22092         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
22093         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
22094         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
22095         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
22096         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
22097         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
22098         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
22099         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
22100         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
22101         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
22102         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
22103         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
22104         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
22105         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
22106         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
22107         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
22108         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
22109         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
22110         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
22111         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
22112         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
22113         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
22114         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
22115         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
22116         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
22117         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
22118         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
22119         Require >= 2.
22120         (FLT_ROUNDS): Expect as macro, not constant.
22121         (FLT_MANT_DIG): Use macro-int-constant.
22122         (DBL_MANT_DIG): Likewise.
22123         (LDBL_MANT_DIG): Likewise.
22124         (FLT_DIG): Likewise.
22125         (DBL_DIG): Likewise.
22126         (LDBL_DIG): Likewise.
22127         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
22128         (DBL_MIN_EXP): Likewise.
22129         (LDBL_MIN_EXP): Likewise.
22130         (FLT_MAX_EXP): Use macro-int-constant.
22131         (DBL_MAX_EXP): Likewise.
22132         (LDBL_MAX_EXP): Likewise.
22133         (FLT_MAX_10_EXP): Likewise.
22134         (DBL_MAX_10_EXP): Likewise.
22135         (LDBL_MAX_10_EXP): Likewise.
22136         (FLT_MAX): Use macro-constant.
22137         (DBL_MAX): Likewise.
22138         (LDBL_MAX): Likewise.
22139         (FLT_EPSILON): Use macro-constant.  Give upper bound.
22140         (DBL_EPSILON): Likewise.
22141         (LDBL_EPSILON): Likewise.
22142         (FLT_MIN): Likewise.
22143         (DBL_MIN): Likewise.
22144         (LDBL_MIN): Likewise.
22145         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
22146         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
22147         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
22148         [ISO11] (FLT_HAS_SUBNORM): Likewise.
22149         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
22150         [ISO11] (DBL_DECIMAL_DIG): Likewise.
22151         [ISO11] (FLT_DECIMAL_DIG): Likewise.
22152         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
22153         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
22154         [ISO11] (FLT_TRUE_MIN): Likewise.
22155         [ISO11] (LDBL_TRUE_MIN): Likewise.
22156         [ISO || ISO99 || ISO11] (*_t): Do not allow.
22157         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
22158         (SCHAR_MIN): Use macro-int-constant.  Specify type.
22159         (SCHAR_MAX): Likewise.
22160         (UCHAR_MAX): Likewise.
22161         (CHAR_MIN): Likewise.
22162         (CHAR_MAX): Likewise.
22163         (MB_LEN_MAX): Use macro-int-constant.
22164         (SHRT_MIN): Use macro-int-constant.  Specify type.
22165         (SHRT_MAX): Likewise.
22166         (USHRT_MAX): Likewise.
22167         (INT_MAX): Likewise.
22168         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
22169         bound negative.
22170         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
22171         bound with "U".
22172         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
22173         bound with "L".
22174         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
22175         bound negative.  Suffix upper bound with "L".
22176         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
22177         bound with "UL".
22178         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
22179         Specify type.
22180         [C99-based standards] (LLONG_MAX): Likewise.
22181         [C99-based standards] (ULLONG_MAX): Likewise.
22182         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
22183         == 0.
22184         [ISO11] (max_align_t): Require type.
22185         [ISO || ISO99 || ISO11] (*_t): Do not allow.
22186
22187         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
22188         from $CFLAGS, without defining away __attribute__ calls.
22189         (checknamespace): Use $CFLAGS_namespace.
22190
22191         * conform/conformtest.pl (@keywords): Only include C99 keywords
22192         for standards based on C99 or C11.
22193
22194         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
22195         Disable tests.
22196         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
22197         UNIX98]: Likewise.
22198
22199         * conform/conformtest.pl: Handle "macro-int-constant" and test for
22200         usability of symbols in #if.
22201
22202         * conform/conformtest.pl: If macro or constant types start
22203         "promoted:", expect the symbol to be of the following type
22204         promoted by the integer promotions.
22205
22206         * conform/conformtest.pl: Parse all "constant" and "macro" lines
22207         in one place.  Also handle "macro-constant".
22208
22209         * conform/conformtest.pl: Only accept expected macro values with
22210         "==".  Parse all "macro" lines in one place.
22211         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
22212
22213         * conform/conformtest.pl: Handle braced types on "constant" lines
22214         instead of handling "typed-constant".
22215         * conform/data/signal.h-data: Use "constant" instead of
22216         "typed-constant".
22217
22218         * conform/conformtest.pl: Handle "optional-" at start of lines in
22219         one place rather than duplicating several cases.  Handle each
22220         format of "macro" line with initial "optional-".
22221
22222         * conform/conformtest.pl: Only accept expected constant or
22223         optional-constant values with "==".  Parse all "constant" lines in
22224         one place.  Parse all "optional-constant" lines in one place.
22225         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
22226         * conform/data/fmtmsg.h-data: Likewise.
22227         * conform/data/netinet/in.h-data: Likewise.
22228         * conform/data/tar.h-data: Likewise.
22229         * conform/data/limits.h-data: Use "==" form on "constant" and
22230         "optional-constant" lines.
22231
22232         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
22233         Use -std=c99 for XOPEN2K.
22234         (@knownproblems): Remove.
22235         (newtoken): Don't check %isknown.
22236
22237         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
22238         Do not expect macro.
22239         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
22240         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
22241         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
22242         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
22243         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
22244         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
22245         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
22246         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
22247         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
22248         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
22249         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
22250         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
22251         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
22252         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
22253         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
22254         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
22255         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
22256         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
22257         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
22258         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
22259         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
22260         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
22261         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
22262         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
22263         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
22264         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
22265         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
22266         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
22267         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
22268         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
22269         [XPG3] (acosh): Likewise.
22270         [XPG3] (asinh): Likewise.
22271         [XPG3] (atanh): Likewise.
22272         [XPG3] (cbrt): Likewise.
22273         [XPG3] (expm1): Likewise.
22274         [XPG3] (ilogb): Likewise.
22275         [XPG3] (log1p): Likewise.
22276         [XPG3] (logb): Likewise.
22277         [XPG3] (nextafter): Likewise.
22278         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
22279         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
22280         [XPG3] (remainder): Likewise.
22281         [XPG3] (rint): Likewise.
22282         [XPG3 || XPG4 || UNIX98] (round): Likewise.
22283         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
22284         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
22285         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
22286         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
22287         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
22288         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
22289         [UNIX98 || XOPEN2K] (scalb): Expect.
22290         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
22291         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
22292         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
22293         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
22294         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
22295         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
22296         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
22297         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
22298         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
22299         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
22300         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
22301         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
22302         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
22303         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
22304         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
22305         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
22306         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
22307         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
22308         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
22309         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
22310         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
22311         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
22312         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
22313         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
22314         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
22315         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
22316         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
22317         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
22318         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
22319         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
22320         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
22321         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
22322         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
22323         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
22324         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
22325         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
22326         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
22327         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
22328         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
22329         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
22330         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
22331         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
22332         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
22333         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
22334         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
22335         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
22336         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
22337         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
22338         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
22339         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
22340         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
22341         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
22342         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
22343         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
22344         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
22345         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
22346         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
22347         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
22348         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
22349         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
22350         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
22351         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
22352         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
22353         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
22354         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
22355         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
22356         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
22357         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
22358         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
22359         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
22360         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
22361         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
22362         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
22363         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
22364         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
22365         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
22366         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
22367         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
22368         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
22369         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
22370         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
22371         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
22372         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
22373         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
22374         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
22375         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
22376         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
22377         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
22378         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
22379         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
22380         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
22381         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
22382         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
22383         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
22384         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
22385         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
22386         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
22387         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
22388         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
22389         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
22390         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
22391         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
22392         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
22393         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
22394         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
22395         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
22396         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
22397         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
22398         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
22399         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
22400         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
22401         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
22402         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
22403         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
22404         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
22405         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
22406         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
22407         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
22408         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
22409         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
22410         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
22411         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
22412         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
22413         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
22414         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
22415         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
22416         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
22417         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
22418         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
22419         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
22420         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
22421         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
22422         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
22423         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
22424         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
22425         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
22426         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
22427
22428         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
22429         _XOPEN_SOURCE_EXTENDED for XPG4.
22430
22431         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
22432
22433         * Makeconfig (localtime): Remove variable.
22434         (inst_localtime-file): Likewise.
22435
22436 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
22437
22438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
22439         Update.
22440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
22441         Update.
22442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
22443         Update.
22444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
22445         Update.
22446         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
22447         Update.
22448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
22449         Update.
22450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
22451         Update.
22452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
22453         Update.
22454         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
22455         Update.
22456
22457 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
22458
22459         [BZ #2550]
22460         [BZ #2570]
22461         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
22462         comparisons to determine direction to adjust input.
22463         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
22464         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
22465         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
22466         Likewise.
22467         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
22468         Likewise.
22469         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
22470         Likewise.
22471         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
22472         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
22473         Likewise.
22474         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
22475         Likewise.
22476         * math/libm-test.inc (nexttoward_test): Add more tests.
22477
22478 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
22479
22480         [BZ #14040]
22481         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
22482         in version GLIBC_2.1, not GLIBC_2.0.
22483         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
22484         Likewise.
22485
22486 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
22487
22488         [BZ #13942]
22489         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
22490         (1 - x) * (1 + x).
22491         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
22492         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
22493         * math/libm-test.inc (acos_test): Add more tests.
22494         (asin_test): Likewise.
22495         * sysdeps/i386/fpu/libm-test-ulps: Update.
22496         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22497
22498         [BZ #14034]
22499         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
22500         of square root.
22501         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
22502         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
22503         * math/libm-test.inc (acos_test_tonearest): New function.
22504         (acos_test_towardzero): Likewise.
22505         (acos_test_downward): Likewise.
22506         (acos_test_upward): Likewise.
22507         (asin_test_tonearest): Likewise.
22508         (asin_test_towardzero): Likewise.
22509         (asin_test_downward): Likewise.
22510         (asin_test_upward): Likewise.
22511         (main): Call the new functions.
22512         * sysdeps/i386/fpu/libm-test-ulps: Update.
22513         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22514
22515         [BZ #13884]
22516         [BZ #13924]
22517         * math/e_exp10.c: Include <float.h>.
22518         (__ieee754_exp10): Handle underflow here rather than multiplying
22519         large negative argument by M_LN10.
22520         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
22521         of __ieee754_expf.
22522         * math/e_exp10l.c: Include <float.h>.
22523         (__ieee754_exp10l): Handle underflow here rather than multiplying
22524         large negative argument by M_LN10l.
22525         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
22526         spurious overflow exception on underflow.
22527
22528 2012-04-29  Marek Polacek  <polacek@redhat.com>
22529
22530         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
22531         (__fortify_function): New macro.
22532         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
22533         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
22534         __extern_always_inline.
22535         * libio/bits/stdio2.h: Likewise.
22536         * libio/bits/stdio.h: Likewise.
22537         * string/string.h: Likewise.
22538         * string/bits/string3.h: Likewise.
22539         * include/stdio.h: Likewise.
22540         * stdlib/bits/stdlib.h: Likewise.
22541         * stdlib/stdlib.h: Likewise.
22542         * rt/bits/mqueue2.h: Likewise.
22543         * rt/mqueue.h: Likewise.
22544         * posix/bits/unistd.h: Likewise.
22545         * posix/unistd.h: Likewise.
22546         * io/bits/poll2.h: Likewise.
22547         * io/bits/fcntl2.h: Likewise.
22548         * io/fcntl.h: Likewise.
22549         * io/sys/poll.h: Likewise.
22550         * misc/bits/syslog.h: Likewise.
22551         * misc/bits/syslog-ldbl.h: Likewise.
22552         * misc/sys/syslog.h: Likewise.
22553         * socket/bits/socket2.h: Likewise.
22554         * socket/sys/socket.h: Likewise.
22555         * debug/tst-chk1.c: Likewise.
22556         * wcsmbs/bits/wchar2.h: Likewise.
22557         * wcsmbs/bits/wchar-ldbl.h: Likewise.
22558         * wcsmbs/wchar.h: Likewise.
22559
22560 2012-04-29  Andreas Jaeger  <aj@suse.de>
22561
22562         * Makerules (tests): Remove enable-check-abi protection.
22563         (check-abi-warn): Remove.
22564         (check-abi-%): Remove check-abi-warn usage.
22565
22566         * configure.in: Remove check-abi configure option.
22567         * configure: Regenerated.
22568         * config.make.in (enable-check-abi): Remove.
22569
22570 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
22571
22572         [BZ #14033]
22573         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
22574         double functions to double *_finite functions.
22575
22576         [BZ #13941]
22577         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
22578         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
22579         LDBL_MIN_EXP.
22580         * stdio-common/Makefile (tests): Add tst-sprintf3.
22581         * stdio-common/tst-sprintf3.c: New file.
22582
22583         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
22584         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
22585
22586 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
22587
22588         * conform/conformtest.pl: Remove duplicate typed-constant
22589         handling.
22590
22591 2012-04-28  David S. Miller  <davem@davemloft.net>
22592
22593         * Makerules (%.abilist): Add vpath on sysdep_dirs.
22594         (check-abi-%): Remove AWK script prerequisite and explicit
22595         abilist directory.
22596         (check-abi): Rewrite to just diff the symlist with the abilist.
22597         (config-tls, config-abi-config): Delete, no longer used.
22598         (update-abi-%): Remove AWK script and explicit abilist directory.
22599         (update-abi): Rewrite to simply compare and conditionally copy the
22600         symlist and the sysdep abilist file.  Remove update-abi-config
22601         checks.
22602         * abilist/ld.abilist: Remove.
22603         * abilist/libBrokenLocale.abilist: Remove.
22604         * abilist/libanl.abilist: Remove.
22605         * abilist/libcrypt.abilist: Remove.
22606         * abilist/libdl.abilist: Remove.
22607         * abilist/librt.abilist: Remove.
22608         * abilist/libthread_db.abilist: Remove.
22609         * abilist/libutil.abilist: Remove.
22610         * scripts/extract-abilist.awk: Remove.
22611         * scripts/merge-abilist.awk: Remove.
22612         * sysdeps/generic/libcidn.abilist: New file.
22613         * sysdeps/generic/libnss_compat.abilist: New file.
22614         * sysdeps/generic/libnss_db.abilist: New file.
22615         * sysdeps/generic/libnss_dns.abilist: New file.
22616         * sysdeps/generic/libnss_files.abilist: New file.
22617         * sysdeps/generic/libnss_hesiod.abilist: New file.
22618         * sysdeps/generic/libnss_nis.abilist: New file.
22619         * sysdeps/generic/libnss_nisplus.abilist: New file.
22620         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
22621         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
22622         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
22623         file.
22624         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
22625         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
22626         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
22627         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
22628         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
22629         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
22630         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
22631         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
22632         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
22633         file.
22634         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
22635         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
22636         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
22637         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
22638         file.
22639         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
22640         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
22641         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
22642         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
22643         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
22644         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
22645         file.
22646         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
22647         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
22648         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
22649         file.
22650         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
22651         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
22652         New file.
22653         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
22654         New file.
22655         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
22656         New file.
22657         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
22658         New file.
22659         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
22660         New file.
22661         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
22662         New file.
22663         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
22664         New file.
22665         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
22666         New file.
22667         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
22668         New file.
22669         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
22670         New file.
22671         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
22672         New file.
22673         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
22674         New file.
22675         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
22676         New file.
22677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
22678         file.
22679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
22680         New file.
22681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
22682         New file.
22683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
22684         file.
22685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
22686         New file.
22687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
22688         New file.
22689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
22690         file.
22691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
22692         New file.
22693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
22694         New file.
22695         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
22696         New file.
22697         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
22698         New file.
22699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
22700         New file.
22701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
22702         New file.
22703         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
22704         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
22705         file.
22706         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
22707         New file.
22708         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
22709         file.
22710         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
22711         file.
22712         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
22713         file.
22714         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
22715         file.
22716         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
22717         file.
22718         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
22719         New file.
22720         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
22721         file.
22722         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
22723         file.
22724         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
22725         New file.
22726         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
22727         file.
22728         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
22729         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
22730         file.
22731         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
22732         New file.
22733         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
22734         file.
22735         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
22736         file.
22737         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
22738         file.
22739         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
22740         file.
22741         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
22742         file.
22743         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
22744         New file.
22745         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
22746         file.
22747         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
22748         file.
22749         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
22750         New file.
22751         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
22752         file.
22753         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
22754         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
22755         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
22756         file.
22757         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
22758         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
22759         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
22760         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
22761         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
22762         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
22763         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
22764         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
22765         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
22766         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
22767         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
22768         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
22769         file.
22770         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
22771         New file.
22772         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
22773         file.
22774         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
22775         file.
22776         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
22777         file.
22778         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
22779         file.
22780         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
22781         file.
22782         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
22783         New file.
22784         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
22785         New file.
22786         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
22787         file.
22788         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
22789         New file.
22790         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
22791         file.
22792         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
22793         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
22794         file.
22795         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
22796         New file.
22797         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
22798         file.
22799         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
22800         file.
22801         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
22802         file.
22803         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
22804         file.
22805         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
22806         file.
22807         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
22808         New file.
22809         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
22810         New file.
22811         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
22812         file.
22813         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
22814         New file.
22815         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
22816         file.
22817
22818 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
22819
22820         * conform/conformtest.pl: Fix typo in handling typed-constant from
22821         allow-header.
22822
22823 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
22824
22825         * README: Cut down references to pre-2.6 Linux kernels and
22826         Linuxthreads.  Update lists of configurations in libc and ports
22827         and sort alphabetically.  Say "or newer" with Linux kernel version
22828         requirements.
22829
22830         * config.h.in [IS_IN_build]: Allow compiling without optimization.
22831
22832 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22833
22834         [BZ #887]
22835         * math/libm-test.inc (logb_test_downward): New test to expose
22836         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
22837         rounding mode.
22838
22839 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
22840
22841         [BZ #14027]
22842         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
22843         to be done.
22844         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
22845         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
22846
22847 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
22848
22849         * sysdeps/unix/i386/brk.S: Remove file.
22850         * sysdeps/unix/i386/dl-brk.S: Likewise.
22851         * sysdeps/unix/i386/pipe.S: Likewise.
22852         * sysdeps/unix/i386/sigreturn.S: Likewise.
22853         * sysdeps/unix/i386/syscall.S: Likewise.
22854         * sysdeps/unix/i386/vfork.S: Likewise.
22855         * sysdeps/unix/i386/wait.S: Likewise.
22856
22857         * sysdeps/unix/common/tcsendbrk.c: Move to ...
22858         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
22859
22860         * configure.in (arm*-none*): Do not allow without
22861         --enable-hacker-mode.
22862         (netbsd*): Remove case setting base_os.
22863         (386bsd*): Likewise.
22864         (freebsd*): Likewise.
22865         (bsdi*): Likewise.
22866         (osf*): Likewise.
22867         (sunos*): Likewise.
22868         (ultrix*): Likewise.
22869         (newsos*): Likewise.
22870         (dynix*): Likewise.
22871         (*bsd*): Likewise.
22872         (sysv*): Likewise.
22873         (isc*): Likewise.
22874         (esix*): Likewise.
22875         (sco*): Likewise.
22876         (minix*): Likewise.
22877         (irix4*): Likewise.
22878         (irix6*): Likewise.
22879         (solaris[2-9]*): Likewise.
22880         (none): Likewise.
22881         * configure: Regenerated.
22882
22883 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22884
22885         [BZ #11521]
22886         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
22887         overflow or cancellation in calculating denominator.
22888         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
22889         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
22890         down expression to avoid unexpected rounding in newer GCCs.
22891         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
22892
22893 2012-04-26  David S. Miller  <davem@davemloft.net>
22894
22895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
22896         long-double compat symbols.
22897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
22898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
22899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
22900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
22901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
22902         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
22903         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
22904         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
22905         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
22906         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
22907         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
22908         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
22909         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
22910
22911 2012-04-25  David S. Miller  <davem@davemloft.net>
22912
22913         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
22914         HWCAP_* values only after the memory barriers have been defined.
22915         (atomic_full_barrier): Define.
22916         (atomic_read_barrier): Define.
22917         (atomic_write_barrier): Define.
22918
22919 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
22920
22921         * shlib-versions: Add libgcc_s version information.
22922         * sysdeps/generic/libgcc_s.h: Remove.
22923         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
22924         libgcc_s.h.
22925         * sysdeps/gnu/unwind-resume.c: Likewise.
22926         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
22927
22928 2012-04-25  David S. Miller  <davem@davemloft.net>
22929
22930         * sysdeps/unix/sparc/brk.S: Delete.
22931         * sysdeps/unix/sparc/dl-brk.S: Delete.
22932         * sysdeps/unix/sparc/pipe.S: Delete.
22933         * sysdeps/unix/sparc/sysdep.S: Delete.
22934         * sysdeps/unix/sparc/sysdep.h: Delete.
22935         * sysdeps/unix/sparc/vfork.S: Delete.
22936         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
22937         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
22938         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
22939         ret_ERRVAL, r0, r1, MOVE): Define.
22940         (JUMPTARGET): Remove.
22941         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
22942         sysdeps/unix/sparc/sysdep.h
22943         (ENTRY, END): Remove.
22944         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
22945
22946 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
22947
22948         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
22949         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
22950         -DIS_IN_build.
22951
22952         * timezone/README: Update upstream location and email address for
22953         tzcode and tzdata.
22954         * timezone/zdump.c: Update from tzcode 2012b.
22955         * timezone/zic.c: Likewise.
22956
22957         * configure.in (libc_cv_as_needed): Remove test.
22958         * configure: Regenerated.
22959         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
22960         conditional definition.
22961         [$(have-as-needed) != yes] (no-as-needed): Likewise.
22962         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
22963         * config.make.in (have-as-needed): Remove variable.
22964
22965 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
22966             Paul Pluzhnikov  <ppluzhnikov@google.com>
22967
22968         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
22969         strings correctly.
22970
22971 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
22972
22973         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
22974         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
22975         * sysdeps/sh/strlen.S: Likewise.
22976
22977 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
22978
22979         * sysdeps/unix/fork.S: Remove file.
22980         * sysdeps/unix/i386/fork.S: Likewise.
22981         * sysdeps/unix/sparc/fork.S: Likewise.
22982
22983         * sysdeps/unix/system.c: Remove file.
22984         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
22985
22986         * sysdeps/unix/getegid.S: Remove file.
22987         * sysdeps/unix/geteuid.S: Likewise.
22988
22989 2012-04-24  Roland McGrath  <roland@hack.frob.com>
22990
22991         * scripts/check-localplt.awk: New file.
22992         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
22993         of diff.
22994         * scripts/data/localplt-generic.data: Add a comment.
22995
22996         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
22997         NODE when __dir_mkfile failed.
22998         * sysdeps/mach/hurd/symlinkat.c: Likewise.
22999         Reported by Ludovic Courtès <ludo@gnu.org>.
23000
23001 2012-04-24  Andreas Jaeger  <aj@suse.de>
23002
23003         * Makerules (common-clean): Also remove gen-as-const-headers
23004         files.
23005
23006 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
23007
23008         * Makerules (native-compile): Do not change working directory for
23009         build.  Use $(OUTPUT_OPTION) in command.
23010         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
23011
23012 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23013
23014         [BZ #13886]
23015         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
23016         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
23017         * math/libm-test.inc (floor_test): Add more tests.
23018         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
23019
23020 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
23021
23022         * sysdeps/unix/getdents.c: Remove file.
23023         * sysdeps/unix/sysv/getdents.c: Likewise.
23024         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
23025
23026         * sysdeps/unix/syscalls.list (madvise): Add syscall from
23027         sysdeps/unix/mman/syscalls.list.
23028         (mmap): Likewise.
23029         (mprotect): Likewise.
23030         (msync): Likewise.
23031         (munmap): Likewise.
23032         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
23033         * sysdeps/unix/mman/syscalls.list: Remove.
23034         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
23035
23036         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
23037         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
23038         * configure: Regenerated.
23039         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
23040         $(libgcc_s_suffix).
23041         * config.make.in (libgcc_s_suffix): Remove variable.
23042
23043 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
23044
23045         * sysdeps/unix/sysv/gethostname.c: Move to ...
23046         * sysdeps/posix/gethostname.c: ... here.
23047
23048         * sysdeps/unix/execve.S: Remove file.
23049
23050         * sysdeps/unix/_exit.S: Remove file.
23051
23052 2012-04-23  Andreas Jaeger  <aj@suse.de>
23053
23054         [BZ #13739]
23055         * manual/Makefile: Remove make dist support, there's no
23056         need for a stand-alone documentation tar ball.
23057         (TEXI2DVI): Define always, it's not in Makeconfig.
23058         (dist): Removed.
23059         (tar-it): Removed.
23060         (edition): Removed.
23061         (glibc-doc-$(edition).tar): Removed
23062         (%.Z): Removed.
23063         (%.gz): Removed.
23064         (%.uu): Removed.
23065         (ETAGS): Remove, it's in Makeconfig.
23066         (move-if-change): Remove, it's in Makeconfig.
23067
23068 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
23069
23070         [BZ #13970]
23071         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
23072         (strtod, strtof, strtold, strtol, strtoul, strtoq)
23073         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
23074         (strtod_l, strtof_l, strtold_l): Remove __wur.
23075         It is not necessarily an error to ignore strtol's return value.
23076         One can reliably look at the stored endptr to decide whether
23077         the number had valid syntax.
23078
23079 2012-04-21  Andreas Jaeger  <aj@suse.de>
23080
23081         [BZ #13739]
23082         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
23083
23084 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
23085
23086         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
23087         * sysdeps/unix/sysv/Versions: Remove file.
23088
23089 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
23090
23091         [BZ #13927]
23092         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23093
23094 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
23095
23096         [BZ #7064]
23097         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
23098         version from __vm86.
23099
23100 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
23101
23102         * sysdeps/unix/common/lxstat.c: Remove file.
23103         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
23104
23105         * sysdeps/unix/sysv/Makefile: Remove file.
23106
23107         * sysdeps/unix/sysv/direct.h: Remove file.
23108
23109         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
23110         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
23111         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
23112         * sysdeps/unix/sysv/bits/signum.h: Likewise.
23113         * sysdeps/unix/sysv/bits/stat.h: Likewise.
23114         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
23115         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
23116
23117         * sysdeps/unix/sysv/setrlimit.c: Remove file.
23118
23119         * sysdeps/unix/xmknod.c: Remove file.
23120         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
23121
23122         * sysdeps/unix/sysv/settimeofday.c: Remove file.
23123
23124         * sysdeps/unix/sysv/i386/time.S: Remove file.
23125
23126         * sysdeps/unix/fxstat.c: Remove file.
23127         * sysdeps/unix/xstat.c: Likewise.
23128         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
23129
23130         * sysdeps/unix/sysv/sigaction.c: Remove file.
23131
23132         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
23133         (sysdep_headers): Remove variable.
23134         [termio.h not in sysdep_headers] (generated): Likewise.
23135         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
23136         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
23137         * sysdeps/unix/sysv/tcdrain.c: Likewise.
23138         * sysdeps/unix/sysv/tcflow.c: Likewise.
23139         * sysdeps/unix/sysv/tcflush.c: Likewise.
23140         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
23141         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
23142         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
23143         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
23144         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
23145
23146         * sysdeps/unix/siglist.c: Remove file.
23147
23148         * sysdeps/unix/getppid.S: Remove file.
23149
23150         * sysdeps/unix/mkdir.c: Remove file.
23151         * sysdeps/unix/rmdir.c: Likewise.
23152
23153 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
23154
23155         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
23156         ERR_MAX value.
23157         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
23158         errlist-compat value.
23159
23160 2012-04-18  David S. Miller  <davem@davemloft.net>
23161
23162         * sysdeps/generic/memcopy.h (reg_char): Delete.
23163         * debug/strcat_chk.c: Use char, not reg_char.
23164         * debug/strcpy_chk.c: Likewise.
23165         * debug/strncat_chk.c: Likewise.
23166         * debug/strncpy_chk.c: Likewise.
23167         * string/memchr.c: Likewise.
23168         * string/memrchr.c: Likewise.
23169         * string/rawmemchr.c: Likewise.
23170         * string/strcat.c: Likewise.
23171         * string/strchr.c: Likewise.
23172         * string/strchrnul.c: Likewise.
23173         * string/strcmp.c: Likewise.
23174         * string/strcpy.c: Likewise.
23175         * string/strncat.c: Likewise.
23176         * string/strncmp.c: Likewise.
23177         * string/strncpy.c: Likewise.
23178
23179 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
23180
23181         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
23182         __builtin_memcopy is called when src and dest ranges are known to not
23183         overlap.
23184
23185 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
23186
23187         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
23188         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
23189         fwd_align_merge macro call.
23190         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
23191         bwd_align_merge macro call.
23192         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
23193
23194 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
23195
23196         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
23197         bwd_align_merge macros.
23198         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
23199         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
23200         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
23201
23202 2012-04-18  David S. Miller  <davem@davemloft.net>
23203
23204         * sysdeps/sparc/sparc64/memcopy.h: Delete.
23205
23206 2012-04-18  Andreas Jaeger  <aj@suse.de>
23207
23208         [BZ# 6794]
23209         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
23210         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
23211         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
23212
23213         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
23214         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
23215         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
23216
23217         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
23218         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
23219         Adjust for changed ldbl-128 files.
23220
23221         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
23222         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
23223         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
23224
23225 2012-04-17  David S. Miller  <davem@davemloft.net>
23226
23227         * sysdeps/sparc/sparc32/memcopy.h: Delete.
23228
23229 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
23230
23231         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
23232         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
23233         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
23234         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
23235         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
23236         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
23237
23238 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23239
23240         [BZ #6794]
23241         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
23242         * math/libm-test.inc: Add ilogb errno and exception tests.
23243         * math/w_ilogb.c: New file: ilogb wrapper.
23244         * math/w_ilogbf.c: New file: ilogbf wrapper.
23245         * math/w_ilogbl.c: New file: ilogbl wrapper.
23246         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
23247         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
23248         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
23249         exception being thrown with 0.0 as argument.
23250         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
23251         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
23252         exception being thrown with 0.0 as argument.
23253         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
23254         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
23255         exception being thrown with 0.0 as argument.
23256         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
23257         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
23258         exception being thrown with 0.0 as argument.
23259         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
23260         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
23261         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
23262         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
23263         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
23264         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
23265         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
23266         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
23267         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
23268
23269 2012-04-17  Petr Baudis  <pasky@ucw.cz>
23270
23271         * include/sys/uio.h: Change __vector to __iovec to avoid clash
23272         with altivec.
23273
23274 2012-04-16  Marek Polacek  <polacek@redhat.com>
23275
23276         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
23277
23278 2012-04-16  Marek Polacek  <polacek@redhat.com>
23279
23280         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
23281         operands of fdivp instruction.
23282
23283 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
23284
23285         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
23286         * elf/tst-auditmod3b.c: Likewise.
23287         * elf/tst-auditmod4b.c: Likewise.
23288         * elf/tst-auditmod5b.c: Likewise.
23289         * elf/tst-auditmod6b.c: Likewise.
23290         * elf/tst-auditmod6c.c: Likewise.
23291         * elf/tst-auditmod7b.c: Likewise.
23292         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
23293         * sysdeps/x86_64/preconfigure.in: Likewise.
23294         * sysdeps/x86_64/preconfigure: Regenerated.
23295
23296 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
23297
23298         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
23299         __ILP32__.
23300
23301 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
23302
23303         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
23304         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
23305
23306 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
23307
23308         [BZ #13973]
23309         * locale/iso-639.def: Fix gl language name. Spotted by
23310         Yaron Shahrabani.
23311
23312 2012-04-12  Roland McGrath  <roland@hack.frob.com>
23313
23314         [BZ #2074]
23315         * libio/libio.h (__io_write_fn): Update comment.
23316
23317 2012-04-12  Petr Baudis  <pasky@ucw.cz>
23318
23319         [BZ #2074]
23320         * stdio.texi (Hook Functions): The user provided writer function
23321         is not allowed to return -1.
23322
23323 2012-04-11  David S. Miller  <davem@davemloft.net>
23324
23325         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23326
23327 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
23328
23329         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
23330         Add a leading slash to rtkaio.
23331
23332 2012-04-11  Jim Meyering  <meyering@redhat.com>
23333
23334         [BZ #11959]
23335         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
23336         It is not necessarily an error to ignore fwrite's return
23337         value.  One can reliably use ferror to test for errors after
23338         the fact.
23339
23340 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
23341
23342         * bits/types.h (__snseconds_t): New type.
23343         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
23344
23345         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
23346         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
23347         (__SNSECONDS_T_TYPE): Likewise.
23348         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
23349         (__SNSECONDS_T_TYPE): Likewise.
23350         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
23351         (__SNSECONDS_T_TYPE): Likewise.
23352
23353 2012-04-10  Andreas Jaeger  <aj@suse.de>
23354
23355         [BZ #2636]
23356         * manual/time.texi (Processor Time): Return type of times is
23357         elapsed real time since an arbitrary point in the past.
23358         (CPU Time): Move CLK_TCK from here...
23359         (Processor Time): ...to here.  Correct description.
23360         * manual/conf.texi (Constants for Sysconf): Correct description of
23361         _SC_CLK_TCK.
23362
23363 2012-04-10  David S. Miller  <davem@davemloft.net>
23364
23365         [BZ #13967]
23366         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
23367         where the is a gap between DT_REL(A) and DT_JMPREL.
23368
23369 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
23370
23371         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
23372         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
23373         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
23374
23375 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
23376
23377         * elf/dl-support.c (_dl_inhibit_cache): New variable.
23378         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
23379         (dl_main): Handle --inhibit-cache.
23380         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
23381         _dl_inhibit_cache.
23382         * elf/dl-load.c (_dl_map_object): Use it.
23383         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
23384
23385 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
23386
23387         [BZ #13872]
23388         * sysdeps/i386/fpu/e_powl.S (p78): New object.
23389         (__ieee754_powl): Saturate large exponents rather than testing for
23390         overflow of y*log2(x).
23391         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
23392         * math/libm-test.inc (pow_test): Do not permit spurious overflow
23393         exceptions.
23394
23395         [BZ #11521]
23396         * math/s_ctan.c: Include <float.h>.
23397         (__ctan): Avoid internal overflow or cancellation in calculating
23398         denominator.
23399         * math/s_ctanf.c: Likewise.
23400         * math/s_ctanl.c: Likewise.
23401         * math/s_ctanh.c: Likewise.
23402         * math/s_ctanhf.c: Likewise.
23403         * math/s_ctanhl.c: Likewise.
23404         * math/libm-test.inc (ctan_test): Add more tests.
23405         (ctanh_test): Likewise.
23406         * sysdeps/i386/fpu/libm-test-ulps: Update.
23407         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23408
23409 2012-04-09  Andreas Jaeger  <aj@suse.de>
23410
23411         [BZ #6894]
23412         * manual/filesys.texi (Directory Entries): Mention that d_namlen
23413         is an optional BSD extension.
23414
23415         [BZ #10254]
23416         * manual/stdio.texi (Opening Streams): Document additional fopen
23417         parameters.
23418
23419 2012-04-09  Roland McGrath  <roland@hack.frob.com>
23420
23421         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
23422         %eax without telling the compiler.
23423
23424 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
23425
23426         [BZ # 13963]
23427         * manual/install.texi: Use sourceware.org.
23428
23429 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
23430
23431         [BZ #13873]
23432         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
23433         (__ieee754_pow): Generate overflow and underflow using huge*huge
23434         and tiny*tiny rather than just returning constant infinity or zero
23435         for large exponents.
23436         * math/libm-test.inc (pow_test): Require overflow exceptions for
23437         applicable cases of large exponents.
23438
23439         [BZ #706]
23440         * sysdeps/i386/fpu/e_pow.S (p10): New object.
23441         (__ieee754_pow): Use iterative multiplication algorithm only for
23442         integer exponents with absolute value below 1024.  Check for odd
23443         integer exponents when using algorithm for real exponents.
23444         * math/libm-test.inc (pow_test): Add more tests.
23445         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23446
23447 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
23448
23449         [BZ #13705]
23450         * math/libm-test.inc (exp_test): Do not allow overflow exception
23451         on underflow test.
23452
23453 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
23454
23455         [BZ #13705]
23456         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
23457         instead of __kernel_standard_f.
23458
23459 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
23460
23461         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
23462         * sysdeps/x86_64/memset_chk.S: Likewise.
23463
23464 2012-04-08  Andreas Jaeger  <aj@suse.de>
23465
23466         [BZ #10153]
23467         * manual/startup.texi (Environment Access): Describe return value
23468         for putenv and setenv.
23469
23470         [BZ #6895]
23471         * manual/filesys.texi (Directory Entries): Add description for
23472         DT_LNK.
23473
23474         [BZ #6890]
23475         * manual/filesys.texi (Directory Entries): Clarify that it's file
23476         system not operating system in the description of DT_UNKNOWN.
23477
23478         [BZ #6578]
23479         * manual/syslog.texi (closelog): Fix reference, it's openlog.
23480
23481 2012-04-08  Stephen Compall  <s11@member.fsf.org>
23482
23483         [BZ #6649]
23484         * manual/llio.texi (Opening and Closing Files): Add cross
23485         reference to explain mode argument.
23486
23487 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
23488
23489         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
23490         * sysdeps/x86_64/memset_chk.S: Likewise.
23491
23492 2012-04-07  David S. Miller  <davem@davemloft.net>
23493
23494         * elf/elf.h (R_SPARC_WDISP10): Define.
23495         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
23496         R_SPARC_SIZE32.
23497         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
23498         R_SPARC_SIZE64 and R_SPARC_H34.
23499
23500 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
23501
23502         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
23503         conditions and remove no longer applicable assertion.
23504
23505 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
23506
23507         * bits/byteswap.h: Include <features.h>.
23508         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
23509         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
23510
23511 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
23512
23513         * bits/byteswap.h (__bswap_16): Removed.
23514         Include <bits/byteswap-16.h> to get __bswap_16.
23515         * sysdeps/i386/bits/byteswap.h: Likewise.
23516         * sysdeps/s390/bits/byteswap.h: Likewise.
23517         * sysdeps/x86_64/bits/byteswap.h: Likewise.
23518         * bits/byteswap-16.h: New file.
23519         * sysdeps/i386/bits/byteswap-16.h: Likewise.
23520         * sysdeps/s390/bits/byteswap-16.h: Likewise.
23521         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
23522         * string/Makefile (headers): Add bits/byteswap-16.h.
23523
23524 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
23525
23526         [BZ #13895]
23527         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
23528         extra indirection.
23529         * nss/Makefile (tests-static, tests): Add tst-nss-static.
23530         * nss/tst-nss-static.c: New.
23531
23532 2012-04-06  Robert Millan  <rmh@gnu.org>
23533
23534         [BZ #6486]
23535         * manual/llio.texi (File Position Primitive): lseek
23536         refers to WHENCE when it really means OFFSET.
23537
23538 2012-04-06  Andreas Jaeger  <aj@suse.de>
23539
23540         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
23541         strncmp declarations.
23542
23543         * abilist/libc.abilist: Add __poll and __ppoll.
23544
23545 2012-04-05  David S. Miller  <davem@davemloft.net>
23546
23547         * scripts/check-local-headers.sh: Accept a host triplet in the
23548         path matched by the exclude regexp.
23549
23550         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
23551         definition.
23552         * sysdeps/powerpc/powerpc32/dl-machine.h
23553         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
23554         * sysdeps/s390/s390-32/dl-machine.h
23555         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
23556         * sysdeps/sparc/sparc32/dl-machine.h
23557         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
23558         * sysdeps/sparc/sparc64/dl-machine.h
23559         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
23560
23561         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
23562         lazy binding.
23563         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
23564         undefined symbol errors.
23565
23566         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
23567         DT_NEEDED entries.
23568
23569 2012-04-05  Michael Matz  <matz@suse.de>
23570
23571         [BZ #13592]
23572         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
23573
23574 2012-04-05  Andreas Jaeger  <aj@suse.de>
23575
23576         [BZ #13908]
23577         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
23578         comment.
23579
23580 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
23581
23582         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
23583         which ROUND is no valid rounding mode.
23584
23585 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
23586
23587         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
23588         read again.
23589         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
23590
23591 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
23592
23593         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
23594         an exception using FPU order intentionally.
23595
23596 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
23597
23598         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
23599         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
23600         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
23601         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
23602
23603 2012-04-05  Simon Josefsson  <simon@josefsson.org>
23604
23605         [BZ #12340]
23606         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
23607         EINVAL when BUFLEN is too smal.
23608
23609 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
23610
23611         [BZ #13553]
23612         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
23613         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
23614
23615 2012-04-03  Andreas Jaeger  <aj@suse.de>
23616
23617         [BZ #13938]
23618         * manual/setjmp.texi (System V contexts): Fix sentence.
23619
23620         [BZ #13926]
23621         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
23622         New macro for this case.
23623         [!__GNUC__] (__bswap_64): New inline function for this case.
23624         * sysdeps/x86_64/bits/byteswap.h: Likewise.
23625         * bits/byteswap.h: Likewise.
23626         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
23627         ull, guard with __GLIBC_HAVE_LONG_LONG.
23628
23629         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
23630         __GLIBC_HAVE_LONG_LONG.
23631
23632         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
23633         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
23634
23635 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
23636
23637         [BZ #13691]
23638         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
23639         inptr and inend, rather than using last_ch.
23640
23641 2012-04-02  David S. Miller  <davem@davemloft.net>
23642
23643         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
23644         * stdio-common/printf-parse.h (read_int): Change return type to
23645         'int', return -1 on INT_MAX overflow.
23646         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
23647         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
23648         overflows INT_MAX.  Check for overflow of in-format-string precision
23649         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
23650         SIZE_MAX not INT_MAX for integer overflow test.
23651         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
23652         skip the construct in the format string but do not record anything.
23653         * stdio-common/bug22.c: Adjust to test both width/prevision
23654         INT_MAX overflow as well as total length INT_MAX overflow.  Check
23655         explicitly for proper errno values.
23656
23657 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
23658
23659         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
23660         CHAR_MAX.
23661         * string/test-strcmp.c [! WIDE]: Likewise.
23662         * time/tst-mktime2.c: Likewise for INT_MAX.
23663         * string/test-string.h: #include <sys/param.h> for MIN.
23664
23665         * csu/init-first.c (__libc_init_first): Call __ctype_init.
23666         * sysdeps/i386/init-first.c (init): Likewise.
23667         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
23668         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
23669         * sysdeps/sh/init-first.c (init): Likewise.
23670
23671 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
23672
23673         * po/ru.po: Update from translation team.
23674         * po/vi.po: Likewise.
23675
23676 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
23677
23678         * resolv/nss_dns/dns-host.c: Merge copyright years.
23679
23680 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23681
23682         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
23683         Optimize memcpy with prefetch if
23684         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
23685         src, dst pointers have unequal 16 byte alignments.
23686
23687 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
23688
23689         [BZ #13928]
23690         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
23691         from a CNAME entry and return the minimum ttl for the query.
23692         (gaih_getanswer_slice): Likewise.
23693
23694 2012-03-30  Jeff Law  <law@redhat.com>
23695
23696         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
23697         due to long keys.
23698         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
23699         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
23700
23701         * resolv/nss_dns/dns-host.c: Update copyright year.
23702
23703 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
23704
23705         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
23706         requests to save a system call.  Fix check that all bytes are sent.
23707
23708         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
23709         comments for sendmmsg.
23710
23711 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
23712
23713         [BZ #13691]
23714         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
23715         with only 1 character between 0x0041 and 0x01b0.
23716         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
23717         * wcsmbs/tst-mbsnrtowcs.c: New file.
23718
23719 2012-03-29  David S. Miller  <davem@davemloft.net>
23720
23721         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
23722         small copies by hand.
23723
23724 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
23725
23726         [BZ #13761]
23727         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
23728         _nss_compat_initgroups_dyn): Fall back to malloc/free
23729         for large group memberships.
23730
23731 2012-03-28  David S. Miller  <davem@davemloft.net>
23732
23733         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
23734         that branches into memcpy.
23735         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
23736         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
23737         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
23738         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
23739         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
23740         bits.
23741         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
23742         implementation too.
23743         * sysdeps/sparc/mempcpy.S: New file.
23744
23745         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
23746         the IFUNC routine in the libc case.
23747         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
23748
23749         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
23750         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
23751         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
23752         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
23753         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
23754         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
23755         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
23756         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
23757
23758         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
23759         loop to 256 bytes instead of 64 bytes and fix test signedness.
23760
23761         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
23762         * sysdeps/sparc/sparc32/Makefile: rather than here...
23763         * sysdeps/sparc/sparc64/Makefile: and here.
23764
23765 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
23766
23767         * malloc/mallocbug.c: Avoid warnings about unused variables.
23768
23769 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
23770
23771         [BZ #13760]
23772         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
23773         in the right place. Discard and retry query if response is
23774         larger than input buffer size.
23775
23776 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
23777
23778         [BZ #369]
23779         [BZ #2678]
23780         [BZ #3866]
23781         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
23782         x for large integer exponent.
23783         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
23784         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
23785         sign of result as needed afterwards.
23786         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
23787         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
23788         result for underflowing pow the same as for overflow.
23789         (__kernel_standard_l): Handle powl overflow and underflow here
23790         rather than calling __kernel_standard.
23791         * math/libm-test.inc (pow_test): Add more tests.
23792
23793         [BZ #3868]
23794         [BZ #13879]
23795         [BZ #13910]
23796         [BZ #13911]
23797         [BZ #13912]
23798         [BZ #13913]
23799         [BZ #13915]
23800         [BZ #13916]
23801         [BZ #13917]
23802         [BZ #13918]
23803         [BZ #13919]
23804         [BZ #13920]
23805         [BZ #13921]
23806         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
23807         * sysdeps/ieee754/k_standard.c: Include <float.h>.
23808         (__kernel_standard_l): New function.
23809         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
23810         __kernel_standard.
23811         * math/w_acosl.c (__acosl): Likewise.
23812         * math/w_asinl.c (__asinl): Likewise.
23813         * math/w_atan2l.c (__atan2l): Likewise.
23814         * math/w_atanhl.c (__atanhl): Likewise.
23815         * math/w_coshl.c (__coshl): Likewise.
23816         * math/w_exp10l.c (__exp10l): Likewise.
23817         * math/w_exp2l.c (__exp2l): Likewise.
23818         * math/w_fmodl.c (__fmodl): Likewise.
23819         * math/w_hypotl.c (__hypotl): Likewise.
23820         * math/w_j0l.c (__j0l, __y0l): Likewise.
23821         * math/w_j1l.c (__j1l, __y1l): Likewise.
23822         * math/w_jnl.c (__jnl, __ynl): Likewise.
23823         * math/w_lgammal.c (__lgammal): Likewise.
23824         * math/w_log10l.c (__log10l): Likewise.
23825         * math/w_log2l.c (__log2l): Likewise.
23826         * math/w_logl.c (__logl): Likewise.
23827         * math/w_powl.c (__powl): Likewise.
23828         * math/w_remainderl.c (__remainderl): Likewise.
23829         * math/w_scalbl.c (sysv_scalbl): Likewise.
23830         * math/w_sinhl.c (__sinhl): Likewise.
23831         * math/w_sqrtl.c (__sqrtl): Likewise.
23832         * math/w_tgammal.c (__tgammal): Likewise.
23833         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
23834         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
23835         * math/libm-test.inc (acos_test): Add more tests.
23836         (acosh_test): Likewise.
23837         (asin_test): Likewise.
23838         (atanh_test): Likewise.
23839         (exp_test): Likewise.
23840         (exp10_test): Likewise.
23841         (exp2_test): Likewise.
23842         (expm1_test): Likewise.
23843         (lgamma_test): Likewise.
23844         (log_test): Likewise.
23845         (log10_test): Likewise.
23846         (log1p_test): Likewise.
23847         (log2_test): Likewise.
23848         (pow_test): Do not allow some spurious overflow exceptions.
23849         (sqrt_test): Add more tests.
23850         (tgamma_test): Likewise.
23851         (y0_test): Likewise.
23852         (y1_test): Likewise.
23853         (yn_test): Likewise.
23854
23855 2012-03-27  Anton Blanchard  <anton@samba.org>
23856
23857         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
23858         MAP_HUGETLB.
23859         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
23860         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
23861         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
23862
23863 2012-03-27  David S. Miller  <davem@davemloft.net>
23864
23865         * conform/Makefile: Run run-conformtest.sh using $(BASH).
23866
23867         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
23868         have-as-vis3 check.
23869
23870 2012-03-27  Andreas Jaeger  <aj@suse.de>
23871
23872         * sysdeps/x86_64/elf/configure.in: Moved to ...
23873         * sysdeps/x86_64/configure.in: ... here.
23874         * sysdeps/x86_64/elf/start.S: Moved to ...
23875         * sysdeps/x86_64/start.S: ... here.
23876         * sysdeps/x86_64/elf/configure: Delete.
23877
23878         * sysdeps/x86_64/configure.in: Merge contents from
23879         sysdeps/i386/configure.in (without i686 check).
23880
23881         * sysdeps/i386/elf/Versions: Merge into ...
23882         * sysdeps/i386/Versions: ... this.
23883         * sysdeps/i386/elf/Versions: Delete file.
23884         * sysdeps/i386/elf/start.S: Moved to ...
23885         * sysdeps/i386/start.S: ...here.
23886         * sysdeps/i386/elf/configure.in: Merge into...
23887         * sysdeps/i386/configure.in: ...here.
23888         * sysdeps/i386/elf/configure.in: Delete file.
23889         * sysdeps/i386/elf/configure: Delete file.
23890
23891         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
23892         * debug/backtracesyms.c: ... here.
23893         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
23894         * debug/backtracesymsfd.c: ... here.
23895         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
23896         * sysdeps/generic/ifunc-sel.h: ... here.
23897
23898         * sysdeps/unix/i386/start.c: Delete file.
23899         * sysdeps/unix/sparc/start.c: Delete file.
23900         * sysdeps/unix/start.c: Delete file.
23901
23902         * sysdeps/sh/elf/configure.in: Moved to ...
23903         * sysdeps/sh/configure.in: ... here.
23904         * sysdeps/sh/elf/start.S: Moved to ...
23905         * sysdeps/sh/start.S: ... here.
23906         * sysdeps/sh/elf/configure: Delete file.
23907
23908         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
23909         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
23910         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
23911         * sysdeps/powerpc/powerpc64/entry.h: ... here.
23912         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
23913         * sysdeps/powerpc/powerpc64/start.S: here.
23914         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
23915         * sysdeps/powerpc/powerpc64/Makefile: ... this.
23916         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
23917         * sysdeps/powerpc/powerpc64/configure.in: ... this.
23918         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
23919
23920         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
23921         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
23922         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
23923         * sysdeps/powerpc/powerpc32/start.S: ... here.
23924         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
23925         * sysdeps/powerpc/powerpc32/configure.in: ... this.
23926         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
23927
23928         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
23929         * sysdeps/powerpc/ifunc-sel.h: ... here.
23930         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
23931         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
23932
23933         * sysdeps/sparc/elf/configure.in: Moved to ...
23934         * sysdeps/sparc/configure.in: ... here.
23935         * sysdeps/sparc/elf/configure: Delete file.
23936         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
23937         * sysdeps/sparc/sparc32/start.S: ... here.
23938         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
23939         * sysdeps/sparc/sparc64/start.S: ... here.
23940         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
23941         * sysdeps/sparc/sparc32/Makefile: ... this.
23942         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
23943         * sysdeps/sparc/sparc64/Makefile: ... this.
23944
23945         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
23946         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
23947         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
23948         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
23949         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
23950         * sysdeps/s390/s390-32/setjmp.S: ... here.
23951         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
23952         * sysdeps/s390/s390-32/configure.in: ... here.
23953         * sysdeps/s390/s390-32/elf/configure: Delete file.
23954         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
23955         * sysdeps/s390/s390-32/start.S: ... here.
23956
23957         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
23958         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
23959         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
23960         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
23961         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
23962         * sysdeps/s390/s390-64/setjmp.S: ... here.
23963         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
23964         * sysdeps/s390/s390-64/configure.in: ... here
23965         * sysdeps/s390/s390-64/elf/configure: Delete file.
23966         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
23967         * sysdeps/s390/s390-64/start.S: ... here.
23968         * sysdeps/s390/s390-64/elf/configure: Delete.
23969
23970         * configure.in: Remove support for elf directories in sysdeps.
23971
23972         * configure: Regenerated.
23973         * sysdeps/i386/configure: Regenerated.
23974         * sysdeps/powerpc/powerpc32/configure: Regenerated.
23975         * sysdeps/powerpc/powerpc64/configure: Regenerated.
23976         * sysdeps/s390/s390-32/configure: Regenerated.
23977         * sysdeps/s390/s390-64/configure: Regenerated.
23978         * sysdeps/sh/configure: Regenerated.
23979         * sysdeps/sparc/configure: Regenerated.
23980         * sysdeps/x86_64/configure: Regenerated.
23981
23982 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
23983
23984         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23985
23986         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
23987         denormal result into account.
23988
23989 2012-03-25  Roland McGrath  <roland@hack.frob.com>
23990
23991         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
23992         Reported by Allan McRae <allan@archlinux.org>.
23993
23994 2012-03-23  Jeff Law  <law@redhat.com>
23995
23996         * nss/getnssent.c (__nss_getent): Fix typo.
23997
23998 2012-03-23  David S. Miller  <davem@davemloft.net>
23999
24000         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24001
24002 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
24003
24004         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
24005         to pad to uint64_t for each field.
24006         (dl_tls_index): Replace unsigned long with uint64_t.
24007
24008 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
24009         Paul Pluzhnikov  <ppluzhnikov@google.com>
24010
24011         [BZ #6528]
24012         * grp/Makefile (otherlibs): Don't set it.
24013         * inet/Makefile (otherlibs): Likewise.
24014         * login/Makefile (otherlibs): Likewise.
24015         * nscd/Makefile (otherlibs): Likewise.
24016         * posix/Makefile (otherlibs): Likewise.
24017         * pwd/Makefile (otherlibs): Likewise.
24018         * rt/Makefile (otherlibs): Likewise.
24019         * sunrpc/Makefile (otherlibs): Likewise.
24020         * nss/Makefile (otherlibs): Likewise.
24021         Add libnss_files to routines and static-only-routines.
24022         ($(objpfx)getent): Remove rule.
24023         * resolv/Makefile: Add libnss_dns and libresolv to routines and
24024         static-only-routines.
24025
24026 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
24027
24028         [BZ #13892]
24029         * math/s_cexp.c: Include <float.h>.
24030         (__cexp): Handle exp result overflowing not necessarily
24031         overflowing both real and imaginary parts of result.
24032         * math/s_cexpf.c: Likewise.
24033         * math/s_cexpl.c: Likewise.
24034         * math/libm-test.inc (cexp_test): Add more tests.
24035         * sysdeps/i386/fpu/libm-test-ulps: Update.
24036         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24037
24038 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
24039
24040         * include/link.h (ELFW): New macro.
24041         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
24042         Replace ELF64_R_TYPE with ELFW(R_TYPE).
24043
24044 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
24045
24046         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
24047         with uint64_t.
24048
24049 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
24050
24051         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
24052         declaration.
24053         (struct La_x32_retval): Likewise.
24054
24055 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
24056
24057         * sysdeps/x86_64/preconfigure.in: New file.
24058         * sysdeps/x86_64/preconfigure: New generated file.
24059
24060 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
24061
24062         [BZ #13824]
24063         * math/e_exp2l.c: Include <float.h>.
24064         (__ieee754_exp2l): Handle overflow and underflow cases
24065         separately.  Only pass fractional part of argument to
24066         __ieee754_expl.
24067         * math/libm-test.inc (exp2_test): Add more tests.
24068
24069         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
24070         negating x to take absolute value.
24071         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
24072         Likewise.
24073         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
24074         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
24075         Likewise.
24076         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
24077         computing low part if x was negated.
24078         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
24079
24080 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
24081
24082         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
24083         la_x32_gnu_pltexit.
24084         (pltexit): Cast int_retval to ptrdiff_t.
24085         * elf/tst-auditmod3b.c: Likewise.
24086         * elf/tst-auditmod4b.c: Likewise.
24087         * elf/tst-auditmod5b.c: Likewise.
24088         * elf/tst-auditmod6b.c: Likewise.
24089         * elf/tst-auditmod6c.c: Likewise.
24090         * elf/tst-auditmod7b.c: Likewise.
24091
24092         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
24093         and x32_gnu_pltexit.
24094
24095         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
24096         __ELF_NATIVE_CLASS.
24097         (La_x32_regs): New macro.
24098         (La_x32_retval): Likewise.
24099         (la_x32_gnu_pltenter): New function prototype.
24100         (la_x32_gnu_pltexit): Likewise.
24101
24102 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
24103
24104         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
24105         exponent.
24106
24107         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24108
24109         * configure.in (libc_cv_cc_nofma): Check for option to disable
24110         generation of FMA instructions.
24111         * configure: Regenerate.
24112         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
24113         * sysdeps/ieee754/dbl-64/Makefile: New file.
24114         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24115         Remove brandred-fma4.
24116         (CFLAGS-brandred-fma4.c): Remove.
24117         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
24118         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
24119         define.
24120         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
24121         define.
24122
24123 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
24124
24125         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
24126         LLONG_MAX != LONG_MAX.
24127         (_itoa_word): Use _ITOA_WORD_TYPE on value.
24128         (_fitoa_word): Likewise.
24129         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
24130         LLONG_MAX != LONG_MAX.
24131         * stdio-common/_itowa.h: Include <_itoa.h>.
24132         (_itowa_word): Use _ITOA_WORD_TYPE on value.
24133         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
24134         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
24135         only if not defined.
24136         (_ITOA_WORD_TYPE): Likewise.
24137         (_itoa_word): Use _ITOA_WORD_TYPE on value.
24138         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
24139
24140 2012-03-21  David S. Miller  <davem@davemloft.net>
24141
24142         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24143
24144 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
24145
24146         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
24147         of x86_64 when setting libc_cv_slibdir, libdir and
24148         libc_cv_localedir.
24149         * sysdeps/unix/sysv/linux/configure: Regenerated.
24150
24151 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
24152
24153         * manual/lang.texi (Old Varargs): Remove section.
24154         (How Variadic): Update menu.
24155         (va_start): Do not mention varargs.h.
24156
24157 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
24158             Joseph Myers  <joseph@codesourcery.com>
24159
24160         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
24161         link test.
24162         * configure: Regenerated.
24163
24164 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
24165
24166         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
24167         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
24168         conformtest.pl
24169
24170 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
24171
24172         * NOTES: Remove.
24173         * Makefile (files-for-dist): Remove NOTES.
24174         (NOTES): Remove rule.
24175         * README: Don't refer to NOTES.
24176         * manual/creature.texi: Don't include macros.texi.
24177         * manual/intro.texi (creature.texi): Remove comment referring to
24178         NOTES.
24179
24180         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
24181         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
24182         * configure: Regenerated.
24183         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
24184         LIBC_TRY_CC_OPTION.
24185         (libc_cv_as_i686): Likewise.
24186         (libc_cv_cc_avx): Likewise.
24187         (libc_cv_cc_sse2avx): Likewise.
24188         (libc_cv_cc_fma4): Likewise.
24189         (libc_cv_cc_novzeroupper): Likewise.
24190         * sysdeps/i386/configure: Regenerated.
24191
24192         [BZ #13883]
24193         * sysdeps/i386/fpu/s_cexp.S: Remove.
24194         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
24195         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
24196         * math/libm-test.inc (cexp_test): Add more tests.
24197         * sysdeps/i386/fpu/libm-test-ulps: Update.
24198         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24199
24200 2012-03-21  Allan McRae  <allan@archlinux.org>
24201
24202         * timezone/Makefile: Do not install iso3166.tab and zone.tab
24203
24204 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
24205
24206         [BZ #13871]
24207         * math/w_exp2.c: Do not include <float.h>.
24208         (o_threshold, u_threshold): Remove.
24209         (__exp2): Calculate result before checking finiteness and calling
24210         __kernel_standard.
24211         * math/w_exp2f.c: Likewise.
24212         * math/w_exp2l.c: Likewise.
24213         * math/libm-test.inc (exp2_test): Require overflow exception for
24214         1e6 input.
24215
24216         [BZ #3866]
24217         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
24218         range of signed 64-bit integers before using fistpll.  Remove
24219         checks for whether integers fit in mantissa bits.
24220         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
24221         the range of signed 32-bit integers before using fistpl.  Remove
24222         checks for whether integers fit in mantissa bits.
24223         * sysdeps/i386/fpu/e_powl.S (p64): New object.
24224         (__ieee754_powl): Test for y outside the range of signed 64-bit
24225         integers before using fistpll.  Reduce 64-bit values to 63-bit
24226         ones as needed.
24227         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
24228         divide-by-zero is raised for zero to large negative powers.
24229         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
24230         (__ieee754_powl): Test for y outside the range of signed 64-bit
24231         integers before using fistpll.  Reduce 64-bit values to 63-bit
24232         ones as needed.
24233         * math/libm-test.inc (pow_test): Add more tests.
24234
24235 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
24236
24237         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
24238         <stdio-common/_itoa.h>.
24239         * debug/segfault.c: Likewise.
24240         * elf/dl-cache.c: Likewise.
24241         * elf/dl-minimal.c: Likewise.
24242         * elf/dl-misc.c: Likewise.
24243         * elf/dl-sysdep.c: Likewise.
24244         * elf/dl-version.c: Likewise.
24245         * elf/rtld.c: Likewise.
24246         * hurd/hurdsock.c: Likewise.
24247         * hurd/lookup-retry.c: Likewise.
24248         * malloc/malloc.c: Likewise.
24249         * malloc/mtrace.c: Likewise.
24250         * nscd/nscd_getgr_r.c: Likewise.
24251         * nscd/nscd_getpw_r.c: Likewise.
24252         * nscd/nscd_getserv_r.c: Likewise.
24253         * posix/getopt_init.c: Likewise.
24254         * posix/wordexp.c: Likewise.
24255         * stdio-common/_itoa.c: Likewise.
24256         * stdio-common/printf_fphex.c: Likewise.
24257         * stdio-common/vfprintf.c: Likewise.
24258         * string/_strerror.c: Likewise.
24259         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
24260         * sysdeps/i386/i686/hp-timing.h: Likewise.
24261         * sysdeps/mach/_strerror.c: Likewise.
24262         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
24263         * sysdeps/mach/hurd/sethostid.c: Likewise.
24264         * sysdeps/mach/hurd/xmknodat.c: Likewise.
24265         * sysdeps/mach/xpg-strerror.c: Likewise.
24266         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
24267         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
24268         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
24269         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
24270         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
24271         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
24272         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
24273         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
24274         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
24275         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
24276         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
24277         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
24278         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
24279         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
24280         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
24281         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
24282         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
24283         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
24284         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
24285         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
24286         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
24287
24288         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
24289
24290         * stdio-common/_itoa.h: Moved to ...
24291         * sysdeps/generic/_itoa.h: Here.
24292
24293         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
24294
24295         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
24296         instead of "_itoa.h" and "_itowa.h".
24297         * stdio-common/vfprintf.: Likewise.
24298
24299 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
24300
24301         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
24302         <bits/wordsize.h>.
24303         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
24304         (__signbit): Likwise.
24305         (llrintf): Likwise.
24306         (llrint): Likwise.
24307
24308 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
24309
24310         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
24311         __WORDSIZE != 64.
24312
24313 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
24314
24315         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
24316         OVERFLOW_EXCEPTION_OK.
24317         * math/libm-test.inc ("Philosophy"): Update comment about
24318         exception testing.
24319         (OVERFLOW_EXCEPTION): Define.
24320         (OVERFLOW_EXCEPTION_OK): Likewise.
24321         (INVALID_EXCEPTION_OK): Renumber.
24322         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
24323         (IGNORE_ZERO_INF_SIGN): Likewise.
24324         (test_exceptions): Handle FE_OVERFLOW.
24325         (exp10_test): Expect overflow exceptions.
24326         (exp2_test): Likewise.
24327         (expm1_test): Likewise.
24328         (nextafter_test): Likewise.
24329         (pow_test): Likewise.
24330         (scalbn_test): Likewise.
24331         (scalbln_test): Likewise.
24332
24333 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24334
24335         * sysdeps/x86_64/bits/atomic.h
24336         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
24337         64bit integer.
24338         (atomic_exchange_acq): Likewise.
24339         (__arch_exchange_and_add_body): Likewise.
24340         (__arch_add_body): Likewise.
24341         (atomic_add_negative): Likewise.
24342         (atomic_add_zero): Likewise.
24343
24344 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24345
24346         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
24347         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
24348
24349 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24350
24351         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
24352         Check __x86_64__ instead of __WORDSIZE.
24353
24354 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24355
24356         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
24357
24358 2012-03-19  David S. Miller  <davem@davemloft.net>
24359
24360         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24361
24362         * sysdeps/sparc/fpu/fenv_private.h: New file.
24363         * sysdeps/sparc/fpu/math_private.h: Use it.
24364         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
24365         Remove.
24366         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
24367         (libc_feholdexcept_setroundl): Remove.
24368         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
24369         Remove.
24370         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
24371         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
24372
24373 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24374
24375         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
24376         int64_t instead of long int.
24377         (INSERT_WORDS64): Likwise.
24378
24379 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24380
24381         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
24382         _Unwind_GetCFA return to _Unwind_Ptr first.
24383
24384 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
24385
24386         [BZ #13629]
24387         * math/s_clog.c: Include <float.h>.
24388         (__clog): Scale large or subnormal inputs.
24389         * math/s_clogf.c: Likewise.
24390         * math/s_clogl.c: Likewise.
24391         * math/s_clog10.c: Include <float.h>.
24392         (M_LOG10_2): Define.
24393         (__clog10): Scale large or subnormal inputs.
24394         * math/s_clog10f.c: Likewise.
24395         * math/s_clog10l.c: Likewise.
24396         * math/libm-test.inc (clog_test): Add more tests.
24397         (clog10_test): Likewise.
24398         * sysdeps/i386/fpu/libm-test-ulps: Update.
24399         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24400
24401         [BZ #11451]
24402         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
24403         x and y.
24404         * math/libm-test.inc (atan2_test): Add another test.
24405
24406         * Makerules (common-objdir-compile): Remove.
24407         * sysdeps/unix/Makefile (config-generated): Do not add
24408         $(unix-generated) to variable.
24409         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
24410         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
24411         Remove rule.
24412         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
24413         Likewise.
24414         [generic bits/local_lim.h] (before-compile): Do not append to
24415         variable.
24416         [generic bits/local_lim.h] (common-generated): Likewise.
24417         [generic sys/param.h] (before-compile): Do not append to variable.
24418         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
24419         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
24420         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
24421         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
24422         include.
24423         [generic sys/param.h] (sys/param.h-includes): Remove variable.
24424         [generic sys/param.h] (sys/param.h-includes): Remove rule.
24425         [generic sys/param.h] ($(addprefix
24426         $(common-objpfx),$(sys/param.h-includes))): Likewise.
24427         [generic sys/param.h] (common-generated): Do not append to
24428         variable.
24429         [generic sys/param.h] (sysdep_headers): Likewise.
24430         [generic bits/errno.h] (before-compile): Do not append to
24431         variable.
24432         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
24433         rule.
24434         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
24435         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
24436         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
24437         [generic bits/errno.h] (common-generated): Do not append to
24438         variable.
24439         [generic bits/ioctls.h] (before-compile): Do not append to
24440         variable.
24441         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
24442         rule.
24443         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
24444         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
24445         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
24446         rule.
24447         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
24448         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
24449         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
24450         [generic bits/ioctls.h] (common-generated): Do not append to
24451         variable.
24452         [generic sys/syscall.h] (syscall.h): Remove variable.
24453         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
24454         rule.
24455         [generic sys/syscall.h] (before-compile): Do not append to
24456         variable.
24457         [generic sys/syscall.h] (common-generated): Likewise.
24458         * sysdeps/unix/errnos-tmpl.c: Remove file.
24459         * sysdeps/unix/errnos.awk: Likewise.
24460         * sysdeps/unix/ioctls-tmpl.c: Likewise.
24461         * sysdeps/unix/ioctls.awk: Likewise.
24462         * sysdeps/unix/mk-local_lim.c: Likewise.
24463         * sysdeps/unix/snarf-ioctls: Likewise.
24464
24465 2012-03-19  Richard Henderson  <rth@twiddle.net>
24466
24467         * sysdeps/i386/fpu/fenv_private.h: New file.
24468         * sysdeps/i386/fpu/math_private.h: Use it.
24469         (math_opt_barrier, math_force_eval): Remove.
24470         (libc_feholdexcept_setround_53bit): Remove.
24471         (libc_feupdateenv_53bit): Remove.
24472         * sysdeps/x86_64/fpu/math_private.h: Likewise.
24473         (math_opt_barrier, math_force_eval): Remove.
24474         (libc_feholdexcept): Remove.
24475         (libc_feholdexcept_setround): Remove.
24476         (libc_fetestexcept, libc_fesetenv): Remove.
24477         (libc_feupdateenv_test): Remove.
24478         (libc_feupdateenv, libc_feholdsetround): Remove.
24479         (libc_feresetround): Remove.
24480
24481         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
24482         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
24483
24484         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
24485         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
24486         (libc_feupdateenv_testl): New.
24487         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
24488         (libc_feupdateenv_testf): New.
24489         (libc_feupdateenv): Use libc_feupdateenv_test.
24490         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
24491         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
24492
24493         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
24494         (libc_feholdsetroundf, libc_feholdsetroundl): New.
24495         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
24496         (libc_feresetround_noex): New.
24497         (libc_feresetround_noexf): New.
24498         (libc_feresetround_noexl): New.
24499         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
24500         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
24501         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
24502         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
24503         SET_RESTORE_ROUND.
24504         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
24505         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
24506         (__cos): Likewise.
24507         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
24508         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
24509         SET_RESTORE_ROUND_NOEX.
24510         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
24511         SET_RESTORE_ROUND_NOEXF.
24512         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
24513         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
24514         (libc_feholdsetroundf): New.
24515         (libc_feresetround, libc_feresetroundf): New.
24516
24517         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
24518         (libc_feholdexcept_setround_53bit): Convert from macro to function.
24519         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
24520
24521         * sysdeps/generic/math_private.h: Include <fenv.h>.
24522         (default_libc_feholdexcept): New.
24523         (default_libc_feholdexcept_setround): New.
24524         (default_libc_fesetenv, default_libc_feupdateenv): New.
24525         (libc_feholdexcept): Only define if undefined.
24526         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
24527         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
24528         (libc_feholdexcept_setroundl): Likewise.
24529         (libc_feholdexcept_setround_53bit): Likewise.
24530         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
24531         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
24532         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
24533         (libc_feupdateenv_53bit): Likewise.
24534         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
24535         (libc_feholdexcept): Convert from macro to inline function.
24536         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
24537         (libc_fesetenv, libc_feupdateenv): Likewise.
24538
24539         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
24540         not previously defined.
24541         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
24542         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
24543         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
24544         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
24545         * sysdeps/ieee754/flt-32/math_private.h: New file.
24546         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
24547         math_private.h below SET_FLOAT_WORD.
24548         (__isnan, __isinf_ns, __finite): Remove.
24549         (__isnanf, __isinf_nsf, __finitef): Remove.
24550
24551 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
24552
24553         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24554
24555 2012-03-17  David S. Miller  <davem@davemloft.net>
24556
24557         [BZ #6471]
24558         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
24559         for 2.16.
24560
24561 2012-03-16  David S. Miller  <davem@davemloft.net>
24562
24563         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
24564         warnings.
24565
24566         [BZ #6471]
24567         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
24568         properly.
24569         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
24570         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
24571         sysdep_routines when subdir is sysvipc.
24572         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
24573         __getshmlba helper.
24574
24575         * sysdeps/sparc/fpu/libm-test/ulps: Update.
24576
24577 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24578
24579         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
24580         [__LP64__].
24581
24582 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24583
24584         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
24585         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
24586         (__lround): Renamed to ...
24587         (__llround): This.  Replace long int with long long int.
24588         Define lround functions as aliases of llround functions.
24589         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
24590
24591 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24592
24593         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
24594         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
24595         adresses to uintptr_t.  Replace "long int" and "unsigned long
24596         int" with "greg_t" on va_arg.
24597
24598 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24599
24600         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
24601         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
24602
24603         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
24604         Move e_machine check before EI_CLASS check.  Handle x32
24605         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
24606         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
24607         SKIP_EM_IA_64 and include
24608         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
24609
24610         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
24611         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
24612         (add_system_dir): New macro.
24613
24614         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
24615         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
24616
24617 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
24618
24619         [BZ #2551]
24620         [BZ #2552]
24621         [BZ #2553]
24622         [BZ #2554]
24623         [BZ #2562]
24624         [BZ #2563]
24625         [BZ #2565]
24626         [BZ #2566]
24627         [BZ #2576]
24628         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
24629         (y0): Likewise.
24630         * math/w_j0f.c (j0f): Likewise.
24631         (y0f): Likewise.
24632         * math/w_j0l.c (__j0l): Likewise.
24633         (__y0l): Likewise.
24634         * math/w_j1.c (j1): Likewise.
24635         (y1): Likewise.
24636         * math/w_j1f.c (j1f): Likewise.
24637         (y1f): Likewise.
24638         * math/w_j1l.c (__j1l): Likewise.
24639         (__y1l): Likewise.
24640         * math/w_jn.c (jn): Likewise.
24641         (yn): Likewise.
24642         * math/w_jnf.c (jnf): Likewise.
24643         (ynf): Likewise.
24644         * math/w_jnl.c (__jnl): Likewise.
24645         (__ynl): Likewise.
24646         * math/libm-test.inc (j0_test): Add more tests.
24647         (j1_test): Likewise.
24648         (jn_test): Likewise.  Add trailing semicolon to existing test.
24649         (y0_test): Likewise.
24650         (y1_test): Likewise.
24651         * sysdeps/i386/fpu/libm-test-ulps: Update.
24652         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24653
24654         [BZ #13851]
24655         [BZ #13854]
24656         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
24657         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
24658         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
24659         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
24660         (__tanl): Set errno for infinite argument.
24661         * sysdeps/i386/fpu/mptan.c: Remove.
24662         * sysdeps/i386/fpu/s_tan.S: Likewise.
24663         * sysdeps/i386/fpu/s_tanl.S: Likewise.
24664         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
24665         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
24666         * math/libm-test.inc (tan_test): Add more tests and enable more
24667         tests for double and long double.
24668         * sysdeps/i386/fpu/libm-test-ulps: Update.
24669         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24670
24671 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
24672
24673         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
24674         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
24675
24676 2012-03-16  Roland McGrath  <roland@hack.frob.com>
24677
24678         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
24679         * configure.in: Use it for both main tree and add-ons.
24680         * configure: Regenerated.
24681
24682 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
24683
24684         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
24685
24686 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
24687
24688         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
24689         in comment.
24690
24691         [BZ #13851]
24692         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
24693         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
24694         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
24695         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
24696         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
24697         infinite argument.
24698         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
24699         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
24700         != 0 for prec == 2.
24701         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
24702         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
24703         * sysdeps/i386/fpu/s_cosl.S: Likewise.
24704         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
24705         * sysdeps/i386/fpu/s_sinl.S: Likewise.
24706         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
24707         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
24708         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
24709         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
24710         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
24711         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
24712         * math/libm-test.inc (cos_test): Add more tests and enable more
24713         tests for long double.
24714         (sin_test): Likewise.
24715         (sincos_test): Likewise.
24716         * sysdeps/i386/fpu/libm-test-ulps: Update.
24717         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24718
24719 2012-03-16  David S. Miller  <davem@davemloft.net>
24720
24721         * sysdeps/sparc/fpu/math_private.h: New file.
24722
24723 2012-03-15  David S. Miller  <davem@davemloft.net>
24724
24725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
24726         file.
24727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
24728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
24729         file.
24730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
24731         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
24732         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
24733         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
24734         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
24735         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
24736         sysdep routines.
24737         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
24738
24739         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
24740         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
24741
24742         * sysdeps/sparc/sparc-ifunc.h: New file.
24743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
24744         sparc-ifunc.h
24745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
24746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
24747         Likewise.
24748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
24749         Likewise.
24750         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
24751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
24752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
24753         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
24754         Likewise.
24755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
24756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
24757         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
24758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
24759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
24760         Likewise.
24761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
24762         Likewise.
24763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
24764         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
24765         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
24766         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
24767         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
24768         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
24769         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
24770         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
24771         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
24772         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
24773         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
24774         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
24775         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
24776         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
24777         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
24778         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
24779         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
24780         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
24781         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
24782         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
24783         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
24784         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
24785         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
24786         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
24787
24788 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
24789
24790         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
24791         scaling.
24792         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24793
24794 2012-03-15  Andreas Jaeger  <aj@suse.de>
24795
24796         [BZ #13852]
24797         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
24798         ieee754/flt-32 implementation for sin, cos and sincos.
24799         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
24800         * sysdeps/i386/fpu/s_cosf.S: Likewise.
24801         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
24802         * sysdeps/i386/fpu/s_sinf.S: Likewise.
24803         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
24804         ieee754/flt-32 implementation for tan.
24805
24806         * math/libm-test.inc (cos_test): Enable some large input tests for
24807         float as well
24808         (sin_test): Likewise.
24809         (sincos_test): Likewise.
24810         (tan_test): Add tests for large input.
24811
24812         * sysdeps/i386/fpu/libm-test-ulps: Update.
24813
24814 2012-03-15  Andreas Jaeger  <aj@suse.de>
24815
24816         [BZ #13658]
24817         * math/libm-test.inc (cos_test): Add more test cases.
24818         (sin_test): Likewise.
24819         (sincos_test): Likewise.
24820
24821 2012-03-15  Andreas Jaeger  <aj@suse.de>
24822
24823         [BZ #13837]
24824         * math/libm-test.inc (cos_test): Add a test case for large input
24825         value.
24826         (sin_test): Likewise.
24827         (sincos_test): Likewise.
24828
24829 2012-03-15  Andreas Jaeger  <aj@suse.de>,
24830         Joseph Myers  <joseph@codesourcery.com>
24831
24832         [BZ #13658]
24833         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
24834         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
24835         * sysdeps/i386/fpu/branred.c: Likewise.
24836         * sysdeps/i386/fpu/dosincos.c: Likewise.
24837         * sysdeps/i386/fpu/mpa.c: Likewise.
24838         * sysdeps/i386/fpu/s_cos.S: Likewise.
24839         * sysdeps/i386/fpu/s_sin.S: Likewise.
24840         * sysdeps/i386/fpu/s_sincos.S: Likewise.
24841         * sysdeps/i386/fpu/sincos32.c: Likewise.
24842
24843         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
24844         Define.
24845         (libc_feupdateenv_53bit): Define.
24846         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
24847         Define.
24848         (libc_feupdateenv_53bit): Define.
24849
24850         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
24851         53 bit (without extend i386 double precision).
24852
24853         * math/libm-test.inc (sincos_test): Add tests for large input.
24854         (sin): Likewise.
24855         (cos): Likewise.
24856
24857         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
24858
24859 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
24860
24861         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24862
24863 2012-03-15  David S. Miller  <davem@davemloft.net>
24864
24865         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
24866         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
24867         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
24868         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
24869         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
24870         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
24871         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
24872         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
24873         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
24874         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
24875         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
24876         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
24877         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
24878         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
24879         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
24880         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
24881         file.
24882         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
24883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
24884         file.
24885         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
24886         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
24887         file.
24888         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
24889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
24890         file.
24891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
24892         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
24893         fmin/fmax sysdep routines.
24894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
24895
24896 2012-03-14  David S. Miller  <davem@davemloft.net>
24897
24898         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
24899         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
24900         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
24901         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
24902         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
24903         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
24904         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
24905         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
24906         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
24907         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
24908         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
24909         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
24910         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
24911         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
24912         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
24913         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
24914         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
24915         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
24916         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
24917         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
24918         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
24919         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
24920         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
24921         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
24922         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
24923         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
24924         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
24925         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
24926         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
24927         routines.
24928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
24929         file.
24930         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
24931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
24932         file.
24933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
24934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
24935         file.
24936         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
24937         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
24938         file.
24939         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
24940         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
24941         file.
24942         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
24943         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
24944         file.
24945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
24946         file.
24947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
24948         file.
24949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
24950         file.
24951         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
24952         New file.
24953         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
24954         file.
24955         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
24956         file.
24957         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
24958         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
24959         file.
24960         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
24961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
24962         file.
24963         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
24964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
24965         file.
24966         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
24967         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
24968         VIS3 routines.
24969
24970         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
24971         New file.
24972
24973         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24974
24975         * sysdeps/sparc/configure.in: New file.
24976         * sysdeps/sparc/configure: Generate.
24977         * configure.in (libc_cv_sparc_as_vis3): Substitute.
24978         * configure: Regenerate.
24979         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
24980         * config.make.in (have-as-vis3): New.
24981         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
24982         available use -Av9d instead of -Av9a.
24983         * sysdeps/sparc/sparc64/Makefile: Likewise.
24984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
24985         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
24986         New file.
24987         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
24988         file.
24989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
24990         New file.
24991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
24992         file.
24993         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
24994         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
24995         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
24996         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
24997         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
24998
24999         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
25000         fzeros/fnegs to load 0x80000000 into a float register instead of
25001         using the stack.
25002         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
25003
25004 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
25005
25006         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25007         bits/syscall.h.
25008         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
25009         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
25010         ($(inst_includedir)/bits/syscall.h): Remove rule.
25011         ($(objpfx)bits/syscall.d): Include instead of
25012         $(objpfx)syscall-list.d.
25013         (generated): Change syscall-list.h and syscall-list.d to
25014         bits/syscall.h and bits/syscall.d.
25015
25016 2012-03-14  Roland McGrath  <roland@hack.frob.com>
25017
25018         [BZ #13846]
25019         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
25020
25021 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
25022
25023         [BZ #13841]
25024         * math/s_csqrt.c: Include <float.h>.
25025         (__csqrt): Scale large or subnormal inputs.
25026         * math/s_csqrtf.c: Likewise.
25027         * math/s_csqrtl.c: Likewise.
25028         * math/libm-test.inc (csqrt_test): Add more tests.
25029         * sysdeps/i386/fpu/libm-test-ulps: Update.
25030         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25031
25032         [BZ #13840]
25033         * math/libm-test.inc (hypot_test): Add more tests.
25034
25035 2012-03-13  David S. Miller  <davem@davemloft.net>
25036
25037         [BZ #13840]
25038         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
25039         double-precision for the calculation instead of scaling.
25040
25041 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
25042
25043         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
25044         manipulate bits before adding and subtracting TWO52[sx].
25045         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
25046         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
25047         Likewise.
25048         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
25049
25050 2012-03-13  David S. Miller  <davem@davemloft.net>
25051
25052         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
25053         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
25054         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
25055         rtld-global-offsets.h
25056         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
25057
25058         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
25059         large parameters.
25060
25061         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
25062
25063         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
25064         'err' in the ifdef scope in which it is actually used.
25065
25066         * nss/nss_db/db-init.c: Include string.h
25067
25068 2012-03-12  David S. Miller  <davem@davemloft.net>
25069
25070         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
25071         masking out of the most significant byte of random value used.
25072         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
25073         Fix coding style in previous change.
25074
25075         * sysdeps/unix/sysv/linux/kernel-features.h
25076         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
25077         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
25078         expression.
25079         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
25080         later.
25081
25082 2012-03-11  David S. Miller  <davem@davemloft.net>
25083
25084         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
25085         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
25086         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
25087         for 'resultvar' otherwise things get truncated on 64-bit.
25088
25089         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
25090         Fix masking out of the most significant byte of random value used.
25091
25092         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25093
25094 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
25095
25096         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25097
25098 2012-03-09  David S. Miller  <davem@davemloft.net>
25099
25100         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
25101         variables with appropriate CPP guards.
25102         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
25103         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
25104         on resulting framesize and the management of the outregs buffer for pltexit.
25105         Preserve floating point return values across _dl_call_pltexit call.
25106         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
25107         framesize and the management of the outregs buffer for pltexit.
25108         Preserve floating point return values across _dl_call_pltexit
25109         call.
25110         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
25111         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
25112         (print_exit): Fix format string for return register value.
25113
25114 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
25115
25116         * sunrpc/Makefile (others): Add rpcgen.
25117         ($(objpfx)rpcgen): Remove special build rule and dependency on
25118         libc.
25119         * sunrpc/rpcgen.c: New file.
25120
25121 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
25122
25123         [BZ #13673]
25124         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
25125         * stdio-common/bug-vfprintf-nargs.c: Likewise.
25126         * sysdeps/i386/crti.S: Likewise.
25127         * sysdeps/i386/crtn.S: Likewise.
25128         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
25129         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
25130         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
25131         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
25132         * sysdeps/sh/crti.S: Likewise.
25133         * sysdeps/sh/crtn.S: Likewise.
25134         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
25135
25136         [BZ #13673]
25137         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
25138         with URL.
25139         * locale/programs/locfile-kw.gperf: Likewise.
25140         * locale/programs/charmap-kw.h: Regenerated.
25141         * locale/programs/locfile-kw.h: Likewise.
25142
25143         [BZ #13673]
25144         * intl/plural.y: Replace FSF snail mail address with URL.
25145         * intl/plural.c: Regenerated.
25146
25147 2012-03-09  Richard Henderson  <rth@twiddle.net>
25148
25149         * include/math_private.h: Remove file.
25150         * math/math_private.h: Move file ...
25151         * sysdeps/generic/math_private.h: ... here.
25152
25153         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
25154         * sysdeps/powerpc/fpu/math_private.h: Likewise.
25155         * sysdeps/x86_64/fpu/math_private.h: Likewise.
25156
25157         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
25158         and <math_private.h>.
25159         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
25160         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
25161         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
25162         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
25163         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
25164         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
25165         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
25166         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
25167         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
25168         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
25169         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
25170         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
25171         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
25172         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
25173         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
25174         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
25175         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
25176         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
25177         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
25178         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
25179         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
25180         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
25181         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
25182         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
25183         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
25184         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
25185         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
25186         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
25187         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
25188         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
25189         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
25190         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
25191         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
25192         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
25193         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
25194         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
25195         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
25196         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
25197         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
25198         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
25199         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
25200         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
25201         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
25202         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
25203         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
25204         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
25205         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
25206         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
25207         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
25208         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
25209         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
25210         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
25211         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
25212         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
25213         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
25214         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
25215         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
25216         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
25217         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
25218         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
25219         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
25220         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
25221         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
25222         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
25223         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
25224         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
25225         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
25226         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
25227         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
25228         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
25229         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
25230         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
25231         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
25232         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
25233         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
25234         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
25235         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
25236         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
25237         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
25238         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
25239         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
25240         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
25241         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
25242         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
25243         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
25244         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
25245         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
25246         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
25247         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
25248         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
25249         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
25250         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
25251         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
25252         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
25253         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
25254         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
25255         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
25256         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
25257         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
25258         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
25259         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
25260         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
25261         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
25262         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
25263         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
25264         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
25265         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
25266         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
25267         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
25268         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
25269         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
25270         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
25271         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
25272         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
25273         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
25274         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
25275         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
25276         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
25277         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
25278         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
25279         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
25280         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
25281         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
25282         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
25283         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
25284         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
25285         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
25286         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
25287         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
25288         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
25289         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
25290         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
25291         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
25292         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
25293         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
25294         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
25295         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
25296         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
25297         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
25298         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
25299         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
25300         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
25301         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
25302         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
25303         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
25304         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
25305         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
25306         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
25307         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
25308         * sysdeps/ieee754/k_standard.c: Likewise.
25309         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
25310         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
25311         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
25312         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
25313         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
25314         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
25315         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
25316         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
25317         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
25318         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
25319         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
25320         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
25321         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
25322         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
25323         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
25324         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
25325         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
25326         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
25327         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
25328         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
25329         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
25330         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
25331         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
25332         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
25333         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
25334         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
25335         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
25336         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
25337         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
25338         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
25339         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
25340         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
25341         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
25342         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
25343         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
25344         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
25345         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
25346         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
25347         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
25348         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
25349         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
25350         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
25351         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
25352         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
25353         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
25354         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
25355         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
25356         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
25357         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
25358         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
25359         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
25360         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
25361         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
25362         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
25363         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
25364         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
25365         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
25366         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
25367         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
25368         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
25369         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
25370         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
25371         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
25372         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
25373         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
25374         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
25375         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
25376         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
25377         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
25378         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
25379         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
25380         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
25381         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
25382         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
25383         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
25384         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
25385         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
25386         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
25387         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
25388         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
25389         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
25390         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
25391         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
25392         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
25393         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
25394         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
25395         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
25396         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
25397         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
25398         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
25399         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
25400         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
25401         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
25402         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
25403         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
25404         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
25405         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
25406         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
25407         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
25408         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
25409         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
25410         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
25411         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
25412         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
25413         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
25414         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
25415         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
25416         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
25417         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
25418         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
25419         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
25420         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
25421         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
25422         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
25423         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
25424         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
25425         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
25426         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
25427         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
25428         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
25429         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
25430         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
25431         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
25432         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
25433         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
25434         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
25435         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
25436         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
25437         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
25438         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
25439         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
25440         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
25441         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
25442         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
25443         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
25444         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
25445         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
25446         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
25447         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
25448         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
25449         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
25450         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
25451         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
25452         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
25453         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
25454         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
25455         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
25456         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
25457         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
25458         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
25459         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
25460         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
25461         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
25462         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
25463         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
25464         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
25465         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
25466         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
25467         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
25468         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
25469         * sysdeps/ieee754/s_lib_version.c: Likewise.
25470         * sysdeps/ieee754/s_matherr.c: Likewise.
25471         * sysdeps/ieee754/s_signgam.c: Likewise.
25472         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
25473         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
25474         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
25475         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
25476         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
25477         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
25478         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
25479         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
25480         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
25481         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
25482         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
25483         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
25484         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
25485         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
25486         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
25487         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
25488         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
25489         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
25490         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
25491         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
25492         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
25493
25494 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
25495
25496         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
25497         * sunrpc/rpc_main.c: Likewise.
25498         * sunrpc/rpc_svcout.c: Likewise.
25499
25500 2012-03-09  David S. Miller  <davem@davemloft.net>
25501
25502         * include/math_private.h: New file.
25503
25504 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
25505
25506         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
25507         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
25508         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
25509         from <bits/socket_type.h>.
25510         (enum __socket_type): Don't define here.
25511         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
25512         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25513         bits/socket_type.h.
25514
25515         [BZ #13566]
25516         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
25517         checking __USE_GNU.
25518
25519         * Makerules ($(inst_includedir)/%.h): New rule.
25520         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
25521         (install-others): Remove variable setting.
25522         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
25523
25524 2012-03-08  Richard Henderson  <rth@twiddle.net>
25525
25526         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
25527         from macro to inline function; merge with the
25528         !__LIBC_INTERNAL_MATH_INLINES version.
25529         (__ieee754_sqrtf): Likewise.
25530
25531         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
25532         to inline function.
25533         (__rintf, __floor, __floorf): Likewise.
25534
25535         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
25536         macro to inline function.
25537         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
25538
25539         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
25540         not <math/math_private.h>.
25541
25542 2012-03-08  David S. Miller  <davem@davemloft.net>
25543
25544         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
25545         copyright year.
25546         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
25547
25548 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
25549
25550         * resolv/gai_misc.c (handle_requests): Fix struct timespec
25551         normalization.
25552         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
25553         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
25554
25555 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
25556
25557         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
25558         be defined individually, they must be defined as a block.  Define
25559         S for printing a string instead of hidint the different by using a
25560         macro for adding the 'l'.
25561         * stdio-common/tst-fphex-wide.c: Adjust.
25562
25563 2012-03-07  Marek Polacek  <polacek@redhat.com>
25564
25565         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
25566
25567 2012-03-08  Marek Polacek  <polacek@redhat.com>
25568
25569         [BZ #13806]
25570         * stdio-common/Makefile (tests): Add tst-fphex-wide.
25571         * stdio-common/tst-fphex.c: Define a few macros to make the
25572         test reusable.  Use them.
25573         * stdio-common/tst-fphex-wide.c: New file.
25574
25575 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
25576
25577         [BZ #6911]
25578         * manual/macros.texi (gnusystems): New macro.
25579         (nongnusystems): Likewise.
25580         (gnulinuxhurdsystems): Likewise.
25581         (gnuhurdsystems): Likewise..
25582         (gnulinuxsystems): Likewise.
25583         * manual/charset.texi: Use new macros or @theglibc{} to refer to
25584         variants of the GNU system, not "GNU system".
25585         * manual/conf.texi: Likewise.
25586         * manual/errno.texi: Likewise.  Update example of errno macro
25587         expansion.
25588         * manual/filesys.texi: Likewise.
25589         (getumask): Document as specific to GNU/Hurd.
25590         * manual/install.texi: Likewise.  Reword some references to
25591         GNU/Linux.
25592         * manual/intro.texi: Likewise.
25593         * manual/io.texi: Likewise.
25594         (File Name Portability): Detail which constraints are inapplicable
25595         to all GNU systems and which are only inapplicable to GNU/Hurd.
25596         * manual/job.texi: Likewise.
25597         * manual/llio.texi: Likewise.
25598         (O_NOCTTY): Document as present on GNU/Linux.
25599         * manual/maint.texi: Likewise.
25600         * manual/memory.texi: Likewise.
25601         * manual/pattern.texi: Likewise.
25602         * manual/pipe.texi: Likewise.
25603         * manual/process.texi: Likewise.
25604         * manual/resource.texi: Likewise.
25605         (RUSAGE_CHILDREN): Remove statement about specifying a particular
25606         child on GNU/Hurd.
25607         * manual/setjmp.texi: Likewise.
25608         * manual/signal.texi: Likewise.
25609         * manual/startup.texi: Likewise.
25610         * manual/stdio.texi: Likewise.
25611         * manual/terminal.texi: Likewise.
25612         (ONLCR): Document as POSIX.
25613         (OXTABS): Document availability on GNU/Linux as XTABS.
25614         (ONOEOT): Document availability separately from other bits.
25615         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
25616         * manual/time.texi: Likewise.
25617         * manual/users.texi: Likewise.
25618         * INSTALL: Regenerated.
25619         * sysdeps/gnu/errlist.c: Regenerated.
25620
25621         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
25622         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
25623         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
25624         puts.
25625         * configure: Regenerated.
25626
25627 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
25628
25629         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
25630         default includes instead of AC_HEADER_CHECK.
25631         * sysdeps/i386/configure: Regenerated.
25632
25633         [BZ #10716]
25634         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
25635         * math/s_cacoshf.c (__cacoshf): Likewise.
25636         * math/s_cacoshl.c (__cacoshl): Likewise.
25637         * math/s_casinh.c (__casinh): Set signs of result from argument.
25638         * math/s_casinhf.c (__casinhf): Likewise.
25639         * math/s_casinhl.c (__casinhl): Likewise.
25640         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
25641         (casinh_test): Add more tests.
25642         * sysdeps/i386/fpu/libm-test-ulps: Update.
25643         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25644
25645 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
25646
25647         * po/zh_TW.po: Update from translation team.
25648
25649         * login/Makefile (distribute): Remove variable.
25650         * catgets/Makefile: Likewise.
25651         * mach/Makefile: Likewise.
25652         * malloc/Makefile: Likewise.
25653         * misc/Makefile: Likewise.
25654         * iconv/Makefile: Likewise.
25655         * nscd/Makefile: Likewise.
25656         * hurd/Makefile: Likewise.
25657         * manual/Makefile: Likewise.
25658         * locale/Makefile: Likewise.
25659         * intl/Makefile: Likewise.
25660         * conform/Makefile: Likewise.
25661         * nss/Makefile: Likewise.
25662         * time/Makefile: Likewise.
25663         * soft-fp/Makefile: Likewise.
25664         * dirent/Makefile: Likewise.
25665         * gmon/Makefile: Likewise.
25666         * po/Makefile: Likewise.
25667         * rt/Makefile: Likewise.
25668         * socket/Makefile: Likewise.
25669         * math/Makefile: Likewise.
25670         * signal/Makefile: Likewise.
25671         * debug/Makefile: Likewise.
25672         * elf/Makefile: Likewise.
25673         * timezone/Makefile: Likewise.
25674         * stdlib/Makefile: Likewise.
25675         * iconvdata/Makefile: Likewise.
25676         * sunrpc/Makefile: Likewise.
25677         * io/Makefile: Likewise.
25678         * argp/Makefile: Likewise.
25679         * inet/Makefile: Likewise.
25680         * hesiod/Makefile: Likewise.
25681         * grp/Makefile: Likewise.
25682         * csu/Makefile: Likewise.
25683         * wctype/Makefile: Likewise.
25684         * crypt/Makefile: Likewise.
25685         * libio/Makefile: Likewise.
25686         * string/Makefile: Likewise.
25687         * nis/Makefile: Likewise.
25688         * resolv/Makefile: Likewise.
25689         * stdio-common/Makefile: Likewise.
25690         * wcsmbs/Makefile: Likewise.
25691         * dlfcn/Makefile: Likewise.
25692         * posix/Makefile: Likewise.
25693
25694         [BZ #6959]
25695         * timezone/Makefile: Don't install timezone files, just the programs
25696         and scripts.
25697
25698 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
25699
25700         * nss/databases.def: Add missing gshadow entry.
25701
25702         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
25703
25704 2012-03-06  Marek Polacek  <polacek@redhat.com>
25705
25706         [BZ #13726]
25707         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
25708         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
25709         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
25710         * stdio-common/tst-long-dbl-fphex.c: New file.
25711
25712 2012-03-06  David S. Miller  <davem@davemloft.net>
25713
25714         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
25715         (set_obp_int): New function.
25716         (get_obp_int): New function.
25717         (__get_clockfreq_via_dev_openprom): Likewise.
25718         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
25719         Avoid unused variable warnings on 'val' and use builtin_expect.
25720         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
25721         __builtin_expect.
25722         (INLINE_CLONE_SYSCALL): Likewise.
25723
25724 2012-03-05  David S. Miller  <davem@davemloft.net>
25725
25726         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25727
25728 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
25729
25730         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25731
25732         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
25733         only for |x| >= 40.
25734         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
25735
25736 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
25737
25738         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
25739         Replace gettimeofday with __vdso_gettimeofday.
25740
25741         * sysdeps/unix/sysv/linux/x86_64/init-first.c
25742         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
25743         __vdso_clock_gettime and __vdso_getcpu.
25744
25745         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
25746         time with __vdso_time.
25747
25748 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
25749
25750         * manual/lang.texi (size_t): Note types to which size_t may be
25751         equivalent with the GNU C Library, but do not describe when
25752         differences between them are significant.
25753
25754 2012-03-05  Andreas Jaeger  <aj@suse.de>
25755
25756         * sysdeps/i386/fpu/libm-test-ulps: Update.
25757
25758 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
25759
25760         [BZ #3976]
25761         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
25762         (__ieee754_pow): Save and restore rounding mode and use
25763         round-to-nearest for main computations.
25764         * math/libm-test.inc (pow_test_tonearest): New function.
25765         (pow_test_towardzero): Likewise.
25766         (pow_test_downward): Likewise.
25767         (pow_test_upward): Likewise.
25768         (main): Call the new functions.
25769         * sysdeps/i386/fpu/libm-test-ulps: Update.
25770         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25771
25772         [BZ #3976]
25773         * math/libm-test.inc (cosh_test_tonearest): New function.
25774         (cosh_test_towardzero): Likewise.
25775         (cosh_test_downward): Likewise.
25776         (cosh_test_upward): Likewise.
25777         (sinh_test_tonearest): Likewise.
25778         (sinh_test_towardzero): Likewise.
25779         (sinh_test_downward): Likewise.
25780         (sinh_test_upward): Likewise.
25781         (main): Call the new functions.
25782         * sysdeps/i386/fpu/libm-test-ulps: Update.
25783         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25784
25785 2012-03-05  Tom de Vries  <tom@codesourcery.com>
25786
25787         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
25788         default stack guard is set in last bytes.
25789         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
25790
25791 2012-03-05  Kees Cook  <keescook@chromium.org>
25792
25793         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
25794
25795         [BZ #13656]
25796         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
25797         possibly allocate from heap instead of stack.
25798         * stdio-common/bug-vfprintf-nargs.c: New file.
25799         * stdio-common/Makefile (tests): Add nargs overflow test.
25800
25801 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
25802
25803         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25804
25805 2012-03-03  Marek Polacek  <polacek@redhat.com>
25806
25807         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
25808         * math/math_private.h: Likewise.
25809         * stdlib/tst-strtod.c: Likewise.
25810         * sysdeps/i386/i486/bits/atomic.h: Likewise.
25811         * sysdeps/x86_64/bits/atomic.h: Likewise.
25812
25813 2012-03-02  David S. Miller  <davem@davemloft.net>
25814
25815         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
25816         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
25817         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
25818         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
25819         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
25820         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
25821         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
25822         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
25823
25824 2012-03-02  Roland McGrath  <roland@hack.frob.com>
25825
25826         [BZ #13792]
25827         * manual/examples/README: New file, says the example source files
25828         can be used under GPL>=2.
25829         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
25830         line containing just "*/".
25831         * manual/examples/add.c: Add copyright header (GPL>=2).
25832         * manual/examples/argp-ex1.c: Likewise.
25833         * manual/examples/argp-ex2.c: Likewise.
25834         * manual/examples/argp-ex3.c: Likewise.
25835         * manual/examples/argp-ex4.c: Likewise.
25836         * manual/examples/atexit.c: Likewise.
25837         * manual/examples/db.c: Likewise.
25838         * manual/examples/dir.c: Likewise.
25839         * manual/examples/dir2.c: Likewise.
25840         * manual/examples/execinfo.c: Likewise.
25841         * manual/examples/filecli.c: Likewise.
25842         * manual/examples/filesrv.c: Likewise.
25843         * manual/examples/fmtmsgexpl.c: Likewise.
25844         * manual/examples/genpass.c: Likewise.
25845         * manual/examples/inetcli.c: Likewise.
25846         * manual/examples/inetsrv.c: Likewise.
25847         * manual/examples/isockad.c: Likewise.
25848         * manual/examples/longopt.c: Likewise.
25849         * manual/examples/memopen.c: Likewise.
25850         * manual/examples/memstrm.c: Likewise.
25851         * manual/examples/mkfsock.c: Likewise.
25852         * manual/examples/mkisock.c: Likewise.
25853         * manual/examples/mygetpass.c: Likewise.
25854         * manual/examples/pipe.c: Likewise.
25855         * manual/examples/popen.c: Likewise.
25856         * manual/examples/rprintf.c: Likewise.
25857         * manual/examples/search.c: Likewise.
25858         * manual/examples/select.c: Likewise.
25859         * manual/examples/setjmp.c: Likewise.
25860         * manual/examples/sigh1.c: Likewise.
25861         * manual/examples/sigusr.c: Likewise.
25862         * manual/examples/stpcpy.c: Likewise.
25863         * manual/examples/strdupa.c: Likewise.
25864         * manual/examples/strftim.c: Likewise.
25865         * manual/examples/strncat.c: Likewise.
25866         * manual/examples/subopt.c: Likewise.
25867         * manual/examples/swapcontext.c: Likewise.
25868         * manual/examples/termios.c: Likewise.
25869         * manual/examples/testopt.c: Likewise.
25870         * manual/examples/testpass.c: Likewise.
25871         * manual/examples/timeval_subtract.c: Likewise.
25872
25873         [BZ #13792]
25874         * manual/time.texi (Elapsed Time): Move timeval_subtract example
25875         function to ...
25876         * manual/timeval_subtract.c.texi: ... here, new file.
25877
25878 2012-03-02  David S. Miller  <davem@davemloft.net>
25879
25880         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
25881
25882 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
25883
25884         [BZ #3976]
25885         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
25886         (__sin): Save and restore rounding mode and use round-to-nearest
25887         for all computations.
25888         (__cos): Save and restore rounding mode and use round-to-nearest
25889         for all computations.
25890         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
25891         <fenv.h>.
25892         (tan): Save and restore rounding mode and use round-to-nearest for
25893         all computations.
25894         * math/libm-test.inc (cos_test_tonearest): New function.
25895         (cos_test_towardzero): Likewise.
25896         (cos_test_downward): Likewise.
25897         (cos_test_upward): Likewise.
25898         (sin_test_tonearest): Likewise.
25899         (sin_test_towardzero): Likewise.
25900         (sin_test_downward): Likewise.
25901         (sin_test_upward): Likewise.
25902         (tan_test_tonearest): Likewise.
25903         (tan_test_towardzero): Likewise.
25904         (tan_test_downward): Likewise.
25905         (tan_test_upward): Likewise.
25906         (main): Call the new functions.
25907         * sysdeps/i386/fpu/libm-test-ulps: Update.
25908         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25909
25910         [BZ #10135]
25911         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
25912         small n, then large n, before computing and testing k+n.
25913         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
25914         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
25915         Likewise.
25916         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
25917         Likewise.
25918         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
25919         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
25920         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
25921         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
25922         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
25923         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
25924         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
25925         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
25926         * math/libm-test.inc (scalbn_test): Add more tests.
25927         (scalbln_test): Likewise.
25928
25929         * manual/filesys.texi (mode_t): Describe constraints on size and
25930         signedness, not exact equivalence to a particular type.
25931         (ino_t): Likewise.
25932         (ino64_t): Likewise.
25933         (dev_t): Likewise.
25934         (nlink_t): Likewise.
25935         (blkcnt_t): Likewise.
25936         (blkcnt64_t): Likewise.
25937         * manual/llio.texi (off_t): Likewise.
25938
25939         [BZ #3976]
25940         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
25941         (__ieee754_exp): Save and restore rounding mode and use
25942         round-to-nearest for all computations.
25943         * math/libm-test.inc (exp_test_tonearest): New function.
25944         (exp_test_towardzero): Likewise.
25945         (exp_test_downward): Likewise.
25946         (exp_test_upward): Likewise.
25947         (main): Call the new functions.
25948         * sysdeps/i386/fpu/libm-test-ulps: Update.
25949         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25950
25951 2012-03-01  Chris Demetriou  <cgd@google.com>
25952
25953         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
25954         have predictable order.
25955
25956 2012-03-01  David S. Miller  <davem@davemloft.net>
25957
25958         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
25959
25960         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
25961         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
25962         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
25963         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
25964
25965         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
25966         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
25967         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
25968         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
25969         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
25970         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
25971         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
25972         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
25973         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
25974
25975         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25976
25977         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
25978         * sysdeps/sparc/fpu/libm-test-ulps: to here.
25979         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
25980
25981         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
25982         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
25983         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
25984         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
25985         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
25986         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
25987         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
25988         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
25989         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
25990         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
25991         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
25992         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
25993         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
25994         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
25995         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
25996         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
25997         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
25998         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
25999         * sysdeps/sparc/elf/configure: Regenerated.
26000
26001 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
26002
26003         * configure.in (AS, LD): Require binutils 2.20 or later.
26004         * configure: Regenerated.
26005         * manual/install.texi (Tools for Compilation): Give binutils 2.20
26006         as required minimum version.
26007         * INSTALL: Regenerated.
26008
26009         [BZ #2541]
26010         [BZ #4108]
26011         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
26012         before squaring exponent.
26013         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
26014         bottom long double and 27 bits of top long double before squaring
26015         exponent.
26016         * math/libm-test.inc (erfc_test): Add more tests.
26017         * sysdeps/i386/fpu/libm-test-ulps: Update.
26018         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
26019         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26020
26021 2012-03-01  Kai Tietz  <ktietz@redhat.com>
26022
26023         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
26024         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
26025         containing bit-fields.
26026         * soft-fp/extended.h (_FP_UNION_E): Likewise.
26027         * soft-fp/single.h (_FP_UNION_S): Likewise.
26028         * soft-fp/double.h (_FP_UNION_D): Likewise.
26029
26030 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
26031
26032         [BZ #13786]
26033         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
26034         not include ../strcmp.S.
26035         [USE_AS_STRNCASECMP_L]: Likewise.
26036         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
26037         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
26038         * sysdeps/i386/i686/multiarch/strncase_l-c.c
26039         (__strncasecmp_l_ia32): Define as alias to
26040         __strncasecmp_l_nonascii.
26041
26042         [BZ #5794]
26043         * math/libm-test.inc (expm1_test): Add test for bug 5794.
26044         * sysdeps/i386/fpu/libm-test-ulps: Update.
26045         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26046
26047         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
26048         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26049
26050 2012-02-29  Jeff Law  <law@redhat.com>
26051
26052         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
26053         out of bounds read.
26054
26055 2012-02-29  Marek Polacek  <polacek@redhat.com>
26056
26057         [BZ #13706]
26058         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
26059         * elf/Makefile: Add rules to run tst-unused-dep.out.
26060
26061 2012-02-28  David S. Miller  <davem@davemloft.net>
26062
26063         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
26064         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
26065         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
26066         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
26067         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
26068         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
26069
26070 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
26071
26072         * math/libm-test.inc (llround_test): Move one test from
26073         lround_test.  Use TEST_f_L in moved test.
26074         (lround_test): Move misplaced test to llround_test.  Add testcase
26075         from bug 2561.
26076
26077 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
26078
26079         * sysdeps/x86_64/fpu/e_expf.S: New file.
26080         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
26081
26082 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
26083
26084         [BZ #13637]
26085         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
26086         of remain_len that may cause incomplete multi-byte character and
26087         false match.
26088         * posix/bug-regex33.c: New file.
26089         * posix/Makefile (tests): Add bug-regex33.
26090
26091 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
26092
26093         * manual/macros.texi: New file.
26094         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
26095         * manual/libc.texinfo: Include macros.texi.
26096         * manual/creatute.texi: Likewise.
26097         * manual/install.texi: Likewise.
26098         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
26099         @glibcadj{} in references to the GNU C Library.
26100         * manual/charset.texi: Likewise.
26101         * manual/conf.texi: Likewise.
26102         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
26103         when not using those macros.
26104         * manual/creature.texi: Likewise.
26105         * manual/crypt.texi: Likewise.
26106         * manual/errno.texi: Likewise.
26107         * manual/filesys.texi: Likewise.
26108         * manual/header.texi: Likewise.
26109         * manual/install.texi: Likewise.
26110         * manual/intro.texi: Likewise.
26111         * manual/io.texi: Likewise.
26112         * manual/job.texi: Likewise.
26113         * manual/lang.texi: Likewise.
26114         * manual/libc.texiinfo: Likewise.
26115         * manual/llio.texi: Likewise.
26116         * manual/locale.texi: Likewise.
26117         * manual/maint.texi: Likewise.
26118         * manual/math.texi: Likewise.
26119         * manual/memory.texi: Likewise.
26120         * manual/message.texi: Likewise.
26121         * manual/nss.texi: Likewise.
26122         * manual/pattern.texi: Likewise.
26123         * manual/process.texi: Likewise.
26124         * manual/resource.texi: Likewise.
26125         * manual/search.texi: Likewise.
26126         * manual/setjmp.texi: Likewise.
26127         * manual/signal.texi: Likewise.
26128         * manual/socket.texi: Likewise.
26129         * manual/startup.texi: Likewise.
26130         * manual/stdio.texi: Likewise.
26131         * manual/string.texi: Likewise.
26132         * manual/sysinfo.texi: Likewise.
26133         * manual/syslog.texi: Likewise.
26134         * manual/terminal.texi: Likewise.
26135         * manual/time.texi: Likewise.
26136         * manual/users.texi: Likewise.
26137         * INSTALL: Regenerated.
26138         * NOTES: Regenerated.
26139         * sysdeps/gnu/errlist.c: Regenerated.
26140
26141 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
26142
26143         * include/dirent.h: Include <dirstream.h> before
26144         <dirent/dirent.h>.
26145
26146 2012-02-28  David S. Miller  <davem@davemloft.net>
26147
26148         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
26149         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
26150         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
26151         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
26152
26153 2012-02-27  David S. Miller  <davem@davemloft.net>
26154
26155         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
26156         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
26157         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
26158         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
26159
26160         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
26161         frame pointer instead of stack pointer relative arg slot.
26162         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
26163         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
26164         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
26165
26166 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
26167
26168         [BZ #3992]
26169         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
26170
26171 2012-02-27  David S. Miller  <davem@davemloft.net>
26172
26173         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
26174         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
26175         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
26176         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
26177         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
26178         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
26179         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
26180         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
26181
26182 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
26183
26184         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
26185         later.  Allow versions 5-9.
26186         * configure: Regenerated.
26187         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
26188         required minimum version and 4.6 as recommended version.  Do not
26189         mention bugs in GCC 2.7 and 2.8.
26190         * INSTALL: Regenerated.
26191
26192 2012-02-27  David S. Miller  <davem@davemloft.net>
26193
26194         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
26195         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
26196         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
26197         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
26198         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
26199         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
26200         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
26201         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
26202
26203         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
26204         manipulate bits before adding and subtracting TWO112[sx].
26205         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
26206
26207 2012-02-27  Roland McGrath  <roland@hack.frob.com>
26208
26209         [BZ #13775]
26210         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
26211         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
26212         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
26213         being in POSIX, because they are in 1003.1-2008.
26214
26215         * rt/tst-aio.c: Include <fcntl.h>.
26216         * rt/tst-aio7.c: Likewise.
26217         * rt/tst-aio64.c: Likewise.
26218
26219         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
26220
26221 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
26222
26223         * manual/install.texi (--with-headers): Describe headers as
26224         interface headers, not private headers.
26225         (Specific advice for GNU/Linux systems): Describe use of headers
26226         from "make headers_install", not private headers from older
26227         kernels.
26228         * INSTALL: Regenerated.
26229         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
26230         Change to 2.6.19.
26231         * sysdeps/unix/sysv/linux/configure: Regenerated.
26232
26233         * manual/llio.texi (fclean): Remove documentation.
26234
26235         * manual/Makefile (libc-texi-generated): New variable.  Include
26236         version.texi.
26237         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
26238         $(libc-texi-generated), not duplicated list of files.
26239         (version.texi, stamp-version): New rules.
26240         (realclean): Remove $(libc-texi-generated), not individual files
26241         from that list.  Do not remove dir-add.texinfo.
26242         * manual/libc.texinfo: Comment out uses of edition numbers and
26243         references to printed manual.  Remove last-updated dates.
26244         (EDITION): Comment out.
26245         (ISBN): Likewise.
26246         (VERSION, UPDATED): Remove.
26247         (version.texi): Include.
26248
26249 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
26250
26251         * sysdeps/posix/spawni.c: Include <signal.h>.
26252         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
26253         * sysdeps/pthread/aio_fsync.c: Likewise.
26254
26255 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
26256
26257         * conform/Makefile (tests): Run only when not cross-compiling and
26258         when fast-check is not defined.
26259
26260         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
26261         * conform/data/limits.h-data: Fixes for POSIX2008.
26262         * conform/run-conformtest.sh: Run all tests.
26263         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
26264         headers.
26265         * include/bits/dlfcn.h: Likewise.
26266         * include/langinfo.h: Likewise.
26267         * include/monetary.h: Likewise.
26268         * include/sys/poll.h: Likewise.
26269
26270         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
26271         for __USE_GNU.
26272         * posix/spawn.h: Define __need_sigset_t.
26273         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
26274         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
26275         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
26276         to get sigevent_t only.
26277         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
26278         only for __USE_GNU.
26279         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
26280         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
26281         process_vm_writev only for __USE_GNU.
26282         * termios/termios.h: Declare tcgetsid also for POSIX2008.
26283
26284         * conform/Makefile: For now ignore errors from run-conformtest.
26285         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
26286         POSIX to avoid namespace pollution.  Don't prepend headers.
26287         * conform/data/aio.h-data: Fixes for POSIX testing.
26288         * conform/data/fcntl.h-data: Likewise.
26289         * conform/data/glob.h-data: Likewise.
26290         * conform/data/grp.h-data: Likewise.
26291         * conform/data/pthread.h-data: Likewise.
26292         * conform/data/pwd.h-data: Likewise.
26293         * conform/data/signal.h-data: Likewise.
26294         * conform/data/spawn.h-data: Likewise.
26295         * conform/data/stdio.h-data: Likewise.
26296         * conform/data/stdlib.h-data: Likewise.
26297         * conform/data/stropts.h-data: Likewise.
26298         * conform/data/sys/mman.h-data: Likewise.
26299         * conform/data/sys/stat.h-data: Likewise.
26300         * conform/data/sys/types.h-data: Likewise.
26301         * conform/data/sys/wait.h-data: Likewise.
26302         * conform/data/time.h-data: Likewise.
26303         * conform/data/unistd.h-data: Likewise.
26304         * conform/data/utime.h-data: Likewise.
26305
26306         * io/sys/stat.h: fchmod was always in POSIX.
26307         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
26308         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
26309         * rt/aio.h: Define __need_timespec before including <time.h>.
26310         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
26311         struct.  Add forward declaration of pthread_attr_t and use it in
26312         sigevent.
26313         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
26314         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
26315         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
26316         always remove CLK_TCK definition.
26317
26318 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
26319
26320         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
26321
26322 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
26323
26324         * conform/run-conformtest.sh: New file.
26325         * conform/Makefile: Run run-conformtest for tests.
26326         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
26327         support.
26328
26329         * conform/data/uchar.h-data: New file.
26330         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
26331         * conform/data/arpa/inet.h-data: Likewise.
26332         * conform/data/assert.h-data: Likewise.
26333         * conform/data/complex.h-data: Likewise.
26334         * conform/data/cpio.h-data: Likewise.
26335         * conform/data/ctype.h-data: Likewise.
26336         * conform/data/dirent.h-data: Likewise.
26337         * conform/data/dlfcn.h-data: Likewise.
26338         * conform/data/errno.h-data: Likewise.
26339         * conform/data/fcntl.h-data: Likewise.
26340         * conform/data/float.h-data: Likewise.
26341         * conform/data/fmtmsg.h-data: Likewise.
26342         * conform/data/fnmatch.h-data: Likewise.
26343         * conform/data/ftw.h-data: Likewise.
26344         * conform/data/glob.h-data: Likewise.
26345         * conform/data/grp.h-data: Likewise.
26346         * conform/data/iconv.h-data: Likewise.
26347         * conform/data/inttypes.h-data: Likewise.
26348         * conform/data/langinfo.h-data: Likewise.
26349         * conform/data/libgen.h-data: Likewise.
26350         * conform/data/limits.h-data: Likewise.
26351         * conform/data/locale.h-data: Likewise.
26352         * conform/data/math.h-data: Likewise.
26353         * conform/data/monetary.h-data: Likewise.
26354         * conform/data/mqueue.h-data: Likewise.
26355         * conform/data/ndbm.h-data: Likewise.
26356         * conform/data/net/if.h-data: Likewise.
26357         * conform/data/netdb.h-data: Likewise.
26358         * conform/data/netinet/in.h-data: Likewise.
26359         * conform/data/nl_types.h-data: Likewise.
26360         * conform/data/poll.h-data: Likewise.
26361         * conform/data/pthread.h-data: Likewise.
26362         * conform/data/pwd.h-data: Likewise.
26363         * conform/data/regex.h-data: Likewise.
26364         * conform/data/sched.h-data: Likewise.
26365         * conform/data/search.h-data: Likewise.
26366         * conform/data/semaphore.h-data: Likewise.
26367         * conform/data/setjmp.h-data: Likewise.
26368         * conform/data/signal.h-data: Likewise.
26369         * conform/data/spawn.h-data: Likewise.
26370         * conform/data/stdarg.h-data: Likewise.
26371         * conform/data/stdio.h-data: Likewise.
26372         * conform/data/stdlib.h-data: Likewise.
26373         * conform/data/string.h-data: Likewise.
26374         * conform/data/strings.h-data: Likewise.
26375         * conform/data/stropts.h-data: Likewise.
26376         * conform/data/sys/ipc.h-data: Likewise.
26377         * conform/data/sys/mman.h-data: Likewise.
26378         * conform/data/sys/msg.h-data: Likewise.
26379         * conform/data/sys/resource.h-data: Likewise.
26380         * conform/data/sys/select.h-data: Likewise.
26381         * conform/data/sys/sem.h-data: Likewise.
26382         * conform/data/sys/shm.h-data: Likewise.
26383         * conform/data/sys/socket.h-data: Likewise.
26384         * conform/data/sys/stat.h-data: Likewise.
26385         * conform/data/sys/statvfs.h-data: Likewise.
26386         * conform/data/sys/time.h-data: Likewise.
26387         * conform/data/sys/timeb.h-data: Likewise.
26388         * conform/data/sys/times.h-data: Likewise.
26389         * conform/data/sys/types.h-data: Likewise.
26390         * conform/data/sys/uio.h-data: Likewise.
26391         * conform/data/sys/un.h-data: Likewise.
26392         * conform/data/sys/utsname.h-data: Likewise.
26393         * conform/data/sys/wait.h-data: Likewise.
26394         * conform/data/syslog.h-data: Likewise.
26395         * conform/data/tar.h-data: Likewise.
26396         * conform/data/termios.h-data: Likewise.
26397         * conform/data/utime.h-data: Likewise.
26398         * conform/data/utmpx.h-data: Likewise.
26399         * conform/data/varargs.h-data: Likewise.
26400         * conform/data/wchar.h-data: Likewise.
26401         * conform/data/wctype.h-data: Likewise.
26402         * conform/data/wordexp.h-data: Likewise.
26403
26404         * include/stropts.h: New file.
26405         * include/uchar.h: New file.
26406         * include/aio.h: Changes to allow conformtest.pl to use the headers.
26407         * include/assert.h: Likewise.
26408         * include/ctype.h: Likewise.
26409         * include/dirent.h: Likewise.
26410         * include/dlfcn.h: Likewise.
26411         * include/fcntl.h: Likewise.
26412         * include/fnmatch.h: Likewise.
26413         * include/glob.h: Likewise.
26414         * include/grp.h: Likewise.
26415         * include/libio.h: Likewise.
26416         * include/locale.h: Likewise.
26417         * include/math.h: Likewise.
26418         * include/net/if.h: Likewise.
26419         * include/netdb.h: Likewise.
26420         * include/netinet/in.h: Likewise.
26421         * include/pthread.h: Likewise.
26422         * include/pwd.h: Likewise.
26423         * include/regex.h: Likewise.
26424         * include/sched.h: Likewise.
26425         * include/search.h: Likewise.
26426         * include/setjmp.h: Likewise.
26427         * include/signal.h: Likewise.
26428         * include/stdio.h: Likewise.
26429         * include/stdlib.h: Likewise.
26430         * include/string.h: Likewise.
26431         * include/sys/cdefs.h: Likewise.
26432         * include/sys/mman.h: Likewise.
26433         * include/sys/msg.h: Likewise.
26434         * include/sys/resource.h: Likewise.
26435         * include/sys/select.h: Likewise.
26436         * include/sys/socket.h: Likewise.
26437         * include/sys/stat.h: Likewise.
26438         * include/sys/statvfs.h: Likewise.
26439         * include/sys/time.h: Likewise.
26440         * include/sys/times.h: Likewise.
26441         * include/sys/uio.h: Likewise.
26442         * include/sys/utsname.h: Likewise.
26443         * include/sys/wait.h: Likewise.
26444         * include/termios.h: Likewise.
26445         * include/time.h: Likewise.
26446         * include/ulimit.h: Likewise.
26447         * include/unistd.h: Likewise.
26448         * include/utime.h: Likewise.
26449         * include/wchar.h: Likewise.
26450         * include/wctype.h: Likewise.
26451         * include/wordexp.h: Likewise.
26452
26453         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
26454
26455         * time/time.h: TIME_UTC must be a macro.
26456         Make timespec_get available for ISO C11 only as well.
26457
26458 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
26459
26460         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
26461         Reported by Peng Haitao <penght@cn.fujitsu.com>.
26462
26463 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
26464
26465         * configure.in: Use -o not -a in test for unsupported multi-arch.
26466
26467 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
26468
26469         * manual/texinfo.tex: Update to version 2012-01-19.16.
26470
26471 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
26472
26473         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
26474
26475 2012-02-24  Roland McGrath  <roland@hack.frob.com>
26476
26477         [BZ #13738]
26478         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
26479         * manual/fdl-1.3.texi: New file.
26480         * manual/fdl-1.1.texi: File removed.
26481
26482         [BZ #13738]
26483         * manual/libc.texinfo (FDL_VERSION): New @set.
26484         Use it for mention of FDL in cover text.
26485         (Documentation License): Use it in @include file name.
26486
26487 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
26488             Roland McGrath  <roland@hack.frob.com>
26489
26490         [BZ #5461]
26491         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
26492         not LONG_LONG_MAX and LONG_LONG_MIN.
26493         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
26494         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
26495         name.
26496         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
26497
26498 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
26499
26500         [BZ #2547]
26501         [BZ #11365]
26502         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
26503         manipulate bits before adding and subtracting TWO23[sx].
26504         * math/libm-test.inc (nearbyint_test): Add more tests.
26505
26506 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
26507
26508         [BZ #2548]
26509         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
26510         bits before adding and subtracting TWO23[sx].
26511         * math/libm-test.inc (rint_test): Add more tests.
26512         (rint_test_tonearest): Likewise.
26513         (rint_test_towardzero): Likewise.
26514         (rint_test_downward): Likewise.
26515         (rint_test_upward: Likewise.
26516
26517 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
26518
26519         [BZ #10110]
26520         * include/stdc-predef.h: New file.  Extracted from features.h.
26521         * include/features.h: Include stdc-predef.h.
26522         * Makefile (headers): Add stdc-predef.h.
26523         * CONFORMANCE (Compiler limitations): Update.
26524
26525 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
26526
26527         * manual/libc.texinfo (VERSION, UPDATED): Revert.
26528
26529 2012-02-21  David S. Miller  <davem@davemloft.net>
26530
26531         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
26532         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
26533
26534 2012-02-20  David S. Miller  <davem@davemloft.net>
26535
26536         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
26537         using a normal save/restore sequence, rather than allocating a
26538         dummy stack frame just to store a frame pointer and restore.
26539         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
26540
26541 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
26542
26543         * manual/install.texi: Fix stray word in line-wrapped comment.
26544
26545 2012-02-20  David S. Miller  <davem@davemloft.net>
26546
26547         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
26548         both binutils and gcc support GOTDATA.
26549
26550         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
26551         "rd %pc" in the PIC register setup sequences.
26552
26553         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
26554         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
26555         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
26556         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
26557         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
26558         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
26559         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
26560         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
26561         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
26562         (SYSCALL_ERROR_HANDLER): Likewise.
26563         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
26564         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
26565         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
26566         (SYSCALL_ERROR_HANDLER): Likewise.
26567
26568         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
26569         (HAVE_GCC_GOTDATA): New.
26570         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
26571         relocation support in both binutils and gcc.
26572         * sysdeps/sparc/elf/configure: Regenerate.
26573
26574         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
26575         * sysdeps/sparc/sparc32/elf/configure: Delete.
26576         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
26577         * sysdeps/sparc/sparc64/elf/configure: Delete.
26578         * sysdeps/sparc/elf/configure.in: New file.
26579         * sysdeps/sparc/elf/configure: Generate.
26580
26581         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
26582         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
26583         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
26584         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
26585         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
26586
26587 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
26588
26589         * manual/install.texi: Do not mention specific glibc version
26590         numbers.
26591         * manual/libc.texinfo (VERSION, UPDATED): Update.
26592         (@copying): Use @copyright{} and range of years.
26593
26594 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
26595
26596         [BZ #13695]
26597         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
26598         [crti.S not in sysdirs] (generated): Do not append.
26599         [crti.S not in sysdirs] (omit-deps): Likewise.
26600         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
26601         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
26602         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
26603         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
26604         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
26605         Likewise.
26606         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
26607         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
26608         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
26609         * csu/defs.awk: Remove file.
26610         * sysdeps/generic/initfini.c: Likewise.
26611         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
26612         variable.
26613         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
26614         Likewise.
26615
26616 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
26617
26618         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
26619         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
26620         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
26621         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
26622         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
26623         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
26624         <bits/epoll.h>.
26625         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
26626         (__EPOLL_PACKED): Define to empty if not defined by
26627         <bits/epoll.h>.
26628         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
26629         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26630         bits/epoll.h.
26631
26632 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
26633
26634         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
26635         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
26636         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
26637         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
26638         <bits/timerfd.h>.
26639         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
26640         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26641         bits/timerfd.h.
26642
26643 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
26644
26645         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
26646         in C locale.
26647         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
26648         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
26649         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
26650         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26651
26652 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
26653
26654         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
26655         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
26656
26657 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
26658
26659         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
26660         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
26661         defined.
26662         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
26663         Likewise.
26664         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
26665         entry for 2.16.
26666
26667 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
26668
26669         * math/w_acos.c: Use non-signaling floating-point comparisons.
26670         * math/w_acosf.c: Likewise.
26671         * math/w_acosh.c: Likewise.
26672         * math/w_acoshf.c: Likewise.
26673         * math/w_acoshl.c: Likewise.
26674         * math/w_acosl.c: Likewise.
26675         * math/w_asin.c: Likewise.
26676         * math/w_asinf.c: Likewise.
26677         * math/w_asinl.c: Likewise.
26678         * math/w_atanh.c: Likewise.
26679         * math/w_atanhf.c: Likewise.
26680         * math/w_atanhl.c: Likewise.
26681         * math/w_exp2.c: Likewise.
26682         * math/w_exp2f.c: Likewise.
26683         * math/w_exp2l.c: Likewise.
26684         * math/w_j0.c: Likewise.
26685         * math/w_j0f.c: Likewise.
26686         * math/w_j0l.c: Likewise.
26687         * math/w_j1.c: Likewise.
26688         * math/w_j1f.c: Likewise.
26689         * math/w_j1l.c: Likewise.
26690         * math/w_jn.c: Likewise.
26691         * math/w_jnf.c: Likewise.
26692         * math/w_log.c: Likewise.
26693         * math/w_log10.c: Likewise.
26694         * math/w_log10f.c: Likewise.
26695         * math/w_log10l.c: Likewise.
26696         * math/w_log2.c: Likewise.
26697         * math/w_log2f.c: Likewise.
26698         * math/w_log2l.c: Likewise.
26699         * math/w_logf.c: Likewise.
26700         * math/w_logl.c: Likewise.
26701         * math/w_sqrt.c: Likewise.
26702         * math/w_sqrtf.c: Likewise.
26703         * math/w_sqrtl.c: Likewise.
26704         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
26705         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
26706         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
26707         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
26708         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
26709
26710 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
26711
26712         [BZ #9739]
26713         * manual/string.texi (strnlen): Use correct parameter name in
26714         equivalent expression.
26715
26716 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
26717
26718         [BZ #11174]
26719         * manual/users.texi (seteuid): Consistently use neweuid for
26720         argument name.
26721
26722 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
26723
26724         [BZ #13704]
26725         * manual/nss.texi (Services in the NSS configuration): Correct
26726         list of services in example configuration file.
26727
26728 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
26729
26730         [BZ #11322]
26731         * manual/arith.texi: Remove statements about negative zero
26732         behaving identically to zero.
26733
26734 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
26735
26736         [BZ #5993]
26737         * manual/install.texi: Do not document upgrading from libc5.
26738
26739 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
26740
26741         [BZ #4596]
26742         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
26743
26744 2012-02-18  David S. Miller  <davem@davemloft.net>
26745
26746         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
26747         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
26748         %o7 across the call.
26749         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
26750         instead.
26751         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
26752         SETUP_PIC_REG_LEAF.
26753         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26754         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
26755         * sysdeps/sparc/crtn.S: Likewise.
26756
26757 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
26758
26759         * aout/Makefile: Remove.
26760
26761 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
26762
26763         [BZ #13058]
26764         * manual/examples/argp-ex1.c (main): Format definition in GNU
26765         style.
26766         * manual/examples/argp-ex2.c (main): Likewise.
26767         * manual/examples/argp-ex3.c (main): Likewise.
26768         * manual/examples/argp-ex4.c (main): Likewise.
26769         * manual/examples/longopt.c (main): Use new-style prototype
26770         definition.
26771         * manual/examples/strncat.c (main): Specify return type and use
26772         (void) for arguments.
26773         * manual/examples/subopt.c (main): Use char **argv argument.
26774
26775 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26776
26777         [BZ #5077]
26778         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
26779         rounding modes.
26780
26781 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
26782
26783         [BZ #6907]
26784         * manual/string.texi (strchr): Change when strchrnul is
26785         recommended.
26786
26787 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
26788
26789         [BZ #174]
26790         * manual/locale.texi (setlocale): Document LOCPATH.
26791
26792 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26793
26794         [BZ #10210]
26795         * manual/process.texi (execle): Move @dots{} before last argument.
26796
26797 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
26798
26799         [BZ #12047]
26800         * manual/charset.texi (Generic Charset Conversion): Fix typo
26801         (LC_TYPE -> LC_CTYPE).
26802
26803 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
26804
26805         [BZ #5805]
26806         * manual/arith.texi (scalbn): Use @var{} on parameter names.
26807         (scalbnf): Likewise.
26808         (scalbnl): Likewise.
26809         (scalbln): Likewise.
26810         (scalblnf): Likewise.
26811         (scalblnl): Likewise.
26812         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
26813         (vwarnx): Likewise.
26814         (verr): Likewise.
26815         (verrx): Likewise.
26816         * manual/filesys.texi (telldir): Use braces around return type.
26817         * manual/llio.texi (mmap): Add space after comma.
26818         (mmap64): Likewise.
26819         * manual/math.texi (jn): Use @var{} on parameter names.
26820         (jnf): Likewise.
26821         (jnl): Likewise.
26822         (yn): Likewise.
26823         (ynf): Likewise.
26824         (ynl): Likewise.
26825         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
26826         line.
26827         * manual/resource.texi (ulimit): Use @dots{} instead of literal
26828         "...".
26829         (sched_get_priority_min): Remove semicolon on @deftypefun line.
26830         (sched_get_priority_max): Likewise.
26831         * manual/signal.texi (sigvec): Add space after comma.
26832         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
26833         names.
26834         (if_indextoname): Likewise.
26835         (if_freenameindex): Likewise.
26836         (sendto): Use ',' instead of '.' in prototype.
26837         * manual/startup.texi (syscall): Use @dots{} instead of literal
26838         "...".
26839         * manual/stdio.texi (__fpending): Separate initial words of
26840         paragraph from @deftypefun line.
26841         * manual/syslog.texi (syslog): Use @dots{} instead of literal
26842         "...".
26843         (vsyslog): Use @var{} on parameter names.
26844         * manual/terminal.texi (stty): Use @var{} on parameter names.
26845         * manual/users.texi (getutmp): Use @var{} on parameter names.
26846         (getutmpx): Likewise.
26847
26848 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26849
26850         [BZ #6884]
26851         * manual/stdio.texi (fopen): Fix typos in description of
26852         ",ccs=STRING".
26853
26854 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
26855
26856         [BZ #4026]
26857         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
26858         get clock_id definition.
26859
26860 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
26861
26862         [BZ #4822]
26863         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
26864         (madvise): Cast every argument to void on its own.
26865
26866 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26867
26868         [BZ #9902]
26869         * manual/startup.texi (Exit Status): Fix typo.
26870
26871 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
26872
26873         [BZ #10140]
26874         * manual/examples/argp-ex1.c: Include <stdlib.h>.
26875         * manual/examples/argp-ex2.c: Likewise.
26876         * manual/examples/argp-ex3.c: Likewise.
26877
26878 2012-02-16  Richard Henderson  <rth@redhat.com>
26879
26880         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
26881         * sysdeps/s390/s390-32/initfini.c: Remove.
26882         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
26883         * sysdeps/s390/s390-64/initfini.c: Remove.
26884
26885 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
26886
26887         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
26888         compiler output for sysdeps/generic/initfini.c.
26889         * sysdeps/sh/elf/initfini.c: Remove file.
26890
26891 2012-02-16  David S. Miller  <davem@davemloft.net>
26892
26893         [BZ #11494]
26894         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
26895
26896         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
26897         * sysdeps/sparc/crti.S: New file.
26898         * sysdeps/sparc/crtn.S: New file.
26899         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
26900         * sysdeps/sparc/sparc64/Makefile: Likewise.
26901
26902 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
26903
26904         [BZ #3335]
26905         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
26906
26907 2012-02-15  Roland McGrath  <roland@hack.frob.com>
26908
26909         [BZ #4822]
26910         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
26911
26912         * mach/devstream.c (cookie_io_functions_t): Macro removed.
26913         (write, read, close): Likewise.
26914         Patch by Aurelien Jarno <aurelien@aurel32.net>.
26915
26916 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
26917
26918         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
26919         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
26920         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
26921         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
26922         <bits/signalfd.h>.
26923         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
26924         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26925         bits/signalfd.h.
26926
26927 2012-02-14  Marek Polacek  <polacek@redhat.com>
26928
26929         * sysdeps/x86_64/crti.S: New file.
26930         * sysdeps/x86_64/crtn.S: New file.
26931         * sysdeps/x86_64/elf/initfini.c: Remove file.
26932
26933 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
26934
26935         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
26936         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
26937         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
26938         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
26939         <bits/inotify.h>.
26940         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
26941         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26942         bits/inotify.h.
26943
26944 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
26945
26946         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
26947         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
26948         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
26949         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
26950         <bits/eventfd.h>.
26951         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
26952         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26953         bits/eventfd.h.
26954
26955 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
26956
26957         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
26958         __feraiseexcept instead of feraiseexcept.
26959
26960         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
26961         nanosleep invocations.
26962         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
26963         strings, and add error checking for a nanosleep invocations.
26964
26965 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
26966
26967         Replace FSF snail mail address with URLs, as per GNU coding standards.
26968         Most of the snail mail addresses were wrong anyway, and omitting
26969         them makes the source code easier to maintain.  Almost all of the
26970         changes are to license notices and to locale LC_IDENTIFICATION
26971         addresses, except for this one:
26972         * manual/libc.texinfo: In "Published by", give the FSF's URL,
26973         not its snail mail address.
26974
26975 2012-02-09  Richard Henderson  <rth@twiddle.net>
26976
26977         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
26978         of kernel-features.h.
26979
26980         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
26981
26982 2012-02-08  Marek Polacek  <polacek@redhat.com>
26983
26984         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
26985         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
26986         * sysdeps/gnu/_G_config.h: Likewise.
26987         * sysdeps/generic/_G_config.h: Likewise.
26988
26989 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
26990
26991         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
26992         tests.
26993         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26994
26995         * sysdeps/powerpc/powerpc32/crti.S: New file.
26996         * sysdeps/powerpc/powerpc32/crtn.S: New file.
26997         * sysdeps/powerpc/powerpc64/crti.S: New file.
26998         * sysdeps/powerpc/powerpc64/crtn.S: New file.
26999
27000         * Makeconfig (have-initfini): Don't set.
27001         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
27002         * configure.in (nopic_initfini): Don't substitute.
27003         * config.h.in (HAVE_INITFINI): Don't #undef.
27004         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
27005         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
27006
27007 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
27008
27009         Support crti.S and crtn.S provided directly by architectures.
27010         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
27011         [crti.S in sysdirs] (omit-deps): Likewise.
27012         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
27013         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
27014         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
27015         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
27016         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
27017         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
27018         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
27019         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
27020         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
27021         compiler output for sysdeps/generic/initfini.c.
27022         * sysdeps/i386/elf/Makefile: Remove file.
27023         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
27024
27025 2012-02-07  Marek Polacek  <polacek@redhat.com>
27026
27027         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
27028         * sysdeps/gnu/_G_config.h: Likewise.
27029         * sysdeps/mach/hurd/_G_config.h: Likewise.
27030
27031 2012-02-07  Marek Polacek  <polacek@redhat.com>
27032
27033         * math/Makefile (tests): Add tst-CMPLX2.
27034         * math/tst-CMPLX2.c: New file.
27035
27036 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
27037
27038         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
27039
27040         * math/libm-test.inc (jn_test): Add missing L suffix.
27041
27042 2012-02-06  Marek Polacek  <polacek@redhat.com>
27043
27044         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
27045         * sysdeps/i386/fpu/e_powf.S: Likewise.
27046         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
27047         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
27048         * sysdeps/i386/fpu/e_acosh.S: Likewise.
27049         * sysdeps/i386/fpu/e_pow.S: Likewise.
27050         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
27051         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
27052         * sysdeps/i386/fpu/s_expm1.S: Likewise.
27053         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
27054         * sysdeps/i386/fpu/e_log2.S: Likewise.
27055         * sysdeps/i386/fpu/e_log2l.S: Likewise.
27056         * sysdeps/i386/fpu/e_scalb.S: Likewise.
27057         * sysdeps/i386/fpu/e_powl.S: Likewise.
27058         * sysdeps/i386/fpu/s_log1p.S: Likewise.
27059         * sysdeps/i386/fpu/e_log10f.S: Likewise.
27060         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
27061         * sysdeps/i386/fpu/e_logl.S: Likewise.
27062         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
27063         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
27064         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
27065         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
27066         * sysdeps/i386/fpu/e_log2f.S: Likewise.
27067         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
27068         * sysdeps/i386/fpu/e_log.S: Likewise.
27069         * sysdeps/i386/fpu/s_cexp.S: Likewise.
27070         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
27071         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
27072         * sysdeps/i386/fpu/e_logf.S: Likewise.
27073         * sysdeps/i386/fpu/e_log10l.S: Likewise.
27074         * sysdeps/i386/fpu/e_atanh.S: Likewise.
27075         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
27076         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
27077         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
27078         * sysdeps/i386/fpu/e_log10.S: Likewise.
27079         * sysdeps/i386/fpu/s_frexp.S: Likewise.
27080         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
27081         * sysdeps/i386/fpu/s_asinh.S: Likewise.
27082         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
27083         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
27084         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
27085         * sysdeps/i386/asm-syntax.h: Likewise.
27086         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
27087         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
27088         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
27089         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
27090         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
27091         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
27092         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
27093         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
27094         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
27095         * sysdeps/powerpc/sysdep.h: Likewise.
27096         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
27097         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
27098
27099 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
27100
27101         [BZ #411]
27102         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
27103
27104 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
27105
27106         * sysdeps/i386/sysdep.h: Include <features.h>.
27107         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
27108         version.
27109
27110 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
27111
27112         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
27113         Define.
27114         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
27115         LOAD_PIC_REG_STR.
27116
27117 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
27118
27119         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
27120         (SETUP_PIC_REG): Use GET_PC_THUNK.
27121         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
27122         macro.
27123
27124 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
27125
27126         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
27127         for non-PIC compilation.
27128         (SETUP_PIC_REG): Add .p2align directive.
27129         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
27130         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
27131         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27132         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27133         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
27134         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27135         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
27136         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
27137         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27138         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27139         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27140         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27141         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27142         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27143         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27144         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
27145         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
27146         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27147         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27148         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27149         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
27150         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
27151         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27152         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27153         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
27154         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
27155         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27156         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
27157         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27158         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27159         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27160         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27161         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27162         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27163         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27164         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27165         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27166         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27167         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27168         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27169         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27170
27171 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
27172
27173         * math/tst-CMPLX.c: Include <stdio.h>.
27174
27175 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
27176
27177         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
27178         float.
27179         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
27180         * sysdeps/sparc/bits/mathdef.h: Likewise.
27181
27182 2012-01-31  Marek Polacek  <polacek@redhat.com>
27183
27184         * libio/libio.h: Don't define _PARAMS.
27185         * locale/programs/config.h: Don't define PARAMS.
27186         * stdlib/strtol_l.c: Likewise.
27187         (__strtol_l): Remove PARAMS from the prototype.
27188
27189 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
27190
27191         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
27192         names.  Just use the correct names.  Remove unnecessary wrapper
27193         functions.
27194         * malloc/arena.c: Likewise.
27195         * malloc/hooks.c: Likewise.
27196
27197         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
27198         ARENA_TEST says not to.  Simplify test for creation of a new arena.
27199         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
27200
27201 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
27202
27203         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
27204         into tail calls.
27205         (update_get_addr): New function.
27206         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
27207         GET_ADDR_MODULE parameter.
27208
27209 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
27210
27211         * crypt/cert.c: Remove __STDC__ conditionals.
27212         * crypt/crypt-entry.c: Likewise.
27213         * crypt/crypt_util.c: Likewise.
27214         * libio/filedoalloc.c: Likewise.
27215         * libio/fileops.c: Likewise.
27216         * libio/genops.c: Likewise.
27217         * libio/iofclose.c: Likewise.
27218         * libio/iofdopen.c: Likewise.
27219         * libio/iofopen.c: Likewise.
27220         * libio/iofopen64.c: Likewise.
27221         * libio/iogetdelim.c: Likewise.
27222         * libio/iopopen.c: Likewise.
27223         * libio/obprintf.c: Likewise.
27224         * libio/oldfileops.c: Likewise.
27225         * libio/oldiofclose.c: Likewise.
27226         * libio/oldiofdopen.c: Likewise.
27227         * libio/oldiofopen.c: Likewise.
27228         * libio/oldiopopen.c: Likewise.
27229         * libio/wfiledoalloc.c: Likewise.
27230         * libio/wgenops.c: Likewise.
27231         * locale/programs/xmalloc.c: Likewise.
27232         * misc/syslog.c: Likewise.
27233         * stdio-common/xbug.c: Likewise.
27234         * string/memchr.c: Likewise.
27235         * string/memcmp.c: Likewise.
27236         * string/memrchr.c: Likewise.
27237         * string/rawmemchr.c: Likewise.
27238         * sysdeps/posix/getcwd.c: Likewise.
27239         * time/strftime_l.c: Likewise.
27240
27241 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
27242
27243         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
27244         * config.make.in (config-cflags-sse2avx): Define.
27245         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
27246         Fix typo.
27247
27248 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
27249
27250         * scripts/config.guess: Update from upstream config git repository.
27251         * scripts/config.sub: Likewise.
27252
27253 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
27254
27255         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
27256         (EM_NUM): Update.
27257         (R_TILEPRO_*, R_TILEGX_*): New macros.
27258
27259         * scripts/firstversions.awk: Fix bug in version range handling.
27260
27261         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
27262
27263         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
27264
27265         * include/sys/epoll.h: New file.
27266         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
27267         libc_hidden_def.
27268
27269 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
27270
27271         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
27272         Avoid unnecessary __WORDSIZE == 64 test.
27273         (fmaxf): Use VEX format if possible.
27274         (fmax): Likewise.
27275         (fminf): Likewise.
27276         (fmin): Likewise.
27277
27278         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
27279         * math/math_private.h: Remove libc_fegetround* and
27280         libc_fesetround*.
27281         * sysdeps/i386/configure.in: Check for -msse2avx.
27282         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
27283         also if SSE2AVX is defined.
27284         Remove libc_fegetround* and libc_fesetround*.
27285         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
27286         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
27287         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
27288         of HAS_YMM_USABLE.
27289         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
27290         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
27291         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
27292         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
27293         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
27294
27295         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
27296
27297 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27298
27299         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
27300         size is not set.
27301         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
27302
27303 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
27304
27305         [BZ #13618]
27306         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
27307         relocation.
27308         * Makeconfig (libm): Define.
27309         * elf/Makefile: Add rules to build and run tst-relsort1.
27310         * elf/tst-relsort1.c: New file.
27311         * elf/tst-relsort1mod1.c: New file.
27312         * elf/tst-relsort1mod2.c: New file.
27313
27314 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
27315
27316         * math/s_ldexp.c: Remove __STDC__ conditionals.
27317         * math/s_ldexpf.c: Likewise.
27318         * math/s_ldexpl.c: Likewise.
27319         * math/s_nextafter.c: Likewise.
27320         * math/s_nexttowardf.c: Likewise.
27321         * math/s_significand.c: Likewise.
27322         * math/s_significandf.c: Likewise.
27323         * math/s_significandl.c: Likewise.
27324         * math/w_jnl.c: Likewise.
27325         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
27326         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
27327         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
27328         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
27329         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
27330         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
27331         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
27332         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
27333         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
27334         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
27335         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
27336         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
27337         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
27338         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
27339         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
27340         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
27341         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
27342         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
27343         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
27344         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
27345         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
27346         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
27347         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
27348         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
27349         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
27350         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
27351         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
27352         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
27353         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
27354         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
27355         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
27356         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
27357         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
27358         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
27359         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
27360         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
27361         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
27362         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
27363         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
27364         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
27365         * sysdeps/ieee754/k_standard.c: Likewise.
27366         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
27367         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
27368         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
27369         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
27370         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
27371         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
27372         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
27373         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
27374         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
27375         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
27376         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
27377         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
27378         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
27379         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
27380         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
27381         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
27382         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
27383         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
27384         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
27385         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
27386         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
27387         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
27388         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
27389         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
27390         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
27391         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
27392         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
27393         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
27394         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
27395         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
27396         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
27397         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
27398         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
27399         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
27400         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
27401         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
27402         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
27403         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
27404         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
27405         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
27406         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
27407         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
27408         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
27409         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
27410         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
27411         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
27412         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
27413         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
27414         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
27415         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
27416         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
27417         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
27418         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
27419         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
27420         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
27421         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
27422         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
27423         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
27424         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
27425         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
27426         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
27427         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
27428         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
27429         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
27430         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
27431         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
27432         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
27433         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
27434         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
27435         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
27436         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
27437         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
27438         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
27439         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
27440         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
27441         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
27442         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
27443         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
27444         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
27445         * sysdeps/ieee754/s_matherr.c: Likewise.
27446         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
27447         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
27448         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
27449         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
27450
27451 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
27452
27453         * crypt/md5.h: Remove __STDC__ conditionals.
27454         * libio/libioP.h: Likewise.
27455         * locale/programs/config.h: Likewise.
27456         * sysdeps/generic/sysdep.h: Likewise.
27457         * sysdeps/i386/asm-syntax.h: Likewise.
27458         * sysdeps/s390/asm-syntax.h: Likewise.
27459         * sysdeps/unix/sysdep.h: Likewise.
27460         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
27461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
27462
27463 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
27464
27465         * libio/libio.h: Remove __STDC__ conditionals.
27466         * malloc/obstack.h: Likewise.
27467         * math/complex.h: Likewise.
27468         * math/math.h: Likewise.
27469         * sysdeps/generic/_G_config.h: Likewise.
27470         * sysdeps/gnu/_G_config.h: Likewise.
27471         * sysdeps/mach/hurd/_G_config.h: Likewise.
27472         * sysdeps/powerpc/bits/mathdef.h: Likewise.
27473         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
27474         * sysdeps/sparc/bits/mathdef.h: Likewise.
27475
27476 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
27477
27478         [BZ #13583]
27479         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
27480         Clean up HAS_* macros.
27481         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
27482         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
27483         possible.
27484         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
27485         HAS_AVX.
27486         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
27487         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
27488         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
27489         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
27490         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
27491
27492 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
27493
27494         * elf/tst-unique3.cc (gets): Remove declaration.
27495         * elf/tst-unique3lib.cc (gets): Likewise.
27496         * elf/tst-unique3lib2.cc (gets): Likewise.
27497         * elf/tst-unique4.cc (gets): Likewise.
27498
27499 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
27500
27501         * include/stdio.h: Add C++ protection.  Add gets declarations and
27502         definitions.
27503         * debug/tst-chk1.c: Don't declare gets here.
27504         * stdio-common/tst-gets.c: Likewise.
27505
27506 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
27507
27508         * posix/glob: Remove directory.
27509
27510 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
27511
27512         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
27513
27514 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
27515
27516         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
27517         of the non-standard EPFNOSUPPORT.
27518
27519 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27520
27521         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
27522         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
27523         ANYWHERE set to 1 only on KERN_NO_SPACE error.
27524
27525 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
27526
27527         * wcsmbs/uchar.h: Test __STDC_VERSION__.
27528
27529 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
27530
27531         * nscd/aicache.c (addhstaiX): Do not cache negative results of
27532         transient errors.
27533         * nscd/grpcache.c (cache_addgr): Likewise.
27534         * nscd/hstcache.c (cache_addhst): Likewise.
27535         * nscd/initgrcache.c (addinitgroupsX): Likewise.
27536         * nscd/pwdcache.c (cache_addpw): Likewise.
27537         * nscd/servicescache.c (cache_addserv): Likewise.
27538
27539 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
27540
27541         * malloc/malloc.c: Various cleanups.
27542         * malloc/hooks.c: Likewise.
27543
27544         * stdlib/Makefile (tests): Add bug-fmtmsg1.
27545         * stdlib/bug-fmtmsg1.c: New file.
27546
27547         * stdlib/fmtmsg.c (init): Add missing unlock.
27548         Patch by Peng Haitao <penght@cn.fujitsu.com>.
27549
27550 2012-01-12  Marek Polacek  <polacek@redhat.com>
27551
27552         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
27553         and _GNU_SOURCE.
27554
27555 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
27556
27557         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
27558         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
27559         macro to ensure uniqueness of label name.
27560         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
27561         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
27562
27563 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
27564
27565         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
27566
27567         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
27568         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
27569         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
27570         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
27571
27572 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
27573
27574         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
27575
27576         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
27577         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
27578         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
27579
27580         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
27581
27582         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
27583         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
27584         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
27585         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
27586
27587         * math/bits/math-finite.h: Add ldexp support.
27588
27589 2012-01-10  Marek Polacek  <polacek@redhat.com>
27590
27591         * locale/programs/localedef.h (show_archive_content): Add noreturn
27592         attribute.
27593
27594 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
27595
27596         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
27597
27598 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
27599
27600         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
27601
27602         * io/Makefile (headers): Add bits/poll2.h.
27603
27604 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
27605
27606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
27607         typo #include statement.
27608
27609 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
27610
27611         * include/sys/cdefs.h: Define __attribute_alloc_size.
27612         * catgets/gencat.c: Add alloc_size attribute and apply consistently
27613         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
27614         * elf/pldd.c: Likewise.
27615         * iconv/iconv_charmap.c: Likewise.
27616         * iconv/iconvconfig.c: Likewise.
27617         * iconv/strtab.c: Likewise.
27618         * locale/programs/locale.c: Likewise.
27619         * locale/programs/localedef.h: Likewise.
27620         * locale/programs/simple-hash.c: Likewise.
27621         * nscd/nscd.h: Likewise.
27622         * nss/makedb.c: Likewise.
27623         * sysdeps/generic/ldconfig.h: Likewise.
27624         * locale/programs/localedef.c: Remove xmalloc prototype.
27625         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
27626
27627 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
27628
27629         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
27630         appropriate.
27631
27632 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
27633
27634         * math/Makefile (tests): Add tst-CMPLX.
27635         * math/tst-CMPLX.c: New file.
27636
27637         * math/complex.h (CMPLXL): Fix typo.
27638
27639         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
27640         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
27641         GLIBC_2.16.
27642         * debug/tst-chk1.c: Add poll and ppoll tests.
27643         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
27644         * include/sys/poll.h: Add hidden proto for ppoll.
27645         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
27646         * sysdeps/mach/hurd/ppoll.c: Likewise.
27647         * io/ppoll.c: Likewise.
27648         * debug/poll_chk.c: New file.
27649         * debug/ppoll_chk.c: New file.
27650         * include/bits/poll2.h: New file.
27651         * io/bits/poll2.h: New file.
27652
27653         [BZ #1350]
27654         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
27655
27656         * configure.in: static is always set to yes.  Remove.
27657         * config.make.in: Don't set build-static.
27658         * Makeconfig: Remove use of build-static.
27659         * dlfcn/Makefile: Likewise.
27660         * elf/Makefile: Likewise.
27661         * math/Makefile: Likewise.
27662         * misc/Makefile: Likewise.
27663         * nptl/Makefile: Likewise.
27664         * sysdeps/mach/hurd/Makefile: Likewise.
27665
27666         * configure.in: PWD_P is not used anymore.
27667         * config.make.in: Remove PWD_P entry.
27668
27669         * configure.in: Remove last remnants of RANLIB.
27670         No need to check for signed size_t anymore.
27671         Don't set libc_commonpagesize and libc_relro_required here for Alpha
27672         and IA-64.
27673         Remove __builtin_expect test because we require at least gcc 3.4.
27674         * aclocal.m4: Likewise.
27675
27676         * wcsmbs/mbrtoc16.c: Implement using towc function.
27677         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
27678         * wcsmbs/wcsmbsload.c: Likewise.
27679         * iconv/gconv_simple.c: Likewise.
27680         * iconv/gconv_int.h: Likewise.
27681         * iconv/gconv_builtin.h: Likewise.
27682         * iconv/iconv_prog.c: Remove CHAR16 handling.
27683
27684         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
27685
27686         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
27687
27688         * configure.in: Remove --with-elf and --enable-bounded options.
27689         Dont set base_machine for ia64.  More non-ELF conditions removed.
27690         Remove testing and setting of leading underscore information.
27691         * config.make.in (build-bounded): Set to no.
27692         * config.h.in: Remove NO_UNDERSCORES entry.
27693         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
27694         them.
27695         * csu/start.c: Remove !NO_UNDERSCORE code.
27696         * locale/localeinfo.h: Likewise.
27697         * sysdeps/generic/machine-gmon.h: Likewise.
27698         * sysdeps/generic/sysdep.h: Likewise.
27699         * sysdeps/i386/sysdep.h: Likewise.
27700         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
27701         * sysdeps/mach/sysdep.h: Likewise.
27702         * sysdeps/s390/s390-32/sysdep.h: Likewise.
27703         * sysdeps/s390/s390-64/sysdep.h: Likewise.
27704         * sysdeps/sh/sysdep.h: Likewise.
27705         * sysdeps/sparc/sparc32/alloca.S: Likewise.
27706         * sysdeps/unix/i386/sysdep.S: Likewise.
27707         * sysdeps/unix/sparc/start.c: Likewise.
27708         * sysdeps/unix/sparc/sysdep.S: Likewise.
27709         * sysdeps/unix/sparc/sysdep.h: Likewise.
27710         * sysdeps/unix/start.c: Likewise.
27711         * sysdeps/unix/x86_64/sysdep.S: Likewise.
27712         * sysdeps/x86_64/sysdep.h: Likewise.
27713
27714 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
27715
27716         [BZ #13553]
27717         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
27718         for non-gcc.
27719         * argp/argp-fmtstream.h: Use const instead __const.
27720         * argp/argp.h: Likewise.
27721         * assert/assert.h: Likewise.
27722         * bits/fenv.h: Likewise.
27723         * bits/sched.h: Likewise.
27724         * bits/sigset.h: Likewise.
27725         * bits/sigthread.h: Likewise.
27726         * catgets/nl_types.h: Likewise.
27727         * conform/data/pthread.h-data: Likewise.
27728         * crypt/crypt-private.h: Likewise.
27729         * crypt/crypt.h: Likewise.
27730         * crypt/crypt_util.c: Likewise.
27731         * ctype/ctype.h: Likewise.
27732         * debug/execinfo.h: Likewise.
27733         * debug/mbsnrtowcs_chk.c: Likewise.
27734         * debug/mbsrtowcs_chk.c: Likewise.
27735         * debug/wcsnrtombs_chk.c: Likewise.
27736         * debug/wcsrtombs_chk.c: Likewise.
27737         * debug/wcstombs_chk.c: Likewise.
27738         * dirent/dirent.h: Likewise.
27739         * dlfcn/dlfcn.h: Likewise.
27740         * elf/neededtest4.c: Likewise.
27741         * grp/grp.h: Likewise.
27742         * gshadow/gshadow.h: Likewise.
27743         * iconv/gconv.h: Likewise.
27744         * iconv/gconv_int.h: Likewise.
27745         * iconv/gconv_simple.c: Likewise.
27746         * iconv/iconv.h: Likewise.
27747         * iconv/loop.c: Likewise.
27748         * iconv/skeleton.c: Likewise.
27749         * include/aio.h: Likewise.
27750         * include/aliases.h: Likewise.
27751         * include/argz.h: Likewise.
27752         * include/arpa/inet.h: Likewise.
27753         * include/assert.h: Likewise.
27754         * include/dirent.h: Likewise.
27755         * include/dlfcn.h: Likewise.
27756         * include/execinfo.h: Likewise.
27757         * include/fcntl.h: Likewise.
27758         * include/fenv.h: Likewise.
27759         * include/glob.h: Likewise.
27760         * include/grp.h: Likewise.
27761         * include/libintl.h: Likewise.
27762         * include/mntent.h: Likewise.
27763         * include/netdb.h: Likewise.
27764         * include/pwd.h: Likewise.
27765         * include/rpc/netdb.h: Likewise.
27766         * include/sched.h: Likewise.
27767         * include/search.h: Likewise.
27768         * include/shadow.h: Likewise.
27769         * include/signal.h: Likewise.
27770         * include/stdio.h: Likewise.
27771         * include/stdlib.h: Likewise.
27772         * include/string.h: Likewise.
27773         * include/sys/socket.h: Likewise.
27774         * include/sys/stat.h: Likewise.
27775         * include/sys/statfs.h: Likewise.
27776         * include/sys/statvfs.h: Likewise.
27777         * include/sys/syslog.h: Likewise.
27778         * include/sys/time.h: Likewise.
27779         * include/sys/uio.h: Likewise.
27780         * include/time.h: Likewise.
27781         * include/unistd.h: Likewise.
27782         * include/utmp.h: Likewise.
27783         * include/wchar.h: Likewise.
27784         * include/wctype.h: Likewise.
27785         * inet/aliases.h: Likewise.
27786         * inet/arpa/inet.h: Likewise.
27787         * inet/netinet/ether.h: Likewise.
27788         * inet/netinet/in.h: Likewise.
27789         * intl/libintl.h: Likewise.
27790         * io/bits/fcntl2.h: Likewise.
27791         * io/fcntl.h: Likewise.
27792         * io/ftw.h: Likewise.
27793         * io/sys/poll.h: Likewise.
27794         * io/sys/stat.h: Likewise.
27795         * io/sys/statfs.h: Likewise.
27796         * io/sys/statvfs.h: Likewise.
27797         * io/utime.h: Likewise.
27798         * libio/bits/stdio.h: Likewise.
27799         * libio/bits/stdio2.h: Likewise.
27800         * libio/libio.h: Likewise.
27801         * libio/libioP.h: Likewise.
27802         * libio/stdio.h: Likewise.
27803         * locale/lc-ctype.c: Likewise.
27804         * locale/locale.h: Likewise.
27805         * login/utmp.h: Likewise.
27806         * malloc/arena.c: Likewise.
27807         * malloc/malloc.c: Likewise.
27808         * malloc/malloc.h: Likewise.
27809         * malloc/mcheck.c: Likewise.
27810         * malloc/mtrace.c: Likewise.
27811         * math/bits/mathcalls.h: Likewise.
27812         * math/fenv.h: Likewise.
27813         * math/math_private.h: Likewise.
27814         * misc/bits/error.h: Likewise.
27815         * misc/bits/syslog.h: Likewise.
27816         * misc/err.h: Likewise.
27817         * misc/error.h: Likewise.
27818         * misc/fstab.h: Likewise.
27819         * misc/mntent.h: Likewise.
27820         * misc/regexp.h: Likewise.
27821         * misc/search.h: Likewise.
27822         * misc/sgtty.h: Likewise.
27823         * misc/sys/mman.h: Likewise.
27824         * misc/sys/syslog.h: Likewise.
27825         * misc/sys/uio.h: Likewise.
27826         * misc/sys/xattr.h: Likewise.
27827         * misc/ttyent.h: Likewise.
27828         * nis/rpcsvc/ypclnt.h: Likewise.
27829         * nss/nss.h: Likewise.
27830         * posix/bits/unistd.h: Likewise.
27831         * posix/fnmatch.h: Likewise.
27832         * posix/glob.h: Likewise.
27833         * posix/sched.h: Likewise.
27834         * posix/spawn.h: Likewise.
27835         * posix/sys/wait.h: Likewise.
27836         * posix/unistd.h: Likewise.
27837         * posix/wordexp.h: Likewise.
27838         * pwd/pwd.h: Likewise.
27839         * resolv/netdb.h: Likewise.
27840         * resource/sys/resource.h: Likewise.
27841         * rt/aio.h: Likewise.
27842         * rt/bits/mqueue2.h: Likewise.
27843         * rt/mqueue.h: Likewise.
27844         * shadow/shadow.h: Likewise.
27845         * signal/signal.h: Likewise.
27846         * socket/send.c: Likewise.
27847         * socket/sendto.c: Likewise.
27848         * socket/sys/socket.h: Likewise.
27849         * stdio-common/printf.h: Likewise.
27850         * stdlib/bits/stdlib.h: Likewise.
27851         * stdlib/fmtmsg.h: Likewise.
27852         * stdlib/monetary.h: Likewise.
27853         * stdlib/stdlib.h: Likewise.
27854         * stdlib/ucontext.h: Likewise.
27855         * streams/stropts.h: Likewise.
27856         * string/argz.h: Likewise.
27857         * string/bits/string2.h: Likewise.
27858         * string/string.h: Likewise.
27859         * string/strings.h: Likewise.
27860         * sunrpc/rpc/auth.h: Likewise.
27861         * sunrpc/rpc/auth_des.h: Likewise.
27862         * sunrpc/rpc/clnt.h: Likewise.
27863         * sunrpc/rpc/netdb.h: Likewise.
27864         * sunrpc/rpc/pmap_clnt.h: Likewise.
27865         * sunrpc/rpc/xdr.h: Likewise.
27866         * sysdeps/generic/inttypes.h: Likewise.
27867         * sysdeps/generic/net/if.h: Likewise.
27868         * sysdeps/generic/sys/swap.h: Likewise.
27869         * sysdeps/gnu/net/if.h: Likewise.
27870         * sysdeps/gnu/utmpx.h: Likewise.
27871         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
27872         * sysdeps/i386/i486/bits/string.h: Likewise.
27873         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
27874         * sysdeps/s390/bits/string.h: Likewise.
27875         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
27876         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
27877         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
27878         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
27879         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
27880         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
27881         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
27882         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
27883         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
27884         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
27885         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
27886         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
27887         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
27888         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
27889         * sysdeps/unix/sysv/linux/readv.c: Likewise.
27890         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
27891         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
27892         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
27893         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
27894         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
27895         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
27896         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
27897         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
27898         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
27899         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
27900         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
27901         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
27902         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
27903         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
27904         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
27905         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
27906         * sysvipc/sys/ipc.h: Likewise.
27907         * sysvipc/sys/msg.h: Likewise.
27908         * sysvipc/sys/sem.h: Likewise.
27909         * sysvipc/sys/shm.h: Likewise.
27910         * termios/termios.h: Likewise.
27911         * time/sys/time.h: Likewise.
27912         * time/time.h: Likewise.
27913         * wcsmbs/bits/wchar2.h: Likewise.
27914         * wcsmbs/uchar.h: Likewise.
27915         * wcsmbs/wchar.h: Likewise.
27916         * wctype/wctype.h: Likewise.
27917
27918         [BZ #13551]
27919         * Makeconfig: Remove all but ELF support including AIX support.
27920         * Makerules: Likewise.
27921         * config.h.in: Likewise.
27922         * config.make.in: Likewise.
27923         * configure: Likewise.
27924         * configure.in: Likewise.
27925         * csu/Makefile: Likewise.
27926         * csu/version.c: Likewise.
27927         * debug/Makefile: Likewise.
27928         * dlfcn/Makefile: Likewise.
27929         * elf/Makefile: Likewise.
27930         * extra-lib.mk: Likewise.
27931         * iconv/Makefile: Likewise.
27932         * include/libc-symbols.h: Likewise.
27933         * include/shlib-compat.h: Likewise.
27934         * resolv/Makefile: Likewise.
27935         * resolv/res_libc.c: Likewise.
27936         * rt/Makefile: Likewise.
27937         * sysdeps/i386/asm-syntax.h: Likewise.
27938         * sysdeps/i386/sysdep.h: Likewise.
27939         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
27940         * sysdeps/mach/sysdep.h: Likewise.
27941         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
27942         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
27943         * sysdeps/s390/asm-syntax.h: Likewise.
27944         * sysdeps/s390/s390-32/sysdep.h: Likewise.
27945         * sysdeps/s390/s390-64/sysdep.h: Likewise.
27946         * sysdeps/sh/sysdep.h: Likewise.
27947         * sysdeps/unix/sparc/sysdep.h: Likewise.
27948         * sysdeps/wordsize-32/divdi3.c: Likewise.
27949         * sysdeps/x86_64/sysdep.h: Likewise.
27950
27951         * argp/Versions: Remove _argp_unlock_xxx.
27952
27953         [BZ #13559]
27954         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
27955         * abilist/libBrokenLocale.abilist: Likewise.
27956         * abilist/libanl.abilist: Likewise.
27957         * abilist/libc.abilist: Likewise.
27958         * abilist/libcrypt.abilist: Likewise.
27959         * abilist/libdl.abilist: Likewise.
27960         * abilist/libm.abilist: Likewise.
27961         * abilist/libnsl.abilist: Likewise.
27962         * abilist/libpthread.abilist: Likewise.
27963         * abilist/libresolv.abilist: Likewise.
27964         * abilist/librt.abilist: Likewise.
27965         * abilist/libthread_db.abilist: Likewise.
27966         * abilist/libutil.abilist: Likewise.
27967         * abilist/libnss_db.abilist: New file.
27968
27969         * scripts/abilist.awk: Add support for indirect functions.
27970
27971         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
27972
27973         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
27974
27975         * shlib-versions: Remove entries for ports architectures.
27976
27977         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
27978         files in ports.
27979         * elf/stackguard-macros.h: Remove support for IA-64.
27980         * elf/tst-auditmod1.c: Likewise.
27981         * sysdeps/generic/ldsodefs.h: Likewise.
27982
27983         * sysdeps/unix/sysv/linux/configure.in: Ports should define
27984         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
27985         configure files.
27986
27987         [BZ #13552]
27988         * configure.in: Remove --enable-omitfp support.
27989         * FAQ.in: Adjust.
27990         * config.make.in: Likewise.
27991         * Makeconfig: Likewise.
27992         * manual/install.texi: Likewise.
27993
27994         In case anyone cares, the IA-64 architecture could move to ports.
27995         * sysdeps/ia64/*: Removed.
27996         * sysdeps/unix/sysv/linux/ia64/*: Removed.
27997         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
27998
27999         [BZ #13555]
28000         * configure.in: Remove entries for unsupported architectures.
28001
28002         [BZ #13533]
28003         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
28004         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
28005         routines.
28006         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
28007         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
28008         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
28009         fall back to using wcrtomb.
28010         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
28011         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
28012         renaming.
28013         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
28014         * wcsmbs/tst-c16c32-1.c: New file.
28015
28016         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
28017         local variable.
28018
28019         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
28020
28021         * elf/tst-unique3.cc: Add explicit declaration of gets.
28022         * elf/tst-unique3lib.cc: Likewise.
28023         * elf/tst-unique3lib2.cc: Likewise.
28024         * elf/tst-unique4.cc: Likewise.
28025
28026         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
28027
28028 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
28029
28030         [BZ #13566]
28031         * assert/assert.h (static_assert): Don't define for C++.
28032         * libio/stdio.h (gets): Do declare for C++ <= C++11.
28033         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
28034
28035 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
28036
28037         * iconv/loop.c (single loop): Fix assertion in storing of
28038         remaining bytes.
28039
28040         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
28041
28042 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
28043
28044         * posix/getconf.c: Update copyright year.
28045         * nss/getent.c: Likewise.
28046         * nss/makedb.c: Likewise.
28047         * iconv/iconvconfig.c: Likewise.
28048         * iconv/iconv_prog.c: Likewise.
28049         * elf/ldconfig.c: Likewise.
28050         * elf/pldd.c: Likewise.
28051         * elf/sotruss.ksh: Likewise.
28052         * catgets/gencat.c: Likewise.
28053         * csu/version.c: Likewise.
28054         * elf/ldd.bash.in: Likewise.
28055         * elf/sprof.c (print_version): Likewise.
28056         * locale/programs/locale.c: Likewise.
28057         * locale/programs/localedef.c: Likewise.
28058         * login/programs/pt_chown.c: Likewise.
28059         * nscd/nscd.c (print_version): Likewise.
28060         * debug/xtrace.sh: Likewise.
28061         * malloc/memusage.sh: Likewise.
28062         * malloc/mtrace.pl: Likewise.
28063         * debug/catchsegv.sh: Likewise.
28064
28065 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
28066
28067         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
28068         pure attribute.
28069
28070 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
28071
28072         [BZ #13533]
28073         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
28074         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
28075         transformations.
28076         * iconv/gconv_int.h: Likewise.
28077         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
28078         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
28079         from libc for GLIBC_2.16.
28080         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
28081         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
28082         * wcsmbs/uchar.h: Really define mbstate_t.
28083         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
28084         * wcsmbs/c16rtomb.c: New file.
28085         * wcsmbs/mbrtoc16.c: New file.
28086         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
28087         for C/POSIX locale.
28088         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
28089         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
28090
28091         * wcsmbs/wchar.h: Add missing __restrict.
28092
28093 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
28094
28095         [BZ #13532]
28096         * time/Makefile (routines): Add timespec_get.
28097         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
28098         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
28099         timespec for ISO C11.
28100         * time/timespec_get.c: New file.
28101         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
28102         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
28103
28104         [BZ #13531]
28105         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
28106         * stdlib/stdlib.h: Declare aligned_alloc.
28107         * Versions.def: Add GLIBC_2.16 for libc.
28108         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
28109
28110         [BZ 13527]
28111         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
28112         ISO C11.
28113
28114         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
28115         code.
28116
28117         [BZ #13528]
28118         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
28119
28120         [BZ #13529]
28121         * assert/assert.h (static_assert): Define.
28122
28123         * version.h: Update for 2.16 development version.
28124
28125         [BZ #13526]
28126         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
28127         _ISOC11_SOURCE.
28128
28129         * version.h (RELEASE): Bump for 2.15 release.
28130         * include/features.h (__GLIBC_MINOR__): Bump to 15.
28131
28132         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
28133         Patch by Marek Polacek <mpolacek@redhat.com>.
28134
28135         * bits/byteswap.h: Protect long long constants with __extension__.
28136         * sysdeps/i386/bits/byteswap.h: Likewise.
28137         * sysdeps/ia64/bits/byteswap.h: Likewise.
28138         * sysdeps/s390/bits/byteswap.h: Likewise.
28139         * sysdeps/x86_64/bits/byteswap.h: Likewise.
28140
28141 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28142
28143         [BZ #13540]
28144         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
28145         destination buffer.
28146         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
28147
28148 2011-12-23  Marek Polacek  <polacek@redhat.com>
28149
28150         * elf/dl-addr.c (determine_info): Add inline keyword.
28151         * elf/tst-auditmod4b.c (check_avx): Likewise.
28152         * elf/tst-auditmod6b.c (check_avx): Likewise.
28153         * elf/tst-auditmod6c.c (check_avx): Likewise.
28154         * elf/tst-auditmod7b.c (check_avx): Likewise.
28155
28156 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
28157
28158         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
28159         !__SSE_MATH__.
28160
28161 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28162
28163         [BZ #13540]
28164         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
28165         processing for last bytes.
28166
28167 2011-08-06  Bruno Haible  <bruno@clisp.org>
28168
28169         [BZ #13061]
28170         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
28171         U+0385, not to U+1FEE.
28172
28173         [BZ #13062]
28174         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
28175         entry for U+00A5 U+0301.
28176
28177 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
28178
28179         [BZ #13166]
28180         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
28181         buffer for the output is too small.
28182
28183         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
28184         optimization.
28185
28186         [BZ #13185]
28187         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
28188         SSE flags if possible.
28189
28190 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28191
28192         [BZ #13540]
28193         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
28194         processing for last bytes.
28195
28196 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
28197
28198         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
28199         (syscall-list-default-options, syscall-list-default-condition)
28200         (syscall-list-includes): Define.
28201         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
28202         list of ABIs and options and #if conditions for each ABI.  Do not
28203         handle common syscalls between ABIs specially.
28204         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
28205         Remove.
28206         (syscall-list-variants, syscall-list-32bit-options)
28207         (syscall-list-32bit-condition, syscall-list-64bit-options)
28208         (syscall-list-64bit-condition): Define.
28209         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
28210         (syscall-list-variants, syscall-list-32bit-options)
28211         (syscall-list-32bit-condition, syscall-list-64bit-options)
28212         (syscall-list-64bit-condition): Define.
28213         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
28214         Remove.
28215         (syscall-list-variants, syscall-list-32bit-options)
28216         (syscall-list-32bit-condition, syscall-list-64bit-options)
28217         (syscall-list-64bit-condition): Define.
28218         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
28219         Remove.
28220         (syscall-list-variants, syscall-list-32bit-options)
28221         (syscall-list-32bit-condition, syscall-list-64bit-options)
28222         (syscall-list-64bit-condition): Define.
28223
28224 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
28225
28226         * locale/iso-639.def: Add brx entry.
28227
28228         [BZ #13328]
28229         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
28230         Proposed by Mariusz_Cukr <marcukr@op.pl>.
28231
28232         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
28233         __feraiseexcept_renamed.
28234
28235 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
28236
28237         [BZ #13538]
28238         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
28239         EPOLLET with unsigned values.
28240         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
28241         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
28242
28243         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
28244         to large cancellation.
28245         * math/s_cacoshf.c: Likewise.
28246         * math/s_cacoshl.c: Likewise.
28247
28248 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
28249
28250         [BZ #13305]
28251         [BZ #12786]
28252         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
28253         * math/s_cacoshf.c: Likewise.
28254         * math/s_cacoshl.c: Likewise.
28255
28256 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
28257
28258         [BZ #13439]
28259         * iconv/gconv.h: Define __GCONV_SWAP.
28260         * iconvdata/unicode.c: The swap bit must be stored in __flags.
28261         * iconvdata/utf-16.c: Likewise.
28262         * iconvdata/utf-32.c: Likewise.
28263
28264 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
28265
28266         [BZ #13524]
28267         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
28268         numerator after shifting it by one limb.
28269
28270 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
28271
28272         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
28273         under [__USE_EXTERN_INLINES].
28274
28275 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
28276
28277         [BZ #13446]
28278         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
28279
28280 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28281
28282         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
28283         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
28284         optimized code.
28285         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
28286         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
28287         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
28288         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
28289         for strncasecmp/strncasecmp_l compilation.
28290         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
28291         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
28292
28293 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
28294
28295         [BZ #13484]
28296         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
28297         of __asm__.
28298
28299 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
28300
28301         [BZ #13506]
28302         * time/tzfile.c (__tzfile_read): Check values from file header.
28303
28304 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
28305
28306         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
28307         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
28308         * powerpc/powerpc32/dl-start.S: Likewise.
28309         * powerpc/powerpc32/elf/start.S: Likewise.
28310         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
28311         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
28312         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
28313         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
28314         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
28315         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
28316         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
28317         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
28318         * powerpc/powerpc32/fpu/s_round.S: Likewise.
28319         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
28320         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
28321         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
28322         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
28323         * powerpc/powerpc32/memset.S: Likewise.
28324         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
28325         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
28326         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
28327         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
28328         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
28329         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
28330         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
28331         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
28332         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
28333         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
28334         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
28335         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
28336         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
28337
28338 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28339
28340         * math/libm-test.inc: Added more nearbyint tests.
28341         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
28342         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
28343         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
28344         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
28345
28346 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
28347
28348         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
28349         FD_CLOEXEC.
28350
28351 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28352
28353         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
28354         Add wcscpy-ssse3 wcscpy-c.
28355         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
28356         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
28357         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
28358         * sysdeps/x86_64/wcschr.S: New file.
28359         * sysdeps/x86_64/wcsrchr.S: New file.
28360         * string/test-strcmp.c: Remove checking of wcscmp function for
28361         wrong alignments.
28362         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
28363         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
28364         wcsrchr-sse2 wcsrchr-c.
28365         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
28366         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
28367         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
28368         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
28369         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
28370         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
28371         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
28372         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
28373         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
28374         * wcsmbc/wcschr.c (WCSCHR): New macro.
28375
28376 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28377
28378         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
28379         * wcsmbs/test-wcsrchr.c: New file.
28380         * string/test-strrchr.c: Add wcsrchr support.
28381         (WIDE): New macro.
28382         * wcsmbs/test-wcscpy.c: New file.
28383         * string/test-strcpy.c: Add wcscpy support.
28384         (WIDE): New macro.
28385
28386 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
28387
28388         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
28389         the inner loop.
28390
28391 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
28392
28393         [BZ #13472]
28394         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
28395
28396 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
28397
28398         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
28399         Minor optimizations.
28400
28401         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
28402         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
28403         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
28404
28405 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
28406
28407         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
28408         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
28409         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
28410         for gcc to avoid warnings.
28411         * inet/Makefile (tests): Add tst-checks.
28412         * inet/tst-checks.c: New file.
28413
28414         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
28415         warning.
28416
28417         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
28418         __wmemcmp_sse2.
28419
28420         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
28421         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
28422
28423         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
28424
28425 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
28426
28427         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
28428         problem.
28429
28430         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
28431
28432 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
28433
28434         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
28435         conditional on GCC version.
28436         (__arch_compare_and_exchange_val_8_acq)
28437         (__arch_compare_and_exchange_val_16_acq)
28438         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
28439         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
28440         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
28441
28442 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
28443
28444         * sysdeps/sh/backtrace.c: New file.
28445
28446 2011-12-02  Andreas Schwab  <schwab@redhat.com>
28447
28448         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
28449         parenthesis.
28450
28451 2011-12-01  Andreas Schwab  <schwab@redhat.com>
28452
28453         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
28454         falling back to utime.
28455
28456 2011-11-30  Andreas Schwab  <schwab@redhat.com>
28457
28458         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
28459         expectations for float.
28460
28461 2011-11-29  Andreas Schwab  <schwab@redhat.com>
28462
28463         * locale/weight.h (findidx): Add parameter len.
28464         * locale/weightwc.h (findidx): Likewise.
28465         * posix/fnmatch_loop.c (FCT): Adjust caller.
28466         * posix/regcomp.c (build_equiv_class): Likewise.
28467         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
28468         * posix/regexec.c (check_node_accept_bytes): Likewise.
28469         * string/strcoll_l.c (STRCOLL): Likewise.
28470         * string/strxfrm_l.c (STRXFRM): Likewise.
28471
28472 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
28473
28474         * Makefile.in: Remove CVSOPT handling.
28475         * configure.in: Remove use of AC_REVISION.
28476         * iconvdata/Makefile (distribute): No need to filter out CVS.
28477         * scripts/list-sources.sh: Remove CVS, subversion and monotone
28478         handling.
28479
28480 2011-11-16  Andreas Schwab  <schwab@redhat.com>
28481
28482         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
28483         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
28484         [USE_AS_STRNCASECMP_L]: Likewise.
28485         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
28486         NO_TLS_DIRECT_SEG_REFS.
28487         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
28488         Fix argument offsets for non-PIC.
28489         [USE_AS_STRNCASECMP_L]: Likewise.
28490         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
28491         NO_TLS_DIRECT_SEG_REFS.
28492
28493 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
28494
28495         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
28496         O_CLOEXEC.
28497         * locale/loadlocale.c (_nl_load_locale): Likewise.
28498
28499 2011-11-15  Andreas Schwab  <schwab@redhat.com>
28500
28501         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
28502         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
28503         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
28504         (SYSCALL_GETTIME): Set errno on error.
28505
28506         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
28507         count references to noai6ai_cached.
28508
28509 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
28510
28511         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
28512
28513         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
28514         FD_CLOEXEC for /proc/self/maps.
28515
28516         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
28517         FD_CLOEXEC for /proc/meminfo.
28518
28519         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
28520         gai.conf.
28521
28522         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
28523         FD_CLOEXEC for given file.
28524
28525         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
28526
28527         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
28528         FD_CLOEXEC for /etc/hosts.
28529         (_gethtent): Likewise.
28530
28531         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
28532
28533         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
28534         cancellation and set FD_CLOEXEC for /etc/netgroup.
28535
28536         * nss/nss_files/files-key.c (search): Don't allow cancellation when
28537         reading /etc/publickey.
28538
28539         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
28540         allow cancellation when reading /etc/group.
28541
28542         * nss/nss_files/files-alias.c (internal_setent): Don't allow
28543         cancellation.
28544         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
28545
28546         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
28547         when using data file.
28548
28549         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
28550
28551         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
28552         (write_nis_obj): Use "c" and "e" in fopen.
28553
28554         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
28555
28556         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
28557
28558         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
28559
28560         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
28561
28562         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
28563         locale.alias.
28564
28565         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
28566
28567         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
28568
28569         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
28570
28571         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
28572         file parsing and set FD_CLOEXEC.
28573
28574 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
28575
28576         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
28577
28578 2011-11-14  Andreas Schwab  <schwab@redhat.com>
28579
28580         * malloc/arena.c (arena_get2): Don't call reused_arena when
28581         _int_new_arena failed.
28582
28583 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
28584
28585         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
28586         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
28587         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
28588         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
28589         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
28590         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
28591         to compile strcasecmp and strncasecmp.
28592         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
28593         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
28594
28595         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
28596
28597 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
28598
28599         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
28600         locale-defines.sym to gen-as-const-headers.
28601         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
28602         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
28603         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
28604         to compile strcasecmp and strncasecmp.
28605         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
28606         strcasecmp_l and strncasecmp_l.
28607         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
28608         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
28609         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
28610         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
28611         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
28612         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
28613         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
28614         * sysdeps/i386/i686/multiarch/strncase.S: New file.
28615         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
28616         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
28617         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
28618
28619 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
28620
28621         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
28622         result of SYSDEP_GETTIME_CPU to retval.
28623         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
28624         parameter list to macro.  Remove trailing semicolon.  Adjust users.
28625
28626         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
28627         variable.
28628
28629         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
28630         mantissa words.
28631         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
28632
28633         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
28634         from unused variable.
28635
28636         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
28637         DWARF definitions.
28638         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
28639         for assembling.
28640
28641         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
28642         over namespaces.
28643
28644         * sunrpc/rpc_prot.c (rejected): Fix case value.
28645
28646         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
28647         unsigned long long int to avoid warnings in shift.
28648
28649         * posix/regex_internal.c (re_string_reconstruct): Actually use result
28650         of use of trans.
28651         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
28652         variable tmp.
28653
28654         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
28655         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
28656         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
28657
28658         * nis/nis_table.c (nis_list): Use variable of correct type for
28659         result of __follow_path call.
28660
28661 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28662
28663         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
28664         of math functions ceil, trunc, floor, round, and sqrt, when
28665         avaliable on the platform.
28666         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
28667         name clash.
28668         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
28669         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
28670         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
28671
28672 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
28673
28674         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
28675         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
28676
28677 2011-11-11  Roland McGrath  <roland@hack.frob.com>
28678
28679         * include/unistd.h: Fix __readlink return type.
28680         Reported by Chris Metcalf <cmetcalf@tilera.com>.
28681
28682 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
28683
28684         * stdlib/ucontext.h: Undo last change for makecontext.
28685
28686 2011-11-11  Andreas Schwab  <schwab@redhat.com>
28687
28688         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
28689
28690         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
28691         * setjmp/setjmp.h: Mark functions as non-leaf.
28692         * setjmp/bits/setjmp2.h: Likewise.
28693         * stdlib/ucontext.h: Likewise.
28694
28695 2011-11-10  Andreas Schwab  <schwab@redhat.com>
28696
28697         * malloc/arena.c (_int_new_arena): Don't increment narenas.
28698         (reused_arena): Don't check arena limit.
28699         (arena_get2): Atomically check arena limit.
28700
28701 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
28702
28703         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
28704         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
28705
28706         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
28707         instructions.
28708
28709 2011-11-07  Andreas Schwab  <schwab@redhat.com>
28710
28711         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
28712         handler when locking.
28713
28714         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
28715         Fix size of allocated buffer.
28716
28717 2011-11-04  Andreas Schwab  <schwab@redhat.com>
28718
28719         [BZ #10103]
28720         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
28721         declarations for long double functions.
28722         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
28723
28724         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
28725
28726 2011-11-03  Andreas Schwab  <schwab@redhat.com>
28727
28728         * nscd/nscd.c (main): Don't start AVC thread until credentials are
28729         installed.
28730
28731         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
28732         is disabled.
28733
28734 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28735
28736         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
28737
28738 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
28739
28740         * include/alloca.h (stackinfo_alloca_round): Define.
28741         (extend_alloca): Use it.
28742         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
28743         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
28744         here.
28745
28746         * scripts/check-local-headers.sh: Ignore libaudit.h.
28747
28748         * nscd/Makefile (extra-objs): Make recursively expanded.
28749
28750 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
28751
28752         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
28753         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
28754
28755         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
28756         * posix/tst-rfc3484-2.c: Likewise.
28757         * posix/tst-rfc3484-3.c: Likewise.
28758
28759         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
28760         process_vm_writev.
28761         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
28762         process_vm_writev.
28763         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
28764         process_vm_writev from libc using GLIBC_2.15 version.
28765
28766         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
28767
28768 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
28769
28770         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
28771         stack usage.
28772
28773 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
28774
28775         [BZ #13367]
28776         * nss/getent.c (initgroups_keys): Show error message in case no group
28777         names are given.
28778
28779         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
28780         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
28781         __bump_nl_timestamp.
28782         * nscd/connections (nscd_init): When host database is served open
28783         netlink socket and request notification about configuration changes.
28784         (main_loop_poll): Track netlink file descriptor and bump timestamp
28785         in case data becomes available.
28786         (main_loop_epoll): Likewise.
28787         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
28788         (database_pers_head): Add extra_data fileds.
28789         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
28790         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
28791         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
28792         Adjust caller.
28793         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
28794         in6ai data, call __free_in6ai.
28795         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
28796         Add -DHAVE_NETLINK.
28797         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
28798         interface information.  Reuse previous data if netlink timestamp
28799         is not changed.
28800         (__bump_nl_timestamp): New function.
28801         (__free_in6ai): New function.
28802
28803 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
28804
28805         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
28806         close_not_cancel_no_status here.
28807         (__check_pf): Reorganize code a bit to not call close twice if OOM.
28808
28809 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
28810
28811         [BZ #13276]
28812         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
28813         return value.
28814
28815         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
28816         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
28817         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
28818
28819 2011-07-03  Andreas Jaeger  <aj@suse.de>
28820
28821         [BZ #10709]
28822         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
28823         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
28824         * math/libm-test.inc (sin_test): Add test case.
28825
28826 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
28827
28828         [BZ #13337]
28829         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
28830         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
28831
28832         * elf/chroot_canon.c (chroot_canon): Cleanups.
28833
28834         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
28835
28836         [BZ #13335]
28837         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
28838         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
28839
28840         * string/test-strchr.c: Make usable for strchrnul testing.
28841         * string/test-strchrnul.c: New file.
28842         * string/Makefile (strop-tests): Add strchrnul.
28843
28844         * po/it.po: Update from translation team.
28845         * po/es.po: Likewise.
28846
28847 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
28848
28849         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
28850         the three constants needed as parameters.  Drop the others.
28851         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
28852         __m128i_strloadu_tolower.
28853         Create and initialize variable zero and use it in all the places
28854         where _mm_setzero_si128 was used.
28855
28856         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
28857         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
28858         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
28859         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
28860         anymore.
28861         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
28862         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
28863         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
28864         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
28865         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
28866         __mpranred, __mptan.
28867         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
28868         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
28869         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
28870         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
28871         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
28872         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
28873         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
28874         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
28875         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
28876
28877 2011-10-28  Andreas Schwab  <schwab@redhat.com>
28878
28879         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
28880         redefine if SHARED.
28881         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
28882
28883         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
28884         wide char related routines to wcsmbs subdir.
28885
28886 2011-10-27  Andreas Schwab  <schwab@redhat.com>
28887
28888         [BZ #13344]
28889         * misc/sys/cdefs.h (__THROWNL): Define.
28890         * posix/unistd.h: Use __THREADNL instead of __THREAD
28891         for memory synchronization functions.
28892
28893 2011-10-26  Roland McGrath  <roland@hack.frob.com>
28894
28895         [BZ #13349]
28896         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
28897         doesn't exist.
28898         * manual/stdio.texi (Obstack Streams): Node removed.
28899
28900 2011-10-26  Andreas Schwab  <schwab@redhat.com>
28901
28902         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
28903         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
28904         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
28905
28906         * math/math_private.h (math_force_eval): Allow non-addressable
28907         arguments.
28908         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
28909
28910 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28911
28912         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
28913         file is not needed.
28914
28915         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
28916         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
28917         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
28918         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
28919         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
28920         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
28921         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
28922         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
28923         Add AVX variants.
28924         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
28925         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
28926         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
28927         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
28928         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
28929         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
28930         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
28931         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
28932         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
28933         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
28934         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
28935         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
28936         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
28937         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
28938         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
28939         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
28940         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
28941         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
28942         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
28943
28944         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
28945         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
28946
28947         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
28948         place.  Use VEX encoding when compiling for AVX.
28949
28950 2011-10-25  Andreas Schwab  <schwab@redhat.com>
28951
28952         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
28953         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
28954
28955         * string/test-strchr.c (do_test): Don't generate NUL bytes.
28956
28957 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28958
28959         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
28960         useless if() expression.
28961         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
28962         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
28963         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
28964         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
28965         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
28966         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
28967         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
28968         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
28969         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
28970         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
28971         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
28972         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
28973         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
28974         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
28975         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
28976         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
28977         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
28978         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
28979         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
28980
28981         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
28982
28983 2011-10-25  Andreas Schwab  <schwab@redhat.com>
28984
28985         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
28986         condition.
28987         * elf/dl-fini.c (_dl_sort_fini): Likewise.
28988
28989 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
28990
28991         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
28992         .text section.  Avoid duplicate constants.
28993         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
28994         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
28995         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
28996         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28997         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
28998         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28999         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29000         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29001         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
29002         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
29003         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
29004         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
29005         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
29006         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
29007         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
29008         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
29009         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
29010         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
29011         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
29012         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
29013         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
29014         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
29015         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
29016         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
29017         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
29018         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
29019         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
29020         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
29021         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
29022         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
29023         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
29024         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
29025         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
29026         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
29027         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
29028         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
29029         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
29030         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
29031         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
29032         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
29033         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
29034         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
29035         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
29036         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
29037         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
29038
29039 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
29040
29041         * sysdeps/x86_64/dla.h: Move to ...
29042         * sysdeps/x86_64/fpu/dla.h: ...here.
29043         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
29044         situations.  Use __builtin_fma only for gcc 4.6 and up.
29045
29046         * config.make.in: Add have-mfma4 entry.
29047         * configure.in: Substitute libc_cv_cc_fma4.
29048         * math/Makefile (dbl-only-routines): Add sincostab.
29049         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
29050         Use __sincostab not sincos.
29051         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
29052         name is a macro.
29053         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
29054         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29055         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29056         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
29057         using __copysign.
29058         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
29059         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
29060         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
29061         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
29062         and __inv.
29063         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
29064         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
29065         __copysign.
29066         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
29067         define aliases when function name is a macro.
29068         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
29069         sysdeps/ieee754/dbl-64/sincos.tbl.
29070         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
29071         fma4-enabled routines.
29072         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
29073         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
29074         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
29075         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
29076         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
29077         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
29078         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
29079         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
29080         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
29081         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
29082         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
29083         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
29084         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
29085         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
29086         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
29087         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
29088         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
29089         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
29090         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
29091         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
29092         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
29093         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
29094         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
29095         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
29096         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
29097         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
29098         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
29099         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
29100         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
29101         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
29102
29103         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
29104         rename.
29105         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
29106         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
29107         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29108         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29109         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29110         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29111         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
29112         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
29113
29114 2011-10-24  Andreas Schwab  <schwab@redhat.com>
29115
29116         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
29117
29118 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
29119
29120         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
29121
29122         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
29123         prediction.
29124         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
29125
29126         * string/strnlen.c: Don't define STRNLEN, reverse logic.
29127         Remove unused variable magic_bits.
29128         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
29129
29130         * string/strnlen.c: Define and use STRNLEN macro.
29131         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
29132         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
29133         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
29134         * wcsmbs/wcslen.c: Define and use WCSLEN.
29135         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
29136         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
29137         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
29138         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
29139         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
29140         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
29141         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
29142
29143 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29144
29145         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29146         strnlen-sse2-no-bsf.
29147         Rename strlen-no-bsf to strlen-sse2-no-bsf.
29148         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
29149         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
29150         Add strnlen support.
29151         (USE_AS_STRNLEN): New macro.
29152         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
29153         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
29154         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
29155         * sysdeps/x86_64/wcslen.S: New file.
29156
29157 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
29158
29159         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
29160         XMM-moves are used for copying on small sizes.
29161
29162 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29163
29164         * wcsmbs/Makefile (strop-tests): Add wcschr.
29165         * wcsmbs/test-wcschr.c: New file.
29166         * string/test-strchr.c: Update.
29167         Add wcschr support.
29168         (WIDE): New macro.
29169
29170 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29171
29172         * wcsmbs/Makefile (strop-tests): Add wcslen.
29173         * wcsmbs/test-wcslen.c: New file.
29174         * string/test-strlen.c: Update.
29175         Add wcslen support.
29176         (WIDE): New macro.
29177
29178 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
29179
29180         * po/it.po: Update from translation team.
29181
29182 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29183
29184         * sysdeps/x86_64/wcscmp.S: Update.
29185         Fix wrong comparison semantics.
29186         wcscmp shall use signed comparison not unsigned.
29187         Don't use substraction to avoid overflow bug.
29188         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
29189         * wcsmbc/wcscmp.c: Likewise.
29190         * string/test-strcmp.c: Likewise.
29191         Add new tests to check cases with negative values.
29192
29193 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
29194
29195         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
29196         * sysdeps/x86_64/dla.h: ...here.  New file.
29197         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
29198         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
29199         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29200         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29201         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29202         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
29203         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29204         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
29205         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
29206
29207 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
29208
29209         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
29210         __ynl_finite aliases.
29211
29212 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
29213
29214         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29215
29216         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
29217         define DLA_FMA.
29218         [DLA_FMA] (EMULV): Use DLA_FMA.
29219         [DLA_FMA] (MUL12): Use EMULV.
29220         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
29221         that are not needed.
29222         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
29223         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29224         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29225         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29226         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29227         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
29228         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
29229
29230 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
29231
29232         * math/s_nan.c: Undef __nan.
29233         * math/s_nanf.c: Undef __nanf.
29234         * math/s_nanl.c: Undef __nanl.
29235         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
29236         "math_private.h".
29237
29238 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
29239
29240         * math/s_catan.c: Add branch predictions.
29241         * math/s_catanf.c: Likewise.
29242         * math/s_catanh.c: Likewise.
29243         * math/s_catanhf.c: Likewise.
29244         * math/s_catanhl.c: Likewise.
29245         * math/s_catanl.c: Likewise.
29246         * math/s_cexp.c: Likewise.
29247         * math/s_cexpf.c: Likewise.
29248         * math/s_cexpl.c: Likewise.
29249         * math/s_clog.c: Likewise.
29250         * math/s_clog10.c: Likewise.
29251         * math/s_clog10f.c: Likewise.
29252         * math/s_clog10l.c: Likewise.
29253         * math/s_clogf.c: Likewise.
29254         * math/s_clogl.c: Likewise.
29255         * math/s_csqrt.c: Likewise.
29256         * math/s_csqrtf.c: Likewise.
29257         * math/s_csqrtl.c: Likewise.
29258         * math/s_ctanf.c: Likewise.
29259         * math/s_ctanh.c: Likewise.
29260         * math/s_ctanhf.c: Likewise.
29261         * math/s_ctanhl.c: Likewise.
29262         * math/s_ctanl.c: Likewise.
29263
29264         * math/math_private.h: Define __nan, __nanf, __nanl.
29265         * math/s_cacosh.c: Include <math_private.h>.
29266         * math/s_cacoshl.c: Likewise.
29267         * math/s_casinh.c: Likewise.
29268         * math/s_casinhf.c: Likewise.
29269         * math/s_casinhl.c: Likewise.
29270         * math/s_ccos.c: Rely entire on ccosh.
29271         * math/s_ccosf.c: Rely entire on ccoshf.
29272         * math/s_ccosl.c: Rely entirely on ccoshl.
29273         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
29274         Remove tests for FE_INVALID.
29275         * math/s_ccoshf.c: Likewise.
29276         * math/s_ccoshl.c: Likewise.
29277         * math/s_csin.c: Likewise.
29278         * math/s_csinf.c: Likewise.
29279         * math/s_csinh.c Likewise.
29280         * math/s_csinhf.c: Likewise.
29281         * math/s_csinhl.c: Likewise.
29282         * math/s_csinl.c: Likewise.
29283         * math/s_ctan.c: Likewise.
29284         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
29285         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
29286         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
29287
29288 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
29289
29290         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
29291         compilation problems.
29292
29293         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
29294         __builtin_expect.
29295
29296 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
29297
29298         * sysdeps/i386/configure.in: Test for -mfma4 option.
29299         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
29300         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
29301         COMMON_CPUID_INDEX_80000001.
29302         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
29303         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
29304         use it if FMA3 is not supported.
29305         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
29306
29307         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
29308         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
29309
29310 2011-10-20  Andreas Schwab  <schwab@redhat.com>
29311
29312         [BZ #12892]
29313         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
29314         it would create a cycle with a link time dependency.
29315
29316 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
29317
29318         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
29319         instruction.
29320         * string/Makefile (strop-tests): Add rawmemchr.
29321         * string/test-rawmemchr.c: New file.
29322
29323         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
29324         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
29325         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
29326         when compiling str{,n}casecmp and when AVX is available.  Hook up
29327         new optimized code in initializers.
29328
29329 2011-10-19  Andreas Schwab  <schwab@redhat.com>
29330
29331         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
29332         __feraiseexcept instead of feraiseexcept.
29333
29334 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
29335
29336         * math/math_private.h: Define defaults for libc_fetestexcept and
29337         libc_feupdateenv.
29338         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
29339         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
29340         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
29341         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
29342         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
29343         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
29344         libc_fetestexcept and libc_feupdateenv.
29345
29346         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
29347         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
29348         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
29349         * sysdeps/x86_64/fpu/math_private.h: Define special version of
29350         libc_feholdexcept_setround.
29351
29352         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
29353         Add s_nearbyint-c and s_nearbyintf-c.
29354         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
29355         nearbyintf inlines.
29356         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
29357         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
29358         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
29359         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
29360
29361         * math/math_private.h: Define defaults for libc_fegetround,
29362         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
29363         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
29364         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
29365         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
29366         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
29367         standard functions.
29368         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
29369         Remove comments and hacks for old compiler versions.
29370         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
29371         libc_fegetround, libc_fesetround, libc_feholdexcept, and
29372         libc_feholdexceptl.
29373
29374 2011-10-18  Andreas Schwab  <schwab@redhat.com>
29375
29376         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
29377         (__feraiseexcept_renamed): Add __NTH.
29378         (feraiseexcept): Add __NTH.  Rename local variables to fix
29379         namespace violations.
29380
29381 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
29382
29383         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
29384
29385         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
29386
29387         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
29388         recently added interfaces.
29389         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
29390
29391         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
29392         about macro parameter expansion.
29393
29394         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
29395         __NO_MATH_INLINES is defined.  Cleanups.
29396
29397         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
29398         and __floorf is target has SSE4.1.
29399         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
29400         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
29401         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
29402         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
29403
29404         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
29405         name.
29406         (floorf): Likewise.
29407
29408         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
29409
29410 2011-10-17  Andreas Schwab  <schwab@redhat.com>
29411
29412         * misc/sys/cdefs.h: Fix last change.
29413
29414         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
29415         database lookup.
29416
29417 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
29418
29419         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
29420
29421         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
29422         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
29423         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
29424         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
29425         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
29426         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
29427         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
29428         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
29429         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
29430         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
29431         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
29432         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
29433         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
29434         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
29435         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
29436         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
29437         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
29438         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
29439         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
29440         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
29441         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
29442         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
29443
29444         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
29445         ceil, ceilf, floor, floorf.
29446
29447         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
29448         Perform IRELATIVE relocations last.
29449
29450         * elf/do-rel.h: Add another parameter nrelative, replacing the
29451         local variable with the same name.  Change name of the function
29452         to end in Rel or Rela (uppercase).
29453         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
29454         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
29455         elf_dynamic_do_##reloc function.
29456
29457 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
29458
29459         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
29460         is sufficient, at least on modern CPUs.
29461
29462         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
29463
29464         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
29465         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
29466
29467         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
29468         __expl_finite.
29469         * math/bits/math-finite.h: Add entries for exp.
29470         * math/e_expl.c: Add __*_finite alias.
29471         * sysdeps/i386/fpu/e_exp.S: Likewise.
29472         * sysdeps/i386/fpu/e_expf.S: Likewise.
29473         * sysdeps/i386/fpu/e_expl.c: Likewise.
29474         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
29475         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
29476         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
29477         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
29478         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
29479         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
29480         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
29481
29482         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
29483         is sufficient, at least on modern CPUs.
29484
29485         * ctype/ctype-info.c (__ctype_init): Define.
29486         * include/ctype.h (__ctype_init): Declare.
29487         (__ctype_b_loc): The variable is always initialized.
29488         (__ctype_toupper_loc): Likewise.
29489         (__ctype_tolower_loc): Likewise.
29490         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
29491         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
29492
29493 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
29494
29495         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
29496
29497         * configure.in: Also look in $cxxmachine/include for C++ system
29498         headers.
29499
29500 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29501
29502         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
29503         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
29504         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
29505         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
29506         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
29507         (USE_AS_WMEMCMP): New macro.
29508         Fixing indents.
29509         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
29510         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
29511         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
29512         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
29513         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29514         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
29515         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
29516         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
29517         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
29518         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
29519         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
29520         (USE_AS_WMEMCMP): New macro.
29521         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
29522         * sysdeps/string/test-memcmp.c: Update.
29523         Fix simple_wmemcmp.
29524         Add new tests.
29525         * wcsmbs/wmemcmp.c: Update.
29526         (WMEMCMP): New macro.
29527         Fix overflow bug.
29528
29529 2011-10-12  Andreas Jaeger  <aj@suse.de>
29530
29531         [BZ #13268]
29532         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
29533
29534 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
29535
29536         * libio/iofwide.c (do_length): Avoid warning.
29537
29538         * ctype/ctype.h (__isctype_f): Add missing __THROW.
29539
29540 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
29541
29542         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
29543
29544         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
29545         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
29546         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
29547         * sysdeps/i386/i686/fpu/e_log.S: New file.
29548         * sysdeps/i386/i686/fpu/e_logf.S: New file.
29549         * sysdeps/i386/i686/fpu/e_logl.S: New file.
29550
29551         * ctype/ctype.h: Add support for inlined isXXX functions when
29552         compiling C++ code.
29553
29554 2011-10-14  Andreas Schwab  <schwab@redhat.com>
29555
29556         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
29557
29558         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
29559
29560 2011-10-13  Roland McGrath  <roland@hack.frob.com>
29561
29562         [BZ #13291]
29563         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
29564
29565 2011-10-13  Andreas Schwab  <schwab@redhat.com>
29566
29567         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
29568         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
29569         feraiseexcept.
29570
29571         * sysdeps/x86_64/memrchr.S: Check for zero size.
29572
29573         * string/stratcliff.c: Add memrchr tests.
29574
29575 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29576
29577         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29578         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
29579         rawmemchr-sse2 rawmemchr-sse2-bsf.
29580         * sysdeps/i386/i686/multiarch/memchr.S: New file.
29581         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
29582         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
29583         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
29584         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
29585         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
29586         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
29587         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
29588         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
29589         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
29590         * string/memrchr.c (MEMRCHR): New macro.
29591
29592 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
29593
29594         Add integration with gcc's -ffinite-math-only and optimize wrapper
29595         functions in libm.
29596         * Versions.def: Define GLIBC_2.15 version for libm.
29597         * math/Makefile (headers): Add bits/math-finite.h.
29598         * math/bits/math-finite.h: New file.
29599         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
29600         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
29601         * math/e_acoshl.c: Add __*_finite alias.
29602         * math/e_acosl.c: Likewise.
29603         * math/e_asinl.c: Likewise.
29604         * math/e_atan2l.c: Likewise.
29605         * math/e_atanhl.c: Likewise.
29606         * math/e_coshl.c: Likewise.
29607         * math/e_exp10.c: Likewise.
29608         * math/e_exp10f.c: Likewise.
29609         * math/e_exp10l.c: Likewise.
29610         * math/e_exp2l.c: Likewise.
29611         * math/e_fmodl.c: Likewise.
29612         * math/e_gammal_r.c: Likewise.
29613         * math/e_hypotl.c: Likewise.
29614         * math/e_j0l.c: Likewise.
29615         * math/e_j1l.c: Likewise.
29616         * math/e_jnl.c: Likewise.
29617         * math/e_lgammal_r.c: Likewise.
29618         * math/e_log10l.c: Likewise.
29619         * math/e_log2l.c: Likewise.
29620         * math/e_logl.c: Likewise.
29621         * math/e_powl.c: Likewise.
29622         * math/e_sinhl.c: Likewise.
29623         * math/e_sqrtl.c: Likewise.
29624         * math/e_scalb.c: Completely rewritten and optimized.
29625         * math/e_scalbf.c: Likewise.
29626         * math/e_scalbl.c: Likewise.
29627         * math/w_acos.c: Likewise.
29628         * math/w_acosf.c: Likewise.
29629         * math/w_acosl.c: Likewise.
29630         * math/w_acosh.c: Likewise.
29631         * math/w_acoshf.c: Likewise.
29632         * math/w_acoshl.c: Likewise.
29633         * math/w_asin.c: Likewise.
29634         * math/w_asinf.c: Likewise.
29635         * math/w_asinl.c: Likewise.
29636         * math/w_atan2.c: Likewise.
29637         * math/w_atan2f.c: Likewise.
29638         * math/w_atan2l.c: Likewise.
29639         * math/w_atanh.c: Likewise.
29640         * math/w_atanhf.c: Likewise.
29641         * math/w_atanhl.c: Likewise.
29642         * math/w_exp10.c: Likewise.
29643         * math/w_exp10f.c: Likewise.
29644         * math/w_exp10l.c: Likewise.
29645         * math/w_fmod.c: Likewise.
29646         * math/w_fmodf.c: Likewise.
29647         * math/w_fmodl.c: Likewise.
29648         * math/w_j0.c: Likewise.
29649         * math/w_j0f.c: Likewise.
29650         * math/w_j0l.c: Likewise.
29651         * math/w_j1.c: Likewise.
29652         * math/w_j1f.c: Likewise.
29653         * math/w_j1l.c: Likewise.
29654         * math/w_jn.c: Likewise.
29655         * math/w_jnf.c: Likewise.
29656         * math/w_log.c: Likewise.
29657         * math/w_logf.c: Likewise.
29658         * math/w_logl.c: Likewise.
29659         * math/w_log10.c: Likewise.
29660         * math/w_log10f.c: Likewise.
29661         * math/w_log10l.c: Likewise.
29662         * math/w_log2.c: Likewise.
29663         * math/w_log2f.c: Likewise.
29664         * math/w_log2l.c: Likewise.
29665         * math/w_pow.c: Likewise.
29666         * math/w_powf.c: Likewise.
29667         * math/w_powl.c: Likewise.
29668         * math/w_remainder.c: Likewise.
29669         * math/w_remainderf.c: Likewise.
29670         * math/w_remainderl.c: Likewise.
29671         * math/w_scalb.c: Likewise.
29672         * math/w_scalbf.c: Likewise.
29673         * math/w_scalbl.c: Likewise.
29674         * math/w_sqrt.c: Likewise.
29675         * math/w_sqrtf.c: Likewise.
29676         * math/w_sqrtl.c: Likewise.
29677         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
29678         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
29679         used.
29680         * math/math_private.h: Declare __kernel_standard_f.
29681         * math/w_cosh.c: Remove cruft and optimize a bit.
29682         * math/w_coshf.c: Likewise.
29683         * math/w_coshl.c: Likewise.
29684         * math/w_exp2.c: Likewise.
29685         * math/w_exp2f.c: Likewise.
29686         * math/w_exp2l.c: Likewise.
29687         * math/w_hypot.c: Likewise.
29688         * math/w_hypotf.c: Likewise.
29689         * math/w_hypotl.c: Likewise.
29690         * math/w_lgamma.c: Likewise.
29691         * math/w_lgamma_r.c: Likewise.
29692         * math/w_lgammaf.c: Likewise.
29693         * math/w_lgammaf_r.c: Likewise.
29694         * math/w_lgammal.c: Likewise.
29695         * math/w_lgammal_r.c: Likewise.
29696         * math/w_sinh.c: Likewise.
29697         * math/w_sinhf.c: Likewise.
29698         * math/w_sinhl.c: Likewise.
29699         * math/w_tgamma.c: Likewise.
29700         * math/w_tgammaf.c: Likewise.
29701         * math/w_tgammal.c: Likewise.
29702         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
29703         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
29704         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
29705         Minor optimizations.  Pretty printing.  Remove cruft.
29706         * sysdeps/i386/fpu/e_acosf.S: Likewise.
29707         * sysdeps/i386/fpu/e_acosh.S: Likewise.
29708         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
29709         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
29710         * sysdeps/i386/fpu/e_acosl.c: Likewise.
29711         * sysdeps/i386/fpu/e_asin.S: Likewise.
29712         * sysdeps/i386/fpu/e_asinf.S: Likewise.
29713         * sysdeps/i386/fpu/e_atan2.S: Likewise.
29714         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
29715         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
29716         * sysdeps/i386/fpu/e_atanh.S: Likewise.
29717         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
29718         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
29719         * sysdeps/i386/fpu/e_exp10.S: Likewise.
29720         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
29721         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
29722         * sysdeps/i386/fpu/e_exp2.S: Likewise.
29723         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
29724         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
29725         * sysdeps/i386/fpu/e_fmod.S: Likewise.
29726         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
29727         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
29728         * sysdeps/i386/fpu/e_hypot.S: Likewise.
29729         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
29730         * sysdeps/i386/fpu/e_log.S: Likewise.
29731         * sysdeps/i386/fpu/e_log10.S: Likewise.
29732         * sysdeps/i386/fpu/e_log10f.S: Likewise.
29733         * sysdeps/i386/fpu/e_log10l.S: Likewise.
29734         * sysdeps/i386/fpu/e_log2.S: Likewise.
29735         * sysdeps/i386/fpu/e_log2f.S: Likewise.
29736         * sysdeps/i386/fpu/e_log2l.S: Likewise.
29737         * sysdeps/i386/fpu/e_logf.S: Likewise.
29738         * sysdeps/i386/fpu/e_logl.S: Likewise.
29739         * sysdeps/i386/fpu/e_pow.S: Likewise.
29740         * sysdeps/i386/fpu/e_powf.S: Likewise.
29741         * sysdeps/i386/fpu/e_powl.S: Likewise.
29742         * sysdeps/i386/fpu/e_remainder.S: Likewise.
29743         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
29744         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
29745         * sysdeps/i386/fpu/e_scalb.S: Likewise.
29746         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
29747         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
29748         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
29749         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
29750         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
29751         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
29752         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
29753         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29754         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
29755         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
29756         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
29757         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
29758         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
29759         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
29760         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
29761         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
29762         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
29763         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29764         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
29765         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
29766         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29767         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
29768         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
29769         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
29770         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29771         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
29772         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
29773         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
29774         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
29775         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
29776         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
29777         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
29778         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
29779         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
29780         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
29781         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
29782         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
29783         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
29784         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
29785         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
29786         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
29787         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
29788         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
29789         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
29790         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
29791         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
29792         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
29793         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
29794         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
29795         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
29796         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
29797         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
29798         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
29799         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
29800         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
29801         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
29802         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
29803         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
29804         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
29805         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
29806         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
29807         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
29808         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
29809         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
29810         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
29811         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
29812         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
29813         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
29814         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
29815         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
29816         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
29817         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
29818         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
29819         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
29820         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
29821         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
29822         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
29823         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
29824         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
29825         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
29826         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
29827         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
29828         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
29829         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
29830         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
29831         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
29832         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
29833         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
29834         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
29835         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
29836         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
29837         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
29838         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
29839         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
29840         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
29841         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
29842         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
29843         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
29844         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
29845         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
29846         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
29847         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
29848         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
29849         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
29850         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
29851         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
29852         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
29853         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
29854         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
29855         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
29856         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
29857         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
29858         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
29859         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
29860         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
29861         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
29862         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
29863         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
29864         (__isnanf): Likewise.
29865         (__isinf_ns): Likewise.
29866         (__isinf_nsf): Likewise.
29867         (__finite): Likewise.
29868         (__finitef): Likewise.
29869         (__ieee754_sqrt): Define as macro.
29870         (__ieee754_sqrtf): Define as macro.
29871         (__ieee754_sqrtl): Define as macro.
29872         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
29873         inlined copy.
29874         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
29875         __FINITE_MATH_ONLY__ consistent.
29876         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
29877
29878 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
29879
29880         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
29881         of rawmemchr.
29882
29883         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
29884
29885 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
29886
29887         * po/ja.po: Update from translation team.
29888
29889 2011-10-08  Roland McGrath  <roland@hack.frob.com>
29890
29891         * locale/programs/locarchive.c (prepare_address_space): New function.
29892         (create_archive, enlarge_archive, open_archive): Use it.
29893
29894         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
29895         inside [SHARED], where it is used.
29896
29897         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
29898
29899         * nss/getent.c (netgroup_keys): Remove unused variable.
29900         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
29901
29902 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
29903
29904         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
29905         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
29906         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
29907         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
29908         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
29909         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
29910         * math/Makefile (libm-calls): Add s_isinf_ns.
29911         * math/divtc3.c: Use __isinf_nsl instead of isinf.
29912         * math/multc3.c: Likewise.
29913         * math/s_casin.c: Likewise.
29914         * math/s_casinf.c: Likewise.
29915         * math/s_casinl.c: Likewise.
29916         * math/s_ccos.c: Likewise.
29917         * math/s_ccosf.c: Likewise.
29918         * math/s_ccosl.c: Likewise.
29919         * math/s_ctan.c: Likewise.
29920         * math/s_ctanf.c: Likewise.
29921         * math/s_ctanh.c: Likewise.
29922         * math/s_ctanhf.c: Likewise.
29923         * math/s_ctanhl.c: Likewise.
29924         * math/s_ctanl.c: Likewise.
29925         * math/w_fmod.c: Likewise.
29926         * math/w_fmodf.c: Likewise.
29927         * math/w_fmodl.c: Likewise.
29928         * math/w_remainder.c: Likewise.
29929         * math/w_remainderf.c: Likewise.
29930         * math/w_remainderl.c: Likewise.
29931         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
29932         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
29933         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
29934         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
29935         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
29936         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
29937         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
29938         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
29939
29940         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
29941         of the number.
29942         * stdio-common/printf_fphex.c: Likewise.
29943         * stdio-common/printf_size.c: Likewise.
29944
29945         * math/e_exp10.c: Include math_private.h using <...> not "...".
29946         * math/e_exp10f.c: Likewise.
29947         * math/e_exp10l.c: Likewise.
29948         * math/e_exp2l.c: Likewise.
29949         * math/e_j0l.c: Likewise.
29950         * math/e_j1l.c: Likewise.
29951         * math/e_jnl.c: Likewise.
29952         * math/e_lgammal_r.c: Likewise.
29953         * math/e_rem_pio2l.c: Likewise.
29954         * math/e_scalb.c: Likewise.
29955         * math/e_scalbf.c: Likewise.
29956         * math/e_scalbl.c: Likewise.
29957         * math/k_cosl.c: Likewise.
29958         * math/k_sinl.c: Likewise.
29959         * math/k_tanl.c: Likewise.
29960         * math/s_cacoshf.c: Likewise.
29961         * math/s_catan.c: Likewise.
29962         * math/s_catanf.c: Likewise.
29963         * math/s_catanh.c: Likewise.
29964         * math/s_catanhf.c: Likewise.
29965         * math/s_catanhl.c: Likewise.
29966         * math/s_catanl.c: Likewise.
29967         * math/s_ccosh.c: Likewise.
29968         * math/s_ccoshf.c: Likewise.
29969         * math/s_ccoshl.c: Likewise.
29970         * math/s_cexp.c: Likewise.
29971         * math/s_cexpf.c: Likewise.
29972         * math/s_cexpl.c: Likewise.
29973         * math/s_clog.c: Likewise.
29974         * math/s_clog10.c: Likewise.
29975         * math/s_clog10f.c: Likewise.
29976         * math/s_clog10l.c: Likewise.
29977         * math/s_clogf.c: Likewise.
29978         * math/s_clogl.c: Likewise.
29979         * math/s_csin.c: Likewise.
29980         * math/s_csinf.c: Likewise.
29981         * math/s_csinh.c: Likewise.
29982         * math/s_csinhf.c: Likewise.
29983         * math/s_csinhl.c: Likewise.
29984         * math/s_csinl.c: Likewise.
29985         * math/s_csqrt.c: Likewise.
29986         * math/s_csqrtf.c: Likewise.
29987         * math/s_csqrtl.c: Likewise.
29988         * math/s_ctan.c: Likewise.
29989         * math/s_ctanf.c: Likewise.
29990         * math/s_ctanh.c: Likewise.
29991         * math/s_ctanhf.c: Likewise.
29992         * math/s_ctanhl.c: Likewise.
29993         * math/s_ctanl.c: Likewise.
29994         * math/s_ldexp.c: Likewise.
29995         * math/s_ldexpf.c: Likewise.
29996         * math/s_ldexpl.c: Likewise.
29997         * math/s_significand.c: Likewise.
29998         * math/s_significandf.c: Likewise.
29999         * math/s_significandl.c: Likewise.
30000         * math/w_acos.c: Likewise.
30001         * math/w_acosf.c: Likewise.
30002         * math/w_acosh.c: Likewise.
30003         * math/w_acoshf.c: Likewise.
30004         * math/w_acoshl.c: Likewise.
30005         * math/w_acosl.c: Likewise.
30006         * math/w_asin.c: Likewise.
30007         * math/w_asinf.c: Likewise.
30008         * math/w_asinl.c: Likewise.
30009         * math/w_atan2.c: Likewise.
30010         * math/w_atan2f.c: Likewise.
30011         * math/w_atan2l.c: Likewise.
30012         * math/w_atanh.c: Likewise.
30013         * math/w_atanhf.c: Likewise.
30014         * math/w_atanhl.c: Likewise.
30015         * math/w_cosh.c: Likewise.
30016         * math/w_coshf.c: Likewise.
30017         * math/w_coshl.c: Likewise.
30018         * math/w_dremf.c: Likewise.
30019         * math/w_exp10.c: Likewise.
30020         * math/w_exp10f.c: Likewise.
30021         * math/w_exp10l.c: Likewise.
30022         * math/w_exp2.c: Likewise.
30023         * math/w_exp2f.c: Likewise.
30024         * math/w_fmod.c: Likewise.
30025         * math/w_fmodf.c: Likewise.
30026         * math/w_fmodl.c: Likewise.
30027         * math/w_hypot.c: Likewise.
30028         * math/w_hypotf.c: Likewise.
30029         * math/w_hypotl.c: Likewise.
30030         * math/w_j0.c: Likewise.
30031         * math/w_j0f.c: Likewise.
30032         * math/w_j0l.c: Likewise.
30033         * math/w_j1.c: Likewise.
30034         * math/w_j1f.c: Likewise.
30035         * math/w_j1l.c: Likewise.
30036         * math/w_jn.c: Likewise.
30037         * math/w_jnf.c: Likewise.
30038         * math/w_jnl.c: Likewise.
30039         * math/w_lgamma.c: Likewise.
30040         * math/w_lgamma_r.c: Likewise.
30041         * math/w_lgammaf.c: Likewise.
30042         * math/w_lgammaf_r.c: Likewise.
30043         * math/w_lgammal.c: Likewise.
30044         * math/w_lgammal_r.c: Likewise.
30045         * math/w_log.c: Likewise.
30046         * math/w_log10.c: Likewise.
30047         * math/w_log10f.c: Likewise.
30048         * math/w_log10l.c: Likewise.
30049         * math/w_log2.c: Likewise.
30050         * math/w_log2f.c: Likewise.
30051         * math/w_log2l.c: Likewise.
30052         * math/w_logf.c: Likewise.
30053         * math/w_logl.c: Likewise.
30054         * math/w_pow.c: Likewise.
30055         * math/w_powf.c: Likewise.
30056         * math/w_powl.c: Likewise.
30057         * math/w_remainder.c: Likewise.
30058         * math/w_remainderf.c: Likewise.
30059         * math/w_remainderl.c: Likewise.
30060         * math/w_scalb.c: Likewise.
30061         * math/w_scalbf.c: Likewise.
30062         * math/w_scalbl.c: Likewise.
30063         * math/w_sinh.c: Likewise.
30064         * math/w_sinhf.c: Likewise.
30065         * math/w_sinhl.c: Likewise.
30066         * math/w_sqrt.c: Likewise.
30067         * math/w_sqrtf.c: Likewise.
30068         * math/w_sqrtl.c: Likewise.
30069         * math/w_tgamma.c: Likewise.
30070         * math/w_tgammaf.c: Likewise.
30071         * math/w_tgammal.c: Likewise.
30072
30073         * po/ja.po: Update from translation team.
30074
30075 2011-09-29  Andreas Jaeger  <aj@suse.de>
30076
30077         [BZ #13179]
30078         * sunrpc/netname.c (netname2host): Fix logic.
30079
30080         [BZ #6779]
30081         [BZ #6783]
30082         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
30083         correctly.
30084         * math/w_remainder.c (__remainder): Likewise.
30085         * math/w_remainderf.c (__remainderf): Likewise.
30086         * math/libm-test.inc (remainder_test): Add test cases.
30087
30088 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30089
30090         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
30091         sdiv_qrnnd.
30092
30093 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
30094
30095         * string/test-memcmp.c: Avoid unncessary #defines.
30096         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
30097
30098 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30099
30100         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
30101         Use new sse2 version for core i3 - i7 as it's faster
30102         than sse42 version.
30103         (bit_Prefer_PMINUB_for_stringop): New.
30104         * sysdeps/x86_64/rawmemchr.S: Update.
30105         Replace with faster SSE2 version.
30106         * sysdeps/x86_64/memrchr.S: New file.
30107         * sysdeps/x86_64/memchr.S: Update.
30108         Replace with faster SSE2 version.
30109
30110 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
30111
30112         * elf/dl-load.c (lose): Add cast to avoid warning.
30113
30114 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
30115
30116         * po/ca.po: Update from translation team.
30117
30118         * inet/getnetgrent_r.c: Hook up nscd.
30119         * nscd/Makefile (routines): Add nscd_netgroup.
30120         (nscd-modules): Add netgroupcache.
30121         (CFLAGS-netgroupcache.c): Define.
30122         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
30123         (cache_search): Add const to second parameter.
30124         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
30125         INNETGR.
30126         (dbs): Add netgrdb entry.
30127         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
30128         (verify_persistent_db): Handle netgrdb.
30129         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
30130         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
30131         GETFDNETGR.
30132         (netgroup_response_header): Define.
30133         (innetgroup_response_header): Define.
30134         (datahead): Add netgroup_response_header and innetgroup_response_header
30135         elements.
30136         * nscd/nscd.conf: Add entries for netgroup cache.
30137         * nscd/nscd.h (dbtype): Add netgrdb.
30138         (_PATH_NSCD_NETGROUP_DB): Define.
30139         (netgroup_iov_disabled): Declare.
30140         (xmalloc, xcalloc, xrealloc): Move declarations here.
30141         (cache_search): Adjust prototype.
30142         Add netgroup-related prototypes.
30143         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
30144         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
30145         (__nscd_innetgr): Declare.
30146         * nscd/selinux.c (perms): Use access_vector_t as element type and
30147         add netgroup-related initializers.
30148         * nscd/netgroupcache.c: New file.
30149         * nscd/nscd_netgroup.c: New file.
30150         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
30151         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
30152         For four parameters use innetgr.
30153         * nss/nss_files/files-init.c: Add definition and callback for netgr.
30154         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
30155         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
30156         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
30157
30158         * nscd/connections.c (register_traced_file): Don't register file
30159         for disabled databases.
30160
30161 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
30162
30163         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
30164
30165         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
30166         from tree and freeing node.
30167
30168 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
30169
30170         * nss/nsswitch.c (__nss_database_lookup): Handle
30171         nss_parse_service_list out of memory case.
30172
30173 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
30174
30175         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
30176         out of memory case.
30177
30178 2011-10-04  Andreas Schwab  <schwab@redhat.com>
30179
30180         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
30181         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
30182         pass it down.
30183         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
30184         elf_machine_rela, elf_machine_lazy_rel.
30185         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
30186         (ELF_DYNAMIC_DO_REL): Likewise.
30187         (ELF_DYNAMIC_DO_RELA): Likewise.
30188         (ELF_DYNAMIC_RELOCATE): Likewise.
30189         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
30190         to ELF_DYNAMIC_DO_REL.
30191         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
30192         (dl_main): In trace mode always set __RTLD_NOIFUNC.
30193         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
30194         elf_machine_rela.
30195         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
30196         skip_ifunc, don't call ifunc function if non-zero.
30197         (elf_machine_rela): Likewise.
30198         (elf_machine_lazy_rel): Likewise.
30199         (elf_machine_lazy_rela): Likewise.
30200         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
30201         (elf_machine_lazy_rel): Likewise.
30202         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
30203         Likewise.
30204         (elf_machine_lazy_rel): Likewise.
30205         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
30206         Likewise.
30207         (elf_machine_lazy_rel): Likewise.
30208         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
30209         (elf_machine_lazy_rel): Likewise.
30210         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
30211         (elf_machine_lazy_rel): Likewise.
30212         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
30213         (elf_machine_lazy_rel): Likewise.
30214         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
30215         (elf_machine_lazy_rel): Likewise.
30216         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
30217         (elf_machine_lazy_rel): Likewise.
30218         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
30219         (elf_machine_lazy_rel): Likewise.
30220
30221 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
30222
30223         * nss/nss_files/files-init.c (_nss_files_init): Use static
30224         initialization for all the *_traced_file variables.
30225
30226 2011-09-28  Andreas Schwab  <schwab@redhat.com>
30227
30228         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30229
30230 2011-09-27  Roland McGrath  <roland@hack.frob.com>
30231
30232         [BZ #13226]
30233         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
30234
30235 2011-09-27  Andreas Schwab  <schwab@redhat.com>
30236
30237         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
30238         Reread the line before reparsing it.
30239
30240 2011-09-26  Andreas Schwab  <schwab@redhat.com>
30241
30242         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
30243
30244 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
30245             Maxim Kuvyrkov  <maxim@codesourcery.com>
30246             Joseph Myers  <joseph@codesourcery.com>
30247
30248         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
30249         if needed for __stack_chk_guard.
30250
30251 2011-09-19  Roland McGrath  <roland@hack.frob.com>
30252
30253         * sysdeps/posix/spawni.c (script_execute): Always define it.
30254         It will be optimized away if unused.
30255         (maybe_script_execute): New function.
30256         (__spawni): Call it.
30257
30258         * Makerules: Don't include tls.make.
30259         (config-tls): Always set to thread.
30260         * tls.make.c: File removed.
30261
30262 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
30263
30264         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
30265         * config.make.in (CPPFLAGS-config): New substituted variable.
30266
30267 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
30268
30269         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
30270
30271         [BZ #13192]
30272         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
30273         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
30274
30275 2011-09-15  Roland McGrath  <roland@hack.frob.com>
30276
30277         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
30278         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
30279         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
30280         (CALL_FAIL): Likewise.
30281         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
30282         (CALL_FAIL): Macro removed.
30283         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
30284
30285 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
30286
30287         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
30288         for __FINITE_MATH_ONLY__ == 1.
30289
30290 2011-09-15  Andreas Schwab  <schwab@redhat.com>
30291
30292         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
30293         __ieee754_sqrt instead of sqrt.
30294         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
30295         __ieee754_sqrtf instead of sqrtf.
30296         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
30297         __floorf instead of floorf.
30298         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
30299         __floorf, __truncf instead of floorf, truncf.
30300
30301 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
30302
30303         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
30304
30305         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
30306         __extern_always_inline.
30307         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
30308         32-bit.
30309
30310 2011-09-14  Andreas Schwab  <schwab@redhat.com>
30311
30312         * elf/rtld.c (dl_main): Also relocate in dependency order when
30313         doing symbol dependency testing.
30314
30315 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
30316
30317         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
30318         Always define `refsym'.
30319
30320 2011-09-13  Andreas Schwab  <schwab@redhat.com>
30321
30322         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
30323         (__FD_ELT): Renamed from __FDELT.
30324         * misc/bits/select2.h (__FD_ELT): Likewise.
30325         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
30326         __FD_MASK instead of __FDELT, __FDMASK.
30327         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
30328         Likewise.
30329         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
30330         Likewise.
30331
30332         * elf/Makefile (gen-ldd): Fix pattern.
30333
30334         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
30335         (init_tls): Likewise.
30336
30337 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
30338
30339         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
30340
30341 2011-09-12  Andreas Schwab  <schwab@redhat.com>
30342
30343         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
30344         `struct cmsghdr *' instead of `void *'.
30345         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
30346         Likewise.
30347
30348 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
30349
30350         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
30351         if non-absolute.
30352         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
30353         ldd_rewrite_script.
30354
30355 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
30356
30357         * configure.in: Remove --with-tls option.
30358         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
30359         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
30360         out in case it is missing.
30361         * sysdeps/ia64/elf/configure.in: Likewise.
30362         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
30363         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
30364         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
30365         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
30366         * sysdeps/sh/elf/configure.in: Likewise.
30367         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
30368         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
30369         * sysdeps/x86_64/elf/configure.in: Likewise.
30370         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
30371         * sysdeps/mach/hurd/tls.h: Likewise.
30372
30373         [BZ #13067]
30374         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
30375
30376         [BZ #13090]
30377         * configure.in: Fix use of AC_INIT.
30378
30379         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
30380
30381 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
30382
30383         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
30384         __set_errno.
30385         * malloc/hooks.c: Likewise.
30386
30387         [BZ #11929]
30388         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
30389         variables statically.
30390         (narenas): Initialize.
30391         (list_lock): Initialize.
30392         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
30393         initializtion of main_arena and list_lock.  Small cleanups.
30394         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
30395         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
30396         Add initializers to main_arena and mp_.
30397         (malloc_state): Remove pagesize member.  Change all users to use
30398         GLRO(dl_pagesize).
30399
30400         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
30401         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
30402         is always initialized.
30403
30404         * malloc/malloc.c: Removed unused configurations and dead code.
30405         * malloc/arena.c: Likewise.
30406         * malloc/hooks.c: Likewise.
30407         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
30408
30409         * include/tls.h: Removed.  USE___THREAD must always be defined.
30410         * bits/libc-tsd.h: Don't handle !USE___THREAD.
30411         * elf/dl-libc.c: Likewise.
30412         * elf/dl-tsd.c: Likewise.
30413         * include/errno.h: Likewise.
30414         * include/netdb.h: Likewise.
30415         * include/resolv.h: Likewise.
30416         * inet/herrno-loc.c: Likewise.
30417         * inet/herrno.c: Likewise.
30418         * malloc/arena.c: Likewise.
30419         * malloc/hooks.c: Likewise.
30420         * malloc/malloc.c: Likewise.
30421         * resolv/res-state.c: Likewise.
30422         * resolv/res_libc.c: Likewise.
30423         * sysdeps/i386/dl-machine.h: Likewise.
30424         * sysdeps/ia64/dl-machine.h: Likewise.
30425         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
30426         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
30427         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
30428         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
30429         * sysdeps/sh/dl-machine.h: Likewise.
30430         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
30431         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
30432         * sysdeps/unix/i386/sysdep.S: Likewise.
30433         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
30434         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
30435         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
30436         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
30437         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
30438         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
30439         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
30440         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
30441         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
30442         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
30443         * sysdeps/unix/x86_64/sysdep.S: Likewise.
30444         * sysdeps/x86_64/dl-machine.h: Likewise.
30445         * tls.make.c: Likewise.
30446
30447         * configure.in: Remove --with-__thread option.  Make tests for
30448         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
30449         tls_model attribute fail if no support is available.  Remove
30450         USE_IN_LIBIO.
30451         * Makeconfig: Adjust for dropped configure option.  All features are
30452         now mandatory.
30453         * Makerules: Likewise.
30454         * Versions.def: Likewise.
30455         * argp/argp-fmtstream.c: Likewise.
30456         * argp/argp-fmtstream.h: Likewise.
30457         * argp/argp-help.c: Likewise.
30458         * assert/assert.c: Likewise.
30459         * config.h.in: Likewise.
30460         * config.make.in: Likewise.
30461         * configure: Likewise.
30462         * configure.in: Likewise.
30463         * csu/Versions: Likewise.
30464         * csu/init.c: Likewise.
30465         * elf/tst-audit2.c: Likewise.
30466         * elf/tst-tls10.c: Likewise.
30467         * elf/tst-tls10.h: Likewise.
30468         * elf/tst-tls11.c: Likewise.
30469         * elf/tst-tls12.c: Likewise.
30470         * elf/tst-tls14.c: Likewise.
30471         * elf/tst-tlsmod11.c: Likewise.
30472         * elf/tst-tlsmod12.c: Likewise.
30473         * elf/tst-tlsmod13.c: Likewise.
30474         * elf/tst-tlsmod13a.c: Likewise.
30475         * elf/tst-tlsmod14a.c: Likewise.
30476         * elf/tst-tlsmod15b.c: Likewise.
30477         * elf/tst-tlsmod16a.c: Likewise.
30478         * elf/tst-tlsmod16b.c: Likewise.
30479         * elf/tst-tlsmod7.c: Likewise.
30480         * elf/tst-tlsmod8.c: Likewise.
30481         * elf/tst-tlsmod9.c: Likewise.
30482         * gmon/gmon.c: Likewise.
30483         * grp/fgetgrent_r.c: Likewise.
30484         * grp/putgrent.c: Likewise.
30485         * hurd/fopenport.c: Likewise.
30486         * include/libc-symbols.h: Likewise.
30487         * include/tls.h: Likewise.
30488         * intl/gettextP.h: Likewise.
30489         * intl/loadinfo.h: Likewise.
30490         * locale/global-locale.c: Likewise.
30491         * locale/localeinfo.h: Likewise.
30492         * mach/devstream.c: Likewise.
30493         * malloc/arena.c: Likewise.
30494         * malloc/set-freeres.c: Likewise.
30495         * misc/err.c: Likewise.
30496         * misc/getttyent.c: Likewise.
30497         * misc/mntent_r.c: Likewise.
30498         * posix/getopt.c: Likewise.
30499         * posix/wordexp.c: Likewise.
30500         * pwd/fgetpwent_r.c: Likewise.
30501         * resolv/Versions: Likewise.
30502         * resolv/res_hconf.c: Likewise.
30503         * shadow/fgetspent_r.c: Likewise.
30504         * shadow/putspent.c: Likewise.
30505         * stdio-common/printf_fphex.c: Likewise.
30506         * stdio-common/tmpfile.c: Likewise.
30507         * stdlib/abort.c: Likewise.
30508         * stdlib/fmtmsg.c: Likewise.
30509         * sunrpc/auth_unix.c: Likewise.
30510         * sunrpc/clnt_perr.c: Likewise.
30511         * sunrpc/clnt_tcp.c: Likewise.
30512         * sunrpc/clnt_udp.c: Likewise.
30513         * sunrpc/clnt_unix.c: Likewise.
30514         * sunrpc/openchild.c: Likewise.
30515         * sunrpc/svc_simple.c: Likewise.
30516         * sunrpc/svc_tcp.c: Likewise.
30517         * sunrpc/svc_udp.c: Likewise.
30518         * sunrpc/svc_unix.c: Likewise.
30519         * sunrpc/xdr.c: Likewise.
30520         * sunrpc/xdr_array.c: Likewise.
30521         * sunrpc/xdr_rec.c: Likewise.
30522         * sunrpc/xdr_ref.c: Likewise.
30523         * sunrpc/xdr_stdio.c: Likewise.
30524
30525 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
30526
30527         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30528
30529 2011-07-03  Andreas Jaeger  <aj@suse.de>
30530
30531         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
30532         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
30533         regenerate with gen-libm-tests.pl.
30534
30535 2010-05-12  Petr Baudis  <pasky@suse.cz>
30536
30537         [BZ #11589]
30538         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
30539         around j0() zero points by switching to j1().
30540         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
30541         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
30542         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
30543         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
30544
30545 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
30546
30547         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
30548         instead of 0.
30549         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
30550         instead of 0.
30551         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
30552         Patch in part by Pavel Roskin <proski@gnu.org>.
30553
30554         [BZ #13138]
30555         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
30556         realloc.
30557         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
30558         Free memory block if necessary.
30559
30560         [BZ #12847]
30561         * libio/genops.c (INTDEF): For string streams the _lock pointer can
30562         be NULL.  Don't lock in this case.
30563
30564 2011-09-09  Roland McGrath  <roland@hack.frob.com>
30565
30566         * elf/elf.h (ELFOSABI_GNU): New macro.
30567         (ELFOSABI_LINUX): Define to that.
30568
30569 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
30570
30571         * string/strncat.c (strncat): Undef the symbol in case it has been
30572         defined in bits/string.h.
30573
30574 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
30575
30576         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
30577
30578         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
30579         link map.
30580
30581 2011-08-17  Andreas Jaeger  <aj@suse.de>
30582
30583         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
30584
30585 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
30586             Ian Lance Taylor  <iant@google.com>
30587
30588         * math/libm-test.inc (lround_test): New testcase.
30589         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
30590
30591 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
30592
30593         * Makefile: Remove support for automatic cvs check-ins.
30594         * Makerules: Likewise.
30595         * config.make.in: Likewise.
30596         * configure.in: Likewise.
30597         * intl/Makefile: Likewise.
30598         * locale/Makefile: Likewise.
30599         * po/Makefile: Likewise.
30600         * posix/Makefile: Likewise.
30601         * sysdeps/gnu/Makefile: Likewise.
30602         * sysdeps/mach/hurd/Makefile: Likewise.
30603         * sysdeps/sparc/sparc32/Makefile: Likewise.
30604
30605         [BZ #13118]
30606         * posix/Makefile (bug-regex32-ENV): Define.
30607         Patch by John Stanley <jpsinthemix@verizon.net>.
30608
30609         * misc/Makefile (headers): Add bits/select2.h.
30610         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
30611         * misc/bits/select2.h: New file.
30612         * include/bits/select2.h: New file.
30613         * debug/Makefile (routines): Add fdelt_chk.
30614         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
30615         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
30616         FD_ISSET.
30617         * debug/fdelt_chk.c: New file.
30618
30619         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
30620         * wcsmbs/test-wmemcmp.c: Likewise.
30621         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
30622         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
30623
30624 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30625
30626         * string/Makefile (strop-tests): Add memcmp.
30627         * string/test-wmemcmp.c: New file.
30628         * string/test-memcmp.c: Add wmemcmp support.
30629
30630 2011-09-08  Roland McGrath  <roland@hack.frob.com>
30631
30632         [BZ #13153]
30633         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
30634         2011-07-19 change.
30635
30636         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
30637         garbage value in a __mach_port_mod_refs call in the cases of the
30638         task-self and thread-self ports.
30639
30640 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30641
30642         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
30643
30644 2011-09-08  Andreas Schwab  <schwab@redhat.com>
30645
30646         * elf/dl-load.c (lose): Check for non-null L.
30647
30648 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
30649
30650         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
30651
30652         * elf/dl-libc.c (dlerror_run): Pass back error code from
30653         dl_catch_error.
30654
30655         [BZ #13123]
30656         * elf/dl-load.c (lose): Free l_origin if it is valid.
30657
30658         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
30659         names.
30660         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
30661         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
30662         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
30663         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
30664         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
30665         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
30666
30667 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30668
30669         * sysdeps/powerpc/fpu/e_hypot.c: New file.
30670         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
30671         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
30672         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
30673         * sysdeps/powerpc/fpu/k_cosf.c: New file.
30674         * sysdeps/powerpc/fpu/k_sinf.c: New file.
30675         * sysdeps/powerpc/fpu/s_cosf.c: New file.
30676         * sysdeps/powerpc/fpu/s_sinf.c: New file.
30677         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
30678         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
30679
30680 2011-08-15  Alan Modra  <amodra@gmail.com>
30681
30682         [BZ #13092]
30683         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
30684         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
30685         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
30686         ppc_mcount to static-only-routines.
30687         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
30688         __mcount_internal.
30689         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
30690         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
30691
30692 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
30693
30694         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
30695         for finite and infinity parameters.
30696
30697 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
30698
30699         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
30700         and add nop instructions for throughput optimization.
30701         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
30702
30703 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
30704
30705         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
30706         aligned copy for power7 with vector-scalar instructions.
30707         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
30708
30709 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
30710
30711         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
30712         AVX check.
30713
30714 2011-09-07  Andreas Schwab  <schwab@redhat.com>
30715
30716         [BZ #13144]
30717         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
30718         last change.
30719
30720 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
30721
30722         * sysdeps/unix/sysv/linux/x86_64/init-first.c
30723         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
30724         syscall wrapper around clock_gettime in __vdso_clock_gettime.
30725         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
30726         clock_gettime.
30727
30728 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
30729
30730         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
30731         Forgot to demangle the pointer.
30732
30733         * sysdeps/i386/sysdep.h: Define atom_text_section.
30734         * sysdeps/x86_64/sysdep.h: Likewise.
30735         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
30736         section with atom_text_section.
30737         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
30738         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
30739         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
30740         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
30741         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
30742
30743         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
30744         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
30745         already be defined.  Change to take two parameters and don't assign
30746         result to variable.  Adjust all users.
30747         Define INTERNAL_GETTIME if not already defined.
30748         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
30749         call.
30750         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
30751         HAVE_CLOCK_GETTIME_VSYSCALL.
30752         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
30753
30754         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
30755         gettimeofday vsyscall, just use time.
30756
30757 2011-09-06  Andreas Schwab  <schwab@redhat.com>
30758
30759         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
30760         <errno.h>.
30761
30762 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
30763
30764         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
30765         syscall on x86-64.
30766         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
30767         syscall.
30768         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
30769         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
30770         syscall if possible.
30771
30772 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
30773
30774         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
30775         e_ident.  Don't pass to find_mapsXX.
30776         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
30777
30778 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30779
30780         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
30781         strchr-sse2-no-bsf strrchr-sse2-no-bsf
30782         * sysdeps/x86_64/multiarch/strchr.S: Update.
30783         Check bit_slow_BSF bit.
30784         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
30785         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
30786         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
30787
30788 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
30789
30790         [BZ #13134]
30791         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
30792         before glibc 2.15.
30793         (tryshell): Define.
30794         (__spawni): Change last parameter to be flag.  Test
30795         SPAWN_XFLAGS_USE_PATH flag to use path or not.
30796         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
30797         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
30798         * posix/spawni.c: Likewise.
30799         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
30800         * posix/spawnp.c: Likewise.  Change normal version to use
30801         SPAWN_XFLAGS_USE_PATH.
30802         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
30803         SPAWN_XFLAGS_TRY_SHELL.
30804
30805         [BZ #13150]
30806         * posix/glob.h: Remove gcc 1.x support.
30807
30808         [BZ #13068]
30809         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
30810
30811 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
30812
30813         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
30814         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
30815         strrchr-sse2-bsf
30816         * sysdeps/i386/i686/multiarch/strchr.S: New file.
30817         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
30818         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
30819         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
30820         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
30821         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
30822
30823 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30824
30825         * sysdeps/x86_64/wcscmp.S: New file.
30826
30827         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
30828         wcscmp-c wcscmp-sse2
30829         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
30830         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
30831         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
30832         * wcsmbs/wcscmp.c: Allow renaming.
30833
30834 2011-09-05  David S. Miller  <davem@davemloft.net>
30835
30836         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
30837         stack slot, rather than the struct return pointer slot.
30838         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
30839         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
30840         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
30841         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
30842
30843 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
30844
30845         * po/ja.po: Update from translation team.
30846
30847         [BZ #13144]
30848         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
30849         kernel in 64-bit binaries.
30850
30851 2011-09-01  David S. Miller  <davem@davemloft.net>
30852
30853         * elf/elf.h (HWCAP_SPARC_*): Move to..
30854         * sysdeps/sparc/sysdep.h: this new file and add new values.
30855         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
30856         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
30857         _DL_HWCAP_COUNT to 24.
30858         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
30859         entries.
30860         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
30861         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
30862         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
30863         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
30864         instead of magic constants.
30865         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
30866
30867 2011-08-31  David S. Miller  <davem@davemloft.net>
30868
30869         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
30870         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
30871         Reimplement to do errno handling inline.
30872         (SYSCALL_ERROR_HANDLER): New macro.
30873         (__SYSCALL_STRING): Do not do errno handling in asm.
30874         (__CLONE_SYSCALL_STRING): Delete.
30875         (__INTERNAL_SYSCALL_STRING): Delete.
30876         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
30877         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
30878         (PSEUDO): Reimplement to do errno handling inline.
30879         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
30880         (SYSCALL_ERROR_HANDLER): New macro.
30881         (__SYSCALL_STRING): Do not do errno handling in asm.
30882         (__CLONE_SYSCALL_STRING): Delete.
30883         (__INTERNAL_SYSCALL_STRING): Delete.
30884         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
30885         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
30886         i386.
30887         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
30888         (inline_syscall*): Add 'err' argument.
30889         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
30890         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
30891         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
30892         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
30893
30894         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
30895         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
30896
30897 2011-08-30  Andreas Schwab  <schwab@redhat.com>
30898
30899         * elf/rtld.c (dl_main): Relocate objects in dependency order.
30900
30901 2011-08-29  Jiri Olsa <jolsa@redhat.com>
30902
30903         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
30904         directive.
30905
30906 2011-08-24  David S. Miller  <davem@davemloft.net>
30907
30908         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
30909
30910 2011-08-24  Andreas Schwab  <schwab@redhat.com>
30911
30912         * elf/Makefile: Add rules to build and run unload8 test.
30913         * elf/unload8.c: New file.
30914         * elf/unload8mod1.c: New file.
30915         * elf/unload8mod1x.c: New file.
30916         * elf/unload8mod2.c: New file.
30917         * elf/unload8mod3.c: New file.
30918
30919         * elf/dl-close.c (_dl_close_worker): Reset private search list if
30920         it wasn't used.
30921
30922 2011-08-23  David S. Miller  <davem@davemloft.net>
30923
30924         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
30925         subtract stack bias.
30926         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
30927         %sp not %fp in calculations.
30928         (_JMPBUF_UNWINDS_ADJ): Likewise.
30929
30930         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
30931         (aio_suspend): Call it to force an exception region around the
30932         AIO_MISC_WAIT() invocation.
30933
30934 2011-08-23  Andreas Schwab  <schwab@redhat.com>
30935
30936         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
30937         backslash.
30938
30939 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
30940
30941         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
30942         protection macro.
30943         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
30944         and <dl-machine.h>.
30945         (Elf64_FuncDesc): Remove.
30946
30947 2011-08-22  David S. Miller  <davem@davemloft.net>
30948
30949         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
30950         sigaltstack check, add missing cfi directives.
30951         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
30952         missing cfi directives, and sigaltstack handling.
30953
30954 2011-08-16  Andreas Schwab  <schwab@redhat.com>
30955
30956         [BZ #11724]
30957         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
30958         object is seen twice.
30959         * elf/dl-fini.c (_dl_sort_fini): Likewise.
30960
30961         * elf/Makefile (distribute): Add tst-initorder2.c.
30962         (tests): Add tst-initorder2.
30963         (modules-names): Add tst-initorder2a tst-initorder2b
30964         tst-initorder2c tst-initorder2d.  Add rules to build them.
30965         ($(objpfx)tst-initorder2.out): New rule.
30966         * elf/tst-initorder2.c: New file.
30967         * elf/tst-initorder2.exp: New file.
30968
30969 2011-08-22  Andreas Schwab  <schwab@redhat.com>
30970
30971         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
30972
30973         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
30974         dependencies back to end of function.
30975
30976         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
30977         $(elfobjdir)/ld.so.
30978
30979 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
30980
30981         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
30982         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
30983         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
30984         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
30985         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
30986         of __vdso_gettimeofday.
30987         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
30988         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
30989         attribute_hidden.
30990         (_libc_vdso_platform_setup): Remove initialization of
30991         __vdso_gettimeofday and __vdso_time.
30992
30993 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
30994
30995         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
30996         and fgetc_unlocked.
30997         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
30998         getc_unlocked.
30999
31000         * elf/dl-open.c (add_to_global): Report additions to the global scope
31001         for LD_DEBUG=scopes.
31002         (dl_open_worker): Also print scope of newly loaded dependencies.
31003         (_dl_show_scope): Indicate if there is no scope.
31004
31005         [BZ #13114]
31006         * stdio-common/Makefile (tests): Add bug24.
31007         * stdio-common/bug24.c: New file.
31008
31009 2011-08-19  Andreas Jaeger  <aj@suse.de>
31010
31011         [BZ #13114]
31012         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
31013         non-existant file when using close-on-exec mode.
31014
31015 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
31016
31017         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
31018         the very first instruction.
31019
31020         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
31021         the CFI state in the end.
31022         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
31023         inclusion of dl-trampoline.h.
31024         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
31025
31026 2011-08-19  Andreas Schwab  <schwab@redhat.com>
31027
31028         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
31029         expectations for long double.
31030
31031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
31032         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
31033
31034 2011-08-14  David S. Miller  <davem@davemloft.net>
31035
31036         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
31037         artificual limit depends upon the system page size.
31038
31039 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
31040
31041         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
31042         * resolv/Makefile: Define CFLAGS-libresolv.
31043
31044 2011-08-17  Andreas Schwab  <schwab@redhat.com>
31045
31046         * nss/makedb.c (compute_tables): Make variables used in nested
31047         function static.
31048
31049 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
31050
31051         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
31052         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
31053         if buffer was too small.
31054
31055         * elf/pldd.c (main): Attach to all threads in the process.
31056         Rewrite /proc handling to use *at functions.
31057
31058 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
31059
31060         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
31061         specifies first scope to show.
31062         (dl_open_worker): Update callers.  Move printing scope of new
31063         object to before the relocation.
31064         * elf/rtld.c (dl_main): Update _dl_show_scope call.
31065         * sysdeps/generic/ldsodefs.h: Update declaration.
31066
31067         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
31068         string for the scope number.
31069
31070 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
31071
31072         * nscd/servicescache.c (cache_addserv): Make sure written is always
31073         initialized.
31074
31075 2011-08-14  Roland McGrath  <roland@hack.frob.com>
31076
31077         * sysdeps/i386/i486/bits/atomic.h
31078         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
31079         statement expression, so as to suppress "set but not used" warning.
31080         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
31081
31082         * string/strncat.c (STRNCAT): Use prototype definition.
31083
31084         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
31085         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
31086         -Iprograms here.
31087         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
31088         (localedef-modules): Add localedef.
31089         (locale-modules): Add locale.
31090
31091         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
31092         * elf/rtld.c (dl_main): Invert order of assignment in last change,
31093         to avoid a warning.
31094
31095 2011-08-14  David S. Miller  <davem@davemloft.net>
31096
31097         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
31098         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
31099
31100 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
31101
31102         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
31103         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
31104         * elf/rtld.c (dl_main): Set l_name of vDSO.
31105         Call _dl_show_scope when DL_DEBUG_SCOPES.
31106         (process_dl_debug): Recognize scopes flag and also set it for all.
31107         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
31108         Declare _dl_show_scope.
31109
31110         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
31111         (do_dlopen): Pass caller_dlopen to dl_open.
31112         (__libc_dlopen_mode): Initialize caller_dlopen.
31113
31114         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
31115         of libc.  Make tolower call locale-independent.  Optimize a bit by
31116         using isdigit instead of isalnum.
31117         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
31118
31119 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
31120
31121         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
31122         was a dependency or dynamically loaded.
31123
31124 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
31125
31126         * intl/l10nflist.c: Allow architecture-specific pop function.
31127         * sysdeps/x86_64/l10nflist.c: New file.
31128
31129         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
31130         classification.
31131
31132 2011-08-10  Andreas Schwab  <schwab@redhat.com>
31133
31134         * include/dirent.h: Add libc_hidden_proto for scandirat and
31135         scandirat64.  Don't declare __scandirat64.
31136         * dirent/scandirat.c: Add libc_hidden_def.
31137         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
31138         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
31139
31140 2011-08-10  David S. Miller  <davem@davemloft.net>
31141
31142         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
31143         enum.
31144         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31145         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31146         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31147
31148 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
31149
31150         * Versions.def [libc]: Add GLIBC_2.15.
31151         * dirent/Makefile (routines): Add scandirat and scandirat64.
31152         * dirent/Versions [libc]: Export scandirat and scandirat64 for
31153         GLIBC_2.15.
31154         * dirent/dirent.h: Declare scandirat and scandirat64.
31155         * dirent/scandirat.c: New file.
31156         * dirent/scandirat64.c: New file.
31157         * sysdeps/wordsize-64/scandirat.c: New file.
31158         * sysdeps/wordsize-64/scandirat64.c: New file.
31159         * dirent/opendir.c: Define opendirat.
31160         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
31161         using scandirat.
31162         * dirent/scandir64.c: Adjust for scandir.c change.
31163         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
31164         __scandirat64, and __scandir_cancel_handler.
31165         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
31166         additional parameter and use openat instead of open (outside of ld.so).
31167         Add new __opendir as wrapper around __opendirat.
31168         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
31169         here without requiring old scandirat implementation.
31170
31171 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
31172
31173         * dirent/scandir.c (cancel_handler): Renamed to
31174         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
31175         defined.  Adjust users.
31176         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
31177         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
31178
31179 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
31180
31181         * string/test-string.h (IMPL): Use __STRING to expand name and then
31182         stringify it.
31183
31184         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
31185         of cleanups.
31186
31187 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31188
31189         * string/Makefile: Update.
31190         (strop-tests): Append strncat.
31191         * string/test-wcscmp.c: New file.
31192         New comprehensive test for wcscmp.
31193         * string/test-strcmp.c: Update.
31194         (WIDE): New define.
31195
31196 2011-07-22  Andreas Schwab  <schwab@redhat.com>
31197
31198         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
31199         line.
31200
31201 2011-07-26  Andreas Schwab  <schwab@redhat.com>
31202
31203         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
31204         encoding to ACE if AI_IDN.
31205
31206 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
31207
31208         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
31209         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
31210
31211 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
31212
31213         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
31214         Fix overflow bug in strncat.
31215         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
31216
31217         * string/test-strncat.c: Update.
31218         Add new tests for checking overflow bugs.
31219
31220 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
31221
31222         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31223         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
31224         * sysdeps/i386/i686/multiarch/strcat.S: New file.
31225         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
31226         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
31227         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
31228         * sysdeps/i386/i686/multiarch/strncat.S: New file.
31229         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
31230         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
31231
31232         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
31233         (USE_AS_STRCAT): Define.
31234         Add strcat and strncat support.
31235         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
31236
31237 2011-07-25  Andreas Schwab  <schwab@redhat.com>
31238
31239         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
31240         __n bigger than INT_MAX+1.
31241         (__strncmp_g): Likewise.
31242
31243 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
31244
31245         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
31246         * libio/stido.h: Likewise.
31247
31248         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
31249         (AF_NFC): Define.
31250         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
31251         (AF_NFC): Define.
31252
31253         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
31254         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31255         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31256         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31257         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31258
31259         [BZ #13021]
31260         * scripts/test-installation.pl: Don't expect libnss_test1 to be
31261         installed.
31262
31263         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
31264         typo.
31265         (_dl_x86_64_save_sse): Likewise.
31266
31267 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
31268
31269         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
31270         OSXSAVE.
31271         (_dl_x86_64_save_sse): Likewise.
31272
31273         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
31274
31275         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
31276
31277 2011-07-21  Andreas Schwab  <schwab@redhat.com>
31278
31279         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
31280         change.
31281         (_dl_x86_64_save_sse): Use correct AVX check.
31282
31283 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31284
31285         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
31286         bug in strncpy/strncat.
31287         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
31288
31289 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
31290
31291         * string/tester.c (test_strcat): Add tests for different alignments
31292         of source and destination.
31293         (test_strncat): Likewise.
31294
31295 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
31296
31297         [BZ #12852]
31298         * posix/glob.c (glob): Check passed in values before using them in
31299         expressions to avoid some overflows.
31300         (glob_in_dir): Likewise.
31301
31302         [BZ #13007]
31303         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
31304         check for AVX enablement so that we don't crash with old kernels and
31305         new hardware.
31306         * elf/tst-audit4.c: Add same checks here.
31307         * elf/tst-audit6.c: Likewise.
31308
31309         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
31310
31311 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
31312
31313         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
31314
31315 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
31316
31317         * po/cs.po: Update from translation team.
31318         * po/bg.po: Likewise.
31319
31320 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
31321
31322         * misc/sys/cdefs.h: Add support for const attribute.
31323         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
31324         to gnu_dev_{major,minor,makedev} functions.
31325
31326 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
31327
31328         * intl/dcigettext.c (get_output_charset): Add missing bracket.
31329
31330 2011-07-20  Andreas Schwab  <schwab@redhat.com>
31331
31332         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
31333         strlen results.
31334
31335 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31336
31337         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
31338         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
31339         register in order to avoid conflicts with the soft frame pointer
31340         being held in r11 when necessary.
31341         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
31342         (INTERNAL_VSYSCALL_NCS): Likewise.
31343
31344 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
31345
31346         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
31347         * elf/dl-fini.c (_dl_fini): Adjust caller.
31348         * elf/dl-close.c (_dl_close_worker): Likewise.
31349         * sysdeps/generic/ldsodefs.h: Adjust declaration.
31350
31351 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
31352
31353         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
31354         "aux_cache->nlibs < 0".
31355
31356         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
31357         in the reload-count case.
31358
31359 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
31360
31361         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31362         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
31363         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
31364         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
31365         * sysdeps/x86_64/multiarch/strcat.S: New file.
31366         * sysdeps/x86_64/multiarch/strncat.S: New file.
31367         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
31368         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
31369         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
31370         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
31371         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
31372         (USE_AS_STRCAT): Define.
31373         Add strcat and strncat support.
31374         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
31375         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
31376         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
31377         * string/strncat.c: Update.
31378         (USE_AS_STRNCAT): Define.
31379         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31380         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
31381         and i7.
31382         * sysdeps/x86_64/multiarch/init-arch.h
31383         (bit_Prefer_PMINUB_for_stringop): New.
31384         (index_Prefer_PMINUB_for_stringop): Likewise.
31385         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
31386         bit_Prefer_PMINUB_for_stringop.
31387
31388 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
31389
31390         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
31391         buffer64.
31392         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
31393         of casting of buffer.
31394         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
31395         buffer32 and buffer64.
31396         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
31397         writes instead of casting of buffer.
31398         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
31399         buffer32.
31400         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
31401         casting of buffer.
31402
31403 2011-07-19  Andreas Schwab  <schwab@redhat.com>
31404
31405         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
31406
31407 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
31408
31409         * nscd/nscd.c (termination_handler): Don't do anything for a database
31410         if it has not yet been initialized.
31411
31412 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
31413
31414         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
31415
31416 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
31417
31418         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
31419
31420 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
31421
31422         * po/nl.po: Update from translation team.
31423         * po/sv.po: Likewise.
31424
31425 2011-07-16  Roland McGrath  <roland@hack.frob.com>
31426
31427         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
31428         now disallowed by GCC.
31429
31430         * configure.in (use-default-link): Default to yes if a test -shared
31431         link meets our qualifications.
31432         * configure: Regenerated.
31433
31434         * config.make.in (output-format): New variable.
31435         * configure.in: Check for ld --print-output-format support.
31436         * configure: Regenerated.
31437         * Makerules ($(common-objpfx)format.lds)
31438         [$(output-format) != unknown]: Just use $(output-format),
31439         instead of the linker-script munging.
31440
31441 2011-07-14  Roland McGrath  <roland@hack.frob.com>
31442
31443         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
31444         of $(common-objpfx)shlib.lds.
31445         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
31446
31447         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
31448         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
31449
31450         * configure.in (-z relro check): Adjust test code to add a large
31451         writable data section after it.
31452         * configure: Regenerated.
31453
31454 2011-07-11  Roland McGrath  <roland@hack.frob.com>
31455
31456         * configure.in (-z relro check): Fix test code to make the variable
31457         truly const.
31458         * configure: Regenerated.
31459
31460 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
31461
31462         * nscd/nscd.h (struct traced_file): Define.
31463         (struct database_dyn): Remove inotify_descr, reset_res, and filename
31464         elements.  Add traced_files.
31465         (inotify_fd): Declare.
31466         (register_traced_file): Declare.
31467         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
31468         (inotify_fd): Export.
31469         (resolv_conf_descr): Remove.
31470         (nscd_init): Move inotify descriptor creation to main.
31471         Don't register files for notification here.
31472         (register_traced_file): New function.
31473         (invalidate_cache): Don't use reset_res to determine whether to call
31474         res_init, go through the list of registered files.
31475         (main_loop_poll): The inotify descriptors are now stored in the
31476         structures for the traced files.
31477         (main_loop_epoll): Likewise
31478         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
31479         to __nss_disable_nscd.
31480         * nscd/cache.c (prune_cache): There is no single inotify descriptor
31481         for a database anymore.  Check the records for all the registered
31482         files instead.
31483         * nss/Makefile (libnss_files-routines): Add files-init.
31484         (libnss_db-routines): Add db-init.
31485         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
31486         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
31487         * nss/nss_db/db-init.c: New file.
31488         * nss/nss_files/files-init.c: New file.
31489         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
31490         __nss_lookup_function.
31491         (__nss_lookup_function): Call nss_load_library.
31492         (nss_load_all_libraries): New function.
31493         (__nss_disable_nscd): Take parameter with callback function for files
31494         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
31495         used for the cached services.
31496         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
31497         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
31498         options for features to all the files in nscd.
31499
31500         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
31501
31502 2011-07-10  Roland McGrath  <roland@hack.frob.com>
31503
31504         * csu/elf-init.c (__libc_csu_init): Comment typo.
31505
31506 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
31507
31508         * po/pl.po: Update from translation team.
31509         * po/ja.po: Likewise.
31510         * po/ru.po: Likewise.
31511         * po/ko.po: Likewise.
31512         * po/fr.po: Likewise.
31513
31514 2011-07-09  Roland McGrath  <roland@hack.frob.com>
31515
31516         * configure.in (.ctors/.dtors header and trailer check):
31517         Use an empirical test on a built program.
31518         * configure: Regenerated.
31519
31520         * configure.in (-z relro check): Use an empirical test on a built DSO.
31521         Detect, but do not require, on ia64.
31522         * configure: Regenerated.
31523
31524         * configure.in (READELF): Find it with AC_CHECK_TOOL.
31525         Update tests that use readelf to use $READELF instead.
31526         * configure: Regenerated.
31527
31528 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
31529
31530         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
31531         if the result is not used.
31532
31533 2011-07-05  Andreas Jaeger  <aj@suse.de>
31534
31535         [BZ#9696]
31536         * stdlib/tst-strtod.c: Add testcase.
31537
31538 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
31539
31540         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
31541         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
31542         The latter has a higher limit.  Take additional parameter to pass to
31543         the new function.
31544         (__pathconf): Pass file to __statfs_link_max.
31545         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
31546         __statfs_link_max.
31547         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
31548         __statfs_link_max.
31549
31550         [BZ #12868]
31551         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
31552         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
31553         Handle Lustre.
31554         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
31555         (__statfs_filesize_max): Likewise.
31556         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
31557
31558 2011-07-05  Andreas Jaeger  <aj@suse.de>
31559
31560         * resolv/res_comp.c (dn_skipname): Remove unused variable.
31561
31562 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
31563
31564         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
31565         `status' variable.
31566         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
31567         Likewise.
31568
31569 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
31570
31571         * Makefile (strop-tests): Add strncat.
31572         * string/test-strncat.c: New file.
31573
31574 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
31575
31576         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
31577
31578 2011-06-21  Andreas Jaeger  <aj@suse.de>
31579
31580         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
31581         Copy rule from iconvdata/Makefile.
31582
31583 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
31584
31585         [BZ #12922]
31586         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
31587         but no long options are defined, just return 'W'.
31588
31589 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
31590
31591         [BZ #9696]
31592         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
31593
31594 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
31595
31596         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
31597         netgroups to read.
31598         (innetgr): Likewise.
31599
31600 2011-07-05  Roland McGrath  <roland@hack.frob.com>
31601
31602         * config.make.in (install_root): Default to $(DESTDIR).
31603
31604 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
31605
31606         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
31607
31608 2011-07-02  Roland McGrath  <roland@hack.frob.com>
31609
31610         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
31611
31612         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
31613         containing directory rather than embedding absolute directory names.
31614
31615         * scripts/check-local-headers.sh: Rewritten using awk.
31616         Match by word, not by line.  Print error messages for matches.
31617         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
31618
31619         * Makerules [shlib-lds-flags empty]:
31620         ($(common-objpfx)libc_pic.opts): New target.
31621         ($(common-objpfx)libc_pic.os.clean): New target.
31622         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
31623
31624         * config.make.in (OBJCOPY): New variable.
31625         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
31626         * configure: Regenerated.
31627
31628         * config.make.in (use-default-link): New variable.
31629         * configure.in (use_default_link): Grok --with-default-link to set it.
31630         * configure: Regenerated.
31631         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
31632         (shlib-lds, shlib-lds-flags): Define to empty.
31633
31634         * Makerules (shlib-lds): New variable.
31635         (shlib-lds-flags): New variable.
31636         (build-shlib, build-moduile, build-module-asneeded): Use it.
31637         ($(common-objpfx)libc.so): Use $(shlib-lds).
31638         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
31639         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
31640
31641         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
31642         DT_FLAGS/DT_FLAGS_1 with zero flags.
31643
31644         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
31645         linker script munging.
31646
31647 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
31648
31649         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
31650         as 128-bit value.
31651         * crypt/sha512.c (sha512_process_block): Perform total addition using
31652         128-bit if possible.
31653         (__sha512_finish_ctx): Likewise.
31654         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
31655         as 64-bit value.
31656         * crypt/sha256.c (SWAP64): Define.
31657         (sha256_process_block): Perform total addition using 64-bit if
31658         possible.
31659         (__sha256_finish_ctx): Likewise.
31660
31661 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
31662
31663         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
31664         * nscd/initgrcache.c (addinitgroupsX): Likewise.
31665         * nscd/hstcache.c (cache_addhst): Likewise.
31666         * nscd/grpcache.c (cache_addgr): Likewise.
31667         * nscd/aicache.c (addhstaiX): Likewise
31668         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
31669
31670 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
31671
31672         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
31673         * nscd/initgrcache.c (addinitgroupsX): Likewise.
31674         * nscd/hstcache.c (cache_addhst): Likewise.
31675         * nscd/grpcache.c (cache_addgr): Likewise.
31676         * nscd/aicache.c (addhstaiX): Likewise
31677
31678 2011-07-01  Andreas Schwab  <schwab@redhat.com>
31679
31680         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
31681         domain only when needed.
31682
31683 2011-06-30  Andreas Schwab  <schwab@redhat.com>
31684
31685         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
31686         is always restored.
31687
31688 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
31689
31690         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
31691         are re-adding the entry.
31692         * nscd/servicescache.c (cache_addserv): Likewise.
31693
31694 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
31695
31696         * sysdeps/generic/dl-irel.h: fix protection against multiple
31697         inclusions.
31698         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
31699
31700 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
31701
31702         [BZ #12935]
31703         * malloc/memusage.sh: Fix quoting in message.
31704         * debug/xtrace.sh: Likewise.
31705
31706         * configure.in: Remove support for --experimental-malloc option, make
31707         it the default.
31708         * config.make.in: Likewise.
31709         * malloc/Makefile: Likewise.
31710
31711 2011-06-27  Andreas Schwab  <schwab@redhat.com>
31712
31713         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
31714         two-byte characters.
31715
31716 2011-06-27  Roland McGrath  <roland@hack.frob.com>
31717
31718         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
31719         AC_CACHE_CHECK invocation.
31720         * configure: Regenerated.
31721
31722         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
31723
31724 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
31725
31726         [BZ #12350]
31727         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
31728         bit from old_res_options.
31729
31730         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
31731
31732         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
31733         value type for setfct.
31734
31735 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
31736
31737         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
31738         __gettimeofday instead of gettimeofday.
31739
31740 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
31741
31742         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
31743
31744 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
31745
31746         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
31747
31748         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
31749         info.
31750
31751 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
31752
31753         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31754         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
31755         strcpy-sse2-unaligned strncpy-sse2-unaligned
31756         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
31757         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
31758         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
31759         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
31760         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
31761         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
31762         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
31763         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
31764         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
31765         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
31766         (STRCPY): Support SSE2 and SSSE3 versions.
31767
31768 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
31769
31770         [BZ #12874]
31771         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
31772         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
31773         kernels which artificially limit size of requests.
31774
31775 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
31776
31777         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31778         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
31779         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
31780         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
31781         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
31782         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
31783         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
31784         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
31785         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
31786         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
31787         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
31788         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
31789         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
31790         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
31791         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
31792         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31793         Enable unaligned load optimization for Intel Core i3, i5 and i7
31794         processors.
31795         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
31796         Define.
31797         (index_Fast_Unaligned_Load): Define.
31798         (HAS_FAST_UNALIGNED_LOAD): Define.
31799
31800 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
31801
31802         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
31803
31804 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
31805
31806         [BZ #12907]
31807         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
31808         until it is clear that the information is realy needed.
31809         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
31810
31811 2011-06-22  Andreas Schwab  <schwab@redhat.com>
31812
31813         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
31814
31815 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
31816
31817         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
31818         /sys/devices/system/cpu/online if it is usable.
31819
31820         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
31821         reading the information from the /proc filesystem to once a second.
31822
31823 2011-06-21  Andreas Jaeger  <aj@suse.de>
31824
31825         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
31826         NULL after inclusion of kernel headers.
31827
31828 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
31829
31830         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
31831         calls to internal_setent.
31832
31833         [BZ #12885]
31834         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
31835         addresses using gethostbyname4_r ignore IPv4 addresses.
31836
31837         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
31838         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
31839
31840         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
31841
31842 2011-06-20  David S. Miller  <davem@davemloft.net>
31843
31844         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
31845         inclusions.
31846         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
31847
31848         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
31849         (elf_irel): Use it.
31850         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
31851         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
31852         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
31853         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
31854         * sysdeps/x86_64/dl-irel.h: Likewise.
31855
31856         * elf/dl-runtime.c: Use elf_ifunc_invoke.
31857         * elf/dl-sym.c: Likewise.
31858
31859 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
31860
31861         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
31862         need to dereference resplen2.
31863
31864 2011-06-14  Andreas Schwab  <schwab@redhat.com>
31865
31866         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
31867
31868 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
31869
31870         * Makeconfig: Define vardbdir and inst_vardbdir.
31871         * nss/Makefile: Add rules to install db-Makefile.
31872
31873         * nss/nss_db/db-XXX.c: Cleanup.
31874
31875         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
31876         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
31877         GLIBC_PRIVATE.
31878         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
31879         * nss/makedb.c: Implement -g option to specify that value strings
31880         are generated and should not be added to table iterated over for
31881         get*ent calls.
31882         * nss/nss_db/db-initgroups.c: New file.
31883
31884         * nss/getent.c: Add support for initgroups lookups through getgrouplist
31885         interface.
31886
31887         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
31888         (internal_getgrouplist): Adjust to name change.
31889         Update use_initgroups_entry if this is not the first call.
31890         * nss/databases.def: Add initgroups entry.
31891
31892         * nss/makedb.c (compute_tables): Check result of multiple hash table
31893         sizes to minimize maximum chain length.
31894
31895 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
31896
31897         * Versions.def: Add entry for libnss_db.
31898         * shlib-versions: Likewise.
31899         * nss/Makefile: Add rules to build libnss_db.
31900         * nss/Versions: Add libnss_db information.  Organize libnss_files
31901         entries better.
31902         * nss/db-Makefile: Add gshadow support.  Change rules for the new
31903         makedb progra.  Some minor improvements to generate smaller files.
31904         * nss/nss_db/nss_db.h: Move NSS database header data structures to
31905         here from...
31906         * nss/makedb.c: ...here.
31907         Improve database format to be smaller and require less memory at
31908         runtime.
31909         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
31910         db anymore.
31911         * nss/nss_db/db-netgrp.c: Likewise.
31912         * nss/nss_db/db-open.c: Likewise.
31913         * nss/nss_files/flies-XXX.x: Adjust comments.
31914         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
31915         * nss/nss_files/files-grp.c: Likewise.
31916         * nss/nss_files/files-hosts.c: Likewise.
31917         * nss/nss_files/files-network.c: Likewise.
31918         * nss/nss_files/files-proto.c: Likewise.
31919         * nss/nss_files/files-pwd.c: Likewise.
31920         * nss/nss_files/files-rpc.c: Likewise.
31921         * nss/nss_files/files-service.c: Likewise.
31922         * nss/nss_files/files-sgrp.c: Likewise.
31923         * nss/nss_files/files-spwd.c: Likewise.
31924         * nss/nss_db/db-alias.c: Removed.
31925         * nss/nss_db/dummy-db.h: Removed.
31926
31927 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
31928
31929         * nss/makedb.c: Rewritten to not use database library.
31930         * nss/Makefile: Update to build new makedb program.
31931
31932 2011-06-14  Andreas Jaeger  <aj@suse.de>
31933
31934         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
31935         memset declaration.
31936
31937 2011-06-10  Andreas Schwab  <schwab@redhat.com>
31938
31939         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
31940         tmpbuf.
31941
31942 2011-06-10  Roland McGrath  <roland@hack.frob.com>
31943
31944         * Makerules (shlib.lds): Fail if the linker script comes out empty.
31945         * elf/Makefile ($(objpfx)ld.so): Likewise.
31946
31947         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
31948         Don't list ld.so twice in dependencies.
31949
31950         * posix/bug-regex31.c: Include <stdlib.h>.
31951
31952         * nscd/hstcache.c (cache_addhst): Remove unused variable.
31953
31954         * nis/nss_compat/compat-spwd.c
31955         (getspent_next_nss_netgr): Remove unused variable.
31956         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
31957
31958         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
31959         nonmembers" output to use the right array.
31960
31961         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
31962
31963         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
31964
31965         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
31966         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
31967         * catgets/gencat.c (read_input_file): Likewise.
31968         * locale/programs/locarchive.c (enlarge_archive): Likewise.
31969
31970         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
31971         variable definition inside #if's controlling its use.
31972
31973         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
31974
31975         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
31976
31977         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
31978
31979         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
31980         unreachable code.
31981
31982         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
31983
31984         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
31985         * configure: Regenerated.
31986
31987         * Makerules: Revert last change.
31988         * elf/Makefile: Likewise.
31989
31990 2011-06-09  Roland McGrath  <roland@hack.frob.com>
31991
31992         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
31993         * elf/Makefile ($(objpfx)librtld.os): Likewise.
31994         (reloc-link): Likewise.
31995
31996 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
31997
31998         * elf/Makefile: Add rules to build pldd.
31999         * elf/pldd.c: New file.
32000         * elf/pldd-xx.c: New file.
32001
32002 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
32003
32004         * version.h: Update for 2.15 development version.
32005
32006 2011-06-07  David S. Miller  <davem@davemloft.net>
32007
32008         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
32009         ifuncs.
32010         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
32011         elf_machine_lazy_rel): Likewise.
32012         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
32013         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
32014         elf_machine_lazy_rel): Likewise.
32015         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
32016         dl_hwcap via passed in argument.
32017         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
32018         Likewise.
32019
32020 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32021
32022         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
32023
32024 2011-06-06  Roland McGrath  <roland@hack.frob.com>
32025
32026         [BZ #12849]
32027         * manual/fdl-1.1.texi: New file, verbatim from:
32028         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
32029         * manual/lgpl-2.1.texi: New file, verbatim from:
32030         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
32031         * manual/Makefile (licenses): New variable, list those new file names.
32032         (texis): Use it.
32033         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
32034
32035         * manual/fdl.texi: File removed.
32036         * manual/lesser.texi: File removed.
32037         * manual/libc.texinfo (Copying, Documentation License):
32038         Use new @include file names, put @appendix directive before @include.
32039
32040 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
32041
32042         [BZ #12841]
32043         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
32044         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
32045         (mq_open): Add __NTH.
32046
32047 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
32048
32049         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32050         Assume Intel Core i3/i5/i7 processor if AVX is available.
32051
32052 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
32053
32054         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
32055         typo.
32056
32057 2011-05-31  Andreas Schwab  <schwab@redhat.com>
32058
32059         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
32060         memory.  Use alloca_account.  Fix memory leak when retrying.
32061
32062 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
32063
32064         * version.h (RELEASE): Bump for 2.14 release.
32065         * include/features.h (__GLIBC_MINOR__): Bump to 14.
32066
32067         * config.make.in (RANLIB): Remove entry.
32068
32069 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
32070
32071         * po/Makefile (po-sed-cmd): Add ksh to extensions.
32072         (libc.pot): Work around missing support for .ksh extension in xgettext.
32073
32074         [BZ #12684]
32075         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
32076         if both request failed.
32077         (send_dg): In case of server errors clear resplen or *resplen2.
32078
32079         [BZ #12454]
32080         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
32081         when there are multiple maps.
32082         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
32083         (_dl_fini): Remove test here.
32084
32085         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
32086
32087 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
32088
32089         [BZ #12350]
32090         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
32091         bit from old_res_options.
32092         (gaih_inet): Likewise.
32093
32094         [BZ #11099]
32095         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
32096         as signed.
32097
32098         * resolv/res_init.c (res_setoptions): Make the code more compact.
32099
32100         [BZ #11558]
32101         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
32102         set RES_USEVC.
32103
32104         [BZ #11634]
32105         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
32106
32107         * malloc/malloc.h: Mark malloc hook variables as deprecated.
32108
32109         [BZ #11781]
32110         * malloc/malloc.h: Declare malloc hook variables as volatile.
32111
32112         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
32113         in last patch.
32114
32115         [BZ #11799]
32116         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
32117         raise in the comment.
32118         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
32119         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
32120         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
32121
32122 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
32123
32124         [BZ #12811]
32125         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
32126         grow the buffers more if it already has to be sufficient.
32127         (build_wcs_upper_buffer): Likewise.
32128         * posix/regexec.c (check_matching): Likewise.
32129         (clean_state_log_if_needed): Likewise.
32130         (extend_buffers): Don't enlarge buffers beyond size of the input
32131         buffer.
32132         Patches mostly by Emil Wojak <emil@wojak.eu>.
32133         * posix/bug-regex32.c: New file.
32134         * posix/Makefile (tests): Add bug-regex32.
32135
32136         * locale/findlocale.c (_nl_find_locale): Return right away if
32137         _nl_explode_name failed.
32138         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
32139
32140         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
32141
32142         * debug/xtrace.sh: Unify messages.
32143         * malloc/memusage.sh: Likewise.
32144
32145         [BZ #12813]
32146         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
32147         time symbol from vDSO.  Substitute with vsyscall if not available.
32148         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
32149         __vdso_time.
32150
32151         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
32152         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
32153         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
32154         Add sendmmsg and internal_sendmmsg.
32155         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
32156         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
32157         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
32158
32159         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
32160         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
32161         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
32162
32163 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
32164
32165         [BZ #12813]
32166         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
32167         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
32168         available.
32169         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
32170         __vdso_getcpu.
32171
32172         [BZ #12814]
32173         * iconvdata/Makefile (tests): Add bug-iconv9.
32174         * iconvdata/bug-iconv9.c: New file.
32175
32176 2011-05-27  Andreas Schwab  <schwab@redhat.com>
32177
32178         [BZ #12814]
32179         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
32180
32181 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
32182
32183         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
32184         (struct user_regs_struct): Change intcs field back to cs.
32185
32186 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
32187
32188         * po/ja.po: Update from translation team.
32189
32190 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
32191
32192         [BZ #12795]
32193         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
32194         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
32195
32196 2011-05-20  Andreas Schwab  <schwab@redhat.com>
32197
32198         * stdlib/longlong.h: Update from GCC.
32199
32200 2011-05-23  Andreas Schwab  <schwab@redhat.com>
32201
32202         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
32203         parameter name.
32204         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
32205         Add parameter name.
32206         (__sysconf): Pass it down.
32207
32208 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
32209
32210         [BZ #12671]
32211         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
32212         some situations.
32213         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
32214         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
32215         add in in __libc_use_alloca calls.  Adjust callers.
32216         (glob): Use malloc in some situations.
32217
32218         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
32219         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
32220         pltexit.
32221
32222 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
32223
32224         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
32225         and CLOCK_BOOTTIME_ALARM.
32226
32227         [BZ #12782]
32228         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
32229         is returned.
32230
32231         * string/_strerror.c (__strerror_r): Print negative errors as signed
32232         numbers.
32233
32234         [BZ #12777]
32235         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
32236         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
32237         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
32238
32239         * configure.in: Fix typo in redirection and correct removal of test
32240         files in two cases.
32241
32242         [BZ #12788]
32243         * locale/setlocale.c (new_composite_name): Fix test to check for
32244         identical name of all categories.
32245
32246         [BZ #12792]
32247         * libio/filedoalloc.c (local_isatty): New function.
32248         (_IO_file_doallocate): Use local_isatty.
32249         * stdio-common/perror.c (perror): In case a new stream is used
32250         forward the stream error.
32251         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
32252         error flag.
32253
32254 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
32255
32256         [BZ #11869]
32257         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
32258         alloca.
32259         * include/alloca.h (extend_alloca_account): Define.
32260
32261         [BZ #11857]
32262         * posix/regex.h: Fix comments with documentation of user-accessible
32263         fields after compilation and describe correct free'ing of pattern
32264         after re_compile_pattern.
32265         Patch by Reuben Thomas <rrt@sc3d.org>.
32266
32267 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
32268
32269         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
32270         and -mno-altivec to prevent the compiler from using Altivec and/or
32271         VSX instructions when the corresponding registers are not available.
32272
32273 2011-05-19  Andreas Schwab  <schwab@redhat.com>
32274
32275         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
32276
32277 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
32278
32279         * libio/freopen.c (freopen): Use __dup2, not dup2.
32280         * libio/freopen64.c (freopen64): Likewise.
32281
32282 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32283
32284         [BZ #12775]
32285         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
32286         * math/Makefile (tests): Add test-powl.
32287         (CFLAGS-test-powl.c): Define.
32288         * math/test-powl.c: New file.
32289
32290 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32291
32292         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
32293
32294 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
32295
32296         [BZ #11837]
32297         * iconvdata/gb18030.c: Update to GB18020-2005.
32298
32299 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
32300
32301         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
32302         RE_SYNTAX_POSIX_AWK): Update to match recent development.
32303         Patch by Aharon Robbins <arnold@skeeve.com>.
32304
32305         [BZ #11892]
32306         * stdlib/putenv.c (putenv): Don't always create copy of the variable
32307         on the stack.
32308
32309         [BZ #11895]
32310         * misc/pselect.c (__pselect): Handle timeout value errors hidden
32311         through underflows.
32312
32313         [BZ #12766]
32314         * misc/error.c (error_at_line): Ensure file_name and old_file_name
32315         point to strings before performing equality test for error_one_per_line
32316         mode.
32317
32318         [BZ #11697]
32319         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
32320
32321         [BZ #11820]
32322         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
32323         (struct user_fpregs_struct): Avoid __uint*_t types.
32324
32325         [BZ #6420]
32326         * malloc/mtrace.c (tr_where): Add additional parameter to point to
32327         symbol info.  Use it instead of calling _dl_addr locally.
32328         (lock_and_info): New function.
32329         (tr_freehook): Call lock_and_info and pass symbol info as additional
32330         parameter to tr_where.
32331         (tr_mallochook): Likewise.
32332         (tr_reallochook): Likewise.
32333         (tr_memalignhook): Likewise.
32334
32335         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
32336         used and couldn't be at all thread-safe.
32337
32338 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
32339
32340         * libio/freopen.c (freopen): Don't close old file descriptor
32341         before the new one is opened.  Instead dup the new file descriptor
32342         to the old one after the new stream is created.
32343         * libio/freopen64.c (freopen64): Likewise.
32344         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
32345         * libio/fileops.c (_IO_new_file_close_it): Handle new
32346         _IO_FLAGS2_NOCLOSE flag.
32347         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
32348         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
32349         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
32350         _IO_FLAGS2_NOCLOSE flag.
32351         * include/unistd.h: Add hidden_proto for dup3.
32352         Define __have_dup3.
32353         * io/dup3.c: Define hidden symbol.
32354         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
32355
32356         [BZ #7101]
32357         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
32358         when an incomplete long option is used.
32359         * posix/tst-getopt_long1.c: New file.
32360         * posix/Makefile (tests): Add tst-getopt_long1.
32361
32362         [BZ #10138]
32363         * scripts/config.guess: Update from autoconf-2.68.
32364         * scripts/config.sub: Likewise.
32365
32366         [BZ #10157]
32367         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
32368         tests into ...
32369         (has_cpuclock): ...this.  New function.
32370         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
32371         macro here based on has_cpuclock code.
32372
32373         [BZ #10149]
32374         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
32375         First byte (not low byte) is now always NUL.
32376         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
32377
32378         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
32379         Use non-cancelable interfaces.
32380
32381         [BZ #9809]
32382         * locale/iso-639.def: Add entry for Sorani.
32383
32384         [BZ #11901]
32385         * include/stdlib.h: Move include protection to the right place.
32386         Define abort_msg_s.  Declare __abort_msg with it.
32387         * stdlib/abort.c (__abort_msg): Adjust type.
32388         * assert/assert.c (__assert_fail_base): New function.  Majority
32389         of code from __assert_fail.  Allocate memory for __abort_msg with
32390         mmap.
32391         (__assert_fail): Now call __assert_fail_base.
32392         * assert/assert-perr.c: Remove bulk of implementation.  Use
32393         __assert_fail_base.
32394         * include/assert.hL Declare __assert_fail_base.
32395         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
32396         mmap.
32397         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
32398
32399 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
32400
32401         [BZ #11952]
32402         [BZ #12453]
32403         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
32404         until all modules are registered in the DTV.
32405         * elf/Makefile: Add rules to build and run tst-tls19.
32406         * elf/tst-tls19.c: New file.
32407         * elf/tst-tls19mod1.c: New file.
32408         * elf/tst-tls19mod2.c: New file.
32409         * elf/tst-tls19mod3.c: New file.
32410         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
32411
32412         [BZ #12083]
32413         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
32414         correctly.
32415
32416         [BZ #12601]
32417         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
32418         two-byte sequence errors.
32419         * iconvdata/Makefile (tests): Add bug-iconv8.
32420         * iconvdata/bug-iconv8.c: New file.
32421
32422         [BZ #12626]
32423         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
32424         buf2 definition.
32425
32426         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
32427
32428         [BZ #12432]
32429         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
32430         (dummy_getcfa): New function.
32431         (init): Get _Unwind_GetCFA address, use dummy if not found.
32432         (backtrace_helper): In recursion check, also check whether CFA changes.
32433         (__backtrace): Completely initialize arg.
32434
32435         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
32436         storing incomplete byte sequence in state object.  Avoid testing for
32437         guaranteed too small input if we know there is enough data available.
32438
32439 2011-05-11  Andreas Schwab  <schwab@redhat.com>
32440
32441         * Makeconfig (+link-pie): Indent.
32442         * Rules (binaries-pie): Define if $(have-fpie) and
32443         $(build-shared).
32444         (binaries-shared): Also filter out $(binaries-pie).
32445         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
32446         * nscd/Makefile (others-pie): Add nscd.
32447         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
32448         ($(objpfx)nscd): Remove command override.
32449         * login/Makefile (others-pie): Add pt_chown.
32450         ($(objpfx)pt_chown): Remove command override.
32451         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
32452         remove command overrides.
32453
32454 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
32455
32456         * libio/tst_putwc.c: Fix error messages.
32457
32458         [BZ #12724]
32459         * libio/fileops.c (_IO_new_file_close_it): Always flush when
32460         currently writing and seek to current position when not.
32461         * libio/Makefile (tests): Add bug-fclose1.
32462         * libio/bug-fclose1.c: New file.
32463
32464 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
32465
32466         [BZ #12511]
32467         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
32468         don't set DF_1_NODELETE here.
32469         (do_lookup_x): When entering new entry test for copy relocation
32470         and if necessary set DF_1_NODELETE flag.
32471         * elf/tst-unique4.cc: New file.
32472         * elf/tst-unique4.h: New file.
32473         * elf/tst-unique4lib.cc: New file.
32474         * elf/Makefile: Add rules to build and run tst-unique4.
32475         Patch by Piotr Bury <pbury@goahead.com>.
32476
32477 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
32478
32479         [BZ #12052]
32480         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
32481
32482         [BZ #12625]
32483         * misc/mntent_r.c (addmntent): Flush the stream after the output
32484
32485         [BZ #12393]
32486         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
32487         (is_trusted_path_normalize): Skip initial colon.  Append slash
32488         to empty buffer.  Duplicate is_trusted_path code but allow
32489         constructed patch to be prefix.
32490         (is_dst): Allow $ORIGIN followed by /.
32491         (_dl_dst_substitute): Correct clearing of check_for_trusted.
32492         Correct testing of result of is_trusted_path_normalize
32493         (decompose_rpath): Fix warning.
32494
32495 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
32496
32497         [BZ #11257]
32498         * grp/initgroups.c (internal_getgrouplist): When we found the service
32499         list through the initgroups entry in nsswitch.conf do not always
32500         continue on a successful lookup.  Don't always use the
32501         __nss_group_database value if it is set.
32502         * nss/nsswitch.conf (initgroups): Change action for successful db
32503         lookup to continue for compatibility.
32504
32505 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
32506
32507         [BZ #11532]
32508         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
32509         and CP774 modules.
32510         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
32511         and CP774 modules.
32512         * iconvdata/tst-tables.sh: Likewise.
32513         * iconvdata/cp770.c: New file.
32514         * iconvdata/cp771.c: New file.
32515         * iconvdata/cp772.c: New file.
32516         * iconvdata/cp773.c: New file.
32517         * iconvdata/cp774.c: New file.
32518         * iconvdata/testdata/CP770: New file.
32519         * iconvdata/testdata/CP770..UTF8: New file.
32520         * iconvdata/testdata/CP771: New file.
32521         * iconvdata/testdata/CP771..UTF8: New file.
32522         * iconvdata/testdata/CP772: New file.
32523         * iconvdata/testdata/CP772..UTF8: New file.
32524         * iconvdata/testdata/CP773: New file.
32525         * iconvdata/testdata/CP773..UTF8: New file.
32526         * iconvdata/testdata/CP774: New file.
32527         * iconvdata/testdata/CP774..UTF8: New file.
32528
32529         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
32530         END CHARMAP line.
32531         * iconvdata/gen-8bit-gap.sh: Likewise.
32532         * iconvdata/gen-8bit.sh: Likewise.
32533
32534         * locale/iso-639.def: Add ary entry.
32535
32536         [BZ #11258]
32537         * locale/C-translit.h.in: Add U20A1 transliteration.
32538
32539         [BZ #12178]
32540         * locale/iso-639.def: Add wae entry.
32541         Patch by Kevin Bortis <bortis@translate-wae.ch>.
32542
32543         [BZ #12545]
32544         * locale/programs/localedef.c (construct_output_path): Use ssize_t
32545         for n.
32546
32547         [BZ #12711]
32548         * locale/C-translit.h.in: Add entry for U20B9.
32549         Patch by pravin.d.s@gmail.com.
32550
32551 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
32552
32553         [BZ #12713]
32554         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
32555         ENAMETOOLONG use generic getcwd.
32556         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
32557         in rtld.  Use *stat64.
32558         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
32559         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
32560         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
32561         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
32562         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
32563         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
32564         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
32565         __fstatat64 macros.
32566         * include/dirent.h: Add libc_hidden_proto for rewinddir.
32567         * dirent/rewinddir.c: Add libc_hidden_def.
32568         * sysdeps/mach/hurd/rewinddir.c: Likewise.
32569         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
32570
32571         * include/dirent.h (__alloc_dir): Add flags parameter.
32572         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
32573         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
32574         __alloc_dir.
32575         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
32576         from fdopendir if O_CLOEXEC is already set.
32577
32578 2011-03-15  Alan Modra  <amodra@gmail.com>
32579
32580         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
32581         l_tls_firstbyte_offset non-zero.  Save padding offset in
32582         l_tls_firstbyte_offset for later use.
32583         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
32584         freeing static tls block.
32585
32586 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
32587
32588         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
32589         where #ifdef was intended.  The intent is to prevent ARG_MAX from
32590         being defined by the kernel headers.
32591
32592 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
32593
32594         [BZ #12734]
32595         * resolv/resolv.h: Define RES_NOTLDQUERY.
32596         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
32597         no-tld-query and set RES_NOTLDQUERY.
32598         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
32599         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
32600         modern BIND to search name as TLD unless forbidden.
32601
32602 2011-05-07  Petr Baudis  <pasky@suse.cz>
32603             Ulrich Drepper  <drepper@gmail.com>
32604
32605         [BZ #12393]
32606         * elf/dl-load.c (fillin_rpath): Move trusted path check...
32607         (is_trusted_path): ...to here.
32608         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
32609         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
32610         using is_trusted_path_normalize() in setuid scripts.
32611
32612 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
32613
32614         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
32615         __BEGIN/__END_DECLS.
32616
32617 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
32618
32619         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
32620         NSS_STATUS_NOTFOUND if no record was found.
32621
32622 2011-05-05  Andreas Schwab  <schwab@redhat.com>
32623
32624         * sunrpc/Makefile (headers): Add rpc/netdb.h.
32625         (headers-not-in-tirpc): Remove rpc/netdb.h
32626         * resolv/netdb.h: Revert last change.
32627
32628 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
32629
32630         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
32631         circular dependency between libgcc.a and libc.a.
32632
32633 2011-05-05  Andreas Schwab  <schwab@redhat.com>
32634
32635         * resolv/netdb.h: Don't include <rpc/netdb.h>.
32636         * nis/Makefile: Don't install rpcsvc/*.
32637         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
32638         instead of <rpc/types.h>.
32639         (MAXHOSTNAMELEN): Define.
32640
32641 2011-05-03  Andreas Schwab  <schwab@redhat.com>
32642
32643         * elf/ldconfig.c (add_dir): Don't crash on empty path.
32644
32645 2011-04-28  Maciej Babinski  <mbabinski@google.com>
32646
32647         [BZ #12714]
32648         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
32649         gethostbyname4_r when IPv6 results are possible.
32650
32651 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
32652
32653         [BZ #12723]
32654         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
32655         _PC_PIPE_BUF handling.
32656
32657 2011-04-30  Bruno Haible  <bruno@clisp.org>
32658
32659         [BZ #12717]
32660         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
32661         * resolv/netdb.h (getnameinfo): Change type of flags parameter
32662         to 'int'.
32663         * inet/getnameinfo.c (getnameinfo): Likewise.
32664
32665 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
32666
32667         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
32668         to groups setting in database lookup.
32669         * nss/nsswitch.conf: Add initgroups entry.
32670
32671 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
32672
32673         [BZ #12685]
32674         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
32675         mode string.
32676         Patch by Eric Blake <eblake@redhat.com>.
32677
32678 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
32679
32680         * sunrpc/Makefile (need-export-routines): Add svc_run.
32681         (routines): Remove svc_run.
32682         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
32683         * sunrpc/clnt_perr.c (clnt_perrno): Export.
32684         * sunrpc/svc_run.c (svc_run): Likewise.
32685         * sunrpc/svc_udp.c (svcudp_create): Likewise.
32686
32687 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
32688
32689         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
32690         problem in reallocation in last patch.
32691
32692 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
32693
32694         * sunrpc/Makefile: Move inclusion of Rules.
32695
32696 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
32697
32698         * nss/nss_files/files-initgroups.c: New file.
32699         * nss/Makefile (libnss_files-routines): Add files-initgroups.
32700         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
32701         _nss_files_initgroups_dyn.
32702
32703 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
32704
32705         * elf/elf.h (R_ARM_IRELATIVE): Define.
32706
32707 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
32708
32709         * po/ru.po: Update from translation team.
32710
32711 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
32712
32713         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
32714         dependencies.
32715
32716 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
32717
32718         [BZ #12653]
32719         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
32720         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
32721         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
32722         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
32723         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
32724
32725 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
32726
32727         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
32728         differing bytes.
32729         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
32730         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
32731         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
32732
32733 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
32734
32735         [BZ #12420]
32736         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
32737         storing it.
32738         * stdlib/bug-getcontext.c: New file.
32739         * stdlib/Makefile: Add rules to build and run bug-getcontext.
32740
32741 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32742
32743         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
32744         instructions into .machine "z9-109".
32745         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
32746         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
32747
32748 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32749
32750         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
32751         between environment variables and auxiliary vector.
32752
32753 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
32754
32755         * Makefile: Add rules to build linkobj/libc.so.
32756         * include/libc-symbols.h: Define libc_hidden_nolink.
32757         * include/rpc/auth.h: Mark functions which are to be hidden.
32758         * include/rpc/auth_des.h: Likewise.
32759         * include/rpc/auth_unix.h: Likewise.
32760         * include/rpc/clnt.h: Likewise.
32761         * include/rpc/des_crypt.h: Likewise.
32762         * include/rpc/key_prot.h: Likewise.
32763         * include/rpc/pmap_clnt.h: Likewise.
32764         * include/rpc/pmap_prot.h: Likewise.
32765         * include/rpc/pmap_rmt.h: Likewise.
32766         * include/rpc/rpc_msg.h: Likewise.
32767         * include/rpc/svc.h: Likewise.
32768         * include/rpc/svc_auth.h: Likewise.
32769         * include/rpc/xdr.h: Likewise.
32770         * nis/Makefile: Link all DSOs against linkobj/libc.so.
32771         * nss/Makefile: Likewise.
32772         * sunrpc/Makefile: Don't install headers.  Build library with normal
32773         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
32774         * sunrpc/auth_des.c: Hide exported symbols by default, export some
32775         for the compat linking library.  Remove use of INTDEF/INTUSE.
32776         * sunrpc/auth_none.c: Likewise.
32777         * sunrpc/auth_unix.c: Likewise.
32778         * sunrpc/authdes_prot.c: Likewise.
32779         * sunrpc/authuxprot.c: Likewise.
32780         * sunrpc/clnt_gen.c: Likewise.
32781         * sunrpc/clnt_perr.c: Likewise.
32782         * sunrpc/clnt_raw.c: Likewise.
32783         * sunrpc/clnt_simp.c: Likewise.
32784         * sunrpc/clnt_tcp.c: Likewise.
32785         * sunrpc/clnt_udp.c: Likewise.
32786         * sunrpc/clnt_unix.c: Likewise.
32787         * sunrpc/des_crypt.c: Likewise.
32788         * sunrpc/des_soft.c: Likewise.
32789         * sunrpc/get_myaddr.c: Likewise.
32790         * sunrpc/key_call.c: Likewise.
32791         * sunrpc/key_prot.c: Likewise.
32792         * sunrpc/netname.c: Likewise.
32793         * sunrpc/pm_getmaps.c: Likewise.
32794         * sunrpc/pm_getport.c: Likewise.
32795         * sunrpc/pmap_clnt.c: Likewise.
32796         * sunrpc/pmap_prot.c: Likewise.
32797         * sunrpc/pmap_prot2.c: Likewise.
32798         * sunrpc/pmap_rmt.c: Likewise.
32799         * sunrpc/publickey.c: Likewise.
32800         * sunrpc/rpc_cmsg.c: Likewise.
32801         * sunrpc/rpc_common.c: Likewise.
32802         * sunrpc/rpc_dtable.c: Likewise.
32803         * sunrpc/rpc_prot.c: Likewise.
32804         * sunrpc/rpc_thread.c: Likewise.
32805         * sunrpc/rtime.c: Likewise.
32806         * sunrpc/svc.c: Likewise.
32807         * sunrpc/svc_auth.c: Likewise.
32808         * sunrpc/svc_authux.c: Likewise.
32809         * sunrpc/svc_raw.c: Likewise.
32810         * sunrpc/svc_run.c: Likewise.
32811         * sunrpc/svc_simple.c: Likewise.
32812         * sunrpc/svc_tcp.c: Likewise.
32813         * sunrpc/svc_udp.c: Likewise.
32814         * sunrpc/svc_unix.c: Likewise.
32815         * sunrpc/svcauth_des.c: Likewise.
32816         * sunrpc/xcrypt.c: Likewise.
32817         * sunrpc/xdr.c: Likewise.
32818         * sunrpc/xdr_array.c: Likewise.
32819         * sunrpc/xdr_float.c: Likewise.
32820         * sunrpc/xdr_intXX_t.c: Likewise.
32821         * sunrpc/xdr_mem.c: Likewise.
32822         * sunrpc/xdr_rec.c: Likewise.
32823         * sunrpc/xdr_ref.c: Likewise.
32824         * sunrpc/xdr_sizeof.c: Likewise.
32825         * sunrpc/xdr_stdio.c: Likewise.
32826
32827 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
32828
32829         [BZ #12650]
32830         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
32831         * sysdeps/ia64/dl-tls.h: Likewise.
32832         * sysdeps/powerpc/dl-tls.h: Likewise.
32833         * sysdeps/s390/dl-tls.h: Likewise.
32834         * sysdeps/sh/dl-tls.h: Likewise.
32835         * sysdeps/sparc/dl-tls.h: Likewise.
32836         * sysdeps/x86_64/dl-tls.h: Likewise.
32837         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
32838
32839 2011-03-14  Andreas Schwab  <schwab@redhat.com>
32840
32841         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
32842         rpath element also skip the following colon.
32843         (expand_dynamic_string_token): Add is_path parameter and pass
32844         down to DL_DST_REQUIRED and _dl_dst_substitute.
32845         (decompose_rpath): Call expand_dynamic_string_token with
32846         non-zero is_path.  Ignore empty rpaths.
32847         (_dl_map_object_from_fd): Call expand_dynamic_string_token
32848         with zero is_path.
32849
32850 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
32851
32852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
32853         Make cancelable.
32854
32855 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
32856
32857         [BZ #12655]
32858         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
32859         Patch by Filipe David Manana <fdmanana@apache.org>.
32860
32861 2011-04-07  Andreas Schwab  <schwab@redhat.com>
32862
32863         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
32864         Maintain aligned stack.
32865         (CHECK_RSP): Remove unused macro.
32866
32867 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
32868
32869         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
32870         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
32871
32872 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
32873
32874         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
32875
32876         * include/features.h: Mention __USE_XOPEN2K8 in comment.
32877
32878 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
32879
32880         [BZ #12518]
32881         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
32882         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
32883         * sysdeps/x86_64/memmove.c: New file.
32884         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
32885         (memcpy): Renamed to ...
32886         (__new_memcpy): This.
32887         (memcpy): Provide GLIBC_2_14 memcpy.
32888         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
32889         (memcpy): Provide GLIBC_2_2_5 memcpy.
32890
32891 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32892
32893         [BZ #12631]
32894         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
32895
32896 2011-03-30  Andreas Schwab  <schwab@redhat.com>
32897
32898         * misc/syncfs.c: New file.
32899         * misc/Makefile (routines): Add syncfs.
32900         * posix/unistd.h: Declare syncfs.
32901         * sysdeps/unix/syscalls.list: Add syncfs.
32902
32903 2011-04-01  Andreas Schwab  <schwab@redhat.com>
32904
32905         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
32906         open_by_handle_at.
32907         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
32908         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32909         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32910         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32911         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32912         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
32913         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32914
32915 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32916
32917         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
32918         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32919         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
32920         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32921         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32922         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32923         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32924
32925         * io/Makefile: Compile fallocate.c, fallocate64.c, and
32926         sync_file_range.c with -fexceptions.
32927         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
32928         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
32929         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
32930         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
32931         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
32932         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
32933         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
32934         sync_file_range as cancellation point
32935         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
32936         now a wrapper around __call_sync_file_range with cancellation handling.
32937         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
32938         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
32939         function name to __call_sync_file_range.
32940         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
32941         Add call_sync_file_range.
32942
32943 2011-04-01  Andreas Schwab  <schwab@redhat.com>
32944
32945         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
32946         bits/timex.h.
32947
32948 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
32949
32950         * iconv/iconv.h: Fix typo in comment.
32951         * io/fcntl.h: Likewise.
32952         * libio/stdio.h: Likewise.
32953         * posix/spawn.h: Likewise.
32954         * posix/unistd.h: Likewise.
32955         * stdlib/stdlib.h: Likewise.
32956         * time/time.h: Likewise.
32957         * wcsmbs/wchar.h: Likewise.
32958
32959         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
32960         open_by_handle): Add.
32961         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
32962         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
32963         Augment a few comments.
32964         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
32965         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32966         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32967         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32968         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32969         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
32970         open_by_handle.
32971
32972         * io/fcntl.h (AT_EMPTY_PATH): Define.
32973
32974 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
32975
32976         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
32977         * sysdeps/unix/sysv/linux/bits/time.h: New file.
32978         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
32979         to...
32980         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
32981         * Versions.def: Add GLIBC_2.14.
32982         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
32983         Export.
32984
32985 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
32986
32987         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
32988         round counter.
32989         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
32990
32991 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
32992
32993         [BZ #12597]
32994         * string/test-strncmp.c (do_page_test): New function.
32995         (check2): Likewise.
32996         (test_main): Call check2.
32997         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
32998
32999 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
33000
33001         [BZ #12587]
33002         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
33003         Handle cache information in CPU leaf 4.
33004         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
33005
33006 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
33007
33008         [BZ #12583]
33009         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
33010         character representation.
33011         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
33012
33013 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
33014
33015         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
33016         END(__isnan) to END(__isnanf) to match function entry point/label
33017         EALIGN(__isnanf,...).
33018
33019 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
33020
33021         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
33022
33023 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
33024
33025         [BZ #12510]
33026         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
33027         copy from the symbol referenced in the relocation to initialize the
33028         used variable.
33029         Patch by Piotr Bury <pbury@goahead.com>.
33030         * elf/Makefile: Add rules to build and tst-unique3.
33031         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
33032         * elf/tst-unique3.cc: New file.
33033         * elf/tst-unique3.h: New file.
33034         * elf/tst-unique3lib.cc: New file.
33035         * elf/tst-unique3lib2.cc: New file.
33036
33037         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
33038
33039 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
33040
33041         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
33042         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
33043         to _start.
33044
33045 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
33046
33047         * elf/dl-load.c (_dl_map_object): If we are looking for the first
33048         to-be-loaded object along a path to loader is ld.so.
33049
33050 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
33051             Ulrich Drepper  <drepper@gmail.com>
33052
33053         * sysdeps/x86_64/memset.S: After aligning destination, code
33054         branches to different locations depending on the value of
33055         misalignment, when multiarch is enabled. Fix this.
33056
33057 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
33058
33059         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
33060         Set _x86_64_preferred_memory_instruction for AMD processsors.
33061         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33062         Set bit_Prefer_SSE_for_memop for AMD processors.
33063
33064 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
33065
33066         * libio/fmemopen.c (fmemopen): Optimize a bit.
33067
33068 2011-03-03  Andreas Schwab  <schwab@redhat.com>
33069
33070         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
33071
33072 2011-03-03  Roland McGrath  <roland@redhat.com>
33073
33074         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
33075
33076 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
33077
33078         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
33079         __bzero_ultra1 instead of __memset_ultra1.
33080
33081 2011-02-23  Andreas Schwab  <schwab@redhat.com>
33082             Ulrich Drepper  <drepper@gmail.com>
33083
33084         [BZ #12509]
33085         * include/link.h (struct link_map): Add l_orig_initfini.
33086         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
33087         returning unsuccessfully.
33088         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
33089         close of a file loaded at startup, restore the original l_initfini
33090         list.
33091         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
33092         list, store the pointer.
33093         * elf/Makefile ($(objpfx)noload-mem): New rule.
33094         (noload-ENV): Define.
33095         (tests): Add $(objpfx)noload-mem.
33096         * elf/noload.c: Include <memcheck.h>.
33097         (main): Call mtrace.  Close all opened handles.
33098
33099 2011-02-17  Andreas Schwab  <schwab@redhat.com>
33100
33101         [BZ #12454]
33102         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
33103         dependencies are missing.
33104
33105 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33106
33107         Fix __if_freereq crash: Unlike the generic version which uses free,
33108         Hurd needs munmap.
33109         * sysdeps/mach/hurd/ifreq.h: New file.
33110
33111 2011-01-27  Petr Baudis  <pasky@suse.cz>
33112             Ulrich Drepper  <drepper@gmail.com>
33113
33114         [BZ 12445]#
33115         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
33116         to extend_alloca().
33117         * stdio-common/bug23.c: New file.
33118         * stdio-common/Makefile (tests): Add bug23.
33119
33120 2010-09-28  Andreas Schwab  <schwab@redhat.com>
33121             Ulrich Drepper  <drepper@gmail.com>
33122
33123         [BZ #12489]
33124         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
33125         before performing relro protection.  At old place add assertion
33126         to make sure nothing changed.
33127
33128 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
33129             Glauber de Oliveira Costa  <glommer@gmail.com>
33130
33131         * elf/elf.h: Add new ARM TLS relocs.
33132
33133 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
33134
33135         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
33136         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
33137         cast from r3.
33138         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
33139         'tests' variable.
33140         * sysdeps/wordsize-64/tst-writev.c: New file.
33141
33142 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
33143
33144         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
33145         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
33146         insns in _dl_start to prevent a TOC reference before relocs are
33147         resolved.
33148
33149 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
33150
33151         [BZ #12469]
33152         * Makeconfig: Remove RANLIB definition.
33153         * Makerules: Don't use RANLIB.
33154         * aclocal.m4: Remove ranlib test.
33155         * configure.in: No need to check for ranlib.
33156         * elf/rtld-Rules: Don't use RANLIB.
33157
33158 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33159
33160         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
33161         protection macro.
33162         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
33163         inclusion protection macro.
33164
33165         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
33166         SIGRTMIN and SIGRTMAX and print information in that case only when
33167         SIGRTMIN is defined.
33168
33169 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
33170
33171         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
33172         arginfo fn returning -1.
33173
33174         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
33175         and thousands string is zero terminated.
33176
33177 2011-02-03  Andreas Schwab  <schwab@redhat.com>
33178
33179         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
33180         sysdeps/unix/sysv/linux/bits/socket.h.
33181
33182 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33183
33184         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
33185         (__CPU_COUNT): Remove old macros.
33186         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
33187         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
33188         (__CPU_ALLOC, __CPU_FREE): Add macros.
33189         (__sched_cpualloc, __sched_cpufree): Add declarations.
33190
33191 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
33192
33193         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
33194         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
33195         * nscd/aicache.c (addhstaiX): Return timeout of added value.
33196         (readdhstai): Return value of addhstaiX call.
33197         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
33198         (addgrbyX): Return value returned by cache_addgr.
33199         (readdgrbyname): Return value returned by addgrbyX.
33200         (readdgrbygid): Likewise.
33201         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
33202         (addpwbyX): Return value returned by cache_addpw.
33203         (readdpwbyname): Return value returned by addhstbyX.
33204         (readdpwbyuid): Likewise.
33205         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
33206         (addservbyX): Return value returned by cache_addserv.
33207         (readdservbyname): Return value returned by addservbyX:
33208         (readdservbyport): Likewise.
33209         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
33210         (addhstbyX): Return value returned by cache_addhst.
33211         (readdhstbyname): Return value returned by addhstbyX.
33212         (readdhstbyaddr): Likewise.
33213         (readdhstbynamev6): Likewise.
33214         (readdhstbyaddrv6): Likewise.
33215         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
33216         (readdinitgroups): Return value returned by addinitgroupsX.
33217         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
33218         (prune_cache): Keep track of timeout value of re-added entries.
33219         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
33220         * nscd/nscd.h: Adjust prototypes of readd* functions.
33221
33222 2011-02-04  Roland McGrath  <roland@redhat.com>
33223
33224         * nis/nis_server.c (nis_servstate): Use the right name for 0.
33225         (nis_stats): Likewise.
33226         * nis/nis_modify.c (nis_modify): Likewise.
33227         * nis/nis_remove.c (nis_remove): Likewise.
33228         * nis/nis_add.c (nis_add): Likewise.
33229
33230         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
33231
33232         * posix/fnmatch_loop.c: Add some consts.
33233
33234         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
33235
33236 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
33237
33238         [BZ #12460]
33239         * config.make.in (config-cflags-novzeroupper): Define.
33240         * configure.in: Substitute libc_cv_cc_novzeroupper.
33241         * elf/Makefile (AVX-CFLAGS): Define.
33242         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
33243         (CFLAGS-tst-auditmod4a.c): Likewise.
33244         (CFLAGS-tst-auditmod4b.c): Likewise.
33245         (CFLAGS-tst-auditmod6b.c): Likewise.
33246         (CFLAGS-tst-auditmod6c.c): Likewise.
33247         (CFLAGS-tst-auditmod7b.c): Likewise.
33248         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
33249
33250 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
33251
33252         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
33253         function to the callback.
33254         Patch partly by Jiri Olsa <jolsa@redhat.com>.
33255
33256 2011-02-02  Andreas Schwab  <schwab@redhat.com>
33257
33258         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
33259         of errno.
33260
33261 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
33262
33263         [BZ #11724]
33264         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
33265         of constructors.
33266         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
33267         of destructors.
33268         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
33269
33270         [BZ #11724]
33271         * elf/Makefile: Add rules to build and run new test.
33272         * elf/tst-initorder.c: New file.
33273         * elf/tst-initorder.exp: New file.
33274         * elf/tst-initordera1.c: New file.
33275         * elf/tst-initordera2.c: New file.
33276         * elf/tst-initordera3.c: New file.
33277         * elf/tst-initordera4.c: New file.
33278         * elf/tst-initorderb1.c: New file.
33279         * elf/tst-initorderb2.c: New file.
33280         * elf/tst-order-a1.c: New file.
33281         * elf/tst-order-a2.c: New file.
33282         * elf/tst-order-a3.c: New file.
33283         * elf/tst-order-a4.c: New file.
33284         * elf/tst-order-b1.c: New file.
33285         * elf/tst-order-b2.c: New file.
33286         * elf/tst-order-main.c: New file.
33287         New test case by George Gensure <werkt0@gmail.com>.
33288
33289 2010-10-01  Andreas Schwab  <schwab@redhat.com>
33290
33291         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
33292         decoding ACE if AI_CANONIDN.
33293
33294 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
33295
33296         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
33297
33298 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
33299
33300         * version.h (RELEASE): Bump for 2.13 release.
33301         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
33302
33303         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
33304
33305         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
33306         MADV_NOHUGEPAGE.
33307         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
33308         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
33309         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
33310         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
33311         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
33312         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
33313
33314         * posix/getconf.c: Update copyright year.
33315         * catgets/gencat.c: Likewise.
33316         * csu/version.c: Likewise.
33317         * debug/catchsegv.sh: Likewise.
33318         * debug/xtrace.sh: Likewise.
33319         * elf/ldconfig.c: Likewise.
33320         * elf/ldd.bash.in: Likewise.
33321         * elf/sprof.c (print_version): Likewise.
33322         * iconv/iconv_prog.c: Likewise.
33323         * iconv/iconvconfig.c: Likewise.
33324         * locale/programs/locale.c: Likewise.
33325         * locale/programs/localedef.c: Likewise.
33326         * malloc/memusage.sh: Likewise.
33327         * malloc/mtrace.pl: Likewise.
33328         * nscd/nscd.c (print_version): Likewise.
33329         * nss/getent.c: Likewise.
33330
33331         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
33332         PF_CAIF, and PF_ALG.
33333         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
33334
33335 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
33336
33337         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
33338         (modules-names): Use them.
33339         (ifunc-test-modules, ifunc-pie-tests): Define.
33340         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
33341         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
33342         (test-extras): Likewise.
33343         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
33344         $(compile-command.c).
33345         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
33346         (all-built-dso): Define.
33347         (check-textrel.out, check-execstack.out): Depend on it.
33348
33349         * configure.in: Don't override --enable-multi-arch.
33350
33351 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
33352
33353         [BZ #6812]
33354         * nscd/hstcache.c (tryagain): Define.
33355         (cache_addhst): Return tryagain not notfound for temporary errors.
33356         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
33357         failed.
33358
33359 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
33360
33361         [BZ #10563]
33362         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
33363         to make the syscall.
33364         * sysdeps/unix/sysv/linux/setgroups.c: New file.
33365
33366         [BZ #12378]
33367         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
33368         and fall back to matching as normal character if the string ends before
33369         the matching ']' is found.  This is what POSIX requires.
33370         * posix/testfnm.c: Adjust test result.
33371         * posix/globtest.sh: Adjust test result.  Add new test.
33372         * posix/tst-fnmatch.input: Likewise.
33373         * posix/tst-fnmatch2.c: Add new test.
33374
33375 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
33376
33377         * elf/Makefile (check-execstack): Revert last change.  Depend on
33378         check-execstack.h.
33379         (check-execstack.h): New target.
33380         (generated): Add check-execstack.h.
33381         * elf/check-execstack.c: Include "check-execstack.h".
33382         (main): Revert last change.
33383         (handle_file): Return zero if GNU_STACK is absent and
33384         DEFAULT_STACK_PERMS doesn't include PF_X.
33385
33386 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
33387
33388         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
33389         in child fails because the descriptor is already closed.
33390         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
33391         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
33392         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
33393
33394         [BZ #12397]
33395         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
33396         syscall.
33397
33398         [BZ #10484]
33399         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
33400         temporary buffer used to handle multi lookups locally.
33401         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
33402
33403 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
33404
33405         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
33406         loader is ld.so.
33407
33408 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
33409
33410         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
33411         alignment for SSE2.
33412
33413 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
33414
33415         [BZ #12394]
33416         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
33417         characters.  When rounding increased number of integer digits recompute
33418         number of groups.
33419         * stdio-common/tst-grouping.c: New file.
33420         * stdio-common/Makefile: Add rules to build and run tst-grouping.
33421
33422 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
33423
33424         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
33425         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
33426
33427         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
33428         void.
33429         * bits/select.h: Likewise.
33430
33431 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
33432
33433         * po/ja.po: Update from translation team.
33434
33435 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
33436
33437         [BZ #11155]
33438         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
33439         implementation just like for lxstat, fxstatat, et al.
33440
33441 2010-12-27  Jim Meyering  <meyering@redhat.com>
33442
33443         [BZ #12348]
33444         * posix/regexec.c (build_trtable): Return failure indication upon
33445         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
33446
33447 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
33448
33449         [BZ #12201]
33450         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
33451         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
33452         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
33453         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
33454
33455         [BZ #12207]
33456         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
33457
33458         [BZ #12204]
33459         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
33460         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
33461
33462 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
33463
33464         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
33465         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
33466         script has SORT_BY_INIT_PRIORITY.
33467         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
33468         NO_CTORS_DTORS_SECTIONS is defined.
33469         * elf/soinit.c: Likewise.
33470         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
33471         NO_CTORS_DTORS_SECTIONS is defined.
33472         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
33473         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
33474         * sysdeps/sh/init-first.c: Likewise.
33475         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
33476
33477 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
33478
33479         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
33480         always use the slow path.
33481
33482 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
33483
33484         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
33485         similar rule which adds the sysdep directories to the header search in
33486         order to pick up the correct platform stackinfo.h.
33487         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
33488         perform test if it is, otherwise return successfully without testing.
33489         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
33490         DEFAULT_STACK_PERMS define in stackinfo.h.
33491         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
33492         defined in stackinfo.h.
33493         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
33494         DEFAULT_STACK_PERMS defined in stackinfo.h.
33495         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
33496         * sysdeps/ia64/stackinfo.h: Likewise.
33497         * sysdeps/s390/stackinfo.h: Likewise.
33498         * sysdeps/sh/stackinfo.h: Likewise.
33499         * sysdeps/sparc/stackinfo.h: Likewise.
33500         * sysdeps/x86_64/stackinfo.h: Likewise.
33501         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
33502         PF_X for powerpc64.  Retain PF_X for powerpc32.
33503
33504 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
33505
33506         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
33507         accurately.
33508         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
33509         GETDENTS_64BIT_ALIGNED.
33510
33511 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
33512
33513         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
33514
33515 2010-12-10  Andreas Schwab  <schwab@redhat.com>
33516
33517         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
33518         _GNU_SOURCE.
33519
33520         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
33521         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
33522         Remove __restrict.
33523         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
33524         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
33525
33526 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
33527
33528         [BZ #11655]
33529         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
33530         are initialized.
33531
33532 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
33533
33534         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
33535
33536 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
33537
33538         * po/it.po: Update from translation team.
33539
33540 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
33541
33542         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
33543         unused codes.
33544
33545 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
33546
33547         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
33548
33549 2010-11-24  Andreas Schwab  <schwab@redhat.com>
33550
33551         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
33552         specially.
33553         (gaih_getanswer_slice): Likewise.
33554
33555 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
33556
33557         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
33558
33559 2010-05-31  Petr Baudis  <pasky@suse.cz>
33560
33561         [BZ #11149]
33562         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
33563         silently even in the chroot mode.
33564
33565 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
33566
33567         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
33568         last patch a bit.  Pretty printing
33569
33570 2010-05-31  Petr Baudis <pasky@suse.cz>
33571
33572         [BZ #10085]
33573         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
33574         initialization of skip_initgroups_dyn.
33575
33576 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
33577
33578         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
33579         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
33580
33581 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
33582
33583         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
33584
33585 2010-11-11  Andreas Schwab  <schwab@redhat.com>
33586
33587         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
33588         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
33589         (tst-fnmatch-ENV): Set MALLOC_TRACE.
33590         ($(objpfx)tst-fnmatch-mem): New rule.
33591         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
33592         * posix/tst-fnmatch.c (main): Call mtrace.
33593
33594 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
33595
33596         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33597         Support Intel processor model 6 and model 0x2c.
33598
33599 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
33600
33601         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
33602           signed comparison.
33603
33604 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
33605
33606         [BZ #12205]
33607         * string/test-strncasecmp.c (check_result): New function.
33608         (do_one_test): Use it.
33609         (check1): New function.
33610         (test_main): Use it.
33611         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
33612         Support strcasecmp and strncasecmp.
33613
33614 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
33615
33616         [BZ #12194]
33617         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
33618         * sysdeps/x86_64/bits/byteswap.h: Likewise.
33619
33620 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
33621
33622         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
33623         IFUNC support.
33624         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
33625         memset-x86-64.
33626         * sysdeps/x86_64/multiarch/bzero.S: New file.
33627         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
33628         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
33629         * sysdeps/x86_64/multiarch/memset.S: New file.
33630         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
33631         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33632         Set bit_Prefer_SSE_for_memop for Intel processors.
33633         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
33634         Define.
33635         (index_Prefer_SSE_for_memop): Define.
33636         (HAS_PREFER_SSE_FOR_MEMOP): Define.
33637
33638 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
33639
33640         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
33641         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
33642
33643 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
33644
33645         [BZ #12191]
33646         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
33647         (__x86_64_raw_data_cache_size_half): Likewise.
33648         (__x86_64_raw_shared_cache_size): Likewise.
33649         (__x86_64_raw_shared_cache_size_half): Likewise.
33650
33651         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
33652         (__x86_64_raw_data_cache_size_half): Likewise.
33653         (__x86_64_raw_shared_cache_size): Likewise.
33654         (__x86_64_raw_shared_cache_size_half): Likewise.
33655         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
33656         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
33657         and __x86_64_raw_shared_cache_size_half.  Round
33658         __x86_64_data_cache_size_half, __x86_64_data_cache_size
33659         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
33660         to multiple of 256 bytes.
33661
33662 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
33663
33664         [BZ #12167]
33665         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
33666         of inacessible symlinks.  Verify result of symlink before returning it.
33667         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
33668         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
33669
33670 2010-10-28  Erich Ritz  <erichritz@gmail.com>
33671
33672         * math/math.h (isinf): Fix typo in comment.
33673
33674 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
33675
33676         * po/da.po: Update from translation team.
33677
33678 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
33679
33680         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
33681         is added to the list.
33682
33683 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33684             Ulrich Drepper  <drepper@gmail.com>
33685
33686         * elf/dl-object.c (_dl_new_object): Don't append the new object to
33687         the global list here.  Move code to...
33688         (_dl_add_to_namespace_list): ...here.  New function.
33689         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
33690         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
33691         * elf/dl-load.c (lose): Don't remove the element from the list.
33692         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
33693         (_dl_map_object): Likewise.
33694
33695 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
33696
33697         [BZ #12159]
33698         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
33699         into all bytes of SSE register.
33700         Patch by Richard Li <richardpku@gmail.com>.
33701
33702 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
33703
33704         [BZ #12140]
33705         * malloc/malloc.c (_int_free): Fill correct number of bytes when
33706         perturbing.
33707
33708 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
33709
33710         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
33711         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
33712         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
33713         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
33714         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
33715         submachine.
33716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
33717
33718 2010-10-22  Andreas Schwab  <schwab@redhat.com>
33719
33720         * include/dlfcn.h (__RTLD_SECURE): Define.
33721         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
33722         mode & __RTLD_SECURE instead.
33723         (open_path): Rename preloaded parameter to secure.
33724         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
33725         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
33726         * elf/dl-deps.c (openaux): Likewise.
33727         * elf/rtld.c (struct map_args): Remove is_preloaded.
33728         (map_doit): Don't use it.
33729         (dl_main): Likewise.
33730         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
33731         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
33732
33733 2010-09-09  Andreas Schwab  <schwab@redhat.com>
33734
33735         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
33736         (sysd-rules-targets): Remove duplicates.
33737         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
33738         rtld-%.$o dependency.
33739
33740 2010-10-18  Andreas Schwab  <schwab@redhat.com>
33741
33742         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
33743         _dl_map_object do it.
33744
33745 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
33746
33747         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
33748         fast fma builtins, define the macros in the C99 standard.
33749         (FP_FAST_FMAF): Likewise.
33750         (FP_FAST_FMAL): Likewise.
33751         * sysdeps/x86_64/bits/mathdef.h: Likewise.
33752
33753         * bits/mathdef.h: Update copyright year.
33754         * sysdeps/powerpc/bits/mathdef.h: Likewise.
33755
33756 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
33757
33758         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
33759         builtins, define the macros in the C99 standard.
33760         (FP_FAST_FMAF): Likewise.
33761         (FP_FAST_FMAL): Likewise.
33762         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
33763         multiply/add.
33764         (FP_FAST_FMAF): Likewise.
33765
33766 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
33767
33768         [BZ #3268]
33769         * math/libm-test.inc (fma_test): Some new testcases.
33770         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
33771         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
33772         y and infinite z.  Do multiplication by C already in long double.
33773         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
33774         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
33775         y and infinite z.  Do bitwise or of inexact bit into u.d.
33776         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
33777         * sysdeps/i386/fpu/s_fmaf.S: Removed.
33778         * sysdeps/i386/fpu/s_fma.S: Removed.
33779         * sysdeps/i386/fpu/s_fmal.S: Removed.
33780
33781 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
33782
33783         [BZ #3268]
33784         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
33785         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
33786         computation is not scheduled after fetestexcept.  Fix value
33787         of minimum denormal long double.
33788
33789 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
33790
33791         [BZ #3268]
33792         * math/libm-test.inc (fma_test): Add some more tests.
33793         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
33794         correctly.
33795
33796 2010-10-15  Andreas Schwab  <schwab@redhat.com>
33797
33798         * scripts/data/localplt-s390-linux-gnu.data: New file.
33799         * scripts/data/localplt-s390x-linux-gnu.data: New file.
33800
33801 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
33802
33803         [BZ #3268]
33804         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
33805         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
33806         instead of dbl-64.
33807         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
33808         inlines.
33809         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
33810         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
33811         if one of x and y is very large and the other is subnormal.
33812         * sysdeps/s390/fpu/s_fmaf.c: New file.
33813         * sysdeps/s390/fpu/s_fma.c: New file.
33814         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
33815         * sysdeps/powerpc/fpu/s_fma.S: New file.
33816         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
33817         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
33818         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
33819
33820 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
33821
33822         [BZ #3268]
33823         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
33824         fma tests.
33825         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
33826         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
33827         * sysdeps/i386/i686/multiarch/s_fma.c: Include
33828         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
33829         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
33830         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
33831         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
33832
33833 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
33834
33835         [BZ #12078]
33836         * posix/regcomp.c (parse_branch): One more memory leak plugged.
33837         * posix/bug-regex31.input: Add test case.
33838
33839 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
33840
33841         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
33842         * posix/bug-regex31.input: New file.
33843
33844         [BZ #12078]
33845         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
33846         (parse_sub_exp): Fix last change, use postorder.
33847
33848         * posix/bug-regex31.c: New file.
33849         * posix/Makefile: Add rules to build and run bug-regex31.
33850
33851         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
33852
33853         [BZ #12078]
33854         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
33855
33856         [BZ #12108]
33857         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
33858         to have entries in sys_siglist.
33859
33860         [BZ #12093]
33861         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
33862         be NULL.
33863
33864 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
33865
33866         [BZ #3268]
33867         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
33868         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
33869         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
33870         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
33871         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
33872         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
33873         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
33874         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
33875         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
33876         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
33877         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
33878         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
33879         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
33880         * math/ftestexcept.c (fetestexcept): Likewise.
33881         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
33882         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
33883         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
33884         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
33885         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
33886         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
33887         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
33888
33889 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
33890
33891         [BZ #12107]
33892         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
33893         newline.
33894
33895 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
33896
33897         * string/bug-strstr1.c: New file.
33898         * string/Makefile: Add rules to build and run bug-strstr1.
33899
33900 2010-10-05  Eric Blake  <eblake@redhat.com>
33901
33902         [BZ #12092]
33903         * string/str-two-way.h (two_way_long_needle): Always clear memory
33904         when skipping input due to the shift table.
33905
33906 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
33907
33908         [BZ #12005]
33909         * malloc/mcheck.c: Handle large requests.
33910
33911         [BZ #12077]
33912         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
33913         for strncmp and strncasecmp.
33914         * string/stratcliff.c: Add tests for strcmp and strncmp.
33915         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
33916
33917 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
33918
33919         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
33920         __set_fpscr.
33921
33922 2010-09-30  Andreas Jaeger  <aj@suse.de>
33923
33924         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
33925         (CGROUP_SUPER_MAGIC): Define.
33926         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
33927         Handle btrfs and cgroup file systems.
33928         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
33929         Likewise.
33930
33931 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
33932
33933         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
33934         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
33935
33936 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33937
33938         [BZ #12067]
33939         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
33940         trying to locate the ELF header.
33941
33942 2010-09-27  Andreas Schwab  <schwab@redhat.com>
33943
33944         [BZ #11611]
33945         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
33946         Mask out sign-bit copies when constructing f_fsid.
33947
33948 2010-09-24  Petr Baudis <pasky@suse.cz>
33949
33950         * debug/stack_chk_fail_local.c: Add missing licence exception.
33951         * debug/warning-nop.c: Likewise.
33952
33953 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
33954
33955         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
33956         implementing getdents64 using getdents syscall, set d_type if
33957         __ASSUME_GETDENTS32_D_TYPE.
33958
33959 2010-09-16  Andreas Schwab  <schwab@redhat.com>
33960
33961         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
33962         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
33963
33964 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
33965
33966         [BZ #12037]
33967         * posix/unistd.h: Undo change of feature selection for ftruncate from
33968         2010-01-11.
33969
33970 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
33971
33972         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
33973         detection.
33974
33975 2010-09-20  Andreas Schwab  <schwab@redhat.com>
33976
33977         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
33978         fanotify_mark.
33979         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
33980
33981 2010-09-14  Andreas Schwab  <schwab@redhat.com>
33982
33983         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
33984         variables after CHECK_SP call.
33985         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
33986
33987 2010-09-13  Andreas Schwab  <schwab@redhat.com>
33988             Ulrich Drepper  <drepper@redhat.com>
33989
33990         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
33991         re-relocationg ld.so.
33992         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
33993         _dl_init_paths call.
33994         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
33995         here anymore.
33996
33997 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
33998
33999         * resolv/res_init.c (__res_vinit): Count the default server we added.
34000
34001 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
34002             Ulrich Drepper  <drepper@redhat.com>
34003
34004         [BZ #11968]
34005         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
34006         (____longjmp_chk): Use %ebx for saving value across system call.
34007         Add unwind info.
34008
34009 2010-09-06  Andreas Schwab  <schwab@redhat.com>
34010
34011         * manual/Makefile: Don't mix pattern rules with normal rules.
34012
34013 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
34014
34015         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
34016         operation.
34017         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
34018         * libio/iofopncook.c (_IO_cookie_init): Likewise.
34019         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
34020         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
34021         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
34022         Likewise.
34023
34024 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
34025
34026         [BZ #11979]
34027         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
34028         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
34029
34030 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
34031
34032         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
34033         * sysdeps/x86_64/addmul_1.S: Likewise.
34034         * sysdeps/x86_64/lshift.S: Likewise.
34035         * sysdeps/x86_64/mul_1.S: Likewise.
34036         * sysdeps/x86_64/rshift.S: Likewise.
34037         * sysdeps/x86_64/sub_n.S: Likewise.
34038         * sysdeps/x86_64/submul_1.S: Likewise.
34039
34040 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34041
34042         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
34043         Define __sched_param instead of SCHED_* and sched_param when
34044         <bits/sched.h> is included with __need_schedparam defined.
34045         * bits/sched.h [__need_schedparam]
34046         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
34047         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
34048         (__defined_schedparam): Define to 1.
34049         (__sched_param): New structure, identical to sched_param.
34050         (__need_schedparam): Undefine.
34051
34052 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
34053
34054         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
34055         (epoll_create1): Declare.
34056
34057         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
34058
34059 2010-08-31  Andreas Schwab  <schwab@redhat.com>
34060
34061         [BZ #7066]
34062         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
34063         shifting retval into place.
34064
34065 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
34066
34067         * nis/rpcsvc/nis.h: Update copyright notice.
34068         * nis/rpcsvc/nis.x: Likewise.
34069         * nis/rpcsvc/nis_callback.h: Likewise.
34070         * nis/rpcsvc/nis_callback.x: Likewise.
34071         * nis/rpcsvc/nis_object.x: Likewise.
34072         * nis/rpcsvc/nis_tags.h: Likewise.
34073         * nis/rpcsvc/yp.h: Likewise.
34074         * nis/rpcsvc/yp.x: Likewise.
34075         * nis/rpcsvc/ypupd.h: Likewise.
34076         * nis/yp_xdr.c: Likewise.
34077         * nis/ypupdate_xdr.c: Likewise.
34078
34079         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
34080         mainly the body of pmap_getport.  Add parameters to specify timeouts.
34081         (pmap_getport): Use __libc_rpc_getport.
34082         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
34083         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
34084         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
34085
34086 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
34087
34088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
34089         fanotify_mark.
34090
34091 2010-08-27  Roland McGrath  <roland@redhat.com>
34092
34093         * sysdeps/i386/i686/multiarch/Makefile
34094         (CFLAGS-varshift.c): New variable.
34095
34096 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
34097
34098         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
34099         * sysdeps/i386/i686/multiarch/varshift.c: New file.
34100
34101         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
34102
34103         * sysdeps/x86_64/strlen.S: Minimal code improvement.
34104
34105 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
34106
34107         * sysdeps/x86_64/strlen.S: Unroll the loop.
34108         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34109         strlen-sse2 strlen-sse2-bsf.
34110         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
34111         __strlen_no_bsf if bit_Slow_BSF is set.
34112         (__strlen_sse42): Removed.
34113         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
34114         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
34115
34116 2010-08-25  Roland McGrath  <roland@redhat.com>
34117
34118         * sysdeps/x86_64/multiarch/varshift.S: File removed.
34119         * sysdeps/x86_64/multiarch/varshift.c: New file.
34120         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
34121         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
34122         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
34123         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
34124
34125 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
34126
34127         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34128         strlen-sse2 strlen-sse2-bsf.
34129         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
34130         __strlen_sse2_bsf if bit_Slow_BSF is unset.
34131         (__strlen_sse2): Removed.
34132         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
34133         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
34134         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
34135         bit_Slow_BSF for Atom.
34136         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
34137         (index_Slow_BSF): Define.
34138         (HAS_SLOW_BSF): Define.
34139
34140 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
34141
34142         [BZ #10851]
34143         * resolv/res_init.c (__res_vinit): When no server address at all
34144         is given default to loopback.
34145
34146 2010-08-24  Roland McGrath  <roland@redhat.com>
34147
34148         * configure.in: Remove config-name.h generation.
34149         * configure: Regenerated.
34150         * config-name.in: File removed.
34151         * scripts/config-uname.sh: New file.
34152         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
34153         ($(objdir)config-name.h): New target.
34154
34155         * sunrpc/rpc_parse.h: Avoid nested comment.
34156
34157 2010-08-24  Richard Henderson  <rth@redhat.com>
34158             Ulrich Drepper  <drepper@redhat.com>
34159             H.J. Lu  <hongjiu.lu@intel.com>
34160
34161         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
34162         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
34163         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
34164         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
34165         _mm_alignr_epi8 with _mm_loadu_si128.
34166         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
34167         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
34168         (__m128i_shift_right): Removed.
34169         * sysdeps/i386/i686/multiarch/varshift.h: New file.
34170         * sysdeps/i386/i686/multiarch/varshift.S: New file.
34171         * sysdeps/x86_64/multiarch/varshift.h: New file.
34172         * sysdeps/x86_64/multiarch/varshift.S: New file.
34173
34174 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
34175
34176         * configure.in: Move assembler checks to before sysdep dir checking.
34177
34178 2010-08-20  Petr Baudis  <pasky@suse.cz>
34179
34180         * LICENSES: Sync the sunrpc license.
34181
34182 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
34183
34184         * sunrpc/auth_des.c: Update copyright notice once again.
34185         * sunrpc/auth_none.c: Likewise.
34186         * sunrpc/auth_unix.c: Likewise.
34187         * sunrpc/authdes_prot.c: Likewise.
34188         * sunrpc/authuxprot.c: Likewise.
34189         * sunrpc/bindrsvprt.c: Likewise.
34190         * sunrpc/clnt_gen.c: Likewise.
34191         * sunrpc/clnt_perr.c: Likewise.
34192         * sunrpc/clnt_raw.c: Likewise.
34193         * sunrpc/clnt_simp.c: Likewise.
34194         * sunrpc/clnt_tcp.c: Likewise.
34195         * sunrpc/clnt_udp.c: Likewise.
34196         * sunrpc/clnt_unix.c: Likewise.
34197         * sunrpc/des_crypt.c: Likewise.
34198         * sunrpc/des_soft.c: Likewise.
34199         * sunrpc/get_myaddr.c: Likewise.
34200         * sunrpc/getrpcport.c: Likewise.
34201         * sunrpc/key_call.c: Likewise.
34202         * sunrpc/key_prot.c: Likewise.
34203         * sunrpc/openchild.c: Likewise.
34204         * sunrpc/pm_getmaps.c: Likewise.
34205         * sunrpc/pm_getport.c: Likewise.
34206         * sunrpc/pmap_clnt.c: Likewise.
34207         * sunrpc/pmap_prot.c: Likewise.
34208         * sunrpc/pmap_prot2.c: Likewise.
34209         * sunrpc/pmap_rmt.c: Likewise.
34210         * sunrpc/rpc/auth.h: Likewise.
34211         * sunrpc/rpc/auth_unix.h: Likewise.
34212         * sunrpc/rpc/clnt.h: Likewise.
34213         * sunrpc/rpc/des_crypt.h: Likewise.
34214         * sunrpc/rpc/key_prot.h: Likewise.
34215         * sunrpc/rpc/netdb.h: Likewise.
34216         * sunrpc/rpc/pmap_clnt.h: Likewise.
34217         * sunrpc/rpc/pmap_prot.h: Likewise.
34218         * sunrpc/rpc/pmap_rmt.h: Likewise.
34219         * sunrpc/rpc/rpc.h: Likewise.
34220         * sunrpc/rpc/rpc_des.h: Likewise.
34221         * sunrpc/rpc/rpc_msg.h: Likewise.
34222         * sunrpc/rpc/svc.h: Likewise.
34223         * sunrpc/rpc/svc_auth.h: Likewise.
34224         * sunrpc/rpc/types.h: Likewise.
34225         * sunrpc/rpc/xdr.h: Likewise.
34226         * sunrpc/rpc_clntout.c: Likewise.
34227         * sunrpc/rpc_cmsg.c: Likewise.
34228         * sunrpc/rpc_common.c: Likewise.
34229         * sunrpc/rpc_cout.c: Likewise.
34230         * sunrpc/rpc_dtable.c: Likewise.
34231         * sunrpc/rpc_hout.c: Likewise.
34232         * sunrpc/rpc_main.c: Likewise.
34233         * sunrpc/rpc_parse.c: Likewise.
34234         * sunrpc/rpc_parse.h: Likewise.
34235         * sunrpc/rpc_prot.c: Likewise.
34236         * sunrpc/rpc_sample.c: Likewise.
34237         * sunrpc/rpc_scan.c: Likewise.
34238         * sunrpc/rpc_scan.h: Likewise.
34239         * sunrpc/rpc_svcout.c: Likewise.
34240         * sunrpc/rpc_tblout.c: Likewise.
34241         * sunrpc/rpc_util.c: Likewise.
34242         * sunrpc/rpc_util.h: Likewise.
34243         * sunrpc/rpcinfo.c: Likewise.
34244         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
34245         * sunrpc/rpcsvc/key_prot.x: Likewise.
34246         * sunrpc/rpcsvc/klm_prot.x: Likewise.
34247         * sunrpc/rpcsvc/mount.x: Likewise.
34248         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
34249         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
34250         * sunrpc/rpcsvc/rex.x: Likewise.
34251         * sunrpc/rpcsvc/rstat.x: Likewise.
34252         * sunrpc/rpcsvc/rusers.x: Likewise.
34253         * sunrpc/rpcsvc/sm_inter.x: Likewise.
34254         * sunrpc/rpcsvc/spray.x: Likewise.
34255         * sunrpc/rpcsvc/yppasswd.x: Likewise.
34256         * sunrpc/rtime.c: Likewise.
34257         * sunrpc/svc.c: Likewise.
34258         * sunrpc/svc_auth.c: Likewise.
34259         * sunrpc/svc_authux.c: Likewise.
34260         * sunrpc/svc_raw.c: Likewise.
34261         * sunrpc/svc_run.c: Likewise.
34262         * sunrpc/svc_simple.c: Likewise.
34263         * sunrpc/svc_tcp.c: Likewise.
34264         * sunrpc/svc_udp.c: Likewise.
34265         * sunrpc/svc_unix.c: Likewise.
34266         * sunrpc/svcauth_des.c: Likewise.
34267         * sunrpc/xcrypt.c: Likewise.
34268         * sunrpc/xdr.c: Likewise.
34269         * sunrpc/xdr_array.c: Likewise.
34270         * sunrpc/xdr_float.c: Likewise.
34271         * sunrpc/xdr_mem.c: Likewise.
34272         * sunrpc/xdr_rec.c: Likewise.
34273         * sunrpc/xdr_ref.c: Likewise.
34274         * sunrpc/xdr_sizeof.c: Likewise.
34275         * sunrpc/xdr_stdio.c: Likewise.
34276
34277         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
34278         handling.
34279
34280 2010-08-19  Andreas Schwab  <schwab@redhat.com>
34281
34282         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
34283
34284 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
34285
34286         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
34287         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
34288         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
34289         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
34290         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
34291         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
34292         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
34293         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
34294         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
34295         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
34296         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
34297         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
34298         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
34299         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
34300
34301 2010-07-26  Anton Blanchard  <anton@samba.org>
34302
34303         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
34304         * malloc/arena.c (heap_trim): Likewise.
34305
34306 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
34307
34308         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
34309         here.  Not...
34310         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
34311         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
34312
34313 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
34314
34315         * sysdeps/i386/elf/Makefile: New file.
34316
34317 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
34318
34319         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
34320         from fanotify_init.
34321         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
34322         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
34323
34324 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
34325
34326         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
34327         of strncasecmp_l.
34328         * sysdeps/multiarch/strcmp.S: Likewise.
34329
34330 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
34331
34332         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
34333         strncase_l-nonascii.
34334         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
34335         Add strncase_l-ssse3.
34336         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
34337         * sysdeps/x86_64/strcmp.S: Likewise.
34338         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
34339         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
34340         * sysdeps/x86_64/strncase.S: New file.
34341         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
34342         * sysdeps/x86_64/strncase_l.S: New file.
34343         * string/Makefile (strop-tests): Add strncasecmp.
34344         * string/test-strncasecmp.c: New file.
34345
34346         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
34347         warning.
34348
34349         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
34350         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
34351
34352 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
34353
34354         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
34355
34356 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
34357
34358         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
34359         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
34360         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
34361
34362 2010-05-01  Alan Modra  <amodra@gmail.com>
34363
34364         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
34365         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
34366         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
34367         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
34368         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
34369         tidying.  Don't tail-call __sigjmp_save for static lib.
34370         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
34371         save location.
34372         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
34373         (CALL_MCOUNT): Add eh info, and nop after bl.
34374         (TAIL_CALL_SYSCALL_ERROR): New macro.
34375         (PSEUDO_RET): Use it.
34376         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
34377         Correct save location of integer regs and cr.
34378         (_dl_profile_resolve): Correct cr save location.  Delete nops
34379         after bl when SHARED.  Reduce cfi size a little by better
34380         placement of cfi directives.
34381         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
34382         make a stack frame.  Instead use parm save area as a temp.
34383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
34384         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
34385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
34386         Don't make a stack frame for parent, use parm save area.
34387         Increase child stack frame to 112 bytes.  Don't save unused reg,
34388         and adjust reg usage.  Set up cfi on error recovery and
34389         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
34390         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
34391         (__makecontext): Add dummy nop after jump to exit.
34392         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
34393         Use correct parm save area and cr save, reduce stack frame.
34394         Correct cfi for possible PSEUDO_RET frame setup.
34395         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
34396         Branch to local label emitted by PSEUDO_RET rather than
34397         __syscall_error.
34398
34399 2010-08-12  Andreas Schwab  <schwab@redhat.com>
34400
34401         [BZ #11904]
34402         * locale/programs/locale.c (print_assignment): New function.
34403         (show_locale_vars): Use it.
34404
34405 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
34406
34407         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
34408         field.
34409         (struct statfs64): Likewise.
34410         (_STATFS_F_FLAGS): Define.
34411         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
34412         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
34413         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
34414         (ST_VALID): Define locally.
34415         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
34416         __statvfs_getflags, use the provided value.
34417         * sysdeps/unix/sysv/linux/kernel-features.h: Define
34418         __ASSUME_STATFS_F_FLAGS.
34419
34420         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
34421
34422         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
34423         Add sys/fanotify.h.
34424         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
34425         fanotify_mask for GLIBC_2.13.
34426         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
34427         fanotify_init and fanotify_mark.
34428         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
34429         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
34430
34431         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
34432         Add prlimit.
34433         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
34434         prlimit64 for GLIBC_2.13.
34435         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
34436         prlimit64.
34437         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
34438         syscall.
34439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
34440         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
34441         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
34442         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
34443         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
34444         add prlimit alias.
34445         * sysdeps/unix/sysv/linux/prlimit.c: New file.
34446
34447         [BZ #11903]
34448         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
34449         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
34450
34451         * nss/Makefile: Add rules to build and run tst-nss-test1.
34452         * shlib-versions: Add entry for libnss_test1.
34453         * nss/nss_test1.c: New file.
34454         * nss/tst-nss-test1.c: New file.
34455
34456         * nss/nsswitch.c (__nss_database_custom): Define new variable.
34457         (__nss_configure_lookup): Set appropriate entry in
34458         __nss_configure_lookup to true.
34459         * nss/nsswitch.h: Define enum with indeces of databases in
34460         databases and __nss_database_custom arrays.  Declare
34461         __nss_database_custom.
34462         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
34463         to avoid using nscd when custom rules are installed.
34464         * nss/getXXbyYY_r.c: Likewise.
34465         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
34466
34467         * nss/nss_files/files-parse.c: Whitespace fixes.
34468
34469 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
34470
34471         [BZ #11883]
34472         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
34473         * posix/fnmatch_loop.c: Likewise.
34474
34475 2010-07-17  Andi Kleen  <ak@linux.intel.com>
34476
34477         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
34478         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
34479         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
34480         * Versions.def [GLIBC_2.13]: Add.
34481
34482 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
34483
34484         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
34485         Also fail if tpwd after pwuid call is NULL.
34486
34487 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34488
34489         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
34490         when converting to ms.
34491
34492 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34493
34494         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
34495         EOPNOTSUPP errors with ENOTTY.
34496         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
34497         EOPNOTSUPP errors with ENOTTY.
34498
34499 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
34500
34501         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
34502         Add strcasecmp_l-ssse3.
34503         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
34504         strcasecmp.
34505         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
34506         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
34507         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
34508
34509 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
34510
34511         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
34512
34513         * string/Makefile (strop-tests): Add strcasecmp.
34514         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
34515         strcasecmp_l-nonascii.
34516         (gen-as-const-headers): Add locale-defines.sym.
34517         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
34518         * sysdeps/x86_64/strcasecmp.S: New file.
34519         * sysdeps/x86_64/strcasecmp_l.S: New file.
34520         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
34521         * sysdeps/x86_64/locale-defines.sym: New file.
34522         * string/test-strcasecmp.c: New file.
34523
34524         * string/test-strcasestr.c: Test both ends of the range of characters.
34525         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
34526
34527 2010-07-29  Roland McGrath  <roland@redhat.com>
34528
34529         [BZ #11856]
34530         * manual/locale.texi (Yes-or-No Questions): Fix example code.
34531
34532 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
34533
34534         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
34535         for ld.so.
34536
34537 2010-07-27  Andreas Schwab  <schwab@redhat.com>
34538
34539         * manual/memory.texi (Malloc Tunable Parameters): Document
34540         M_PERTURB.
34541
34542 2010-07-26  Roland McGrath  <roland@redhat.com>
34543
34544         [BZ #11840]
34545         * configure.in (-fgnu89-inline check): Set and substitute
34546         gnu89_inline, not libc_cv_gnu89_inline.
34547         * configure: Regenerated.
34548         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
34549
34550 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
34551
34552         * string/test-strnlen.c: New file.
34553         * string/Makefile (strop-tests): Add strnlen.
34554         * string/tester.c (test_strnlen): Add a few more test cases.
34555         * string/tst-strlen.c: Better error reporting.
34556
34557         * sysdeps/x86_64/strnlen.S: New file.
34558
34559 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
34560
34561         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
34562         lower-latency instructions.
34563
34564 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
34565
34566         * string/test-strcasestr.c: New file.
34567         * string/test-strstr.c: New file.
34568         * string/Makefile (strop-tests): Add strstr and strcasestr.
34569         * string/str-two-way.h: Don't undefine MAX.
34570         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
34571
34572 2010-07-21  Andreas Schwab  <schwab@redhat.com>
34573
34574         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34575         strcasestr-nonascii.
34576         (CFLAGS-strcasestr-nonascii.c): Define.
34577         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
34578         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
34579         Remove unused attribute.
34580
34581 2010-07-20  Roland McGrath  <roland@redhat.com>
34582
34583         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
34584         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
34585         ld.so.cache was broken.  With it, there is no way to disable dsocaps
34586         like LD_HWCAP_MASK can disable hwcaps.
34587
34588 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
34589
34590         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
34591
34592 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
34593
34594         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
34595         call in strcasestr.
34596         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
34597         __strcasestr_sse42_nonascii.
34598         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
34599         strcasestr-nonascii.c.
34600         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
34601
34602 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
34603
34604         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
34605         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
34606         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
34607         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
34608
34609 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
34610
34611         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
34612         fcntl.
34613
34614 2010-07-06  Andreas Schwab  <schwab@redhat.com>
34615
34616         [BZ #11577]
34617         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
34618         dl_signal_cerror.
34619
34620 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
34621
34622         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
34623         _PC_PIPE_BUF using F_GETPIPE_SZ.
34624
34625 2010-07-05  Roland McGrath  <roland@redhat.com>
34626
34627         * manual/arith.texi (Rounding Functions): Fix rint description
34628         implicit in round description.
34629
34630 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
34631
34632         * elf/Makefile: Fix linking for a few tests to make recent linker
34633         happy.
34634
34635 2010-06-30  Andreas Schwab  <schwab@redhat.com>
34636
34637         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
34638         $(common-objpfx)libc_nonshared.a.
34639
34640 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
34641
34642         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
34643         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
34644         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
34645         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
34646         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
34647         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
34648         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
34649         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
34650         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
34651         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
34652         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
34653         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
34654         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
34655         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
34656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
34657         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
34658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
34659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
34660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
34661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
34662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
34663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
34664         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
34665         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
34666         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
34667         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
34668         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
34669         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
34670         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
34671         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
34672         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
34673         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
34674         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
34675         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
34676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
34677         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
34678         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
34679         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
34680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
34681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
34682         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
34683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
34684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
34685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
34686         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
34687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
34688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
34689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
34690
34691 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
34692
34693         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
34694         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
34695         * string/memmove.c (memmove): Renamed to ...
34696         (MEMMOVE): ...this.  Default to memmove.
34697         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
34698         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
34699         (END_CHK): Define.
34700         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34701         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
34702         mempcpy-ssse3-back memmove-ssse3-back.
34703         * sysdeps/x86_64/multiarch/bcopy.S: New file .
34704         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
34705         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
34706         * sysdeps/x86_64/multiarch/memcpy.S: New file.
34707         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
34708         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
34709         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
34710         * sysdeps/x86_64/multiarch/memmove.c: New file.
34711         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
34712         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
34713         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
34714         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
34715         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
34716         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
34717         Define.
34718         (index_Fast_Copy_Backward): Define.
34719         (HAS_ARCH_FEATURE): Define.
34720         (HAS_FAST_REP_STRING): Define.
34721         (HAS_FAST_COPY_BACKWARD): Define.
34722
34723 2010-06-21  Andreas Schwab  <schwab@redhat.com>
34724
34725         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
34726         Restore proper fallback handling.
34727
34728 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
34729
34730         [BZ #11701]
34731         * posix/group_member.c (__group_member): Correct checking loop.
34732
34733         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
34734         OOM in getpwuid_r correctly.  Return error number when the caller
34735         should return, otherwise -1.
34736         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
34737         call returning > 0 value.
34738         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
34739
34740 2010-06-07  Andreas Schwab  <schwab@redhat.com>
34741
34742         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
34743         libc_nonshared.a from targets in modules-names.
34744
34745 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
34746
34747         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
34748         requires it.
34749
34750 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
34751
34752         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
34753         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
34754         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
34755         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
34756
34757 2010-06-02  Andreas Schwab  <schwab@redhat.com>
34758
34759         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
34760
34761 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
34762
34763         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
34764         and F_GETPIPE_SZ.
34765         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
34766         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
34767         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
34768         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
34769         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
34770         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
34771
34772 2010-06-14  Roland McGrath  <roland@redhat.com>
34773
34774         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
34775
34776 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
34777
34778         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
34779         __REDIRECT followed by __THROW.
34780         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
34781         * posix/getopt.h (getopt): Likewise.
34782
34783 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
34784
34785         * hurd/lookup-at.c (__file_name_lookup_at): Accept
34786         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
34787         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
34788         in AT_FLAGS.
34789         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
34790         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
34791
34792 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
34793
34794         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
34795
34796 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
34797
34798         [BZ #11640]
34799         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34800         Properly check family and model.
34801
34802 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
34803
34804         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
34805
34806 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
34807
34808         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
34809
34810 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
34811
34812         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
34813         symbol reference.
34814
34815 2010-05-19  Andreas Schwab  <schwab@redhat.com>
34816
34817         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
34818         symbol reference.
34819
34820 2010-05-21  Andreas Schwab  <schwab@redhat.com>
34821
34822         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
34823         and internal_recvmmsg.
34824         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
34825         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
34826         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
34827         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
34828
34829         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
34830         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
34831         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
34832
34833 2010-05-20  Andreas Schwab  <schwab@redhat.com>
34834
34835         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
34836
34837 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
34838
34839         POWER7 optimizations.
34840         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
34841         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
34842
34843 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
34844
34845         * version.h: Update for 2.13 development version.
34846
34847 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
34848
34849         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
34850         exceptions.  Return 0.
34851
34852 2010-05-07  Roland McGrath  <roland@redhat.com>
34853
34854         * elf/ldconfig.c (main): Add a const.
34855
34856 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
34857
34858         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
34859         (args_options): Add no-idn option.
34860         (ahosts_keys_int): Add idn_flags to ai_flags.
34861         (parse_option): Handle 'i' option to clear idn_flags.
34862
34863         * malloc/malloc.c (_int_free): Possible race in the most recently
34864         added check.  Only act on the data if no current modification
34865         happened.
34866
34867 See ChangeLog.17 for earlier changes.