New test to expose erroneous negative sign on logb(1) (bug 887).
[platform/upstream/glibc.git] / ChangeLog
1 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2
3         [BZ #887]
4         * math/libm-test.inc (logb_test_downward): New test to expose
5         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
6         rounding mode.
7
8 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
9
10         [BZ #14027]
11         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
12         to be done.
13         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
14         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
15
16 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
17
18         * sysdeps/unix/i386/brk.S: Remove file.
19         * sysdeps/unix/i386/dl-brk.S: Likewise.
20         * sysdeps/unix/i386/pipe.S: Likewise.
21         * sysdeps/unix/i386/sigreturn.S: Likewise.
22         * sysdeps/unix/i386/syscall.S: Likewise.
23         * sysdeps/unix/i386/vfork.S: Likewise.
24         * sysdeps/unix/i386/wait.S: Likewise.
25
26         * sysdeps/unix/common/tcsendbrk.c: Move to ...
27         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
28
29         * configure.in (arm*-none*): Do not allow without
30         --enable-hacker-mode.
31         (netbsd*): Remove case setting base_os.
32         (386bsd*): Likewise.
33         (freebsd*): Likewise.
34         (bsdi*): Likewise.
35         (osf*): Likewise.
36         (sunos*): Likewise.
37         (ultrix*): Likewise.
38         (newsos*): Likewise.
39         (dynix*): Likewise.
40         (*bsd*): Likewise.
41         (sysv*): Likewise.
42         (isc*): Likewise.
43         (esix*): Likewise.
44         (sco*): Likewise.
45         (minix*): Likewise.
46         (irix4*): Likewise.
47         (irix6*): Likewise.
48         (solaris[2-9]*): Likewise.
49         (none): Likewise.
50         * configure: Regenerated.
51
52 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
53
54         [BZ #11521]
55         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
56         overflow or cancellation in calculating denominator.
57         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
58         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
59         down expression to avoid unexpected rounding in newer GCCs.
60         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
61
62 2012-04-26  David S. Miller  <davem@davemloft.net>
63
64         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
65         long-double compat symbols.
66         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
67         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
68         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
69         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
70         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
71         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
72         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
73         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
74         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
75         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
76         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
77         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
78         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
79
80 2012-04-25  David S. Miller  <davem@davemloft.net>
81
82         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
83         HWCAP_* values only after the memory barriers have been defined.
84         (atomic_full_barrier): Define.
85         (atomic_read_barrier): Define.
86         (atomic_write_barrier): Define.
87
88 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
89
90         * shlib-versions: Add libgcc_s version information.
91         * sysdeps/generic/libgcc_s.h: Remove.
92         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
93         libgcc_s.h.
94         * sysdeps/gnu/unwind-resume.c: Likewise.
95         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
96
97 2012-04-25  David S. Miller  <davem@davemloft.net>
98
99         * sysdeps/unix/sparc/brk.S: Delete.
100         * sysdeps/unix/sparc/dl-brk.S: Delete.
101         * sysdeps/unix/sparc/pipe.S: Delete.
102         * sysdeps/unix/sparc/sysdep.S: Delete.
103         * sysdeps/unix/sparc/sysdep.h: Delete.
104         * sysdeps/unix/sparc/vfork.S: Delete.
105         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
106         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
107         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
108         ret_ERRVAL, r0, r1, MOVE): Define.
109         (JUMPTARGET): Remove.
110         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
111         sysdeps/unix/sparc/sysdep.h
112         (ENTRY, END): Remove.
113         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
114
115 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
116
117         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
118         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
119         -DIS_IN_build.
120
121         * timezone/README: Update upstream location and email address for
122         tzcode and tzdata.
123         * timezone/zdump.c: Update from tzcode 2012b.
124         * timezone/zic.c: Likewise.
125
126         * configure.in (libc_cv_as_needed): Remove test.
127         * configure: Regenerated.
128         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
129         conditional definition.
130         [$(have-as-needed) != yes] (no-as-needed): Likewise.
131         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
132         * config.make.in (have-as-needed): Remove variable.
133
134 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
135             Paul Pluzhnikov  <ppluzhnikov@google.com>
136
137         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
138         strings correctly.
139
140 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
141
142         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
143         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
144         * sysdeps/sh/strlen.S: Likewise.
145
146 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
147
148         * sysdeps/unix/fork.S: Remove file.
149         * sysdeps/unix/i386/fork.S: Likewise.
150         * sysdeps/unix/sparc/fork.S: Likewise.
151
152         * sysdeps/unix/system.c: Remove file.
153         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
154
155         * sysdeps/unix/getegid.S: Remove file.
156         * sysdeps/unix/geteuid.S: Likewise.
157
158 2012-04-24  Roland McGrath  <roland@hack.frob.com>
159
160         * scripts/check-localplt.awk: New file.
161         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
162         of diff.
163         * scripts/data/localplt-generic.data: Add a comment.
164
165         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
166         NODE when __dir_mkfile failed.
167         * sysdeps/mach/hurd/symlinkat.c: Likewise.
168         Reported by Ludovic Courtès <ludo@gnu.org>.
169
170 2012-04-24  Andreas Jaeger  <aj@suse.de>
171
172         * Makerules (common-clean): Also remove gen-as-const-headers
173         files.
174
175 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
176
177         * Makerules (native-compile): Do not change working directory for
178         build.  Use $(OUTPUT_OPTION) in command.
179         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
180
181 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
182
183         [BZ #13886]
184         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
185         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
186         * math/libm-test.inc (floor_test): Add more tests.
187         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
188
189 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
190
191         * sysdeps/unix/getdents.c: Remove file.
192         * sysdeps/unix/sysv/getdents.c: Likewise.
193         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
194
195         * sysdeps/unix/syscalls.list (madvise): Add syscall from
196         sysdeps/unix/mman/syscalls.list.
197         (mmap): Likewise.
198         (mprotect): Likewise.
199         (msync): Likewise.
200         (munmap): Likewise.
201         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
202         * sysdeps/unix/mman/syscalls.list: Remove.
203         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
204
205         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
206         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
207         * configure: Regenerated.
208         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
209         $(libgcc_s_suffix).
210         * config.make.in (libgcc_s_suffix): Remove variable.
211
212 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
213
214         * sysdeps/unix/sysv/gethostname.c: Move to ...
215         * sysdeps/posix/gethostname.c: ... here.
216
217         * sysdeps/unix/execve.S: Remove file.
218
219         * sysdeps/unix/_exit.S: Remove file.
220
221 2012-04-23  Andreas Jaeger  <aj@suse.de>
222
223         [BZ #13739]
224         * manual/Makefile: Remove make dist support, there's no
225         need for a stand-alone documentation tar ball.
226         (TEXI2DVI): Define always, it's not in Makeconfig.
227         (dist): Removed.
228         (tar-it): Removed.
229         (edition): Removed.
230         (glibc-doc-$(edition).tar): Removed
231         (%.Z): Removed.
232         (%.gz): Removed.
233         (%.uu): Removed.
234         (ETAGS): Remove, it's in Makeconfig.
235         (move-if-change): Remove, it's in Makeconfig.
236
237 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
238
239         [BZ #13970]
240         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
241         (strtod, strtof, strtold, strtol, strtoul, strtoq)
242         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
243         (strtod_l, strtof_l, strtold_l): Remove __wur.
244         It is not necessarily an error to ignore strtol's return value.
245         One can reliably look at the stored endptr to decide whether
246         the number had valid syntax.
247
248 2012-04-21  Andreas Jaeger  <aj@suse.de>
249
250         [BZ #13739]
251         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
252
253 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
254
255         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
256         * sysdeps/unix/sysv/Versions: Remove file.
257
258 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
259
260         [BZ #13927]
261         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
262
263 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
264
265         [BZ #7064]
266         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
267         version from __vm86.
268
269 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
270
271         * sysdeps/unix/common/lxstat.c: Remove file.
272         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
273
274         * sysdeps/unix/sysv/Makefile: Remove file.
275
276         * sysdeps/unix/sysv/direct.h: Remove file.
277
278         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
279         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
280         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
281         * sysdeps/unix/sysv/bits/signum.h: Likewise.
282         * sysdeps/unix/sysv/bits/stat.h: Likewise.
283         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
284         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
285
286         * sysdeps/unix/sysv/setrlimit.c: Remove file.
287
288         * sysdeps/unix/xmknod.c: Remove file.
289         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
290
291         * sysdeps/unix/sysv/settimeofday.c: Remove file.
292
293         * sysdeps/unix/sysv/i386/time.S: Remove file.
294
295         * sysdeps/unix/fxstat.c: Remove file.
296         * sysdeps/unix/xstat.c: Likewise.
297         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
298
299         * sysdeps/unix/sysv/sigaction.c: Remove file.
300
301         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
302         (sysdep_headers): Remove variable.
303         [termio.h not in sysdep_headers] (generated): Likewise.
304         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
305         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
306         * sysdeps/unix/sysv/tcdrain.c: Likewise.
307         * sysdeps/unix/sysv/tcflow.c: Likewise.
308         * sysdeps/unix/sysv/tcflush.c: Likewise.
309         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
310         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
311         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
312         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
313         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
314
315         * sysdeps/unix/siglist.c: Remove file.
316
317         * sysdeps/unix/getppid.S: Remove file.
318
319         * sysdeps/unix/mkdir.c: Remove file.
320         * sysdeps/unix/rmdir.c: Likewise.
321
322 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
323
324         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
325         ERR_MAX value.
326         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
327         errlist-compat value.
328
329 2012-04-18  David S. Miller  <davem@davemloft.net>
330
331         * sysdeps/generic/memcopy.h (reg_char): Delete.
332         * debug/strcat_chk.c: Use char, not reg_char.
333         * debug/strcpy_chk.c: Likewise.
334         * debug/strncat_chk.c: Likewise.
335         * debug/strncpy_chk.c: Likewise.
336         * string/memchr.c: Likewise.
337         * string/memrchr.c: Likewise.
338         * string/rawmemchr.c: Likewise.
339         * string/strcat.c: Likewise.
340         * string/strchr.c: Likewise.
341         * string/strchrnul.c: Likewise.
342         * string/strcmp.c: Likewise.
343         * string/strcpy.c: Likewise.
344         * string/strncat.c: Likewise.
345         * string/strncmp.c: Likewise.
346         * string/strncpy.c: Likewise.
347
348 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
349
350         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
351         __builtin_memcopy is called when src and dest ranges are known to not
352         overlap.
353
354 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
355
356         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
357         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
358         fwd_align_merge macro call.
359         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
360         bwd_align_merge macro call.
361         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
362
363 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
364
365         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
366         bwd_align_merge macros.
367         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
368         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
369         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
370
371 2012-04-18  David S. Miller  <davem@davemloft.net>
372
373         * sysdeps/sparc/sparc64/memcopy.h: Delete.
374
375 2012-04-18  Andreas Jaeger  <aj@suse.de>
376
377         [BZ# 6794]
378         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
379         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
380         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
381
382         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
383         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
384         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
385
386         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
387         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
388         Adjust for changed ldbl-128 files.
389
390         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
391         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
392         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
393
394 2012-04-17  David S. Miller  <davem@davemloft.net>
395
396         * sysdeps/sparc/sparc32/memcopy.h: Delete.
397
398 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
399
400         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
401         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
402         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
403         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
404         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
405         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
406
407 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
408
409         [BZ #6794]
410         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
411         * math/libm-test.inc: Add ilogb errno and exception tests.
412         * math/w_ilogb.c: New file: ilogb wrapper.
413         * math/w_ilogbf.c: New file: ilogbf wrapper.
414         * math/w_ilogbl.c: New file: ilogbl wrapper.
415         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
416         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
417         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
418         exception being thrown with 0.0 as argument.
419         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
420         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
421         exception being thrown with 0.0 as argument.
422         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
423         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
424         exception being thrown with 0.0 as argument.
425         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
426         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
427         exception being thrown with 0.0 as argument.
428         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
429         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
430         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
431         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
432         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
433         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
434         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
435         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
436         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
437
438 2012-04-17  Petr Baudis  <pasky@ucw.cz>
439
440         * include/sys/uio.h: Change __vector to __iovec to avoid clash
441         with altivec.
442
443 2012-04-16  Marek Polacek  <polacek@redhat.com>
444
445         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
446
447 2012-04-16  Marek Polacek  <polacek@redhat.com>
448
449         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
450         operands of fdivp instruction.
451
452 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
453
454         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
455         * elf/tst-auditmod3b.c: Likewise.
456         * elf/tst-auditmod4b.c: Likewise.
457         * elf/tst-auditmod5b.c: Likewise.
458         * elf/tst-auditmod6b.c: Likewise.
459         * elf/tst-auditmod6c.c: Likewise.
460         * elf/tst-auditmod7b.c: Likewise.
461         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
462         * sysdeps/x86_64/preconfigure.in: Likewise.
463         * sysdeps/x86_64/preconfigure: Regenerated.
464
465 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
466
467         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
468         __ILP32__.
469
470 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
471
472         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
473         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
474
475 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
476
477         [BZ #13973]
478         * locale/iso-639.def: Fix gl language name. Spotted by
479         Yaron Shahrabani.
480
481 2012-04-12  Roland McGrath  <roland@hack.frob.com>
482
483         [BZ #2074]
484         * libio/libio.h (__io_write_fn): Update comment.
485
486 2012-04-12  Petr Baudis  <pasky@ucw.cz>
487
488         [BZ #2074]
489         * stdio.texi (Hook Functions): The user provided writer function
490         is not allowed to return -1.
491
492 2012-04-11  David S. Miller  <davem@davemloft.net>
493
494         * sysdeps/sparc/fpu/libm-test-ulps: Update.
495
496 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
497
498         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
499         Add a leading slash to rtkaio.
500
501 2012-04-11  Jim Meyering  <meyering@redhat.com>
502
503         [BZ #11959]
504         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
505         It is not necessarily an error to ignore fwrite's return
506         value.  One can reliably use ferror to test for errors after
507         the fact.
508
509 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
510
511         * bits/types.h (__snseconds_t): New type.
512         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
513
514         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
515         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
516         (__SNSECONDS_T_TYPE): Likewise.
517         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
518         (__SNSECONDS_T_TYPE): Likewise.
519         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
520         (__SNSECONDS_T_TYPE): Likewise.
521
522 2012-04-10  Andreas Jaeger  <aj@suse.de>
523
524         [BZ #2636]
525         * manual/time.texi (Processor Time): Return type of times is
526         elapsed real time since an arbitrary point in the past.
527         (CPU Time): Move CLK_TCK from here...
528         (Processor Time): ...to here.  Correct description.
529         * manual/conf.texi (Constants for Sysconf): Correct description of
530         _SC_CLK_TCK.
531
532 2012-04-10  David S. Miller  <davem@davemloft.net>
533
534         [BZ #13967]
535         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
536         where the is a gap between DT_REL(A) and DT_JMPREL.
537
538 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
539
540         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
541         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
542         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
543
544 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
545
546         * elf/dl-support.c (_dl_inhibit_cache): New variable.
547         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
548         (dl_main): Handle --inhibit-cache.
549         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
550         _dl_inhibit_cache.
551         * elf/dl-load.c (_dl_map_object): Use it.
552         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
553
554 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
555
556         [BZ #13872]
557         * sysdeps/i386/fpu/e_powl.S (p78): New object.
558         (__ieee754_powl): Saturate large exponents rather than testing for
559         overflow of y*log2(x).
560         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
561         * math/libm-test.inc (pow_test): Do not permit spurious overflow
562         exceptions.
563
564         [BZ #11521]
565         * math/s_ctan.c: Include <float.h>.
566         (__ctan): Avoid internal overflow or cancellation in calculating
567         denominator.
568         * math/s_ctanf.c: Likewise.
569         * math/s_ctanl.c: Likewise.
570         * math/s_ctanh.c: Likewise.
571         * math/s_ctanhf.c: Likewise.
572         * math/s_ctanhl.c: Likewise.
573         * math/libm-test.inc (ctan_test): Add more tests.
574         (ctanh_test): Likewise.
575         * sysdeps/i386/fpu/libm-test-ulps: Update.
576         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
577
578 2012-04-09  Andreas Jaeger  <aj@suse.de>
579
580         [BZ #6894]
581         * manual/filesys.texi (Directory Entries): Mention that d_namlen
582         is an optional BSD extension.
583
584         [BZ #10254]
585         * manual/stdio.texi (Opening Streams): Document additional fopen
586         parameters.
587
588 2012-04-09  Roland McGrath  <roland@hack.frob.com>
589
590         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
591         %eax without telling the compiler.
592
593 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
594
595         [BZ # 13963]
596         * manual/install.texi: Use sourceware.org.
597
598 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
599
600         [BZ #13873]
601         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
602         (__ieee754_pow): Generate overflow and underflow using huge*huge
603         and tiny*tiny rather than just returning constant infinity or zero
604         for large exponents.
605         * math/libm-test.inc (pow_test): Require overflow exceptions for
606         applicable cases of large exponents.
607
608         [BZ #706]
609         * sysdeps/i386/fpu/e_pow.S (p10): New object.
610         (__ieee754_pow): Use iterative multiplication algorithm only for
611         integer exponents with absolute value below 1024.  Check for odd
612         integer exponents when using algorithm for real exponents.
613         * math/libm-test.inc (pow_test): Add more tests.
614         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
615
616 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
617
618         [BZ #13705]
619         * math/libm-test.inc (exp_test): Do not allow overflow exception
620         on underflow test.
621
622 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
623
624         [BZ #13705]
625         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
626         instead of __kernel_standard_f.
627
628 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
629
630         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
631         * sysdeps/x86_64/memset_chk.S: Likewise.
632
633 2012-04-08  Andreas Jaeger  <aj@suse.de>
634
635         [BZ #10153]
636         * manual/startup.texi (Environment Access): Describe return value
637         for putenv and setenv.
638
639         [BZ #6895]
640         * manual/filesys.texi (Directory Entries): Add description for
641         DT_LNK.
642
643         [BZ #6890]
644         * manual/filesys.texi (Directory Entries): Clarify that it's file
645         system not operating system in the description of DT_UNKNOWN.
646
647         [BZ #6578]
648         * manual/syslog.texi (closelog): Fix reference, it's openlog.
649
650 2012-04-08  Stephen Compall  <s11@member.fsf.org>
651
652         [BZ #6649]
653         * manual/llio.texi (Opening and Closing Files): Add cross
654         reference to explain mode argument.
655
656 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
657
658         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
659         * sysdeps/x86_64/memset_chk.S: Likewise.
660
661 2012-04-07  David S. Miller  <davem@davemloft.net>
662
663         * elf/elf.h (R_SPARC_WDISP10): Define.
664         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
665         R_SPARC_SIZE32.
666         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
667         R_SPARC_SIZE64 and R_SPARC_H34.
668
669 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
670
671         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
672         conditions and remove no longer applicable assertion.
673
674 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
675
676         * bits/byteswap.h: Include <features.h>.
677         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
678         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
679
680 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
681
682         * bits/byteswap.h (__bswap_16): Removed.
683         Include <bits/byteswap-16.h> to get __bswap_16.
684         * sysdeps/i386/bits/byteswap.h: Likewise.
685         * sysdeps/s390/bits/byteswap.h: Likewise.
686         * sysdeps/x86_64/bits/byteswap.h: Likewise.
687         * bits/byteswap-16.h: New file.
688         * sysdeps/i386/bits/byteswap-16.h: Likewise.
689         * sysdeps/s390/bits/byteswap-16.h: Likewise.
690         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
691         * string/Makefile (headers): Add bits/byteswap-16.h.
692
693 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
694
695         [BZ #13895]
696         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
697         extra indirection.
698         * nss/Makefile (tests-static, tests): Add tst-nss-static.
699         * nss/tst-nss-static.c: New.
700
701 2012-04-06  Robert Millan  <rmh@gnu.org>
702
703         [BZ #6486]
704         * manual/llio.texi (File Position Primitive): lseek
705         refers to WHENCE when it really means OFFSET.
706
707 2012-04-06  Andreas Jaeger  <aj@suse.de>
708
709         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
710         strncmp declarations.
711
712         * abilist/libc.abilist: Add __poll and __ppoll.
713
714 2012-04-05  David S. Miller  <davem@davemloft.net>
715
716         * scripts/check-local-headers.sh: Accept a host triplet in the
717         path matched by the exclude regexp.
718
719         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
720         definition.
721         * sysdeps/powerpc/powerpc32/dl-machine.h
722         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
723         * sysdeps/s390/s390-32/dl-machine.h
724         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
725         * sysdeps/sparc/sparc32/dl-machine.h
726         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
727         * sysdeps/sparc/sparc64/dl-machine.h
728         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
729
730         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
731         lazy binding.
732         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
733         undefined symbol errors.
734
735         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
736         DT_NEEDED entries.
737
738 2012-04-05  Michael Matz  <matz@suse.de>
739
740         [BZ #13592]
741         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
742
743 2012-04-05  Andreas Jaeger  <aj@suse.de>
744
745         [BZ #13908]
746         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
747         comment.
748
749 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
750
751         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
752         which ROUND is no valid rounding mode.
753
754 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
755
756         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
757         read again.
758         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
759
760 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
761
762         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
763         an exception using FPU order intentionally.
764
765 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
766
767         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
768         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
769         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
770         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
771
772 2012-04-05  Simon Josefsson  <simon@josefsson.org>
773
774         [BZ #12340]
775         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
776         EINVAL when BUFLEN is too smal.
777
778 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
779
780         [BZ #13553]
781         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
782         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
783
784 2012-04-03  Andreas Jaeger  <aj@suse.de>
785
786         [BZ #13938]
787         * manual/setjmp.texi (System V contexts): Fix sentence.
788
789         [BZ #13926]
790         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
791         New macro for this case.
792         [!__GNUC__] (__bswap_64): New inline function for this case.
793         * sysdeps/x86_64/bits/byteswap.h: Likewise.
794         * bits/byteswap.h: Likewise.
795         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
796         ull, guard with __GLIBC_HAVE_LONG_LONG.
797
798         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
799         __GLIBC_HAVE_LONG_LONG.
800
801         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
802         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
803
804 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
805
806         [BZ #13691]
807         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
808         inptr and inend, rather than using last_ch.
809
810 2012-04-02  David S. Miller  <davem@davemloft.net>
811
812         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
813         * stdio-common/printf-parse.h (read_int): Change return type to
814         'int', return -1 on INT_MAX overflow.
815         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
816         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
817         overflows INT_MAX.  Check for overflow of in-format-string precision
818         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
819         SIZE_MAX not INT_MAX for integer overflow test.
820         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
821         skip the construct in the format string but do not record anything.
822         * stdio-common/bug22.c: Adjust to test both width/prevision
823         INT_MAX overflow as well as total length INT_MAX overflow.  Check
824         explicitly for proper errno values.
825
826 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
827
828         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
829         CHAR_MAX.
830         * string/test-strcmp.c [! WIDE]: Likewise.
831         * time/tst-mktime2.c: Likewise for INT_MAX.
832         * string/test-string.h: #include <sys/param.h> for MIN.
833
834         * csu/init-first.c (__libc_init_first): Call __ctype_init.
835         * sysdeps/i386/init-first.c (init): Likewise.
836         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
837         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
838         * sysdeps/sh/init-first.c (init): Likewise.
839
840 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
841
842         * po/ru.po: Update from translation team.
843         * po/vi.po: Likewise.
844
845 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
846
847         * resolv/nss_dns/dns-host.c: Merge copyright years.
848
849 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
850
851         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
852         Optimize memcpy with prefetch if
853         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
854         src, dst pointers have unequal 16 byte alignments.
855
856 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
857
858         [BZ #13928]
859         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
860         from a CNAME entry and return the minimum ttl for the query.
861         (gaih_getanswer_slice): Likewise.
862
863 2012-03-30  Jeff Law  <law@redhat.com>
864
865         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
866         due to long keys.
867         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
868         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
869
870         * resolv/nss_dns/dns-host.c: Update copyright year.
871
872 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
873
874         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
875         requests to save a system call.  Fix check that all bytes are sent.
876
877         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
878         comments for sendmmsg.
879
880 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
881
882         [BZ #13691]
883         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
884         with only 1 character between 0x0041 and 0x01b0.
885         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
886         * wcsmbs/tst-mbsnrtowcs.c: New file.
887
888 2012-03-29  David S. Miller  <davem@davemloft.net>
889
890         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
891         small copies by hand.
892
893 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
894
895         [BZ #13761]
896         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
897         _nss_compat_initgroups_dyn): Fall back to malloc/free
898         for large group memberships.
899
900 2012-03-28  David S. Miller  <davem@davemloft.net>
901
902         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
903         that branches into memcpy.
904         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
905         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
906         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
907         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
908         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
909         bits.
910         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
911         implementation too.
912         * sysdeps/sparc/mempcpy.S: New file.
913
914         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
915         the IFUNC routine in the libc case.
916         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
917
918         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
919         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
920         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
921         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
922         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
923         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
924         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
925         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
926
927         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
928         loop to 256 bytes instead of 64 bytes and fix test signedness.
929
930         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
931         * sysdeps/sparc/sparc32/Makefile: rather than here...
932         * sysdeps/sparc/sparc64/Makefile: and here.
933
934 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
935
936         * malloc/mallocbug.c: Avoid warnings about unused variables.
937
938 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
939
940         [BZ #13760]
941         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
942         in the right place. Discard and retry query if response is
943         larger than input buffer size.
944
945 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
946
947         [BZ #369]
948         [BZ #2678]
949         [BZ #3866]
950         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
951         x for large integer exponent.
952         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
953         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
954         sign of result as needed afterwards.
955         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
956         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
957         result for underflowing pow the same as for overflow.
958         (__kernel_standard_l): Handle powl overflow and underflow here
959         rather than calling __kernel_standard.
960         * math/libm-test.inc (pow_test): Add more tests.
961
962         [BZ #3868]
963         [BZ #13879]
964         [BZ #13910]
965         [BZ #13911]
966         [BZ #13912]
967         [BZ #13913]
968         [BZ #13915]
969         [BZ #13916]
970         [BZ #13917]
971         [BZ #13918]
972         [BZ #13919]
973         [BZ #13920]
974         [BZ #13921]
975         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
976         * sysdeps/ieee754/k_standard.c: Include <float.h>.
977         (__kernel_standard_l): New function.
978         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
979         __kernel_standard.
980         * math/w_acosl.c (__acosl): Likewise.
981         * math/w_asinl.c (__asinl): Likewise.
982         * math/w_atan2l.c (__atan2l): Likewise.
983         * math/w_atanhl.c (__atanhl): Likewise.
984         * math/w_coshl.c (__coshl): Likewise.
985         * math/w_exp10l.c (__exp10l): Likewise.
986         * math/w_exp2l.c (__exp2l): Likewise.
987         * math/w_fmodl.c (__fmodl): Likewise.
988         * math/w_hypotl.c (__hypotl): Likewise.
989         * math/w_j0l.c (__j0l, __y0l): Likewise.
990         * math/w_j1l.c (__j1l, __y1l): Likewise.
991         * math/w_jnl.c (__jnl, __ynl): Likewise.
992         * math/w_lgammal.c (__lgammal): Likewise.
993         * math/w_log10l.c (__log10l): Likewise.
994         * math/w_log2l.c (__log2l): Likewise.
995         * math/w_logl.c (__logl): Likewise.
996         * math/w_powl.c (__powl): Likewise.
997         * math/w_remainderl.c (__remainderl): Likewise.
998         * math/w_scalbl.c (sysv_scalbl): Likewise.
999         * math/w_sinhl.c (__sinhl): Likewise.
1000         * math/w_sqrtl.c (__sqrtl): Likewise.
1001         * math/w_tgammal.c (__tgammal): Likewise.
1002         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
1003         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
1004         * math/libm-test.inc (acos_test): Add more tests.
1005         (acosh_test): Likewise.
1006         (asin_test): Likewise.
1007         (atanh_test): Likewise.
1008         (exp_test): Likewise.
1009         (exp10_test): Likewise.
1010         (exp2_test): Likewise.
1011         (expm1_test): Likewise.
1012         (lgamma_test): Likewise.
1013         (log_test): Likewise.
1014         (log10_test): Likewise.
1015         (log1p_test): Likewise.
1016         (log2_test): Likewise.
1017         (pow_test): Do not allow some spurious overflow exceptions.
1018         (sqrt_test): Add more tests.
1019         (tgamma_test): Likewise.
1020         (y0_test): Likewise.
1021         (y1_test): Likewise.
1022         (yn_test): Likewise.
1023
1024 2012-03-27  Anton Blanchard  <anton@samba.org>
1025
1026         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
1027         MAP_HUGETLB.
1028         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1029         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1030         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1031
1032 2012-03-27  David S. Miller  <davem@davemloft.net>
1033
1034         * conform/Makefile: Run run-conformtest.sh using $(BASH).
1035
1036         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
1037         have-as-vis3 check.
1038
1039 2012-03-27  Andreas Jaeger  <aj@suse.de>
1040
1041         * sysdeps/x86_64/elf/configure.in: Moved to ...
1042         * sysdeps/x86_64/configure.in: ... here.
1043         * sysdeps/x86_64/elf/start.S: Moved to ...
1044         * sysdeps/x86_64/start.S: ... here.
1045         * sysdeps/x86_64/elf/configure: Delete.
1046
1047         * sysdeps/x86_64/configure.in: Merge contents from
1048         sysdeps/i386/configure.in (without i686 check).
1049
1050         * sysdeps/i386/elf/Versions: Merge into ...
1051         * sysdeps/i386/Versions: ... this.
1052         * sysdeps/i386/elf/Versions: Delete file.
1053         * sysdeps/i386/elf/start.S: Moved to ...
1054         * sysdeps/i386/start.S: ...here.
1055         * sysdeps/i386/elf/configure.in: Merge into...
1056         * sysdeps/i386/configure.in: ...here.
1057         * sysdeps/i386/elf/configure.in: Delete file.
1058         * sysdeps/i386/elf/configure: Delete file.
1059
1060         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
1061         * debug/backtracesyms.c: ... here.
1062         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
1063         * debug/backtracesymsfd.c: ... here.
1064         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
1065         * sysdeps/generic/ifunc-sel.h: ... here.
1066
1067         * sysdeps/unix/i386/start.c: Delete file.
1068         * sysdeps/unix/sparc/start.c: Delete file.
1069         * sysdeps/unix/start.c: Delete file.
1070
1071         * sysdeps/sh/elf/configure.in: Moved to ...
1072         * sysdeps/sh/configure.in: ... here.
1073         * sysdeps/sh/elf/start.S: Moved to ...
1074         * sysdeps/sh/start.S: ... here.
1075         * sysdeps/sh/elf/configure: Delete file.
1076
1077         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
1078         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
1079         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
1080         * sysdeps/powerpc/powerpc64/entry.h: ... here.
1081         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
1082         * sysdeps/powerpc/powerpc64/start.S: here.
1083         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
1084         * sysdeps/powerpc/powerpc64/Makefile: ... this.
1085         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
1086         * sysdeps/powerpc/powerpc64/configure.in: ... this.
1087         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
1088
1089         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
1090         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
1091         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
1092         * sysdeps/powerpc/powerpc32/start.S: ... here.
1093         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
1094         * sysdeps/powerpc/powerpc32/configure.in: ... this.
1095         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
1096
1097         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
1098         * sysdeps/powerpc/ifunc-sel.h: ... here.
1099         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
1100         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
1101
1102         * sysdeps/sparc/elf/configure.in: Moved to ...
1103         * sysdeps/sparc/configure.in: ... here.
1104         * sysdeps/sparc/elf/configure: Delete file.
1105         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
1106         * sysdeps/sparc/sparc32/start.S: ... here.
1107         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
1108         * sysdeps/sparc/sparc64/start.S: ... here.
1109         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
1110         * sysdeps/sparc/sparc32/Makefile: ... this.
1111         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
1112         * sysdeps/sparc/sparc64/Makefile: ... this.
1113
1114         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
1115         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
1116         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
1117         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
1118         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
1119         * sysdeps/s390/s390-32/setjmp.S: ... here.
1120         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
1121         * sysdeps/s390/s390-32/configure.in: ... here.
1122         * sysdeps/s390/s390-32/elf/configure: Delete file.
1123         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
1124         * sysdeps/s390/s390-32/start.S: ... here.
1125
1126         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
1127         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
1128         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
1129         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
1130         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
1131         * sysdeps/s390/s390-64/setjmp.S: ... here.
1132         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
1133         * sysdeps/s390/s390-64/configure.in: ... here
1134         * sysdeps/s390/s390-64/elf/configure: Delete file.
1135         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
1136         * sysdeps/s390/s390-64/start.S: ... here.
1137         * sysdeps/s390/s390-64/elf/configure: Delete.
1138
1139         * configure.in: Remove support for elf directories in sysdeps.
1140
1141         * configure: Regenerated.
1142         * sysdeps/i386/configure: Regenerated.
1143         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1144         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1145         * sysdeps/s390/s390-32/configure: Regenerated.
1146         * sysdeps/s390/s390-64/configure: Regenerated.
1147         * sysdeps/sh/configure: Regenerated.
1148         * sysdeps/sparc/configure: Regenerated.
1149         * sysdeps/x86_64/configure: Regenerated.
1150
1151 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
1152
1153         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1154
1155         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
1156         denormal result into account.
1157
1158 2012-03-25  Roland McGrath  <roland@hack.frob.com>
1159
1160         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
1161         Reported by Allan McRae <allan@archlinux.org>.
1162
1163 2012-03-23  Jeff Law  <law@redhat.com>
1164
1165         * nss/getnssent.c (__nss_getent): Fix typo.
1166
1167 2012-03-23  David S. Miller  <davem@davemloft.net>
1168
1169         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1170
1171 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
1172
1173         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
1174         to pad to uint64_t for each field.
1175         (dl_tls_index): Replace unsigned long with uint64_t.
1176
1177 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
1178         Paul Pluzhnikov  <ppluzhnikov@google.com>
1179
1180         [BZ #6528]
1181         * grp/Makefile (otherlibs): Don't set it.
1182         * inet/Makefile (otherlibs): Likewise.
1183         * login/Makefile (otherlibs): Likewise.
1184         * nscd/Makefile (otherlibs): Likewise.
1185         * posix/Makefile (otherlibs): Likewise.
1186         * pwd/Makefile (otherlibs): Likewise.
1187         * rt/Makefile (otherlibs): Likewise.
1188         * sunrpc/Makefile (otherlibs): Likewise.
1189         * nss/Makefile (otherlibs): Likewise.
1190         Add libnss_files to routines and static-only-routines.
1191         ($(objpfx)getent): Remove rule.
1192         * resolv/Makefile: Add libnss_dns and libresolv to routines and
1193         static-only-routines.
1194
1195 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
1196
1197         [BZ #13892]
1198         * math/s_cexp.c: Include <float.h>.
1199         (__cexp): Handle exp result overflowing not necessarily
1200         overflowing both real and imaginary parts of result.
1201         * math/s_cexpf.c: Likewise.
1202         * math/s_cexpl.c: Likewise.
1203         * math/libm-test.inc (cexp_test): Add more tests.
1204         * sysdeps/i386/fpu/libm-test-ulps: Update.
1205         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1206
1207 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1208
1209         * include/link.h (ELFW): New macro.
1210         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
1211         Replace ELF64_R_TYPE with ELFW(R_TYPE).
1212
1213 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1214
1215         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
1216         with uint64_t.
1217
1218 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1219
1220         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
1221         declaration.
1222         (struct La_x32_retval): Likewise.
1223
1224 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1225
1226         * sysdeps/x86_64/preconfigure.in: New file.
1227         * sysdeps/x86_64/preconfigure: New generated file.
1228
1229 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
1230
1231         [BZ #13824]
1232         * math/e_exp2l.c: Include <float.h>.
1233         (__ieee754_exp2l): Handle overflow and underflow cases
1234         separately.  Only pass fractional part of argument to
1235         __ieee754_expl.
1236         * math/libm-test.inc (exp2_test): Add more tests.
1237
1238         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
1239         negating x to take absolute value.
1240         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
1241         Likewise.
1242         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
1243         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
1244         Likewise.
1245         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
1246         computing low part if x was negated.
1247         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
1248
1249 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1250
1251         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
1252         la_x32_gnu_pltexit.
1253         (pltexit): Cast int_retval to ptrdiff_t.
1254         * elf/tst-auditmod3b.c: Likewise.
1255         * elf/tst-auditmod4b.c: Likewise.
1256         * elf/tst-auditmod5b.c: Likewise.
1257         * elf/tst-auditmod6b.c: Likewise.
1258         * elf/tst-auditmod6c.c: Likewise.
1259         * elf/tst-auditmod7b.c: Likewise.
1260
1261         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
1262         and x32_gnu_pltexit.
1263
1264         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
1265         __ELF_NATIVE_CLASS.
1266         (La_x32_regs): New macro.
1267         (La_x32_retval): Likewise.
1268         (la_x32_gnu_pltenter): New function prototype.
1269         (la_x32_gnu_pltexit): Likewise.
1270
1271 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
1272
1273         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
1274         exponent.
1275
1276         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1277
1278         * configure.in (libc_cv_cc_nofma): Check for option to disable
1279         generation of FMA instructions.
1280         * configure: Regenerate.
1281         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
1282         * sysdeps/ieee754/dbl-64/Makefile: New file.
1283         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1284         Remove brandred-fma4.
1285         (CFLAGS-brandred-fma4.c): Remove.
1286         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
1287         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
1288         define.
1289         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
1290         define.
1291
1292 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1293
1294         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
1295         LLONG_MAX != LONG_MAX.
1296         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1297         (_fitoa_word): Likewise.
1298         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
1299         LLONG_MAX != LONG_MAX.
1300         * stdio-common/_itowa.h: Include <_itoa.h>.
1301         (_itowa_word): Use _ITOA_WORD_TYPE on value.
1302         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
1303         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
1304         only if not defined.
1305         (_ITOA_WORD_TYPE): Likewise.
1306         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1307         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
1308
1309 2012-03-21  David S. Miller  <davem@davemloft.net>
1310
1311         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1312
1313 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1314
1315         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
1316         of x86_64 when setting libc_cv_slibdir, libdir and
1317         libc_cv_localedir.
1318         * sysdeps/unix/sysv/linux/configure: Regenerated.
1319
1320 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1321
1322         * manual/lang.texi (Old Varargs): Remove section.
1323         (How Variadic): Update menu.
1324         (va_start): Do not mention varargs.h.
1325
1326 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1327             Joseph Myers  <joseph@codesourcery.com>
1328
1329         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
1330         link test.
1331         * configure: Regenerated.
1332
1333 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1334
1335         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
1336         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
1337         conformtest.pl
1338
1339 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1340
1341         * NOTES: Remove.
1342         * Makefile (files-for-dist): Remove NOTES.
1343         (NOTES): Remove rule.
1344         * README: Don't refer to NOTES.
1345         * manual/creature.texi: Don't include macros.texi.
1346         * manual/intro.texi (creature.texi): Remove comment referring to
1347         NOTES.
1348
1349         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
1350         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
1351         * configure: Regenerated.
1352         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
1353         LIBC_TRY_CC_OPTION.
1354         (libc_cv_as_i686): Likewise.
1355         (libc_cv_cc_avx): Likewise.
1356         (libc_cv_cc_sse2avx): Likewise.
1357         (libc_cv_cc_fma4): Likewise.
1358         (libc_cv_cc_novzeroupper): Likewise.
1359         * sysdeps/i386/configure: Regenerated.
1360
1361         [BZ #13883]
1362         * sysdeps/i386/fpu/s_cexp.S: Remove.
1363         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
1364         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
1365         * math/libm-test.inc (cexp_test): Add more tests.
1366         * sysdeps/i386/fpu/libm-test-ulps: Update.
1367         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1368
1369 2012-03-21  Allan McRae  <allan@archlinux.org>
1370
1371         * timezone/Makefile: Do not install iso3166.tab and zone.tab
1372
1373 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1374
1375         [BZ #13871]
1376         * math/w_exp2.c: Do not include <float.h>.
1377         (o_threshold, u_threshold): Remove.
1378         (__exp2): Calculate result before checking finiteness and calling
1379         __kernel_standard.
1380         * math/w_exp2f.c: Likewise.
1381         * math/w_exp2l.c: Likewise.
1382         * math/libm-test.inc (exp2_test): Require overflow exception for
1383         1e6 input.
1384
1385         [BZ #3866]
1386         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
1387         range of signed 64-bit integers before using fistpll.  Remove
1388         checks for whether integers fit in mantissa bits.
1389         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
1390         the range of signed 32-bit integers before using fistpl.  Remove
1391         checks for whether integers fit in mantissa bits.
1392         * sysdeps/i386/fpu/e_powl.S (p64): New object.
1393         (__ieee754_powl): Test for y outside the range of signed 64-bit
1394         integers before using fistpll.  Reduce 64-bit values to 63-bit
1395         ones as needed.
1396         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
1397         divide-by-zero is raised for zero to large negative powers.
1398         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
1399         (__ieee754_powl): Test for y outside the range of signed 64-bit
1400         integers before using fistpll.  Reduce 64-bit values to 63-bit
1401         ones as needed.
1402         * math/libm-test.inc (pow_test): Add more tests.
1403
1404 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1405
1406         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
1407         <stdio-common/_itoa.h>.
1408         * debug/segfault.c: Likewise.
1409         * elf/dl-cache.c: Likewise.
1410         * elf/dl-minimal.c: Likewise.
1411         * elf/dl-misc.c: Likewise.
1412         * elf/dl-sysdep.c: Likewise.
1413         * elf/dl-version.c: Likewise.
1414         * elf/rtld.c: Likewise.
1415         * hurd/hurdsock.c: Likewise.
1416         * hurd/lookup-retry.c: Likewise.
1417         * malloc/malloc.c: Likewise.
1418         * malloc/mtrace.c: Likewise.
1419         * nscd/nscd_getgr_r.c: Likewise.
1420         * nscd/nscd_getpw_r.c: Likewise.
1421         * nscd/nscd_getserv_r.c: Likewise.
1422         * posix/getopt_init.c: Likewise.
1423         * posix/wordexp.c: Likewise.
1424         * stdio-common/_itoa.c: Likewise.
1425         * stdio-common/printf_fphex.c: Likewise.
1426         * stdio-common/vfprintf.c: Likewise.
1427         * string/_strerror.c: Likewise.
1428         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
1429         * sysdeps/i386/i686/hp-timing.h: Likewise.
1430         * sysdeps/mach/_strerror.c: Likewise.
1431         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
1432         * sysdeps/mach/hurd/sethostid.c: Likewise.
1433         * sysdeps/mach/hurd/xmknodat.c: Likewise.
1434         * sysdeps/mach/xpg-strerror.c: Likewise.
1435         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
1436         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
1437         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
1438         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
1439         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
1440         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
1441         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
1442         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
1443         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
1444         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
1445         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
1446         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1447         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
1448         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
1449         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
1450         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1451         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
1452         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
1453         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1454         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1455         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
1456
1457         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
1458
1459         * stdio-common/_itoa.h: Moved to ...
1460         * sysdeps/generic/_itoa.h: Here.
1461
1462         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
1463
1464         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
1465         instead of "_itoa.h" and "_itowa.h".
1466         * stdio-common/vfprintf.: Likewise.
1467
1468 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1469
1470         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
1471         <bits/wordsize.h>.
1472         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
1473         (__signbit): Likwise.
1474         (llrintf): Likwise.
1475         (llrint): Likwise.
1476
1477 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1478
1479         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
1480         __WORDSIZE != 64.
1481
1482 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
1483
1484         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
1485         OVERFLOW_EXCEPTION_OK.
1486         * math/libm-test.inc ("Philosophy"): Update comment about
1487         exception testing.
1488         (OVERFLOW_EXCEPTION): Define.
1489         (OVERFLOW_EXCEPTION_OK): Likewise.
1490         (INVALID_EXCEPTION_OK): Renumber.
1491         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
1492         (IGNORE_ZERO_INF_SIGN): Likewise.
1493         (test_exceptions): Handle FE_OVERFLOW.
1494         (exp10_test): Expect overflow exceptions.
1495         (exp2_test): Likewise.
1496         (expm1_test): Likewise.
1497         (nextafter_test): Likewise.
1498         (pow_test): Likewise.
1499         (scalbn_test): Likewise.
1500         (scalbln_test): Likewise.
1501
1502 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1503
1504         * sysdeps/x86_64/bits/atomic.h
1505         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
1506         64bit integer.
1507         (atomic_exchange_acq): Likewise.
1508         (__arch_exchange_and_add_body): Likewise.
1509         (__arch_add_body): Likewise.
1510         (atomic_add_negative): Likewise.
1511         (atomic_add_zero): Likewise.
1512
1513 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1514
1515         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
1516         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
1517
1518 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1519
1520         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
1521         Check __x86_64__ instead of __WORDSIZE.
1522
1523 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1524
1525         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
1526
1527 2012-03-19  David S. Miller  <davem@davemloft.net>
1528
1529         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1530
1531         * sysdeps/sparc/fpu/fenv_private.h: New file.
1532         * sysdeps/sparc/fpu/math_private.h: Use it.
1533         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
1534         Remove.
1535         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
1536         (libc_feholdexcept_setroundl): Remove.
1537         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
1538         Remove.
1539         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
1540         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
1541
1542 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1543
1544         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
1545         int64_t instead of long int.
1546         (INSERT_WORDS64): Likwise.
1547
1548 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1549
1550         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
1551         _Unwind_GetCFA return to _Unwind_Ptr first.
1552
1553 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
1554
1555         [BZ #13629]
1556         * math/s_clog.c: Include <float.h>.
1557         (__clog): Scale large or subnormal inputs.
1558         * math/s_clogf.c: Likewise.
1559         * math/s_clogl.c: Likewise.
1560         * math/s_clog10.c: Include <float.h>.
1561         (M_LOG10_2): Define.
1562         (__clog10): Scale large or subnormal inputs.
1563         * math/s_clog10f.c: Likewise.
1564         * math/s_clog10l.c: Likewise.
1565         * math/libm-test.inc (clog_test): Add more tests.
1566         (clog10_test): Likewise.
1567         * sysdeps/i386/fpu/libm-test-ulps: Update.
1568         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1569
1570         [BZ #11451]
1571         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
1572         x and y.
1573         * math/libm-test.inc (atan2_test): Add another test.
1574
1575         * Makerules (common-objdir-compile): Remove.
1576         * sysdeps/unix/Makefile (config-generated): Do not add
1577         $(unix-generated) to variable.
1578         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
1579         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
1580         Remove rule.
1581         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
1582         Likewise.
1583         [generic bits/local_lim.h] (before-compile): Do not append to
1584         variable.
1585         [generic bits/local_lim.h] (common-generated): Likewise.
1586         [generic sys/param.h] (before-compile): Do not append to variable.
1587         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
1588         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
1589         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
1590         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
1591         include.
1592         [generic sys/param.h] (sys/param.h-includes): Remove variable.
1593         [generic sys/param.h] (sys/param.h-includes): Remove rule.
1594         [generic sys/param.h] ($(addprefix
1595         $(common-objpfx),$(sys/param.h-includes))): Likewise.
1596         [generic sys/param.h] (common-generated): Do not append to
1597         variable.
1598         [generic sys/param.h] (sysdep_headers): Likewise.
1599         [generic bits/errno.h] (before-compile): Do not append to
1600         variable.
1601         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
1602         rule.
1603         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
1604         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
1605         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
1606         [generic bits/errno.h] (common-generated): Do not append to
1607         variable.
1608         [generic bits/ioctls.h] (before-compile): Do not append to
1609         variable.
1610         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
1611         rule.
1612         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
1613         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
1614         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
1615         rule.
1616         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
1617         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
1618         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
1619         [generic bits/ioctls.h] (common-generated): Do not append to
1620         variable.
1621         [generic sys/syscall.h] (syscall.h): Remove variable.
1622         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
1623         rule.
1624         [generic sys/syscall.h] (before-compile): Do not append to
1625         variable.
1626         [generic sys/syscall.h] (common-generated): Likewise.
1627         * sysdeps/unix/errnos-tmpl.c: Remove file.
1628         * sysdeps/unix/errnos.awk: Likewise.
1629         * sysdeps/unix/ioctls-tmpl.c: Likewise.
1630         * sysdeps/unix/ioctls.awk: Likewise.
1631         * sysdeps/unix/mk-local_lim.c: Likewise.
1632         * sysdeps/unix/snarf-ioctls: Likewise.
1633
1634 2012-03-19  Richard Henderson  <rth@twiddle.net>
1635
1636         * sysdeps/i386/fpu/fenv_private.h: New file.
1637         * sysdeps/i386/fpu/math_private.h: Use it.
1638         (math_opt_barrier, math_force_eval): Remove.
1639         (libc_feholdexcept_setround_53bit): Remove.
1640         (libc_feupdateenv_53bit): Remove.
1641         * sysdeps/x86_64/fpu/math_private.h: Likewise.
1642         (math_opt_barrier, math_force_eval): Remove.
1643         (libc_feholdexcept): Remove.
1644         (libc_feholdexcept_setround): Remove.
1645         (libc_fetestexcept, libc_fesetenv): Remove.
1646         (libc_feupdateenv_test): Remove.
1647         (libc_feupdateenv, libc_feholdsetround): Remove.
1648         (libc_feresetround): Remove.
1649
1650         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
1651         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
1652
1653         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
1654         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
1655         (libc_feupdateenv_testl): New.
1656         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
1657         (libc_feupdateenv_testf): New.
1658         (libc_feupdateenv): Use libc_feupdateenv_test.
1659         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
1660         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
1661
1662         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
1663         (libc_feholdsetroundf, libc_feholdsetroundl): New.
1664         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
1665         (libc_feresetround_noex): New.
1666         (libc_feresetround_noexf): New.
1667         (libc_feresetround_noexl): New.
1668         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
1669         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
1670         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
1671         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
1672         SET_RESTORE_ROUND.
1673         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
1674         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
1675         (__cos): Likewise.
1676         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
1677         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
1678         SET_RESTORE_ROUND_NOEX.
1679         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
1680         SET_RESTORE_ROUND_NOEXF.
1681         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
1682         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
1683         (libc_feholdsetroundf): New.
1684         (libc_feresetround, libc_feresetroundf): New.
1685
1686         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
1687         (libc_feholdexcept_setround_53bit): Convert from macro to function.
1688         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
1689
1690         * sysdeps/generic/math_private.h: Include <fenv.h>.
1691         (default_libc_feholdexcept): New.
1692         (default_libc_feholdexcept_setround): New.
1693         (default_libc_fesetenv, default_libc_feupdateenv): New.
1694         (libc_feholdexcept): Only define if undefined.
1695         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
1696         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
1697         (libc_feholdexcept_setroundl): Likewise.
1698         (libc_feholdexcept_setround_53bit): Likewise.
1699         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
1700         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
1701         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
1702         (libc_feupdateenv_53bit): Likewise.
1703         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
1704         (libc_feholdexcept): Convert from macro to inline function.
1705         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
1706         (libc_fesetenv, libc_feupdateenv): Likewise.
1707
1708         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
1709         not previously defined.
1710         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
1711         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
1712         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
1713         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
1714         * sysdeps/ieee754/flt-32/math_private.h: New file.
1715         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
1716         math_private.h below SET_FLOAT_WORD.
1717         (__isnan, __isinf_ns, __finite): Remove.
1718         (__isnanf, __isinf_nsf, __finitef): Remove.
1719
1720 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
1721
1722         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1723
1724 2012-03-17  David S. Miller  <davem@davemloft.net>
1725
1726         [BZ #6471]
1727         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
1728         for 2.16.
1729
1730 2012-03-16  David S. Miller  <davem@davemloft.net>
1731
1732         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
1733         warnings.
1734
1735         [BZ #6471]
1736         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
1737         properly.
1738         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
1739         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
1740         sysdep_routines when subdir is sysvipc.
1741         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
1742         __getshmlba helper.
1743
1744         * sysdeps/sparc/fpu/libm-test/ulps: Update.
1745
1746 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1747
1748         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
1749         [__LP64__].
1750
1751 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1752
1753         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
1754         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
1755         (__lround): Renamed to ...
1756         (__llround): This.  Replace long int with long long int.
1757         Define lround functions as aliases of llround functions.
1758         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
1759
1760 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1761
1762         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1763         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
1764         adresses to uintptr_t.  Replace "long int" and "unsigned long
1765         int" with "greg_t" on va_arg.
1766
1767 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1768
1769         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
1770         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
1771
1772         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
1773         Move e_machine check before EI_CLASS check.  Handle x32
1774         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
1775         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
1776         SKIP_EM_IA_64 and include
1777         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
1778
1779         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
1780         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
1781         (add_system_dir): New macro.
1782
1783         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
1784         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
1785
1786 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
1787
1788         [BZ #2551]
1789         [BZ #2552]
1790         [BZ #2553]
1791         [BZ #2554]
1792         [BZ #2562]
1793         [BZ #2563]
1794         [BZ #2565]
1795         [BZ #2566]
1796         [BZ #2576]
1797         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
1798         (y0): Likewise.
1799         * math/w_j0f.c (j0f): Likewise.
1800         (y0f): Likewise.
1801         * math/w_j0l.c (__j0l): Likewise.
1802         (__y0l): Likewise.
1803         * math/w_j1.c (j1): Likewise.
1804         (y1): Likewise.
1805         * math/w_j1f.c (j1f): Likewise.
1806         (y1f): Likewise.
1807         * math/w_j1l.c (__j1l): Likewise.
1808         (__y1l): Likewise.
1809         * math/w_jn.c (jn): Likewise.
1810         (yn): Likewise.
1811         * math/w_jnf.c (jnf): Likewise.
1812         (ynf): Likewise.
1813         * math/w_jnl.c (__jnl): Likewise.
1814         (__ynl): Likewise.
1815         * math/libm-test.inc (j0_test): Add more tests.
1816         (j1_test): Likewise.
1817         (jn_test): Likewise.  Add trailing semicolon to existing test.
1818         (y0_test): Likewise.
1819         (y1_test): Likewise.
1820         * sysdeps/i386/fpu/libm-test-ulps: Update.
1821         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1822
1823         [BZ #13851]
1824         [BZ #13854]
1825         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
1826         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
1827         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
1828         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
1829         (__tanl): Set errno for infinite argument.
1830         * sysdeps/i386/fpu/mptan.c: Remove.
1831         * sysdeps/i386/fpu/s_tan.S: Likewise.
1832         * sysdeps/i386/fpu/s_tanl.S: Likewise.
1833         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
1834         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1835         * math/libm-test.inc (tan_test): Add more tests and enable more
1836         tests for double and long double.
1837         * sysdeps/i386/fpu/libm-test-ulps: Update.
1838         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1839
1840 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1841
1842         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
1843         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
1844
1845 2012-03-16  Roland McGrath  <roland@hack.frob.com>
1846
1847         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
1848         * configure.in: Use it for both main tree and add-ons.
1849         * configure: Regenerated.
1850
1851 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1852
1853         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
1854
1855 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
1856
1857         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
1858         in comment.
1859
1860         [BZ #13851]
1861         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
1862         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
1863         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
1864         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
1865         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
1866         infinite argument.
1867         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
1868         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
1869         != 0 for prec == 2.
1870         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
1871         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
1872         * sysdeps/i386/fpu/s_cosl.S: Likewise.
1873         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
1874         * sysdeps/i386/fpu/s_sinl.S: Likewise.
1875         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
1876         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
1877         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
1878         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1879         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
1880         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1881         * math/libm-test.inc (cos_test): Add more tests and enable more
1882         tests for long double.
1883         (sin_test): Likewise.
1884         (sincos_test): Likewise.
1885         * sysdeps/i386/fpu/libm-test-ulps: Update.
1886         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1887
1888 2012-03-16  David S. Miller  <davem@davemloft.net>
1889
1890         * sysdeps/sparc/fpu/math_private.h: New file.
1891
1892 2012-03-15  David S. Miller  <davem@davemloft.net>
1893
1894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
1895         file.
1896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
1897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
1898         file.
1899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
1900         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
1901         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
1902         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
1903         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
1904         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
1905         sysdep routines.
1906         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
1907
1908         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
1909         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
1910
1911         * sysdeps/sparc/sparc-ifunc.h: New file.
1912         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
1913         sparc-ifunc.h
1914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
1915         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
1916         Likewise.
1917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
1918         Likewise.
1919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
1920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
1921         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
1922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
1923         Likewise.
1924         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
1925         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
1926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
1927         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
1928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
1929         Likewise.
1930         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
1931         Likewise.
1932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
1933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
1934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
1935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
1936         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
1937         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
1938         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
1939         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
1940         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
1941         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
1942         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
1943         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
1944         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
1945         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
1946         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
1947         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
1948         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
1949         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
1950         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
1951         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
1952         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
1953         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
1954         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
1955         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
1956
1957 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
1958
1959         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
1960         scaling.
1961         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1962
1963 2012-03-15  Andreas Jaeger  <aj@suse.de>
1964
1965         [BZ #13852]
1966         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
1967         ieee754/flt-32 implementation for sin, cos and sincos.
1968         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
1969         * sysdeps/i386/fpu/s_cosf.S: Likewise.
1970         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
1971         * sysdeps/i386/fpu/s_sinf.S: Likewise.
1972         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
1973         ieee754/flt-32 implementation for tan.
1974
1975         * math/libm-test.inc (cos_test): Enable some large input tests for
1976         float as well
1977         (sin_test): Likewise.
1978         (sincos_test): Likewise.
1979         (tan_test): Add tests for large input.
1980
1981         * sysdeps/i386/fpu/libm-test-ulps: Update.
1982
1983 2012-03-15  Andreas Jaeger  <aj@suse.de>
1984
1985         [BZ #13658]
1986         * math/libm-test.inc (cos_test): Add more test cases.
1987         (sin_test): Likewise.
1988         (sincos_test): Likewise.
1989
1990 2012-03-15  Andreas Jaeger  <aj@suse.de>
1991
1992         [BZ #13837]
1993         * math/libm-test.inc (cos_test): Add a test case for large input
1994         value.
1995         (sin_test): Likewise.
1996         (sincos_test): Likewise.
1997
1998 2012-03-15  Andreas Jaeger  <aj@suse.de>,
1999         Joseph Myers  <joseph@codesourcery.com>
2000
2001         [BZ #13658]
2002         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
2003         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
2004         * sysdeps/i386/fpu/branred.c: Likewise.
2005         * sysdeps/i386/fpu/dosincos.c: Likewise.
2006         * sysdeps/i386/fpu/mpa.c: Likewise.
2007         * sysdeps/i386/fpu/s_cos.S: Likewise.
2008         * sysdeps/i386/fpu/s_sin.S: Likewise.
2009         * sysdeps/i386/fpu/s_sincos.S: Likewise.
2010         * sysdeps/i386/fpu/sincos32.c: Likewise.
2011
2012         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
2013         Define.
2014         (libc_feupdateenv_53bit): Define.
2015         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
2016         Define.
2017         (libc_feupdateenv_53bit): Define.
2018
2019         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
2020         53 bit (without extend i386 double precision).
2021
2022         * math/libm-test.inc (sincos_test): Add tests for large input.
2023         (sin): Likewise.
2024         (cos): Likewise.
2025
2026         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
2027
2028 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
2029
2030         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2031
2032 2012-03-15  David S. Miller  <davem@davemloft.net>
2033
2034         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
2035         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
2036         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
2037         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
2038         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
2039         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
2040         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
2041         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
2042         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
2043         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
2044         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
2045         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
2046         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
2047         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
2048         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
2049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
2050         file.
2051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
2052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
2053         file.
2054         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
2055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
2056         file.
2057         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
2058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
2059         file.
2060         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
2061         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
2062         fmin/fmax sysdep routines.
2063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
2064
2065 2012-03-14  David S. Miller  <davem@davemloft.net>
2066
2067         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
2068         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
2069         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
2070         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
2071         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
2072         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
2073         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
2074         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
2075         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
2076         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
2077         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
2078         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
2079         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
2080         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
2081         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
2082         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
2083         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
2084         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
2085         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
2086         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
2087         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
2088         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
2089         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
2090         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
2091         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
2092         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
2093         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
2094         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
2095         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
2096         routines.
2097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
2098         file.
2099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
2100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
2101         file.
2102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
2103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
2104         file.
2105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
2106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
2107         file.
2108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
2109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
2110         file.
2111         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
2112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
2113         file.
2114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
2115         file.
2116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
2117         file.
2118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
2119         file.
2120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
2121         New file.
2122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
2123         file.
2124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
2125         file.
2126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
2127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
2128         file.
2129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
2130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
2131         file.
2132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
2133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
2134         file.
2135         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
2136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
2137         VIS3 routines.
2138
2139         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
2140         New file.
2141
2142         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2143
2144         * sysdeps/sparc/configure.in: New file.
2145         * sysdeps/sparc/configure: Generate.
2146         * configure.in (libc_cv_sparc_as_vis3): Substitute.
2147         * configure: Regenerate.
2148         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
2149         * config.make.in (have-as-vis3): New.
2150         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
2151         available use -Av9d instead of -Av9a.
2152         * sysdeps/sparc/sparc64/Makefile: Likewise.
2153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
2154         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
2155         New file.
2156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
2157         file.
2158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
2159         New file.
2160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
2161         file.
2162         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
2163         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
2164         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
2165         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
2166         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
2167
2168         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
2169         fzeros/fnegs to load 0x80000000 into a float register instead of
2170         using the stack.
2171         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
2172
2173 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
2174
2175         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2176         bits/syscall.h.
2177         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
2178         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
2179         ($(inst_includedir)/bits/syscall.h): Remove rule.
2180         ($(objpfx)bits/syscall.d): Include instead of
2181         $(objpfx)syscall-list.d.
2182         (generated): Change syscall-list.h and syscall-list.d to
2183         bits/syscall.h and bits/syscall.d.
2184
2185 2012-03-14  Roland McGrath  <roland@hack.frob.com>
2186
2187         [BZ #13846]
2188         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
2189
2190 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
2191
2192         [BZ #13841]
2193         * math/s_csqrt.c: Include <float.h>.
2194         (__csqrt): Scale large or subnormal inputs.
2195         * math/s_csqrtf.c: Likewise.
2196         * math/s_csqrtl.c: Likewise.
2197         * math/libm-test.inc (csqrt_test): Add more tests.
2198         * sysdeps/i386/fpu/libm-test-ulps: Update.
2199         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2200
2201         [BZ #13840]
2202         * math/libm-test.inc (hypot_test): Add more tests.
2203
2204 2012-03-13  David S. Miller  <davem@davemloft.net>
2205
2206         [BZ #13840]
2207         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
2208         double-precision for the calculation instead of scaling.
2209
2210 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
2211
2212         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
2213         manipulate bits before adding and subtracting TWO52[sx].
2214         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
2215         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
2216         Likewise.
2217         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
2218
2219 2012-03-13  David S. Miller  <davem@davemloft.net>
2220
2221         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
2222         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
2223         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
2224         rtld-global-offsets.h
2225         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
2226
2227         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
2228         large parameters.
2229
2230         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
2231
2232         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
2233         'err' in the ifdef scope in which it is actually used.
2234
2235         * nss/nss_db/db-init.c: Include string.h
2236
2237 2012-03-12  David S. Miller  <davem@davemloft.net>
2238
2239         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
2240         masking out of the most significant byte of random value used.
2241         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
2242         Fix coding style in previous change.
2243
2244         * sysdeps/unix/sysv/linux/kernel-features.h
2245         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
2246         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
2247         expression.
2248         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
2249         later.
2250
2251 2012-03-11  David S. Miller  <davem@davemloft.net>
2252
2253         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
2254         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
2255         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
2256         for 'resultvar' otherwise things get truncated on 64-bit.
2257
2258         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
2259         Fix masking out of the most significant byte of random value used.
2260
2261         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2262
2263 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
2264
2265         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2266
2267 2012-03-09  David S. Miller  <davem@davemloft.net>
2268
2269         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
2270         variables with appropriate CPP guards.
2271         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
2272         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
2273         on resulting framesize and the management of the outregs buffer for pltexit.
2274         Preserve floating point return values across _dl_call_pltexit call.
2275         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
2276         framesize and the management of the outregs buffer for pltexit.
2277         Preserve floating point return values across _dl_call_pltexit
2278         call.
2279         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
2280         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
2281         (print_exit): Fix format string for return register value.
2282
2283 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
2284
2285         * sunrpc/Makefile (others): Add rpcgen.
2286         ($(objpfx)rpcgen): Remove special build rule and dependency on
2287         libc.
2288         * sunrpc/rpcgen.c: New file.
2289
2290 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
2291
2292         [BZ #13673]
2293         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
2294         * stdio-common/bug-vfprintf-nargs.c: Likewise.
2295         * sysdeps/i386/crti.S: Likewise.
2296         * sysdeps/i386/crtn.S: Likewise.
2297         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
2298         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
2299         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
2300         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
2301         * sysdeps/sh/crti.S: Likewise.
2302         * sysdeps/sh/crtn.S: Likewise.
2303         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2304
2305         [BZ #13673]
2306         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
2307         with URL.
2308         * locale/programs/locfile-kw.gperf: Likewise.
2309         * locale/programs/charmap-kw.h: Regenerated.
2310         * locale/programs/locfile-kw.h: Likewise.
2311
2312         [BZ #13673]
2313         * intl/plural.y: Replace FSF snail mail address with URL.
2314         * intl/plural.c: Regenerated.
2315
2316 2012-03-09  Richard Henderson  <rth@twiddle.net>
2317
2318         * include/math_private.h: Remove file.
2319         * math/math_private.h: Move file ...
2320         * sysdeps/generic/math_private.h: ... here.
2321
2322         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
2323         * sysdeps/powerpc/fpu/math_private.h: Likewise.
2324         * sysdeps/x86_64/fpu/math_private.h: Likewise.
2325
2326         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
2327         and <math_private.h>.
2328         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
2329         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
2330         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
2331         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
2332         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
2333         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2334         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2335         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2336         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
2337         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2338         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2339         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
2340         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
2341         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2342         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
2343         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
2344         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
2345         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
2346         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
2347         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
2348         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2349         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
2350         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
2351         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2352         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
2353         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2354         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
2355         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2356         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2357         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2358         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
2359         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2360         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
2361         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
2362         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
2363         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
2364         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
2365         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
2366         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
2367         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
2368         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
2369         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
2370         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
2371         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
2372         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
2373         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
2374         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
2375         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
2376         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
2377         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
2378         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
2379         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
2380         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
2381         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
2382         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
2383         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
2384         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
2385         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
2386         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
2387         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
2388         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2389         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
2390         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2391         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
2392         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
2393         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2394         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2395         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2396         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
2397         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
2398         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
2399         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
2400         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
2401         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
2402         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
2403         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
2404         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
2405         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
2406         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
2407         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
2408         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
2409         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
2410         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
2411         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
2412         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
2413         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
2414         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
2415         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
2416         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
2417         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
2418         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
2419         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
2420         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
2421         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
2422         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
2423         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
2424         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
2425         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
2426         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
2427         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
2428         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
2429         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
2430         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
2431         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
2432         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
2433         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
2434         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
2435         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
2436         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
2437         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
2438         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
2439         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
2440         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
2441         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
2442         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
2443         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
2444         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
2445         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2446         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
2447         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2448         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
2449         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
2450         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
2451         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
2452         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
2453         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
2454         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
2455         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
2456         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
2457         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
2458         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
2459         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
2460         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
2461         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
2462         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
2463         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
2464         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
2465         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
2466         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
2467         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
2468         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
2469         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
2470         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
2471         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
2472         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
2473         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2474         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2475         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
2476         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
2477         * sysdeps/ieee754/k_standard.c: Likewise.
2478         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
2479         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2480         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2481         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
2482         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
2483         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2484         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
2485         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
2486         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
2487         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2488         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2489         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2490         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2491         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2492         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2493         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2494         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
2495         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
2496         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2497         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
2498         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
2499         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
2500         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2501         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
2502         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2503         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2504         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
2505         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
2506         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
2507         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2508         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2509         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
2510         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
2511         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
2512         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
2513         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
2514         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
2515         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
2516         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
2517         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
2518         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
2519         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
2520         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2521         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
2522         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
2523         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
2524         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
2525         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
2526         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
2527         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
2528         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
2529         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
2530         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
2531         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
2532         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
2533         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
2534         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
2535         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
2536         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
2537         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
2538         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
2539         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
2540         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
2541         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
2542         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
2543         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
2544         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
2545         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
2546         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
2547         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
2548         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
2549         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
2550         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
2551         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
2552         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
2553         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
2554         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
2555         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
2556         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2557         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
2558         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
2559         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
2560         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
2561         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
2562         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
2563         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
2564         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2565         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
2566         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2567         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
2568         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
2569         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
2570         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
2571         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
2572         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
2573         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
2574         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
2575         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
2576         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
2577         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
2578         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
2579         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
2580         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
2581         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
2582         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
2583         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
2584         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
2585         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
2586         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
2587         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
2588         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
2589         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2590         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
2591         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2592         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
2593         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
2594         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
2595         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
2596         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2597         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2598         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2599         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2600         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
2601         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
2602         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
2603         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
2604         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
2605         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
2606         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2607         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2608         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
2609         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2610         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
2611         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
2612         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
2613         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
2614         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
2615         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2616         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
2617         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
2618         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
2619         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
2620         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
2621         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
2622         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
2623         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
2624         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
2625         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
2626         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
2627         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
2628         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
2629         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
2630         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
2631         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
2632         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
2633         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
2634         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2635         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
2636         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
2637         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
2638         * sysdeps/ieee754/s_lib_version.c: Likewise.
2639         * sysdeps/ieee754/s_matherr.c: Likewise.
2640         * sysdeps/ieee754/s_signgam.c: Likewise.
2641         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
2642         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
2643         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
2644         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
2645         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
2646         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2647         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
2648         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
2649         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
2650         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
2651         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
2652         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
2653         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
2654         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
2655         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
2656         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
2657         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
2658         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
2659         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
2660         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
2661         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
2662
2663 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
2664
2665         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
2666         * sunrpc/rpc_main.c: Likewise.
2667         * sunrpc/rpc_svcout.c: Likewise.
2668
2669 2012-03-09  David S. Miller  <davem@davemloft.net>
2670
2671         * include/math_private.h: New file.
2672
2673 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
2674
2675         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
2676         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
2677         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
2678         from <bits/socket_type.h>.
2679         (enum __socket_type): Don't define here.
2680         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
2681         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2682         bits/socket_type.h.
2683
2684         [BZ #13566]
2685         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
2686         checking __USE_GNU.
2687
2688         * Makerules ($(inst_includedir)/%.h): New rule.
2689         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
2690         (install-others): Remove variable setting.
2691         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
2692
2693 2012-03-08  Richard Henderson  <rth@twiddle.net>
2694
2695         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
2696         from macro to inline function; merge with the
2697         !__LIBC_INTERNAL_MATH_INLINES version.
2698         (__ieee754_sqrtf): Likewise.
2699
2700         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
2701         to inline function.
2702         (__rintf, __floor, __floorf): Likewise.
2703
2704         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
2705         macro to inline function.
2706         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
2707
2708         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
2709         not <math/math_private.h>.
2710
2711 2012-03-08  David S. Miller  <davem@davemloft.net>
2712
2713         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
2714         copyright year.
2715         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
2716
2717 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
2718
2719         * resolv/gai_misc.c (handle_requests): Fix struct timespec
2720         normalization.
2721         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
2722         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
2723
2724 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
2725
2726         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
2727         be defined individually, they must be defined as a block.  Define
2728         S for printing a string instead of hidint the different by using a
2729         macro for adding the 'l'.
2730         * stdio-common/tst-fphex-wide.c: Adjust.
2731
2732 2012-03-07  Marek Polacek  <polacek@redhat.com>
2733
2734         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
2735
2736 2012-03-08  Marek Polacek  <polacek@redhat.com>
2737
2738         [BZ #13806]
2739         * stdio-common/Makefile (tests): Add tst-fphex-wide.
2740         * stdio-common/tst-fphex.c: Define a few macros to make the
2741         test reusable.  Use them.
2742         * stdio-common/tst-fphex-wide.c: New file.
2743
2744 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
2745
2746         [BZ #6911]
2747         * manual/macros.texi (gnusystems): New macro.
2748         (nongnusystems): Likewise.
2749         (gnulinuxhurdsystems): Likewise.
2750         (gnuhurdsystems): Likewise..
2751         (gnulinuxsystems): Likewise.
2752         * manual/charset.texi: Use new macros or @theglibc{} to refer to
2753         variants of the GNU system, not "GNU system".
2754         * manual/conf.texi: Likewise.
2755         * manual/errno.texi: Likewise.  Update example of errno macro
2756         expansion.
2757         * manual/filesys.texi: Likewise.
2758         (getumask): Document as specific to GNU/Hurd.
2759         * manual/install.texi: Likewise.  Reword some references to
2760         GNU/Linux.
2761         * manual/intro.texi: Likewise.
2762         * manual/io.texi: Likewise.
2763         (File Name Portability): Detail which constraints are inapplicable
2764         to all GNU systems and which are only inapplicable to GNU/Hurd.
2765         * manual/job.texi: Likewise.
2766         * manual/llio.texi: Likewise.
2767         (O_NOCTTY): Document as present on GNU/Linux.
2768         * manual/maint.texi: Likewise.
2769         * manual/memory.texi: Likewise.
2770         * manual/pattern.texi: Likewise.
2771         * manual/pipe.texi: Likewise.
2772         * manual/process.texi: Likewise.
2773         * manual/resource.texi: Likewise.
2774         (RUSAGE_CHILDREN): Remove statement about specifying a particular
2775         child on GNU/Hurd.
2776         * manual/setjmp.texi: Likewise.
2777         * manual/signal.texi: Likewise.
2778         * manual/startup.texi: Likewise.
2779         * manual/stdio.texi: Likewise.
2780         * manual/terminal.texi: Likewise.
2781         (ONLCR): Document as POSIX.
2782         (OXTABS): Document availability on GNU/Linux as XTABS.
2783         (ONOEOT): Document availability separately from other bits.
2784         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
2785         * manual/time.texi: Likewise.
2786         * manual/users.texi: Likewise.
2787         * INSTALL: Regenerated.
2788         * sysdeps/gnu/errlist.c: Regenerated.
2789
2790         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
2791         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
2792         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
2793         puts.
2794         * configure: Regenerated.
2795
2796 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
2797
2798         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
2799         default includes instead of AC_HEADER_CHECK.
2800         * sysdeps/i386/configure: Regenerated.
2801
2802         [BZ #10716]
2803         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
2804         * math/s_cacoshf.c (__cacoshf): Likewise.
2805         * math/s_cacoshl.c (__cacoshl): Likewise.
2806         * math/s_casinh.c (__casinh): Set signs of result from argument.
2807         * math/s_casinhf.c (__casinhf): Likewise.
2808         * math/s_casinhl.c (__casinhl): Likewise.
2809         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
2810         (casinh_test): Add more tests.
2811         * sysdeps/i386/fpu/libm-test-ulps: Update.
2812         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2813
2814 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
2815
2816         * po/zh_TW.po: Update from translation team.
2817
2818         * login/Makefile (distribute): Remove variable.
2819         * catgets/Makefile: Likewise.
2820         * mach/Makefile: Likewise.
2821         * malloc/Makefile: Likewise.
2822         * misc/Makefile: Likewise.
2823         * iconv/Makefile: Likewise.
2824         * nscd/Makefile: Likewise.
2825         * hurd/Makefile: Likewise.
2826         * manual/Makefile: Likewise.
2827         * locale/Makefile: Likewise.
2828         * intl/Makefile: Likewise.
2829         * conform/Makefile: Likewise.
2830         * nss/Makefile: Likewise.
2831         * time/Makefile: Likewise.
2832         * soft-fp/Makefile: Likewise.
2833         * dirent/Makefile: Likewise.
2834         * gmon/Makefile: Likewise.
2835         * po/Makefile: Likewise.
2836         * rt/Makefile: Likewise.
2837         * socket/Makefile: Likewise.
2838         * math/Makefile: Likewise.
2839         * signal/Makefile: Likewise.
2840         * debug/Makefile: Likewise.
2841         * elf/Makefile: Likewise.
2842         * timezone/Makefile: Likewise.
2843         * stdlib/Makefile: Likewise.
2844         * iconvdata/Makefile: Likewise.
2845         * sunrpc/Makefile: Likewise.
2846         * io/Makefile: Likewise.
2847         * argp/Makefile: Likewise.
2848         * inet/Makefile: Likewise.
2849         * hesiod/Makefile: Likewise.
2850         * grp/Makefile: Likewise.
2851         * csu/Makefile: Likewise.
2852         * wctype/Makefile: Likewise.
2853         * crypt/Makefile: Likewise.
2854         * libio/Makefile: Likewise.
2855         * string/Makefile: Likewise.
2856         * nis/Makefile: Likewise.
2857         * resolv/Makefile: Likewise.
2858         * stdio-common/Makefile: Likewise.
2859         * wcsmbs/Makefile: Likewise.
2860         * dlfcn/Makefile: Likewise.
2861         * posix/Makefile: Likewise.
2862
2863         * timezone/Makefile: Don't install timezone files, just the programs
2864         and scripts.
2865
2866 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
2867
2868         * nss/databases.def: Add missing gshadow entry.
2869
2870         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
2871
2872 2012-03-06  Marek Polacek  <polacek@redhat.com>
2873
2874         [BZ #13726]
2875         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
2876         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
2877         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
2878         * stdio-common/tst-long-dbl-fphex.c: New file.
2879
2880 2012-03-06  David S. Miller  <davem@davemloft.net>
2881
2882         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2883         (set_obp_int): New function.
2884         (get_obp_int): New function.
2885         (__get_clockfreq_via_dev_openprom): Likewise.
2886         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2887         Avoid unused variable warnings on 'val' and use builtin_expect.
2888         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
2889         __builtin_expect.
2890         (INLINE_CLONE_SYSCALL): Likewise.
2891
2892 2012-03-05  David S. Miller  <davem@davemloft.net>
2893
2894         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2895
2896 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
2897
2898         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2899
2900         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
2901         only for |x| >= 40.
2902         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2903
2904 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
2905
2906         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
2907         Replace gettimeofday with __vdso_gettimeofday.
2908
2909         * sysdeps/unix/sysv/linux/x86_64/init-first.c
2910         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
2911         __vdso_clock_gettime and __vdso_getcpu.
2912
2913         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
2914         time with __vdso_time.
2915
2916 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
2917
2918         * manual/lang.texi (size_t): Note types to which size_t may be
2919         equivalent with the GNU C Library, but do not describe when
2920         differences between them are significant.
2921
2922 2012-03-05  Andreas Jaeger  <aj@suse.de>
2923
2924         * sysdeps/i386/fpu/libm-test-ulps: Update.
2925
2926 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
2927
2928         [BZ #3976]
2929         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
2930         (__ieee754_pow): Save and restore rounding mode and use
2931         round-to-nearest for main computations.
2932         * math/libm-test.inc (pow_test_tonearest): New function.
2933         (pow_test_towardzero): Likewise.
2934         (pow_test_downward): Likewise.
2935         (pow_test_upward): Likewise.
2936         (main): Call the new functions.
2937         * sysdeps/i386/fpu/libm-test-ulps: Update.
2938         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2939
2940         [BZ #3976]
2941         * math/libm-test.inc (cosh_test_tonearest): New function.
2942         (cosh_test_towardzero): Likewise.
2943         (cosh_test_downward): Likewise.
2944         (cosh_test_upward): Likewise.
2945         (sinh_test_tonearest): Likewise.
2946         (sinh_test_towardzero): Likewise.
2947         (sinh_test_downward): Likewise.
2948         (sinh_test_upward): Likewise.
2949         (main): Call the new functions.
2950         * sysdeps/i386/fpu/libm-test-ulps: Update.
2951         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2952
2953 2012-03-05  Tom de Vries  <tom@codesourcery.com>
2954
2955         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
2956         default stack guard is set in last bytes.
2957         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
2958
2959 2012-03-05  Kees Cook  <keescook@chromium.org>
2960
2961         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
2962
2963         [BZ #13656]
2964         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
2965         possibly allocate from heap instead of stack.
2966         * stdio-common/bug-vfprintf-nargs.c: New file.
2967         * stdio-common/Makefile (tests): Add nargs overflow test.
2968
2969 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
2970
2971         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2972
2973 2012-03-03  Marek Polacek  <polacek@redhat.com>
2974
2975         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
2976         * math/math_private.h: Likewise.
2977         * stdlib/tst-strtod.c: Likewise.
2978         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2979         * sysdeps/x86_64/bits/atomic.h: Likewise.
2980
2981 2012-03-02  David S. Miller  <davem@davemloft.net>
2982
2983         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
2984         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
2985         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
2986         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
2987         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
2988         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
2989         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
2990         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
2991
2992 2012-03-02  Roland McGrath  <roland@hack.frob.com>
2993
2994         [BZ #13792]
2995         * manual/examples/README: New file, says the example source files
2996         can be used under GPL>=2.
2997         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
2998         line containing just "*/".
2999         * manual/examples/add.c: Add copyright header (GPL>=2).
3000         * manual/examples/argp-ex1.c: Likewise.
3001         * manual/examples/argp-ex2.c: Likewise.
3002         * manual/examples/argp-ex3.c: Likewise.
3003         * manual/examples/argp-ex4.c: Likewise.
3004         * manual/examples/atexit.c: Likewise.
3005         * manual/examples/db.c: Likewise.
3006         * manual/examples/dir.c: Likewise.
3007         * manual/examples/dir2.c: Likewise.
3008         * manual/examples/execinfo.c: Likewise.
3009         * manual/examples/filecli.c: Likewise.
3010         * manual/examples/filesrv.c: Likewise.
3011         * manual/examples/fmtmsgexpl.c: Likewise.
3012         * manual/examples/genpass.c: Likewise.
3013         * manual/examples/inetcli.c: Likewise.
3014         * manual/examples/inetsrv.c: Likewise.
3015         * manual/examples/isockad.c: Likewise.
3016         * manual/examples/longopt.c: Likewise.
3017         * manual/examples/memopen.c: Likewise.
3018         * manual/examples/memstrm.c: Likewise.
3019         * manual/examples/mkfsock.c: Likewise.
3020         * manual/examples/mkisock.c: Likewise.
3021         * manual/examples/mygetpass.c: Likewise.
3022         * manual/examples/pipe.c: Likewise.
3023         * manual/examples/popen.c: Likewise.
3024         * manual/examples/rprintf.c: Likewise.
3025         * manual/examples/search.c: Likewise.
3026         * manual/examples/select.c: Likewise.
3027         * manual/examples/setjmp.c: Likewise.
3028         * manual/examples/sigh1.c: Likewise.
3029         * manual/examples/sigusr.c: Likewise.
3030         * manual/examples/stpcpy.c: Likewise.
3031         * manual/examples/strdupa.c: Likewise.
3032         * manual/examples/strftim.c: Likewise.
3033         * manual/examples/strncat.c: Likewise.
3034         * manual/examples/subopt.c: Likewise.
3035         * manual/examples/swapcontext.c: Likewise.
3036         * manual/examples/termios.c: Likewise.
3037         * manual/examples/testopt.c: Likewise.
3038         * manual/examples/testpass.c: Likewise.
3039         * manual/examples/timeval_subtract.c: Likewise.
3040
3041         [BZ #13792]
3042         * manual/time.texi (Elapsed Time): Move timeval_subtract example
3043         function to ...
3044         * manual/timeval_subtract.c.texi: ... here, new file.
3045
3046 2012-03-02  David S. Miller  <davem@davemloft.net>
3047
3048         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
3049
3050 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
3051
3052         [BZ #3976]
3053         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
3054         (__sin): Save and restore rounding mode and use round-to-nearest
3055         for all computations.
3056         (__cos): Save and restore rounding mode and use round-to-nearest
3057         for all computations.
3058         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
3059         <fenv.h>.
3060         (tan): Save and restore rounding mode and use round-to-nearest for
3061         all computations.
3062         * math/libm-test.inc (cos_test_tonearest): New function.
3063         (cos_test_towardzero): Likewise.
3064         (cos_test_downward): Likewise.
3065         (cos_test_upward): Likewise.
3066         (sin_test_tonearest): Likewise.
3067         (sin_test_towardzero): Likewise.
3068         (sin_test_downward): Likewise.
3069         (sin_test_upward): Likewise.
3070         (tan_test_tonearest): Likewise.
3071         (tan_test_towardzero): Likewise.
3072         (tan_test_downward): Likewise.
3073         (tan_test_upward): Likewise.
3074         (main): Call the new functions.
3075         * sysdeps/i386/fpu/libm-test-ulps: Update.
3076         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3077
3078         [BZ #10135]
3079         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
3080         small n, then large n, before computing and testing k+n.
3081         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
3082         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
3083         Likewise.
3084         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
3085         Likewise.
3086         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
3087         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
3088         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
3089         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
3090         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
3091         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
3092         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
3093         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
3094         * math/libm-test.inc (scalbn_test): Add more tests.
3095         (scalbln_test): Likewise.
3096
3097         * manual/filesys.texi (mode_t): Describe constraints on size and
3098         signedness, not exact equivalence to a particular type.
3099         (ino_t): Likewise.
3100         (ino64_t): Likewise.
3101         (dev_t): Likewise.
3102         (nlink_t): Likewise.
3103         (blkcnt_t): Likewise.
3104         (blkcnt64_t): Likewise.
3105         * manual/llio.texi (off_t): Likewise.
3106
3107         [BZ #3976]
3108         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
3109         (__ieee754_exp): Save and restore rounding mode and use
3110         round-to-nearest for all computations.
3111         * math/libm-test.inc (exp_test_tonearest): New function.
3112         (exp_test_towardzero): Likewise.
3113         (exp_test_downward): Likewise.
3114         (exp_test_upward): Likewise.
3115         (main): Call the new functions.
3116         * sysdeps/i386/fpu/libm-test-ulps: Update.
3117         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3118
3119 2012-03-01  Chris Demetriou  <cgd@google.com>
3120
3121         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
3122         have predictable order.
3123
3124 2012-03-01  David S. Miller  <davem@davemloft.net>
3125
3126         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
3127
3128         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
3129         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
3130         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
3131         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
3132
3133         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
3134         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
3135         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
3136         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
3137         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
3138         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
3139         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
3140         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
3141         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
3142
3143         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3144
3145         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
3146         * sysdeps/sparc/fpu/libm-test-ulps: to here.
3147         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
3148
3149         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
3150         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3151         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3152         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
3153         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
3154         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
3155         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
3156         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3157         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3158         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
3159         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
3160         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3161         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
3162         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
3163         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3164         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3165         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
3166         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
3167         * sysdeps/sparc/elf/configure: Regenerated.
3168
3169 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
3170
3171         * configure.in (AS, LD): Require binutils 2.20 or later.
3172         * configure: Regenerated.
3173         * manual/install.texi (Tools for Compilation): Give binutils 2.20
3174         as required minimum version.
3175         * INSTALL: Regenerated.
3176
3177         [BZ #2541]
3178         [BZ #4108]
3179         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
3180         before squaring exponent.
3181         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
3182         bottom long double and 27 bits of top long double before squaring
3183         exponent.
3184         * math/libm-test.inc (erfc_test): Add more tests.
3185         * sysdeps/i386/fpu/libm-test-ulps: Update.
3186         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3187         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3188
3189 2012-03-01  Kai Tietz  <ktietz@redhat.com>
3190
3191         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
3192         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
3193         containing bit-fields.
3194         * soft-fp/extended.h (_FP_UNION_E): Likewise.
3195         * soft-fp/single.h (_FP_UNION_S): Likewise.
3196         * soft-fp/double.h (_FP_UNION_D): Likewise.
3197
3198 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
3199
3200         [BZ #13786]
3201         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
3202         not include ../strcmp.S.
3203         [USE_AS_STRNCASECMP_L]: Likewise.
3204         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
3205         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
3206         * sysdeps/i386/i686/multiarch/strncase_l-c.c
3207         (__strncasecmp_l_ia32): Define as alias to
3208         __strncasecmp_l_nonascii.
3209
3210         [BZ #5794]
3211         * math/libm-test.inc (expm1_test): Add test for bug 5794.
3212         * sysdeps/i386/fpu/libm-test-ulps: Update.
3213         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3214
3215         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
3216         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3217
3218 2012-02-29  Jeff Law  <law@redhat.com>
3219
3220         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
3221         out of bounds read.
3222
3223 2012-02-29  Marek Polacek  <polacek@redhat.com>
3224
3225         [BZ #13706]
3226         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
3227         * elf/Makefile: Add rules to run tst-unused-dep.out.
3228
3229 2012-02-28  David S. Miller  <davem@davemloft.net>
3230
3231         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
3232         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
3233         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
3234         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
3235         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
3236         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
3237
3238 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
3239
3240         * math/libm-test.inc (llround_test): Move one test from
3241         lround_test.  Use TEST_f_L in moved test.
3242         (lround_test): Move misplaced test to llround_test.  Add testcase
3243         from bug 2561.
3244
3245 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
3246
3247         * sysdeps/x86_64/fpu/e_expf.S: New file.
3248         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
3249
3250 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
3251
3252         [BZ #13637]
3253         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
3254         of remain_len that may cause incomplete multi-byte character and
3255         false match.
3256         * posix/bug-regex33.c: New file.
3257         * posix/Makefile (tests): Add bug-regex33.
3258
3259 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
3260
3261         * manual/macros.texi: New file.
3262         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
3263         * manual/libc.texinfo: Include macros.texi.
3264         * manual/creatute.texi: Likewise.
3265         * manual/install.texi: Likewise.
3266         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
3267         @glibcadj{} in references to the GNU C Library.
3268         * manual/charset.texi: Likewise.
3269         * manual/conf.texi: Likewise.
3270         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
3271         when not using those macros.
3272         * manual/creature.texi: Likewise.
3273         * manual/crypt.texi: Likewise.
3274         * manual/errno.texi: Likewise.
3275         * manual/filesys.texi: Likewise.
3276         * manual/header.texi: Likewise.
3277         * manual/install.texi: Likewise.
3278         * manual/intro.texi: Likewise.
3279         * manual/io.texi: Likewise.
3280         * manual/job.texi: Likewise.
3281         * manual/lang.texi: Likewise.
3282         * manual/libc.texiinfo: Likewise.
3283         * manual/llio.texi: Likewise.
3284         * manual/locale.texi: Likewise.
3285         * manual/maint.texi: Likewise.
3286         * manual/math.texi: Likewise.
3287         * manual/memory.texi: Likewise.
3288         * manual/message.texi: Likewise.
3289         * manual/nss.texi: Likewise.
3290         * manual/pattern.texi: Likewise.
3291         * manual/process.texi: Likewise.
3292         * manual/resource.texi: Likewise.
3293         * manual/search.texi: Likewise.
3294         * manual/setjmp.texi: Likewise.
3295         * manual/signal.texi: Likewise.
3296         * manual/socket.texi: Likewise.
3297         * manual/startup.texi: Likewise.
3298         * manual/stdio.texi: Likewise.
3299         * manual/string.texi: Likewise.
3300         * manual/sysinfo.texi: Likewise.
3301         * manual/syslog.texi: Likewise.
3302         * manual/terminal.texi: Likewise.
3303         * manual/time.texi: Likewise.
3304         * manual/users.texi: Likewise.
3305         * INSTALL: Regenerated.
3306         * NOTES: Regenerated.
3307         * sysdeps/gnu/errlist.c: Regenerated.
3308
3309 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
3310
3311         * include/dirent.h: Include <dirstream.h> before
3312         <dirent/dirent.h>.
3313
3314 2012-02-28  David S. Miller  <davem@davemloft.net>
3315
3316         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
3317         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
3318         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
3319         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
3320
3321 2012-02-27  David S. Miller  <davem@davemloft.net>
3322
3323         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
3324         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
3325         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
3326         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
3327
3328         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
3329         frame pointer instead of stack pointer relative arg slot.
3330         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
3331         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
3332         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
3333
3334 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
3335
3336         [BZ #3992]
3337         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
3338
3339 2012-02-27  David S. Miller  <davem@davemloft.net>
3340
3341         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
3342         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
3343         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
3344         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
3345         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
3346         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
3347         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
3348         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
3349
3350 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
3351
3352         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
3353         later.  Allow versions 5-9.
3354         * configure: Regenerated.
3355         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
3356         required minimum version and 4.6 as recommended version.  Do not
3357         mention bugs in GCC 2.7 and 2.8.
3358         * INSTALL: Regenerated.
3359
3360 2012-02-27  David S. Miller  <davem@davemloft.net>
3361
3362         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
3363         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
3364         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
3365         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
3366         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
3367         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
3368         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
3369         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
3370
3371         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
3372         manipulate bits before adding and subtracting TWO112[sx].
3373         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
3374
3375 2012-02-27  Roland McGrath  <roland@hack.frob.com>
3376
3377         [BZ #13775]
3378         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
3379         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
3380         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
3381         being in POSIX, because they are in 1003.1-2008.
3382
3383         * rt/tst-aio.c: Include <fcntl.h>.
3384         * rt/tst-aio7.c: Likewise.
3385         * rt/tst-aio64.c: Likewise.
3386
3387         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
3388
3389 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
3390
3391         * manual/install.texi (--with-headers): Describe headers as
3392         interface headers, not private headers.
3393         (Specific advice for GNU/Linux systems): Describe use of headers
3394         from "make headers_install", not private headers from older
3395         kernels.
3396         * INSTALL: Regenerated.
3397         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
3398         Change to 2.6.19.
3399         * sysdeps/unix/sysv/linux/configure: Regenerated.
3400
3401         * manual/llio.texi (fclean): Remove documentation.
3402
3403         * manual/Makefile (libc-texi-generated): New variable.  Include
3404         version.texi.
3405         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
3406         $(libc-texi-generated), not duplicated list of files.
3407         (version.texi, stamp-version): New rules.
3408         (realclean): Remove $(libc-texi-generated), not individual files
3409         from that list.  Do not remove dir-add.texinfo.
3410         * manual/libc.texinfo: Comment out uses of edition numbers and
3411         references to printed manual.  Remove last-updated dates.
3412         (EDITION): Comment out.
3413         (ISBN): Likewise.
3414         (VERSION, UPDATED): Remove.
3415         (version.texi): Include.
3416
3417 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
3418
3419         * sysdeps/posix/spawni.c: Include <signal.h>.
3420         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
3421         * sysdeps/pthread/aio_fsync.c: Likewise.
3422
3423 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
3424
3425         * conform/Makefile (tests): Run only when not cross-compiling and
3426         when fast-check is not defined.
3427
3428         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
3429         * conform/data/limits.h-data: Fixes for POSIX2008.
3430         * conform/run-conformtest.sh: Run all tests.
3431         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
3432         headers.
3433         * include/bits/dlfcn.h: Likewise.
3434         * include/langinfo.h: Likewise.
3435         * include/monetary.h: Likewise.
3436         * include/sys/poll.h: Likewise.
3437
3438         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
3439         for __USE_GNU.
3440         * posix/spawn.h: Define __need_sigset_t.
3441         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
3442         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
3443         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
3444         to get sigevent_t only.
3445         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
3446         only for __USE_GNU.
3447         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3448         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
3449         process_vm_writev only for __USE_GNU.
3450         * termios/termios.h: Declare tcgetsid also for POSIX2008.
3451
3452         * conform/Makefile: For now ignore errors from run-conformtest.
3453         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
3454         POSIX to avoid namespace pollution.  Don't prepend headers.
3455         * conform/data/aio.h-data: Fixes for POSIX testing.
3456         * conform/data/fcntl.h-data: Likewise.
3457         * conform/data/glob.h-data: Likewise.
3458         * conform/data/grp.h-data: Likewise.
3459         * conform/data/pthread.h-data: Likewise.
3460         * conform/data/pwd.h-data: Likewise.
3461         * conform/data/signal.h-data: Likewise.
3462         * conform/data/spawn.h-data: Likewise.
3463         * conform/data/stdio.h-data: Likewise.
3464         * conform/data/stdlib.h-data: Likewise.
3465         * conform/data/stropts.h-data: Likewise.
3466         * conform/data/sys/mman.h-data: Likewise.
3467         * conform/data/sys/stat.h-data: Likewise.
3468         * conform/data/sys/types.h-data: Likewise.
3469         * conform/data/sys/wait.h-data: Likewise.
3470         * conform/data/time.h-data: Likewise.
3471         * conform/data/unistd.h-data: Likewise.
3472         * conform/data/utime.h-data: Likewise.
3473
3474         * io/sys/stat.h: fchmod was always in POSIX.
3475         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
3476         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
3477         * rt/aio.h: Define __need_timespec before including <time.h>.
3478         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
3479         struct.  Add forward declaration of pthread_attr_t and use it in
3480         sigevent.
3481         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3482         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3483         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
3484         always remove CLK_TCK definition.
3485
3486 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
3487
3488         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
3489
3490 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
3491
3492         * conform/run-conformtest.sh: New file.
3493         * conform/Makefile: Run run-conformtest for tests.
3494         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
3495         support.
3496
3497         * conform/data/uchar.h-data: New file.
3498         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
3499         * conform/data/arpa/inet.h-data: Likewise.
3500         * conform/data/assert.h-data: Likewise.
3501         * conform/data/complex.h-data: Likewise.
3502         * conform/data/cpio.h-data: Likewise.
3503         * conform/data/ctype.h-data: Likewise.
3504         * conform/data/dirent.h-data: Likewise.
3505         * conform/data/dlfcn.h-data: Likewise.
3506         * conform/data/errno.h-data: Likewise.
3507         * conform/data/fcntl.h-data: Likewise.
3508         * conform/data/float.h-data: Likewise.
3509         * conform/data/fmtmsg.h-data: Likewise.
3510         * conform/data/fnmatch.h-data: Likewise.
3511         * conform/data/ftw.h-data: Likewise.
3512         * conform/data/glob.h-data: Likewise.
3513         * conform/data/grp.h-data: Likewise.
3514         * conform/data/iconv.h-data: Likewise.
3515         * conform/data/inttypes.h-data: Likewise.
3516         * conform/data/langinfo.h-data: Likewise.
3517         * conform/data/libgen.h-data: Likewise.
3518         * conform/data/limits.h-data: Likewise.
3519         * conform/data/locale.h-data: Likewise.
3520         * conform/data/math.h-data: Likewise.
3521         * conform/data/monetary.h-data: Likewise.
3522         * conform/data/mqueue.h-data: Likewise.
3523         * conform/data/ndbm.h-data: Likewise.
3524         * conform/data/net/if.h-data: Likewise.
3525         * conform/data/netdb.h-data: Likewise.
3526         * conform/data/netinet/in.h-data: Likewise.
3527         * conform/data/nl_types.h-data: Likewise.
3528         * conform/data/poll.h-data: Likewise.
3529         * conform/data/pthread.h-data: Likewise.
3530         * conform/data/pwd.h-data: Likewise.
3531         * conform/data/regex.h-data: Likewise.
3532         * conform/data/sched.h-data: Likewise.
3533         * conform/data/search.h-data: Likewise.
3534         * conform/data/semaphore.h-data: Likewise.
3535         * conform/data/setjmp.h-data: Likewise.
3536         * conform/data/signal.h-data: Likewise.
3537         * conform/data/spawn.h-data: Likewise.
3538         * conform/data/stdarg.h-data: Likewise.
3539         * conform/data/stdio.h-data: Likewise.
3540         * conform/data/stdlib.h-data: Likewise.
3541         * conform/data/string.h-data: Likewise.
3542         * conform/data/strings.h-data: Likewise.
3543         * conform/data/stropts.h-data: Likewise.
3544         * conform/data/sys/ipc.h-data: Likewise.
3545         * conform/data/sys/mman.h-data: Likewise.
3546         * conform/data/sys/msg.h-data: Likewise.
3547         * conform/data/sys/resource.h-data: Likewise.
3548         * conform/data/sys/select.h-data: Likewise.
3549         * conform/data/sys/sem.h-data: Likewise.
3550         * conform/data/sys/shm.h-data: Likewise.
3551         * conform/data/sys/socket.h-data: Likewise.
3552         * conform/data/sys/stat.h-data: Likewise.
3553         * conform/data/sys/statvfs.h-data: Likewise.
3554         * conform/data/sys/time.h-data: Likewise.
3555         * conform/data/sys/timeb.h-data: Likewise.
3556         * conform/data/sys/times.h-data: Likewise.
3557         * conform/data/sys/types.h-data: Likewise.
3558         * conform/data/sys/uio.h-data: Likewise.
3559         * conform/data/sys/un.h-data: Likewise.
3560         * conform/data/sys/utsname.h-data: Likewise.
3561         * conform/data/sys/wait.h-data: Likewise.
3562         * conform/data/syslog.h-data: Likewise.
3563         * conform/data/tar.h-data: Likewise.
3564         * conform/data/termios.h-data: Likewise.
3565         * conform/data/utime.h-data: Likewise.
3566         * conform/data/utmpx.h-data: Likewise.
3567         * conform/data/varargs.h-data: Likewise.
3568         * conform/data/wchar.h-data: Likewise.
3569         * conform/data/wctype.h-data: Likewise.
3570         * conform/data/wordexp.h-data: Likewise.
3571
3572         * include/stropts.h: New file.
3573         * include/uchar.h: New file.
3574         * include/aio.h: Changes to allow conformtest.pl to use the headers.
3575         * include/assert.h: Likewise.
3576         * include/ctype.h: Likewise.
3577         * include/dirent.h: Likewise.
3578         * include/dlfcn.h: Likewise.
3579         * include/fcntl.h: Likewise.
3580         * include/fnmatch.h: Likewise.
3581         * include/glob.h: Likewise.
3582         * include/grp.h: Likewise.
3583         * include/libio.h: Likewise.
3584         * include/locale.h: Likewise.
3585         * include/math.h: Likewise.
3586         * include/net/if.h: Likewise.
3587         * include/netdb.h: Likewise.
3588         * include/netinet/in.h: Likewise.
3589         * include/pthread.h: Likewise.
3590         * include/pwd.h: Likewise.
3591         * include/regex.h: Likewise.
3592         * include/sched.h: Likewise.
3593         * include/search.h: Likewise.
3594         * include/setjmp.h: Likewise.
3595         * include/signal.h: Likewise.
3596         * include/stdio.h: Likewise.
3597         * include/stdlib.h: Likewise.
3598         * include/string.h: Likewise.
3599         * include/sys/cdefs.h: Likewise.
3600         * include/sys/mman.h: Likewise.
3601         * include/sys/msg.h: Likewise.
3602         * include/sys/resource.h: Likewise.
3603         * include/sys/select.h: Likewise.
3604         * include/sys/socket.h: Likewise.
3605         * include/sys/stat.h: Likewise.
3606         * include/sys/statvfs.h: Likewise.
3607         * include/sys/time.h: Likewise.
3608         * include/sys/times.h: Likewise.
3609         * include/sys/uio.h: Likewise.
3610         * include/sys/utsname.h: Likewise.
3611         * include/sys/wait.h: Likewise.
3612         * include/termios.h: Likewise.
3613         * include/time.h: Likewise.
3614         * include/ulimit.h: Likewise.
3615         * include/unistd.h: Likewise.
3616         * include/utime.h: Likewise.
3617         * include/wchar.h: Likewise.
3618         * include/wctype.h: Likewise.
3619         * include/wordexp.h: Likewise.
3620
3621         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
3622
3623         * time/time.h: TIME_UTC must be a macro.
3624         Make timespec_get available for ISO C11 only as well.
3625
3626 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
3627
3628         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
3629         Reported by Peng Haitao <penght@cn.fujitsu.com>.
3630
3631 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3632
3633         * configure.in: Use -o not -a in test for unsupported multi-arch.
3634
3635 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3636
3637         * manual/texinfo.tex: Update to version 2012-01-19.16.
3638
3639 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3640
3641         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
3642
3643 2012-02-24  Roland McGrath  <roland@hack.frob.com>
3644
3645         [BZ #13738]
3646         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
3647         * manual/fdl-1.3.texi: New file.
3648         * manual/fdl-1.1.texi: File removed.
3649
3650         [BZ #13738]
3651         * manual/libc.texinfo (FDL_VERSION): New @set.
3652         Use it for mention of FDL in cover text.
3653         (Documentation License): Use it in @include file name.
3654
3655 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3656             Roland McGrath  <roland@hack.frob.com>
3657
3658         [BZ #5461]
3659         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
3660         not LONG_LONG_MAX and LONG_LONG_MIN.
3661         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
3662         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
3663         name.
3664         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
3665
3666 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3667
3668         [BZ #2547]
3669         [BZ #11365]
3670         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
3671         manipulate bits before adding and subtracting TWO23[sx].
3672         * math/libm-test.inc (nearbyint_test): Add more tests.
3673
3674 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3675
3676         [BZ #2548]
3677         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
3678         bits before adding and subtracting TWO23[sx].
3679         * math/libm-test.inc (rint_test): Add more tests.
3680         (rint_test_tonearest): Likewise.
3681         (rint_test_towardzero): Likewise.
3682         (rint_test_downward): Likewise.
3683         (rint_test_upward: Likewise.
3684
3685 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3686
3687         [BZ #10110]
3688         * include/stdc-predef.h: New file.  Extracted from features.h.
3689         * include/features.h: Include stdc-predef.h.
3690         * Makefile (headers): Add stdc-predef.h.
3691         * CONFORMANCE (Compiler limitations): Update.
3692
3693 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3694
3695         * manual/libc.texinfo (VERSION, UPDATED): Revert.
3696
3697 2012-02-21  David S. Miller  <davem@davemloft.net>
3698
3699         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
3700         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
3701
3702 2012-02-20  David S. Miller  <davem@davemloft.net>
3703
3704         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
3705         using a normal save/restore sequence, rather than allocating a
3706         dummy stack frame just to store a frame pointer and restore.
3707         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3708
3709 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3710
3711         * manual/install.texi: Fix stray word in line-wrapped comment.
3712
3713 2012-02-20  David S. Miller  <davem@davemloft.net>
3714
3715         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
3716         both binutils and gcc support GOTDATA.
3717
3718         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
3719         "rd %pc" in the PIC register setup sequences.
3720
3721         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
3722         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
3723         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3724         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
3725         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3726         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
3727         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
3728         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3729         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3730         (SYSCALL_ERROR_HANDLER): Likewise.
3731         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
3732         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3733         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3734         (SYSCALL_ERROR_HANDLER): Likewise.
3735
3736         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
3737         (HAVE_GCC_GOTDATA): New.
3738         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
3739         relocation support in both binutils and gcc.
3740         * sysdeps/sparc/elf/configure: Regenerate.
3741
3742         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
3743         * sysdeps/sparc/sparc32/elf/configure: Delete.
3744         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
3745         * sysdeps/sparc/sparc64/elf/configure: Delete.
3746         * sysdeps/sparc/elf/configure.in: New file.
3747         * sysdeps/sparc/elf/configure: Generate.
3748
3749         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
3750         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
3751         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
3752         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
3753         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
3754
3755 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3756
3757         * manual/install.texi: Do not mention specific glibc version
3758         numbers.
3759         * manual/libc.texinfo (VERSION, UPDATED): Update.
3760         (@copying): Use @copyright{} and range of years.
3761
3762 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3763
3764         [BZ #13695]
3765         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
3766         [crti.S not in sysdirs] (generated): Do not append.
3767         [crti.S not in sysdirs] (omit-deps): Likewise.
3768         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
3769         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
3770         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
3771         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
3772         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
3773         Likewise.
3774         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
3775         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
3776         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
3777         * csu/defs.awk: Remove file.
3778         * sysdeps/generic/initfini.c: Likewise.
3779         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
3780         variable.
3781         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
3782         Likewise.
3783
3784 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3785
3786         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
3787         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
3788         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
3789         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
3790         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3791         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
3792         <bits/epoll.h>.
3793         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
3794         (__EPOLL_PACKED): Define to empty if not defined by
3795         <bits/epoll.h>.
3796         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
3797         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3798         bits/epoll.h.
3799
3800 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3801
3802         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
3803         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
3804         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
3805         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
3806         <bits/timerfd.h>.
3807         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
3808         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3809         bits/timerfd.h.
3810
3811 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3812
3813         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
3814         in C locale.
3815         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3816         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
3817         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
3818         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3819
3820 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
3821
3822         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
3823         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
3824
3825 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
3826
3827         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
3828         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
3829         defined.
3830         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
3831         Likewise.
3832         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
3833         entry for 2.16.
3834
3835 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
3836
3837         * math/w_acos.c: Use non-signaling floating-point comparisons.
3838         * math/w_acosf.c: Likewise.
3839         * math/w_acosh.c: Likewise.
3840         * math/w_acoshf.c: Likewise.
3841         * math/w_acoshl.c: Likewise.
3842         * math/w_acosl.c: Likewise.
3843         * math/w_asin.c: Likewise.
3844         * math/w_asinf.c: Likewise.
3845         * math/w_asinl.c: Likewise.
3846         * math/w_atanh.c: Likewise.
3847         * math/w_atanhf.c: Likewise.
3848         * math/w_atanhl.c: Likewise.
3849         * math/w_exp2.c: Likewise.
3850         * math/w_exp2f.c: Likewise.
3851         * math/w_exp2l.c: Likewise.
3852         * math/w_j0.c: Likewise.
3853         * math/w_j0f.c: Likewise.
3854         * math/w_j0l.c: Likewise.
3855         * math/w_j1.c: Likewise.
3856         * math/w_j1f.c: Likewise.
3857         * math/w_j1l.c: Likewise.
3858         * math/w_jn.c: Likewise.
3859         * math/w_jnf.c: Likewise.
3860         * math/w_log.c: Likewise.
3861         * math/w_log10.c: Likewise.
3862         * math/w_log10f.c: Likewise.
3863         * math/w_log10l.c: Likewise.
3864         * math/w_log2.c: Likewise.
3865         * math/w_log2f.c: Likewise.
3866         * math/w_log2l.c: Likewise.
3867         * math/w_logf.c: Likewise.
3868         * math/w_logl.c: Likewise.
3869         * math/w_sqrt.c: Likewise.
3870         * math/w_sqrtf.c: Likewise.
3871         * math/w_sqrtl.c: Likewise.
3872         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
3873         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
3874         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
3875         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
3876         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
3877
3878 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3879
3880         [BZ #9739]
3881         * manual/string.texi (strnlen): Use correct parameter name in
3882         equivalent expression.
3883
3884 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3885
3886         [BZ #11174]
3887         * manual/users.texi (seteuid): Consistently use neweuid for
3888         argument name.
3889
3890 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3891
3892         [BZ #13704]
3893         * manual/nss.texi (Services in the NSS configuration): Correct
3894         list of services in example configuration file.
3895
3896 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
3897
3898         [BZ #11322]
3899         * manual/arith.texi: Remove statements about negative zero
3900         behaving identically to zero.
3901
3902 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
3903
3904         [BZ #5993]
3905         * manual/install.texi: Do not document upgrading from libc5.
3906
3907 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
3908
3909         [BZ #4596]
3910         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
3911
3912 2012-02-18  David S. Miller  <davem@davemloft.net>
3913
3914         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
3915         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
3916         %o7 across the call.
3917         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
3918         instead.
3919         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
3920         SETUP_PIC_REG_LEAF.
3921         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3922         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
3923         * sysdeps/sparc/crtn.S: Likewise.
3924
3925 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
3926
3927         * aout/Makefile: Remove.
3928
3929 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
3930
3931         [BZ #13058]
3932         * manual/examples/argp-ex1.c (main): Format definition in GNU
3933         style.
3934         * manual/examples/argp-ex2.c (main): Likewise.
3935         * manual/examples/argp-ex3.c (main): Likewise.
3936         * manual/examples/argp-ex4.c (main): Likewise.
3937         * manual/examples/longopt.c (main): Use new-style prototype
3938         definition.
3939         * manual/examples/strncat.c (main): Specify return type and use
3940         (void) for arguments.
3941         * manual/examples/subopt.c (main): Use char **argv argument.
3942
3943 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3944
3945         [BZ #5077]
3946         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
3947         rounding modes.
3948
3949 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
3950
3951         [BZ #6907]
3952         * manual/string.texi (strchr): Change when strchrnul is
3953         recommended.
3954
3955 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
3956
3957         [BZ #174]
3958         * manual/locale.texi (setlocale): Document LOCPATH.
3959
3960 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3961
3962         [BZ #10210]
3963         * manual/process.texi (execle): Move @dots{} before last argument.
3964
3965 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
3966
3967         [BZ #12047]
3968         * manual/charset.texi (Generic Charset Conversion): Fix typo
3969         (LC_TYPE -> LC_CTYPE).
3970
3971 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
3972
3973         [BZ #5805]
3974         * manual/arith.texi (scalbn): Use @var{} on parameter names.
3975         (scalbnf): Likewise.
3976         (scalbnl): Likewise.
3977         (scalbln): Likewise.
3978         (scalblnf): Likewise.
3979         (scalblnl): Likewise.
3980         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
3981         (vwarnx): Likewise.
3982         (verr): Likewise.
3983         (verrx): Likewise.
3984         * manual/filesys.texi (telldir): Use braces around return type.
3985         * manual/llio.texi (mmap): Add space after comma.
3986         (mmap64): Likewise.
3987         * manual/math.texi (jn): Use @var{} on parameter names.
3988         (jnf): Likewise.
3989         (jnl): Likewise.
3990         (yn): Likewise.
3991         (ynf): Likewise.
3992         (ynl): Likewise.
3993         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
3994         line.
3995         * manual/resource.texi (ulimit): Use @dots{} instead of literal
3996         "...".
3997         (sched_get_priority_min): Remove semicolon on @deftypefun line.
3998         (sched_get_priority_max): Likewise.
3999         * manual/signal.texi (sigvec): Add space after comma.
4000         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
4001         names.
4002         (if_indextoname): Likewise.
4003         (if_freenameindex): Likewise.
4004         (sendto): Use ',' instead of '.' in prototype.
4005         * manual/startup.texi (syscall): Use @dots{} instead of literal
4006         "...".
4007         * manual/stdio.texi (__fpending): Separate initial words of
4008         paragraph from @deftypefun line.
4009         * manual/syslog.texi (syslog): Use @dots{} instead of literal
4010         "...".
4011         (vsyslog): Use @var{} on parameter names.
4012         * manual/terminal.texi (stty): Use @var{} on parameter names.
4013         * manual/users.texi (getutmp): Use @var{} on parameter names.
4014         (getutmpx): Likewise.
4015
4016 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4017
4018         [BZ #6884]
4019         * manual/stdio.texi (fopen): Fix typos in description of
4020         ",ccs=STRING".
4021
4022 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
4023
4024         [BZ #4026]
4025         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
4026         get clock_id definition.
4027
4028 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
4029
4030         [BZ #4822]
4031         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
4032         (madvise): Cast every argument to void on its own.
4033
4034 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4035
4036         [BZ #9902]
4037         * manual/startup.texi (Exit Status): Fix typo.
4038
4039 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4040
4041         [BZ #10140]
4042         * manual/examples/argp-ex1.c: Include <stdlib.h>.
4043         * manual/examples/argp-ex2.c: Likewise.
4044         * manual/examples/argp-ex3.c: Likewise.
4045
4046 2012-02-16  Richard Henderson  <rth@redhat.com>
4047
4048         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
4049         * sysdeps/s390/s390-32/initfini.c: Remove.
4050         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
4051         * sysdeps/s390/s390-64/initfini.c: Remove.
4052
4053 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4054
4055         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
4056         compiler output for sysdeps/generic/initfini.c.
4057         * sysdeps/sh/elf/initfini.c: Remove file.
4058
4059 2012-02-16  David S. Miller  <davem@davemloft.net>
4060
4061         [BZ #11494]
4062         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
4063
4064         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
4065         * sysdeps/sparc/crti.S: New file.
4066         * sysdeps/sparc/crtn.S: New file.
4067         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
4068         * sysdeps/sparc/sparc64/Makefile: Likewise.
4069
4070 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
4071
4072         [BZ #3335]
4073         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
4074
4075 2012-02-15  Roland McGrath  <roland@hack.frob.com>
4076
4077         [BZ #4822]
4078         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
4079
4080         * mach/devstream.c (cookie_io_functions_t): Macro removed.
4081         (write, read, close): Likewise.
4082         Patch by Aurelien Jarno <aurelien@aurel32.net>.
4083
4084 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
4085
4086         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
4087         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
4088         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
4089         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
4090         <bits/signalfd.h>.
4091         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
4092         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4093         bits/signalfd.h.
4094
4095 2012-02-14  Marek Polacek  <polacek@redhat.com>
4096
4097         * sysdeps/x86_64/crti.S: New file.
4098         * sysdeps/x86_64/crtn.S: New file.
4099         * sysdeps/x86_64/elf/initfini.c: Remove file.
4100
4101 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
4102
4103         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
4104         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
4105         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
4106         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
4107         <bits/inotify.h>.
4108         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
4109         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4110         bits/inotify.h.
4111
4112 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
4113
4114         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
4115         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
4116         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
4117         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
4118         <bits/eventfd.h>.
4119         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
4120         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4121         bits/eventfd.h.
4122
4123 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
4124
4125         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
4126         __feraiseexcept instead of feraiseexcept.
4127
4128         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
4129         nanosleep invocations.
4130         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
4131         strings, and add error checking for a nanosleep invocations.
4132
4133 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4134
4135         Replace FSF snail mail address with URLs, as per GNU coding standards.
4136         Most of the snail mail addresses were wrong anyway, and omitting
4137         them makes the source code easier to maintain.  Almost all of the
4138         changes are to license notices and to locale LC_IDENTIFICATION
4139         addresses, except for this one:
4140         * manual/libc.texinfo: In "Published by", give the FSF's URL,
4141         not its snail mail address.
4142
4143 2012-02-09  Richard Henderson  <rth@twiddle.net>
4144
4145         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
4146         of kernel-features.h.
4147
4148         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
4149
4150 2012-02-08  Marek Polacek  <polacek@redhat.com>
4151
4152         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
4153         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
4154         * sysdeps/gnu/_G_config.h: Likewise.
4155         * sysdeps/generic/_G_config.h: Likewise.
4156
4157 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
4158
4159         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
4160         tests.
4161         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4162
4163         * sysdeps/powerpc/powerpc32/crti.S: New file.
4164         * sysdeps/powerpc/powerpc32/crtn.S: New file.
4165         * sysdeps/powerpc/powerpc64/crti.S: New file.
4166         * sysdeps/powerpc/powerpc64/crtn.S: New file.
4167
4168         * Makeconfig (have-initfini): Don't set.
4169         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
4170         * configure.in (nopic_initfini): Don't substitute.
4171         * config.h.in (HAVE_INITFINI): Don't #undef.
4172         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
4173         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
4174
4175 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
4176
4177         Support crti.S and crtn.S provided directly by architectures.
4178         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
4179         [crti.S in sysdirs] (omit-deps): Likewise.
4180         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
4181         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
4182         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
4183         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
4184         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
4185         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
4186         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
4187         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
4188         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
4189         compiler output for sysdeps/generic/initfini.c.
4190         * sysdeps/i386/elf/Makefile: Remove file.
4191         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
4192
4193 2012-02-07  Marek Polacek  <polacek@redhat.com>
4194
4195         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
4196         * sysdeps/gnu/_G_config.h: Likewise.
4197         * sysdeps/mach/hurd/_G_config.h: Likewise.
4198
4199 2012-02-07  Marek Polacek  <polacek@redhat.com>
4200
4201         * math/Makefile (tests): Add tst-CMPLX2.
4202         * math/tst-CMPLX2.c: New file.
4203
4204 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
4205
4206         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
4207
4208         * math/libm-test.inc (jn_test): Add missing L suffix.
4209
4210 2012-02-06  Marek Polacek  <polacek@redhat.com>
4211
4212         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
4213         * sysdeps/i386/fpu/e_powf.S: Likewise.
4214         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4215         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
4216         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4217         * sysdeps/i386/fpu/e_pow.S: Likewise.
4218         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4219         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4220         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4221         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4222         * sysdeps/i386/fpu/e_log2.S: Likewise.
4223         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4224         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4225         * sysdeps/i386/fpu/e_powl.S: Likewise.
4226         * sysdeps/i386/fpu/s_log1p.S: Likewise.
4227         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4228         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4229         * sysdeps/i386/fpu/e_logl.S: Likewise.
4230         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4231         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
4232         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4233         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4234         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4235         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4236         * sysdeps/i386/fpu/e_log.S: Likewise.
4237         * sysdeps/i386/fpu/s_cexp.S: Likewise.
4238         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4239         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
4240         * sysdeps/i386/fpu/e_logf.S: Likewise.
4241         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4242         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4243         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
4244         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4245         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
4246         * sysdeps/i386/fpu/e_log10.S: Likewise.
4247         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4248         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4249         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4250         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4251         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4252         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4253         * sysdeps/i386/asm-syntax.h: Likewise.
4254         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4255         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4256         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4257         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4258         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
4259         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4260         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4261         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4262         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4263         * sysdeps/powerpc/sysdep.h: Likewise.
4264         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
4265         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4266
4267 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
4268
4269         [BZ #411]
4270         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
4271
4272 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
4273
4274         * sysdeps/i386/sysdep.h: Include <features.h>.
4275         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
4276         version.
4277
4278 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
4279
4280         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
4281         Define.
4282         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
4283         LOAD_PIC_REG_STR.
4284
4285 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4286
4287         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
4288         (SETUP_PIC_REG): Use GET_PC_THUNK.
4289         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
4290         macro.
4291
4292 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4293
4294         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
4295         for non-PIC compilation.
4296         (SETUP_PIC_REG): Add .p2align directive.
4297         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
4298         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
4299         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
4300         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
4301         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
4302         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
4303         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
4304         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
4305         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
4306         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
4307         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
4308         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
4309         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
4310         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
4311         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
4312         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
4313         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
4314         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
4315         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
4316         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
4317         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
4318         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
4319         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
4320         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
4321         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
4322         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
4323         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
4324         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
4325         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
4326         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
4327         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
4328         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
4329         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
4330         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
4331         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
4332         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
4333         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
4334         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
4335         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
4336         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
4337         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
4338
4339 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4340
4341         * math/tst-CMPLX.c: Include <stdio.h>.
4342
4343 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
4344
4345         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
4346         float.
4347         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
4348         * sysdeps/sparc/bits/mathdef.h: Likewise.
4349
4350 2012-01-31  Marek Polacek  <polacek@redhat.com>
4351
4352         * libio/libio.h: Don't define _PARAMS.
4353         * locale/programs/config.h: Don't define PARAMS.
4354         * stdlib/strtol_l.c: Likewise.
4355         (__strtol_l): Remove PARAMS from the prototype.
4356
4357 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
4358
4359         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
4360         names.  Just use the correct names.  Remove unnecessary wrapper
4361         functions.
4362         * malloc/arena.c: Likewise.
4363         * malloc/hooks.c: Likewise.
4364
4365         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
4366         ARENA_TEST says not to.  Simplify test for creation of a new arena.
4367         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
4368
4369 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
4370
4371         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
4372         into tail calls.
4373         (update_get_addr): New function.
4374         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
4375         GET_ADDR_MODULE parameter.
4376
4377 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
4378
4379         * crypt/cert.c: Remove __STDC__ conditionals.
4380         * crypt/crypt-entry.c: Likewise.
4381         * crypt/crypt_util.c: Likewise.
4382         * libio/filedoalloc.c: Likewise.
4383         * libio/fileops.c: Likewise.
4384         * libio/genops.c: Likewise.
4385         * libio/iofclose.c: Likewise.
4386         * libio/iofdopen.c: Likewise.
4387         * libio/iofopen.c: Likewise.
4388         * libio/iofopen64.c: Likewise.
4389         * libio/iogetdelim.c: Likewise.
4390         * libio/iopopen.c: Likewise.
4391         * libio/obprintf.c: Likewise.
4392         * libio/oldfileops.c: Likewise.
4393         * libio/oldiofclose.c: Likewise.
4394         * libio/oldiofdopen.c: Likewise.
4395         * libio/oldiofopen.c: Likewise.
4396         * libio/oldiopopen.c: Likewise.
4397         * libio/wfiledoalloc.c: Likewise.
4398         * libio/wgenops.c: Likewise.
4399         * locale/programs/xmalloc.c: Likewise.
4400         * misc/syslog.c: Likewise.
4401         * stdio-common/xbug.c: Likewise.
4402         * string/memchr.c: Likewise.
4403         * string/memcmp.c: Likewise.
4404         * string/memrchr.c: Likewise.
4405         * string/rawmemchr.c: Likewise.
4406         * sysdeps/posix/getcwd.c: Likewise.
4407         * time/strftime_l.c: Likewise.
4408
4409 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
4410
4411         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
4412         * config.make.in (config-cflags-sse2avx): Define.
4413         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
4414         Fix typo.
4415
4416 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
4417
4418         * scripts/config.guess: Update from upstream config git repository.
4419         * scripts/config.sub: Likewise.
4420
4421 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
4422
4423         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
4424         (EM_NUM): Update.
4425         (R_TILEPRO_*, R_TILEGX_*): New macros.
4426
4427         * scripts/firstversions.awk: Fix bug in version range handling.
4428
4429         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
4430
4431         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
4432
4433         * include/sys/epoll.h: New file.
4434         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
4435         libc_hidden_def.
4436
4437 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
4438
4439         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
4440         Avoid unnecessary __WORDSIZE == 64 test.
4441         (fmaxf): Use VEX format if possible.
4442         (fmax): Likewise.
4443         (fminf): Likewise.
4444         (fmin): Likewise.
4445
4446         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
4447         * math/math_private.h: Remove libc_fegetround* and
4448         libc_fesetround*.
4449         * sysdeps/i386/configure.in: Check for -msse2avx.
4450         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
4451         also if SSE2AVX is defined.
4452         Remove libc_fegetround* and libc_fesetround*.
4453         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
4454         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
4455         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
4456         of HAS_YMM_USABLE.
4457         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4458         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4459         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4460         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4461         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4462
4463         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
4464
4465 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4466
4467         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
4468         size is not set.
4469         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
4470
4471 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
4472
4473         [BZ #13618]
4474         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
4475         relocation.
4476         * Makeconfig (libm): Define.
4477         * elf/Makefile: Add rules to build and run tst-relsort1.
4478         * elf/tst-relsort1.c: New file.
4479         * elf/tst-relsort1mod1.c: New file.
4480         * elf/tst-relsort1mod2.c: New file.
4481
4482 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
4483
4484         * math/s_ldexp.c: Remove __STDC__ conditionals.
4485         * math/s_ldexpf.c: Likewise.
4486         * math/s_ldexpl.c: Likewise.
4487         * math/s_nextafter.c: Likewise.
4488         * math/s_nexttowardf.c: Likewise.
4489         * math/s_significand.c: Likewise.
4490         * math/s_significandf.c: Likewise.
4491         * math/s_significandl.c: Likewise.
4492         * math/w_jnl.c: Likewise.
4493         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
4494         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4495         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
4496         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
4497         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
4498         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4499         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
4500         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4501         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4502         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4503         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4504         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4505         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4506         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
4507         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4508         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4509         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4510         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4511         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
4512         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
4513         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
4514         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
4515         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
4516         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4517         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4518         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
4519         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
4520         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
4521         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
4522         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4523         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
4524         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4525         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
4526         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
4527         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4528         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
4529         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
4530         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
4531         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
4532         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
4533         * sysdeps/ieee754/k_standard.c: Likewise.
4534         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4535         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4536         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4537         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4538         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
4539         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4540         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4541         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
4542         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4543         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4544         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4545         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
4546         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4547         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
4548         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
4549         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4550         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4551         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
4552         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
4553         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4554         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4555         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4556         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4557         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4558         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4559         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
4560         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
4561         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
4562         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
4563         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
4564         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
4565         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
4566         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
4567         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
4568         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
4569         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
4570         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
4571         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
4572         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
4573         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
4574         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
4575         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
4576         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
4577         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
4578         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
4579         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
4580         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
4581         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
4582         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
4583         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
4584         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
4585         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
4586         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
4587         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
4588         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
4589         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
4590         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
4591         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
4592         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
4593         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
4594         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
4595         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
4596         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
4597         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
4598         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
4599         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4600         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
4601         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
4602         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
4603         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
4604         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
4605         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
4606         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
4607         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
4608         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
4609         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
4610         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
4611         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
4612         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
4613         * sysdeps/ieee754/s_matherr.c: Likewise.
4614         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
4615         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
4616         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
4617         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
4618
4619 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
4620
4621         * crypt/md5.h: Remove __STDC__ conditionals.
4622         * libio/libioP.h: Likewise.
4623         * locale/programs/config.h: Likewise.
4624         * sysdeps/generic/sysdep.h: Likewise.
4625         * sysdeps/i386/asm-syntax.h: Likewise.
4626         * sysdeps/s390/asm-syntax.h: Likewise.
4627         * sysdeps/unix/sysdep.h: Likewise.
4628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
4629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4630
4631 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
4632
4633         * libio/libio.h: Remove __STDC__ conditionals.
4634         * malloc/obstack.h: Likewise.
4635         * math/complex.h: Likewise.
4636         * math/math.h: Likewise.
4637         * sysdeps/generic/_G_config.h: Likewise.
4638         * sysdeps/gnu/_G_config.h: Likewise.
4639         * sysdeps/mach/hurd/_G_config.h: Likewise.
4640         * sysdeps/powerpc/bits/mathdef.h: Likewise.
4641         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
4642         * sysdeps/sparc/bits/mathdef.h: Likewise.
4643
4644 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
4645
4646         [BZ #13583]
4647         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
4648         Clean up HAS_* macros.
4649         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
4650         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
4651         possible.
4652         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
4653         HAS_AVX.
4654         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4655         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4656         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4657         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4658         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4659
4660 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
4661
4662         * elf/tst-unique3.cc (gets): Remove declaration.
4663         * elf/tst-unique3lib.cc (gets): Likewise.
4664         * elf/tst-unique3lib2.cc (gets): Likewise.
4665         * elf/tst-unique4.cc (gets): Likewise.
4666
4667 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
4668
4669         * include/stdio.h: Add C++ protection.  Add gets declarations and
4670         definitions.
4671         * debug/tst-chk1.c: Don't declare gets here.
4672         * stdio-common/tst-gets.c: Likewise.
4673
4674 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
4675
4676         * posix/glob: Remove directory.
4677
4678 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
4679
4680         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
4681
4682 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
4683
4684         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
4685         of the non-standard EPFNOSUPPORT.
4686
4687 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4688
4689         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
4690         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
4691         ANYWHERE set to 1 only on KERN_NO_SPACE error.
4692
4693 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
4694
4695         * wcsmbs/uchar.h: Test __STDC_VERSION__.
4696
4697 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
4698
4699         * nscd/aicache.c (addhstaiX): Do not cache negative results of
4700         transient errors.
4701         * nscd/grpcache.c (cache_addgr): Likewise.
4702         * nscd/hstcache.c (cache_addhst): Likewise.
4703         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4704         * nscd/pwdcache.c (cache_addpw): Likewise.
4705         * nscd/servicescache.c (cache_addserv): Likewise.
4706
4707 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
4708
4709         * malloc/malloc.c: Various cleanups.
4710         * malloc/hooks.c: Likewise.
4711
4712         * stdlib/Makefile (tests): Add bug-fmtmsg1.
4713         * stdlib/bug-fmtmsg1.c: New file.
4714
4715         * stdlib/fmtmsg.c (init): Add missing unlock.
4716         Patch by Peng Haitao <penght@cn.fujitsu.com>.
4717
4718 2012-01-12  Marek Polacek  <polacek@redhat.com>
4719
4720         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
4721         and _GNU_SOURCE.
4722
4723 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
4724
4725         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
4726         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
4727         macro to ensure uniqueness of label name.
4728         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
4729         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
4730
4731 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
4732
4733         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
4734
4735         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
4736         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
4737         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
4738         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
4739
4740 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
4741
4742         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
4743
4744         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
4745         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
4746         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
4747
4748         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
4749
4750         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
4751         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
4752         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
4753         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
4754
4755         * math/bits/math-finite.h: Add ldexp support.
4756
4757 2012-01-10  Marek Polacek  <polacek@redhat.com>
4758
4759         * locale/programs/localedef.h (show_archive_content): Add noreturn
4760         attribute.
4761
4762 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
4763
4764         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
4765
4766 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4767
4768         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
4769
4770         * io/Makefile (headers): Add bits/poll2.h.
4771
4772 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
4773
4774         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
4775         typo #include statement.
4776
4777 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4778
4779         * include/sys/cdefs.h: Define __attribute_alloc_size.
4780         * catgets/gencat.c: Add alloc_size attribute and apply consistently
4781         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
4782         * elf/pldd.c: Likewise.
4783         * iconv/iconv_charmap.c: Likewise.
4784         * iconv/iconvconfig.c: Likewise.
4785         * iconv/strtab.c: Likewise.
4786         * locale/programs/locale.c: Likewise.
4787         * locale/programs/localedef.h: Likewise.
4788         * locale/programs/simple-hash.c: Likewise.
4789         * nscd/nscd.h: Likewise.
4790         * nss/makedb.c: Likewise.
4791         * sysdeps/generic/ldconfig.h: Likewise.
4792         * locale/programs/localedef.c: Remove xmalloc prototype.
4793         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
4794
4795 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
4796
4797         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
4798         appropriate.
4799
4800 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4801
4802         * math/Makefile (tests): Add tst-CMPLX.
4803         * math/tst-CMPLX.c: New file.
4804
4805         * math/complex.h (CMPLXL): Fix typo.
4806
4807         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
4808         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
4809         GLIBC_2.16.
4810         * debug/tst-chk1.c: Add poll and ppoll tests.
4811         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
4812         * include/sys/poll.h: Add hidden proto for ppoll.
4813         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
4814         * sysdeps/mach/hurd/ppoll.c: Likewise.
4815         * io/ppoll.c: Likewise.
4816         * debug/poll_chk.c: New file.
4817         * debug/ppoll_chk.c: New file.
4818         * include/bits/poll2.h: New file.
4819         * io/bits/poll2.h: New file.
4820
4821         [BZ #1350]
4822         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
4823
4824         * configure.in: static is always set to yes.  Remove.
4825         * config.make.in: Don't set build-static.
4826         * Makeconfig: Remove use of build-static.
4827         * dlfcn/Makefile: Likewise.
4828         * elf/Makefile: Likewise.
4829         * math/Makefile: Likewise.
4830         * misc/Makefile: Likewise.
4831         * nptl/Makefile: Likewise.
4832         * sysdeps/mach/hurd/Makefile: Likewise.
4833
4834         * configure.in: PWD_P is not used anymore.
4835         * config.make.in: Remove PWD_P entry.
4836
4837         * configure.in: Remove last remnants of RANLIB.
4838         No need to check for signed size_t anymore.
4839         Don't set libc_commonpagesize and libc_relro_required here for Alpha
4840         and IA-64.
4841         Remove __builtin_expect test because we require at least gcc 3.4.
4842         * aclocal.m4: Likewise.
4843
4844         * wcsmbs/mbrtoc16.c: Implement using towc function.
4845         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
4846         * wcsmbs/wcsmbsload.c: Likewise.
4847         * iconv/gconv_simple.c: Likewise.
4848         * iconv/gconv_int.h: Likewise.
4849         * iconv/gconv_builtin.h: Likewise.
4850         * iconv/iconv_prog.c: Remove CHAR16 handling.
4851
4852         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
4853
4854         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
4855
4856         * configure.in: Remove --with-elf and --enable-bounded options.
4857         Dont set base_machine for ia64.  More non-ELF conditions removed.
4858         Remove testing and setting of leading underscore information.
4859         * config.make.in (build-bounded): Set to no.
4860         * config.h.in: Remove NO_UNDERSCORES entry.
4861         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
4862         them.
4863         * csu/start.c: Remove !NO_UNDERSCORE code.
4864         * locale/localeinfo.h: Likewise.
4865         * sysdeps/generic/machine-gmon.h: Likewise.
4866         * sysdeps/generic/sysdep.h: Likewise.
4867         * sysdeps/i386/sysdep.h: Likewise.
4868         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
4869         * sysdeps/mach/sysdep.h: Likewise.
4870         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4871         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4872         * sysdeps/sh/sysdep.h: Likewise.
4873         * sysdeps/sparc/sparc32/alloca.S: Likewise.
4874         * sysdeps/unix/i386/sysdep.S: Likewise.
4875         * sysdeps/unix/sparc/start.c: Likewise.
4876         * sysdeps/unix/sparc/sysdep.S: Likewise.
4877         * sysdeps/unix/sparc/sysdep.h: Likewise.
4878         * sysdeps/unix/start.c: Likewise.
4879         * sysdeps/unix/x86_64/sysdep.S: Likewise.
4880         * sysdeps/x86_64/sysdep.h: Likewise.
4881
4882 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
4883
4884         [BZ #13553]
4885         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
4886         for non-gcc.
4887         * argp/argp-fmtstream.h: Use const instead __const.
4888         * argp/argp.h: Likewise.
4889         * assert/assert.h: Likewise.
4890         * bits/fenv.h: Likewise.
4891         * bits/sched.h: Likewise.
4892         * bits/sigset.h: Likewise.
4893         * bits/sigthread.h: Likewise.
4894         * catgets/nl_types.h: Likewise.
4895         * conform/data/pthread.h-data: Likewise.
4896         * crypt/crypt-private.h: Likewise.
4897         * crypt/crypt.h: Likewise.
4898         * crypt/crypt_util.c: Likewise.
4899         * ctype/ctype.h: Likewise.
4900         * debug/execinfo.h: Likewise.
4901         * debug/mbsnrtowcs_chk.c: Likewise.
4902         * debug/mbsrtowcs_chk.c: Likewise.
4903         * debug/wcsnrtombs_chk.c: Likewise.
4904         * debug/wcsrtombs_chk.c: Likewise.
4905         * debug/wcstombs_chk.c: Likewise.
4906         * dirent/dirent.h: Likewise.
4907         * dlfcn/dlfcn.h: Likewise.
4908         * elf/neededtest4.c: Likewise.
4909         * grp/grp.h: Likewise.
4910         * gshadow/gshadow.h: Likewise.
4911         * iconv/gconv.h: Likewise.
4912         * iconv/gconv_int.h: Likewise.
4913         * iconv/gconv_simple.c: Likewise.
4914         * iconv/iconv.h: Likewise.
4915         * iconv/loop.c: Likewise.
4916         * iconv/skeleton.c: Likewise.
4917         * include/aio.h: Likewise.
4918         * include/aliases.h: Likewise.
4919         * include/argz.h: Likewise.
4920         * include/arpa/inet.h: Likewise.
4921         * include/assert.h: Likewise.
4922         * include/dirent.h: Likewise.
4923         * include/dlfcn.h: Likewise.
4924         * include/execinfo.h: Likewise.
4925         * include/fcntl.h: Likewise.
4926         * include/fenv.h: Likewise.
4927         * include/glob.h: Likewise.
4928         * include/grp.h: Likewise.
4929         * include/libintl.h: Likewise.
4930         * include/mntent.h: Likewise.
4931         * include/netdb.h: Likewise.
4932         * include/pwd.h: Likewise.
4933         * include/rpc/netdb.h: Likewise.
4934         * include/sched.h: Likewise.
4935         * include/search.h: Likewise.
4936         * include/shadow.h: Likewise.
4937         * include/signal.h: Likewise.
4938         * include/stdio.h: Likewise.
4939         * include/stdlib.h: Likewise.
4940         * include/string.h: Likewise.
4941         * include/sys/socket.h: Likewise.
4942         * include/sys/stat.h: Likewise.
4943         * include/sys/statfs.h: Likewise.
4944         * include/sys/statvfs.h: Likewise.
4945         * include/sys/syslog.h: Likewise.
4946         * include/sys/time.h: Likewise.
4947         * include/sys/uio.h: Likewise.
4948         * include/time.h: Likewise.
4949         * include/unistd.h: Likewise.
4950         * include/utmp.h: Likewise.
4951         * include/wchar.h: Likewise.
4952         * include/wctype.h: Likewise.
4953         * inet/aliases.h: Likewise.
4954         * inet/arpa/inet.h: Likewise.
4955         * inet/netinet/ether.h: Likewise.
4956         * inet/netinet/in.h: Likewise.
4957         * intl/libintl.h: Likewise.
4958         * io/bits/fcntl2.h: Likewise.
4959         * io/fcntl.h: Likewise.
4960         * io/ftw.h: Likewise.
4961         * io/sys/poll.h: Likewise.
4962         * io/sys/stat.h: Likewise.
4963         * io/sys/statfs.h: Likewise.
4964         * io/sys/statvfs.h: Likewise.
4965         * io/utime.h: Likewise.
4966         * libio/bits/stdio.h: Likewise.
4967         * libio/bits/stdio2.h: Likewise.
4968         * libio/libio.h: Likewise.
4969         * libio/libioP.h: Likewise.
4970         * libio/stdio.h: Likewise.
4971         * locale/lc-ctype.c: Likewise.
4972         * locale/locale.h: Likewise.
4973         * login/utmp.h: Likewise.
4974         * malloc/arena.c: Likewise.
4975         * malloc/malloc.c: Likewise.
4976         * malloc/malloc.h: Likewise.
4977         * malloc/mcheck.c: Likewise.
4978         * malloc/mtrace.c: Likewise.
4979         * math/bits/mathcalls.h: Likewise.
4980         * math/fenv.h: Likewise.
4981         * math/math_private.h: Likewise.
4982         * misc/bits/error.h: Likewise.
4983         * misc/bits/syslog.h: Likewise.
4984         * misc/err.h: Likewise.
4985         * misc/error.h: Likewise.
4986         * misc/fstab.h: Likewise.
4987         * misc/mntent.h: Likewise.
4988         * misc/regexp.h: Likewise.
4989         * misc/search.h: Likewise.
4990         * misc/sgtty.h: Likewise.
4991         * misc/sys/mman.h: Likewise.
4992         * misc/sys/syslog.h: Likewise.
4993         * misc/sys/uio.h: Likewise.
4994         * misc/sys/xattr.h: Likewise.
4995         * misc/ttyent.h: Likewise.
4996         * nis/rpcsvc/ypclnt.h: Likewise.
4997         * nss/nss.h: Likewise.
4998         * posix/bits/unistd.h: Likewise.
4999         * posix/fnmatch.h: Likewise.
5000         * posix/glob.h: Likewise.
5001         * posix/sched.h: Likewise.
5002         * posix/spawn.h: Likewise.
5003         * posix/sys/wait.h: Likewise.
5004         * posix/unistd.h: Likewise.
5005         * posix/wordexp.h: Likewise.
5006         * pwd/pwd.h: Likewise.
5007         * resolv/netdb.h: Likewise.
5008         * resource/sys/resource.h: Likewise.
5009         * rt/aio.h: Likewise.
5010         * rt/bits/mqueue2.h: Likewise.
5011         * rt/mqueue.h: Likewise.
5012         * shadow/shadow.h: Likewise.
5013         * signal/signal.h: Likewise.
5014         * socket/send.c: Likewise.
5015         * socket/sendto.c: Likewise.
5016         * socket/sys/socket.h: Likewise.
5017         * stdio-common/printf.h: Likewise.
5018         * stdlib/bits/stdlib.h: Likewise.
5019         * stdlib/fmtmsg.h: Likewise.
5020         * stdlib/monetary.h: Likewise.
5021         * stdlib/stdlib.h: Likewise.
5022         * stdlib/ucontext.h: Likewise.
5023         * streams/stropts.h: Likewise.
5024         * string/argz.h: Likewise.
5025         * string/bits/string2.h: Likewise.
5026         * string/string.h: Likewise.
5027         * string/strings.h: Likewise.
5028         * sunrpc/rpc/auth.h: Likewise.
5029         * sunrpc/rpc/auth_des.h: Likewise.
5030         * sunrpc/rpc/clnt.h: Likewise.
5031         * sunrpc/rpc/netdb.h: Likewise.
5032         * sunrpc/rpc/pmap_clnt.h: Likewise.
5033         * sunrpc/rpc/xdr.h: Likewise.
5034         * sysdeps/generic/inttypes.h: Likewise.
5035         * sysdeps/generic/net/if.h: Likewise.
5036         * sysdeps/generic/sys/swap.h: Likewise.
5037         * sysdeps/gnu/net/if.h: Likewise.
5038         * sysdeps/gnu/utmpx.h: Likewise.
5039         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
5040         * sysdeps/i386/i486/bits/string.h: Likewise.
5041         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
5042         * sysdeps/s390/bits/string.h: Likewise.
5043         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
5044         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
5045         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
5046         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
5047         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5048         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
5049         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5050         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
5051         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
5052         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
5053         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
5054         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
5055         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
5056         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
5057         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5058         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
5059         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
5060         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5061         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
5062         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5063         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
5064         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
5065         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
5066         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5067         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
5068         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
5069         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
5070         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5071         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
5072         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
5073         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
5074         * sysvipc/sys/ipc.h: Likewise.
5075         * sysvipc/sys/msg.h: Likewise.
5076         * sysvipc/sys/sem.h: Likewise.
5077         * sysvipc/sys/shm.h: Likewise.
5078         * termios/termios.h: Likewise.
5079         * time/sys/time.h: Likewise.
5080         * time/time.h: Likewise.
5081         * wcsmbs/bits/wchar2.h: Likewise.
5082         * wcsmbs/uchar.h: Likewise.
5083         * wcsmbs/wchar.h: Likewise.
5084         * wctype/wctype.h: Likewise.
5085
5086         [BZ #13551]
5087         * Makeconfig: Remove all but ELF support including AIX support.
5088         * Makerules: Likewise.
5089         * config.h.in: Likewise.
5090         * config.make.in: Likewise.
5091         * configure: Likewise.
5092         * configure.in: Likewise.
5093         * csu/Makefile: Likewise.
5094         * csu/version.c: Likewise.
5095         * debug/Makefile: Likewise.
5096         * dlfcn/Makefile: Likewise.
5097         * elf/Makefile: Likewise.
5098         * extra-lib.mk: Likewise.
5099         * iconv/Makefile: Likewise.
5100         * include/libc-symbols.h: Likewise.
5101         * include/shlib-compat.h: Likewise.
5102         * resolv/Makefile: Likewise.
5103         * resolv/res_libc.c: Likewise.
5104         * rt/Makefile: Likewise.
5105         * sysdeps/i386/asm-syntax.h: Likewise.
5106         * sysdeps/i386/sysdep.h: Likewise.
5107         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
5108         * sysdeps/mach/sysdep.h: Likewise.
5109         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
5110         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
5111         * sysdeps/s390/asm-syntax.h: Likewise.
5112         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5113         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5114         * sysdeps/sh/sysdep.h: Likewise.
5115         * sysdeps/unix/sparc/sysdep.h: Likewise.
5116         * sysdeps/wordsize-32/divdi3.c: Likewise.
5117         * sysdeps/x86_64/sysdep.h: Likewise.
5118
5119         * argp/Versions: Remove _argp_unlock_xxx.
5120
5121         [BZ #13559]
5122         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
5123         * abilist/libBrokenLocale.abilist: Likewise.
5124         * abilist/libanl.abilist: Likewise.
5125         * abilist/libc.abilist: Likewise.
5126         * abilist/libcrypt.abilist: Likewise.
5127         * abilist/libdl.abilist: Likewise.
5128         * abilist/libm.abilist: Likewise.
5129         * abilist/libnsl.abilist: Likewise.
5130         * abilist/libpthread.abilist: Likewise.
5131         * abilist/libresolv.abilist: Likewise.
5132         * abilist/librt.abilist: Likewise.
5133         * abilist/libthread_db.abilist: Likewise.
5134         * abilist/libutil.abilist: Likewise.
5135         * abilist/libnss_db.abilist: New file.
5136
5137         * scripts/abilist.awk: Add support for indirect functions.
5138
5139         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
5140
5141         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
5142
5143         * shlib-versions: Remove entries for ports architectures.
5144
5145         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
5146         files in ports.
5147         * elf/stackguard-macros.h: Remove support for IA-64.
5148         * elf/tst-auditmod1.c: Likewise.
5149         * sysdeps/generic/ldsodefs.h: Likewise.
5150
5151         * sysdeps/unix/sysv/linux/configure.in: Ports should define
5152         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
5153         configure files.
5154
5155         [BZ #13552]
5156         * configure.in: Remove --enable-omitfp support.
5157         * FAQ.in: Adjust.
5158         * config.make.in: Likewise.
5159         * Makeconfig: Likewise.
5160         * manual/install.texi: Likewise.
5161
5162         In case anyone cares, the IA-64 architecture could move to ports.
5163         * sysdeps/ia64/*: Removed.
5164         * sysdeps/unix/sysv/linux/ia64/*: Removed.
5165         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
5166
5167         [BZ #13555]
5168         * configure.in: Remove entries for unsupported architectures.
5169
5170         [BZ #13533]
5171         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
5172         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
5173         routines.
5174         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
5175         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
5176         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
5177         fall back to using wcrtomb.
5178         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
5179         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
5180         renaming.
5181         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
5182         * wcsmbs/tst-c16c32-1.c: New file.
5183
5184         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
5185         local variable.
5186
5187         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
5188
5189         * elf/tst-unique3.cc: Add explicit declaration of gets.
5190         * elf/tst-unique3lib.cc: Likewise.
5191         * elf/tst-unique3lib2.cc: Likewise.
5192         * elf/tst-unique4.cc: Likewise.
5193
5194         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
5195
5196 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
5197
5198         [BZ #13566]
5199         * assert/assert.h (static_assert): Don't define for C++.
5200         * libio/stdio.h (gets): Do declare for C++ <= C++11.
5201         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
5202
5203 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
5204
5205         * iconv/loop.c (single loop): Fix assertion in storing of
5206         remaining bytes.
5207
5208         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
5209
5210 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
5211
5212         * posix/getconf.c: Update copyright year.
5213         * nss/getent.c: Likewise.
5214         * nss/makedb.c: Likewise.
5215         * iconv/iconvconfig.c: Likewise.
5216         * iconv/iconv_prog.c: Likewise.
5217         * elf/ldconfig.c: Likewise.
5218         * elf/pldd.c: Likewise.
5219         * elf/sotruss.ksh: Likewise.
5220         * catgets/gencat.c: Likewise.
5221         * csu/version.c: Likewise.
5222         * elf/ldd.bash.in: Likewise.
5223         * elf/sprof.c (print_version): Likewise.
5224         * locale/programs/locale.c: Likewise.
5225         * locale/programs/localedef.c: Likewise.
5226         * login/programs/pt_chown.c: Likewise.
5227         * nscd/nscd.c (print_version): Likewise.
5228         * debug/xtrace.sh: Likewise.
5229         * malloc/memusage.sh: Likewise.
5230         * malloc/mtrace.pl: Likewise.
5231         * debug/catchsegv.sh: Likewise.
5232
5233 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
5234
5235         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
5236         pure attribute.
5237
5238 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
5239
5240         [BZ #13533]
5241         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
5242         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
5243         transformations.
5244         * iconv/gconv_int.h: Likewise.
5245         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
5246         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
5247         from libc for GLIBC_2.16.
5248         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
5249         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
5250         * wcsmbs/uchar.h: Really define mbstate_t.
5251         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
5252         * wcsmbs/c16rtomb.c: New file.
5253         * wcsmbs/mbrtoc16.c: New file.
5254         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
5255         for C/POSIX locale.
5256         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
5257         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
5258
5259         * wcsmbs/wchar.h: Add missing __restrict.
5260
5261 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
5262
5263         [BZ #13532]
5264         * time/Makefile (routines): Add timespec_get.
5265         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
5266         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
5267         timespec for ISO C11.
5268         * time/timespec_get.c: New file.
5269         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
5270         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
5271
5272         [BZ #13531]
5273         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
5274         * stdlib/stdlib.h: Declare aligned_alloc.
5275         * Versions.def: Add GLIBC_2.16 for libc.
5276         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
5277
5278         [BZ 13527]
5279         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
5280         ISO C11.
5281
5282         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
5283         code.
5284
5285         [BZ #13528]
5286         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
5287
5288         [BZ #13529]
5289         * assert/assert.h (static_assert): Define.
5290
5291         * version.h: Update for 2.16 development version.
5292
5293         [BZ #13526]
5294         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
5295         _ISOC11_SOURCE.
5296
5297         * version.h (RELEASE): Bump for 2.15 release.
5298         * include/features.h (__GLIBC_MINOR__): Bump to 15.
5299
5300         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
5301         Patch by Marek Polacek <mpolacek@redhat.com>.
5302
5303         * bits/byteswap.h: Protect long long constants with __extension__.
5304         * sysdeps/i386/bits/byteswap.h: Likewise.
5305         * sysdeps/ia64/bits/byteswap.h: Likewise.
5306         * sysdeps/s390/bits/byteswap.h: Likewise.
5307         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5308
5309 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5310
5311         [BZ #13540]
5312         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
5313         destination buffer.
5314         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
5315
5316 2011-12-23  Marek Polacek  <polacek@redhat.com>
5317
5318         * elf/dl-addr.c (determine_info): Add inline keyword.
5319         * elf/tst-auditmod4b.c (check_avx): Likewise.
5320         * elf/tst-auditmod6b.c (check_avx): Likewise.
5321         * elf/tst-auditmod6c.c (check_avx): Likewise.
5322         * elf/tst-auditmod7b.c (check_avx): Likewise.
5323
5324 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
5325
5326         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
5327         !__SSE_MATH__.
5328
5329 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5330
5331         [BZ #13540]
5332         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
5333         processing for last bytes.
5334
5335 2011-08-06  Bruno Haible  <bruno@clisp.org>
5336
5337         [BZ #13061]
5338         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
5339         U+0385, not to U+1FEE.
5340
5341         [BZ #13062]
5342         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
5343         entry for U+00A5 U+0301.
5344
5345 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
5346
5347         [BZ #13166]
5348         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
5349         buffer for the output is too small.
5350
5351         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
5352         optimization.
5353
5354         [BZ #13185]
5355         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
5356         SSE flags if possible.
5357
5358 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5359
5360         [BZ #13540]
5361         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
5362         processing for last bytes.
5363
5364 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
5365
5366         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
5367         (syscall-list-default-options, syscall-list-default-condition)
5368         (syscall-list-includes): Define.
5369         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
5370         list of ABIs and options and #if conditions for each ABI.  Do not
5371         handle common syscalls between ABIs specially.
5372         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
5373         Remove.
5374         (syscall-list-variants, syscall-list-32bit-options)
5375         (syscall-list-32bit-condition, syscall-list-64bit-options)
5376         (syscall-list-64bit-condition): Define.
5377         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
5378         (syscall-list-variants, syscall-list-32bit-options)
5379         (syscall-list-32bit-condition, syscall-list-64bit-options)
5380         (syscall-list-64bit-condition): Define.
5381         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
5382         Remove.
5383         (syscall-list-variants, syscall-list-32bit-options)
5384         (syscall-list-32bit-condition, syscall-list-64bit-options)
5385         (syscall-list-64bit-condition): Define.
5386         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
5387         Remove.
5388         (syscall-list-variants, syscall-list-32bit-options)
5389         (syscall-list-32bit-condition, syscall-list-64bit-options)
5390         (syscall-list-64bit-condition): Define.
5391
5392 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
5393
5394         * locale/iso-639.def: Add brx entry.
5395
5396         [BZ #13328]
5397         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
5398         Proposed by Mariusz_Cukr <marcukr@op.pl>.
5399
5400         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
5401         __feraiseexcept_renamed.
5402
5403 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
5404
5405         [BZ #13538]
5406         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
5407         EPOLLET with unsigned values.
5408         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5409         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
5410
5411         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
5412         to large cancellation.
5413         * math/s_cacoshf.c: Likewise.
5414         * math/s_cacoshl.c: Likewise.
5415
5416 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
5417
5418         [BZ #13305]
5419         [BZ #12786]
5420         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
5421         * math/s_cacoshf.c: Likewise.
5422         * math/s_cacoshl.c: Likewise.
5423
5424 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
5425
5426         [BZ #13439]
5427         * iconv/gconv.h: Define __GCONV_SWAP.
5428         * iconvdata/unicode.c: The swap bit must be stored in __flags.
5429         * iconvdata/utf-16.c: Likewise.
5430         * iconvdata/utf-32.c: Likewise.
5431
5432 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
5433
5434         [BZ #13524]
5435         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
5436         numerator after shifting it by one limb.
5437
5438 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
5439
5440         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
5441         under [__USE_EXTERN_INLINES].
5442
5443 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
5444
5445         [BZ #13446]
5446         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
5447
5448 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5449
5450         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
5451         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
5452         optimized code.
5453         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
5454         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
5455         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
5456         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
5457         for strncasecmp/strncasecmp_l compilation.
5458         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
5459         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
5460
5461 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
5462
5463         [BZ #13484]
5464         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
5465         of __asm__.
5466
5467 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
5468
5469         [BZ #13506]
5470         * time/tzfile.c (__tzfile_read): Check values from file header.
5471
5472 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
5473
5474         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
5475         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
5476         * powerpc/powerpc32/dl-start.S: Likewise.
5477         * powerpc/powerpc32/elf/start.S: Likewise.
5478         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
5479         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
5480         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
5481         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
5482         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
5483         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
5484         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
5485         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
5486         * powerpc/powerpc32/fpu/s_round.S: Likewise.
5487         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
5488         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
5489         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
5490         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
5491         * powerpc/powerpc32/memset.S: Likewise.
5492         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
5493         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5494         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5495         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5496         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5497         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
5498         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
5499         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
5500         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
5501         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
5502         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
5503         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
5504         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
5505
5506 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5507
5508         * math/libm-test.inc: Added more nearbyint tests.
5509         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
5510         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
5511         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
5512         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
5513
5514 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
5515
5516         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
5517         FD_CLOEXEC.
5518
5519 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5520
5521         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
5522         Add wcscpy-ssse3 wcscpy-c.
5523         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
5524         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
5525         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
5526         * sysdeps/x86_64/wcschr.S: New file.
5527         * sysdeps/x86_64/wcsrchr.S: New file.
5528         * string/test-strcmp.c: Remove checking of wcscmp function for
5529         wrong alignments.
5530         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
5531         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
5532         wcsrchr-sse2 wcsrchr-c.
5533         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
5534         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
5535         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
5536         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
5537         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
5538         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
5539         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
5540         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
5541         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
5542         * wcsmbc/wcschr.c (WCSCHR): New macro.
5543
5544 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5545
5546         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
5547         * wcsmbs/test-wcsrchr.c: New file.
5548         * string/test-strrchr.c: Add wcsrchr support.
5549         (WIDE): New macro.
5550         * wcsmbs/test-wcscpy.c: New file.
5551         * string/test-strcpy.c: Add wcscpy support.
5552         (WIDE): New macro.
5553
5554 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
5555
5556         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
5557         the inner loop.
5558
5559 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
5560
5561         [BZ #13472]
5562         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
5563
5564 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
5565
5566         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
5567         Minor optimizations.
5568
5569         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
5570         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
5571         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
5572
5573 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
5574
5575         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
5576         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
5577         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
5578         for gcc to avoid warnings.
5579         * inet/Makefile (tests): Add tst-checks.
5580         * inet/tst-checks.c: New file.
5581
5582         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
5583         warning.
5584
5585         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
5586         __wmemcmp_sse2.
5587
5588         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
5589         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
5590
5591         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
5592
5593 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
5594
5595         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
5596         problem.
5597
5598         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
5599
5600 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
5601
5602         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
5603         conditional on GCC version.
5604         (__arch_compare_and_exchange_val_8_acq)
5605         (__arch_compare_and_exchange_val_16_acq)
5606         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
5607         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
5608         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
5609
5610 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
5611
5612         * sysdeps/sh/backtrace.c: New file.
5613
5614 2011-12-02  Andreas Schwab  <schwab@redhat.com>
5615
5616         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
5617         parenthesis.
5618
5619 2011-12-01  Andreas Schwab  <schwab@redhat.com>
5620
5621         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
5622         falling back to utime.
5623
5624 2011-11-30  Andreas Schwab  <schwab@redhat.com>
5625
5626         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
5627         expectations for float.
5628
5629 2011-11-29  Andreas Schwab  <schwab@redhat.com>
5630
5631         * locale/weight.h (findidx): Add parameter len.
5632         * locale/weightwc.h (findidx): Likewise.
5633         * posix/fnmatch_loop.c (FCT): Adjust caller.
5634         * posix/regcomp.c (build_equiv_class): Likewise.
5635         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
5636         * posix/regexec.c (check_node_accept_bytes): Likewise.
5637         * string/strcoll_l.c (STRCOLL): Likewise.
5638         * string/strxfrm_l.c (STRXFRM): Likewise.
5639
5640 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
5641
5642         * Makefile.in: Remove CVSOPT handling.
5643         * configure.in: Remove use of AC_REVISION.
5644         * iconvdata/Makefile (distribute): No need to filter out CVS.
5645         * scripts/list-sources.sh: Remove CVS, subversion and monotone
5646         handling.
5647
5648 2011-11-16  Andreas Schwab  <schwab@redhat.com>
5649
5650         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
5651         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
5652         [USE_AS_STRNCASECMP_L]: Likewise.
5653         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
5654         NO_TLS_DIRECT_SEG_REFS.
5655         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
5656         Fix argument offsets for non-PIC.
5657         [USE_AS_STRNCASECMP_L]: Likewise.
5658         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
5659         NO_TLS_DIRECT_SEG_REFS.
5660
5661 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
5662
5663         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
5664         O_CLOEXEC.
5665         * locale/loadlocale.c (_nl_load_locale): Likewise.
5666
5667 2011-11-15  Andreas Schwab  <schwab@redhat.com>
5668
5669         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
5670         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
5671         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
5672         (SYSCALL_GETTIME): Set errno on error.
5673
5674         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
5675         count references to noai6ai_cached.
5676
5677 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
5678
5679         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
5680
5681         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
5682         FD_CLOEXEC for /proc/self/maps.
5683
5684         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
5685         FD_CLOEXEC for /proc/meminfo.
5686
5687         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
5688         gai.conf.
5689
5690         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
5691         FD_CLOEXEC for given file.
5692
5693         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
5694
5695         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
5696         FD_CLOEXEC for /etc/hosts.
5697         (_gethtent): Likewise.
5698
5699         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
5700
5701         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
5702         cancellation and set FD_CLOEXEC for /etc/netgroup.
5703
5704         * nss/nss_files/files-key.c (search): Don't allow cancellation when
5705         reading /etc/publickey.
5706
5707         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
5708         allow cancellation when reading /etc/group.
5709
5710         * nss/nss_files/files-alias.c (internal_setent): Don't allow
5711         cancellation.
5712         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
5713
5714         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
5715         when using data file.
5716
5717         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
5718
5719         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
5720         (write_nis_obj): Use "c" and "e" in fopen.
5721
5722         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
5723
5724         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
5725
5726         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
5727
5728         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
5729
5730         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
5731         locale.alias.
5732
5733         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
5734
5735         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
5736
5737         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
5738
5739         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
5740         file parsing and set FD_CLOEXEC.
5741
5742 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
5743
5744         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
5745
5746 2011-11-14  Andreas Schwab  <schwab@redhat.com>
5747
5748         * malloc/arena.c (arena_get2): Don't call reused_arena when
5749         _int_new_arena failed.
5750
5751 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
5752
5753         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
5754         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
5755         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
5756         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
5757         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5758         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
5759         to compile strcasecmp and strncasecmp.
5760         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
5761         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
5762
5763         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
5764
5765 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
5766
5767         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
5768         locale-defines.sym to gen-as-const-headers.
5769         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
5770         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
5771         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
5772         to compile strcasecmp and strncasecmp.
5773         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
5774         strcasecmp_l and strncasecmp_l.
5775         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
5776         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
5777         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
5778         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
5779         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
5780         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
5781         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
5782         * sysdeps/i386/i686/multiarch/strncase.S: New file.
5783         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
5784         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
5785         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
5786
5787 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
5788
5789         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
5790         result of SYSDEP_GETTIME_CPU to retval.
5791         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
5792         parameter list to macro.  Remove trailing semicolon.  Adjust users.
5793
5794         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
5795         variable.
5796
5797         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
5798         mantissa words.
5799         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
5800
5801         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
5802         from unused variable.
5803
5804         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
5805         DWARF definitions.
5806         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
5807         for assembling.
5808
5809         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
5810         over namespaces.
5811
5812         * sunrpc/rpc_prot.c (rejected): Fix case value.
5813
5814         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
5815         unsigned long long int to avoid warnings in shift.
5816
5817         * posix/regex_internal.c (re_string_reconstruct): Actually use result
5818         of use of trans.
5819         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
5820         variable tmp.
5821
5822         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
5823         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
5824         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
5825
5826         * nis/nis_table.c (nis_list): Use variable of correct type for
5827         result of __follow_path call.
5828
5829 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5830
5831         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
5832         of math functions ceil, trunc, floor, round, and sqrt, when
5833         avaliable on the platform.
5834         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
5835         name clash.
5836         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5837         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
5838         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
5839
5840 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
5841
5842         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
5843         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
5844
5845 2011-11-11  Roland McGrath  <roland@hack.frob.com>
5846
5847         * include/unistd.h: Fix __readlink return type.
5848         Reported by Chris Metcalf <cmetcalf@tilera.com>.
5849
5850 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
5851
5852         * stdlib/ucontext.h: Undo last change for makecontext.
5853
5854 2011-11-11  Andreas Schwab  <schwab@redhat.com>
5855
5856         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
5857
5858         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
5859         * setjmp/setjmp.h: Mark functions as non-leaf.
5860         * setjmp/bits/setjmp2.h: Likewise.
5861         * stdlib/ucontext.h: Likewise.
5862
5863 2011-11-10  Andreas Schwab  <schwab@redhat.com>
5864
5865         * malloc/arena.c (_int_new_arena): Don't increment narenas.
5866         (reused_arena): Don't check arena limit.
5867         (arena_get2): Atomically check arena limit.
5868
5869 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
5870
5871         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
5872         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
5873
5874         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
5875         instructions.
5876
5877 2011-11-07  Andreas Schwab  <schwab@redhat.com>
5878
5879         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
5880         handler when locking.
5881
5882         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
5883         Fix size of allocated buffer.
5884
5885 2011-11-04  Andreas Schwab  <schwab@redhat.com>
5886
5887         [BZ #10103]
5888         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
5889         declarations for long double functions.
5890         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
5891
5892         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
5893
5894 2011-11-03  Andreas Schwab  <schwab@redhat.com>
5895
5896         * nscd/nscd.c (main): Don't start AVC thread until credentials are
5897         installed.
5898
5899         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
5900         is disabled.
5901
5902 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5903
5904         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
5905
5906 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
5907
5908         * include/alloca.h (stackinfo_alloca_round): Define.
5909         (extend_alloca): Use it.
5910         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
5911         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
5912         here.
5913
5914         * scripts/check-local-headers.sh: Ignore libaudit.h.
5915
5916         * nscd/Makefile (extra-objs): Make recursively expanded.
5917
5918 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
5919
5920         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
5921         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
5922
5923         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
5924         * posix/tst-rfc3484-2.c: Likewise.
5925         * posix/tst-rfc3484-3.c: Likewise.
5926
5927         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
5928         process_vm_writev.
5929         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
5930         process_vm_writev.
5931         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
5932         process_vm_writev from libc using GLIBC_2.15 version.
5933
5934         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
5935
5936 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
5937
5938         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
5939         stack usage.
5940
5941 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
5942
5943         [BZ #13367]
5944         * nss/getent.c (initgroups_keys): Show error message in case no group
5945         names are given.
5946
5947         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
5948         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
5949         __bump_nl_timestamp.
5950         * nscd/connections (nscd_init): When host database is served open
5951         netlink socket and request notification about configuration changes.
5952         (main_loop_poll): Track netlink file descriptor and bump timestamp
5953         in case data becomes available.
5954         (main_loop_epoll): Likewise.
5955         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
5956         (database_pers_head): Add extra_data fileds.
5957         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
5958         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
5959         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
5960         Adjust caller.
5961         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
5962         in6ai data, call __free_in6ai.
5963         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
5964         Add -DHAVE_NETLINK.
5965         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
5966         interface information.  Reuse previous data if netlink timestamp
5967         is not changed.
5968         (__bump_nl_timestamp): New function.
5969         (__free_in6ai): New function.
5970
5971 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
5972
5973         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
5974         close_not_cancel_no_status here.
5975         (__check_pf): Reorganize code a bit to not call close twice if OOM.
5976
5977 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
5978
5979         [BZ #13276]
5980         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
5981         return value.
5982
5983         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
5984         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
5985         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
5986
5987 2011-07-03  Andreas Jaeger  <aj@suse.de>
5988
5989         [BZ #10709]
5990         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
5991         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
5992         * math/libm-test.inc (sin_test): Add test case.
5993
5994 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
5995
5996         [BZ #13337]
5997         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
5998         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
5999
6000         * elf/chroot_canon.c (chroot_canon): Cleanups.
6001
6002         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
6003
6004         [BZ #13335]
6005         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
6006         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
6007
6008         * string/test-strchr.c: Make usable for strchrnul testing.
6009         * string/test-strchrnul.c: New file.
6010         * string/Makefile (strop-tests): Add strchrnul.
6011
6012         * po/it.po: Update from translation team.
6013         * po/es.po: Likewise.
6014
6015 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
6016
6017         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
6018         the three constants needed as parameters.  Drop the others.
6019         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
6020         __m128i_strloadu_tolower.
6021         Create and initialize variable zero and use it in all the places
6022         where _mm_setzero_si128 was used.
6023
6024         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
6025         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
6026         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
6027         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
6028         anymore.
6029         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
6030         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
6031         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
6032         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
6033         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
6034         __mpranred, __mptan.
6035         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
6036         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
6037         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
6038         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
6039         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
6040         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
6041         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
6042         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
6043         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
6044
6045 2011-10-28  Andreas Schwab  <schwab@redhat.com>
6046
6047         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
6048         redefine if SHARED.
6049         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
6050
6051         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
6052         wide char related routines to wcsmbs subdir.
6053
6054 2011-10-27  Andreas Schwab  <schwab@redhat.com>
6055
6056         [BZ #13344]
6057         * misc/sys/cdefs.h (__THROWNL): Define.
6058         * posix/unistd.h: Use __THREADNL instead of __THREAD
6059         for memory synchronization functions.
6060
6061 2011-10-26  Roland McGrath  <roland@hack.frob.com>
6062
6063         [BZ #13349]
6064         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
6065         doesn't exist.
6066         * manual/stdio.texi (Obstack Streams): Node removed.
6067
6068 2011-10-26  Andreas Schwab  <schwab@redhat.com>
6069
6070         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
6071         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6072         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6073
6074         * math/math_private.h (math_force_eval): Allow non-addressable
6075         arguments.
6076         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
6077
6078 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
6079
6080         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
6081         file is not needed.
6082
6083         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
6084         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
6085         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
6086         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
6087         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
6088         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
6089         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
6090         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
6091         Add AVX variants.
6092         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
6093         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
6094         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
6095         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
6096         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
6097         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
6098         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
6099         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
6100         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
6101         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
6102         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
6103         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
6104         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
6105         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
6106         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
6107         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
6108         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
6109         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
6110         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
6111
6112         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
6113         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
6114
6115         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
6116         place.  Use VEX encoding when compiling for AVX.
6117
6118 2011-10-25  Andreas Schwab  <schwab@redhat.com>
6119
6120         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
6121         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
6122
6123         * string/test-strchr.c (do_test): Don't generate NUL bytes.
6124
6125 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
6126
6127         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
6128         useless if() expression.
6129         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6130         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6131         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
6132         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6133         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
6134         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6135         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6136         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6137         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6138         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6139         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6140         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6141         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
6142         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6143         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
6144         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6145         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
6146         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
6147         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6148
6149         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
6150
6151 2011-10-25  Andreas Schwab  <schwab@redhat.com>
6152
6153         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
6154         condition.
6155         * elf/dl-fini.c (_dl_sort_fini): Likewise.
6156
6157 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
6158
6159         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
6160         .text section.  Avoid duplicate constants.
6161         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
6162         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6163         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6164         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6165         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6166         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6167         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6168         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6169         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
6170         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
6171         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
6172         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
6173         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
6174         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
6175         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
6176         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
6177         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
6178         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
6179         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6180         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6181         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
6182         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
6183         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
6184         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
6185         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
6186         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
6187         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
6188         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
6189         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
6190         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
6191         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
6192         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
6193         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
6194         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
6195         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
6196         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
6197         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
6198         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
6199         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
6200         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
6201         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
6202         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
6203         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
6204         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
6205         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
6206
6207 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
6208
6209         * sysdeps/x86_64/dla.h: Move to ...
6210         * sysdeps/x86_64/fpu/dla.h: ...here.
6211         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
6212         situations.  Use __builtin_fma only for gcc 4.6 and up.
6213
6214         * config.make.in: Add have-mfma4 entry.
6215         * configure.in: Substitute libc_cv_cc_fma4.
6216         * math/Makefile (dbl-only-routines): Add sincostab.
6217         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
6218         Use __sincostab not sincos.
6219         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
6220         name is a macro.
6221         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6222         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6223         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6224         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
6225         using __copysign.
6226         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
6227         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
6228         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
6229         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
6230         and __inv.
6231         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
6232         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
6233         __copysign.
6234         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
6235         define aliases when function name is a macro.
6236         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
6237         sysdeps/ieee754/dbl-64/sincos.tbl.
6238         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
6239         fma4-enabled routines.
6240         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
6241         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
6242         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
6243         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
6244         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
6245         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
6246         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
6247         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
6248         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
6249         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
6250         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
6251         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
6252         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
6253         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
6254         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
6255         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
6256         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
6257         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
6258         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
6259         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
6260         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
6261         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
6262         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
6263         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
6264         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
6265         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
6266         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
6267         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
6268         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
6269         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
6270
6271         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
6272         rename.
6273         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6274         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6275         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6276         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6277         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6278         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6279         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6280         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6281
6282 2011-10-24  Andreas Schwab  <schwab@redhat.com>
6283
6284         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
6285
6286 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6287
6288         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
6289
6290         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
6291         prediction.
6292         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
6293
6294         * string/strnlen.c: Don't define STRNLEN, reverse logic.
6295         Remove unused variable magic_bits.
6296         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
6297
6298         * string/strnlen.c: Define and use STRNLEN macro.
6299         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
6300         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
6301         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
6302         * wcsmbs/wcslen.c: Define and use WCSLEN.
6303         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
6304         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
6305         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
6306         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
6307         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
6308         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
6309         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
6310
6311 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6312
6313         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
6314         strnlen-sse2-no-bsf.
6315         Rename strlen-no-bsf to strlen-sse2-no-bsf.
6316         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
6317         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
6318         Add strnlen support.
6319         (USE_AS_STRNLEN): New macro.
6320         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
6321         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
6322         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
6323         * sysdeps/x86_64/wcslen.S: New file.
6324
6325 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
6326
6327         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
6328         XMM-moves are used for copying on small sizes.
6329
6330 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6331
6332         * wcsmbs/Makefile (strop-tests): Add wcschr.
6333         * wcsmbs/test-wcschr.c: New file.
6334         * string/test-strchr.c: Update.
6335         Add wcschr support.
6336         (WIDE): New macro.
6337
6338 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6339
6340         * wcsmbs/Makefile (strop-tests): Add wcslen.
6341         * wcsmbs/test-wcslen.c: New file.
6342         * string/test-strlen.c: Update.
6343         Add wcslen support.
6344         (WIDE): New macro.
6345
6346 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6347
6348         * po/it.po: Update from translation team.
6349
6350 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6351
6352         * sysdeps/x86_64/wcscmp.S: Update.
6353         Fix wrong comparison semantics.
6354         wcscmp shall use signed comparison not unsigned.
6355         Don't use substraction to avoid overflow bug.
6356         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
6357         * wcsmbc/wcscmp.c: Likewise.
6358         * string/test-strcmp.c: Likewise.
6359         Add new tests to check cases with negative values.
6360
6361 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6362
6363         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
6364         * sysdeps/x86_64/dla.h: ...here.  New file.
6365         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
6366         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6367         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6368         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6369         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6370         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6371         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6372         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6373         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6374
6375 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
6376
6377         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
6378         __ynl_finite aliases.
6379
6380 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
6381
6382         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6383
6384         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
6385         define DLA_FMA.
6386         [DLA_FMA] (EMULV): Use DLA_FMA.
6387         [DLA_FMA] (MUL12): Use EMULV.
6388         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
6389         that are not needed.
6390         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6391         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6392         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6393         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6394         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6395         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6396         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6397
6398 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
6399
6400         * math/s_nan.c: Undef __nan.
6401         * math/s_nanf.c: Undef __nanf.
6402         * math/s_nanl.c: Undef __nanl.
6403         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
6404         "math_private.h".
6405
6406 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
6407
6408         * math/s_catan.c: Add branch predictions.
6409         * math/s_catanf.c: Likewise.
6410         * math/s_catanh.c: Likewise.
6411         * math/s_catanhf.c: Likewise.
6412         * math/s_catanhl.c: Likewise.
6413         * math/s_catanl.c: Likewise.
6414         * math/s_cexp.c: Likewise.
6415         * math/s_cexpf.c: Likewise.
6416         * math/s_cexpl.c: Likewise.
6417         * math/s_clog.c: Likewise.
6418         * math/s_clog10.c: Likewise.
6419         * math/s_clog10f.c: Likewise.
6420         * math/s_clog10l.c: Likewise.
6421         * math/s_clogf.c: Likewise.
6422         * math/s_clogl.c: Likewise.
6423         * math/s_csqrt.c: Likewise.
6424         * math/s_csqrtf.c: Likewise.
6425         * math/s_csqrtl.c: Likewise.
6426         * math/s_ctanf.c: Likewise.
6427         * math/s_ctanh.c: Likewise.
6428         * math/s_ctanhf.c: Likewise.
6429         * math/s_ctanhl.c: Likewise.
6430         * math/s_ctanl.c: Likewise.
6431
6432         * math/math_private.h: Define __nan, __nanf, __nanl.
6433         * math/s_cacosh.c: Include <math_private.h>.
6434         * math/s_cacoshl.c: Likewise.
6435         * math/s_casinh.c: Likewise.
6436         * math/s_casinhf.c: Likewise.
6437         * math/s_casinhl.c: Likewise.
6438         * math/s_ccos.c: Rely entire on ccosh.
6439         * math/s_ccosf.c: Rely entire on ccoshf.
6440         * math/s_ccosl.c: Rely entirely on ccoshl.
6441         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
6442         Remove tests for FE_INVALID.
6443         * math/s_ccoshf.c: Likewise.
6444         * math/s_ccoshl.c: Likewise.
6445         * math/s_csin.c: Likewise.
6446         * math/s_csinf.c: Likewise.
6447         * math/s_csinh.c Likewise.
6448         * math/s_csinhf.c: Likewise.
6449         * math/s_csinhl.c: Likewise.
6450         * math/s_csinl.c: Likewise.
6451         * math/s_ctan.c: Likewise.
6452         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
6453         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
6454         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
6455
6456 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
6457
6458         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
6459         compilation problems.
6460
6461         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
6462         __builtin_expect.
6463
6464 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
6465
6466         * sysdeps/i386/configure.in: Test for -mfma4 option.
6467         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
6468         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
6469         COMMON_CPUID_INDEX_80000001.
6470         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
6471         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
6472         use it if FMA3 is not supported.
6473         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
6474
6475         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
6476         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
6477
6478 2011-10-20  Andreas Schwab  <schwab@redhat.com>
6479
6480         [BZ #12892]
6481         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
6482         it would create a cycle with a link time dependency.
6483
6484 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
6485
6486         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
6487         instruction.
6488         * string/Makefile (strop-tests): Add rawmemchr.
6489         * string/test-rawmemchr.c: New file.
6490
6491         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
6492         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
6493         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
6494         when compiling str{,n}casecmp and when AVX is available.  Hook up
6495         new optimized code in initializers.
6496
6497 2011-10-19  Andreas Schwab  <schwab@redhat.com>
6498
6499         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
6500         __feraiseexcept instead of feraiseexcept.
6501
6502 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
6503
6504         * math/math_private.h: Define defaults for libc_fetestexcept and
6505         libc_feupdateenv.
6506         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
6507         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6508         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6509         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6510         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6511         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6512         libc_fetestexcept and libc_feupdateenv.
6513
6514         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
6515         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
6516         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
6517         * sysdeps/x86_64/fpu/math_private.h: Define special version of
6518         libc_feholdexcept_setround.
6519
6520         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
6521         Add s_nearbyint-c and s_nearbyintf-c.
6522         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
6523         nearbyintf inlines.
6524         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
6525         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
6526         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
6527         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
6528
6529         * math/math_private.h: Define defaults for libc_fegetround,
6530         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
6531         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
6532         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
6533         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
6534         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
6535         standard functions.
6536         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6537         Remove comments and hacks for old compiler versions.
6538         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6539         libc_fegetround, libc_fesetround, libc_feholdexcept, and
6540         libc_feholdexceptl.
6541
6542 2011-10-18  Andreas Schwab  <schwab@redhat.com>
6543
6544         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
6545         (__feraiseexcept_renamed): Add __NTH.
6546         (feraiseexcept): Add __NTH.  Rename local variables to fix
6547         namespace violations.
6548
6549 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
6550
6551         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
6552
6553         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
6554
6555         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
6556         recently added interfaces.
6557         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6558
6559         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
6560         about macro parameter expansion.
6561
6562         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
6563         __NO_MATH_INLINES is defined.  Cleanups.
6564
6565         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
6566         and __floorf is target has SSE4.1.
6567         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
6568         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
6569         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
6570         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
6571
6572         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
6573         name.
6574         (floorf): Likewise.
6575
6576         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
6577
6578 2011-10-17  Andreas Schwab  <schwab@redhat.com>
6579
6580         * misc/sys/cdefs.h: Fix last change.
6581
6582         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
6583         database lookup.
6584
6585 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
6586
6587         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
6588
6589         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
6590         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6591         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6592         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6593         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6594         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6595         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6596         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6597         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6598         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
6599         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
6600         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
6601         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
6602         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
6603         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
6604         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
6605         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
6606         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
6607         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
6608         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
6609         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
6610         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
6611
6612         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
6613         ceil, ceilf, floor, floorf.
6614
6615         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
6616         Perform IRELATIVE relocations last.
6617
6618         * elf/do-rel.h: Add another parameter nrelative, replacing the
6619         local variable with the same name.  Change name of the function
6620         to end in Rel or Rela (uppercase).
6621         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
6622         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
6623         elf_dynamic_do_##reloc function.
6624
6625 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
6626
6627         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
6628         is sufficient, at least on modern CPUs.
6629
6630         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
6631
6632         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
6633         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
6634
6635         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
6636         __expl_finite.
6637         * math/bits/math-finite.h: Add entries for exp.
6638         * math/e_expl.c: Add __*_finite alias.
6639         * sysdeps/i386/fpu/e_exp.S: Likewise.
6640         * sysdeps/i386/fpu/e_expf.S: Likewise.
6641         * sysdeps/i386/fpu/e_expl.c: Likewise.
6642         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6643         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6644         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6645         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6646         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
6647         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
6648         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
6649
6650         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
6651         is sufficient, at least on modern CPUs.
6652
6653         * ctype/ctype-info.c (__ctype_init): Define.
6654         * include/ctype.h (__ctype_init): Declare.
6655         (__ctype_b_loc): The variable is always initialized.
6656         (__ctype_toupper_loc): Likewise.
6657         (__ctype_tolower_loc): Likewise.
6658         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
6659         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
6660
6661 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
6662
6663         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
6664
6665         * configure.in: Also look in $cxxmachine/include for C++ system
6666         headers.
6667
6668 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6669
6670         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
6671         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
6672         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
6673         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
6674         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
6675         (USE_AS_WMEMCMP): New macro.
6676         Fixing indents.
6677         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
6678         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
6679         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
6680         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
6681         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6682         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
6683         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
6684         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
6685         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
6686         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
6687         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
6688         (USE_AS_WMEMCMP): New macro.
6689         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
6690         * sysdeps/string/test-memcmp.c: Update.
6691         Fix simple_wmemcmp.
6692         Add new tests.
6693         * wcsmbs/wmemcmp.c: Update.
6694         (WMEMCMP): New macro.
6695         Fix overflow bug.
6696
6697 2011-10-12  Andreas Jaeger  <aj@suse.de>
6698
6699         [BZ #13268]
6700         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
6701
6702 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
6703
6704         * libio/iofwide.c (do_length): Avoid warning.
6705
6706         * ctype/ctype.h (__isctype_f): Add missing __THROW.
6707
6708 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
6709
6710         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
6711
6712         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
6713         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
6714         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
6715         * sysdeps/i386/i686/fpu/e_log.S: New file.
6716         * sysdeps/i386/i686/fpu/e_logf.S: New file.
6717         * sysdeps/i386/i686/fpu/e_logl.S: New file.
6718
6719         * ctype/ctype.h: Add support for inlined isXXX functions when
6720         compiling C++ code.
6721
6722 2011-10-14  Andreas Schwab  <schwab@redhat.com>
6723
6724         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6725
6726         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
6727
6728 2011-10-13  Roland McGrath  <roland@hack.frob.com>
6729
6730         [BZ #13291]
6731         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
6732
6733 2011-10-13  Andreas Schwab  <schwab@redhat.com>
6734
6735         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
6736         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
6737         feraiseexcept.
6738
6739         * sysdeps/x86_64/memrchr.S: Check for zero size.
6740
6741         * string/stratcliff.c: Add memrchr tests.
6742
6743 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6744
6745         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6746         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
6747         rawmemchr-sse2 rawmemchr-sse2-bsf.
6748         * sysdeps/i386/i686/multiarch/memchr.S: New file.
6749         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
6750         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
6751         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
6752         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
6753         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
6754         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
6755         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
6756         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
6757         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
6758         * string/memrchr.c (MEMRCHR): New macro.
6759
6760 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
6761
6762         Add integration with gcc's -ffinite-math-only and optimize wrapper
6763         functions in libm.
6764         * Versions.def: Define GLIBC_2.15 version for libm.
6765         * math/Makefile (headers): Add bits/math-finite.h.
6766         * math/bits/math-finite.h: New file.
6767         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
6768         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
6769         * math/e_acoshl.c: Add __*_finite alias.
6770         * math/e_acosl.c: Likewise.
6771         * math/e_asinl.c: Likewise.
6772         * math/e_atan2l.c: Likewise.
6773         * math/e_atanhl.c: Likewise.
6774         * math/e_coshl.c: Likewise.
6775         * math/e_exp10.c: Likewise.
6776         * math/e_exp10f.c: Likewise.
6777         * math/e_exp10l.c: Likewise.
6778         * math/e_exp2l.c: Likewise.
6779         * math/e_fmodl.c: Likewise.
6780         * math/e_gammal_r.c: Likewise.
6781         * math/e_hypotl.c: Likewise.
6782         * math/e_j0l.c: Likewise.
6783         * math/e_j1l.c: Likewise.
6784         * math/e_jnl.c: Likewise.
6785         * math/e_lgammal_r.c: Likewise.
6786         * math/e_log10l.c: Likewise.
6787         * math/e_log2l.c: Likewise.
6788         * math/e_logl.c: Likewise.
6789         * math/e_powl.c: Likewise.
6790         * math/e_sinhl.c: Likewise.
6791         * math/e_sqrtl.c: Likewise.
6792         * math/e_scalb.c: Completely rewritten and optimized.
6793         * math/e_scalbf.c: Likewise.
6794         * math/e_scalbl.c: Likewise.
6795         * math/w_acos.c: Likewise.
6796         * math/w_acosf.c: Likewise.
6797         * math/w_acosl.c: Likewise.
6798         * math/w_acosh.c: Likewise.
6799         * math/w_acoshf.c: Likewise.
6800         * math/w_acoshl.c: Likewise.
6801         * math/w_asin.c: Likewise.
6802         * math/w_asinf.c: Likewise.
6803         * math/w_asinl.c: Likewise.
6804         * math/w_atan2.c: Likewise.
6805         * math/w_atan2f.c: Likewise.
6806         * math/w_atan2l.c: Likewise.
6807         * math/w_atanh.c: Likewise.
6808         * math/w_atanhf.c: Likewise.
6809         * math/w_atanhl.c: Likewise.
6810         * math/w_exp10.c: Likewise.
6811         * math/w_exp10f.c: Likewise.
6812         * math/w_exp10l.c: Likewise.
6813         * math/w_fmod.c: Likewise.
6814         * math/w_fmodf.c: Likewise.
6815         * math/w_fmodl.c: Likewise.
6816         * math/w_j0.c: Likewise.
6817         * math/w_j0f.c: Likewise.
6818         * math/w_j0l.c: Likewise.
6819         * math/w_j1.c: Likewise.
6820         * math/w_j1f.c: Likewise.
6821         * math/w_j1l.c: Likewise.
6822         * math/w_jn.c: Likewise.
6823         * math/w_jnf.c: Likewise.
6824         * math/w_log.c: Likewise.
6825         * math/w_logf.c: Likewise.
6826         * math/w_logl.c: Likewise.
6827         * math/w_log10.c: Likewise.
6828         * math/w_log10f.c: Likewise.
6829         * math/w_log10l.c: Likewise.
6830         * math/w_log2.c: Likewise.
6831         * math/w_log2f.c: Likewise.
6832         * math/w_log2l.c: Likewise.
6833         * math/w_pow.c: Likewise.
6834         * math/w_powf.c: Likewise.
6835         * math/w_powl.c: Likewise.
6836         * math/w_remainder.c: Likewise.
6837         * math/w_remainderf.c: Likewise.
6838         * math/w_remainderl.c: Likewise.
6839         * math/w_scalb.c: Likewise.
6840         * math/w_scalbf.c: Likewise.
6841         * math/w_scalbl.c: Likewise.
6842         * math/w_sqrt.c: Likewise.
6843         * math/w_sqrtf.c: Likewise.
6844         * math/w_sqrtl.c: Likewise.
6845         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
6846         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
6847         used.
6848         * math/math_private.h: Declare __kernel_standard_f.
6849         * math/w_cosh.c: Remove cruft and optimize a bit.
6850         * math/w_coshf.c: Likewise.
6851         * math/w_coshl.c: Likewise.
6852         * math/w_exp2.c: Likewise.
6853         * math/w_exp2f.c: Likewise.
6854         * math/w_exp2l.c: Likewise.
6855         * math/w_hypot.c: Likewise.
6856         * math/w_hypotf.c: Likewise.
6857         * math/w_hypotl.c: Likewise.
6858         * math/w_lgamma.c: Likewise.
6859         * math/w_lgamma_r.c: Likewise.
6860         * math/w_lgammaf.c: Likewise.
6861         * math/w_lgammaf_r.c: Likewise.
6862         * math/w_lgammal.c: Likewise.
6863         * math/w_lgammal_r.c: Likewise.
6864         * math/w_sinh.c: Likewise.
6865         * math/w_sinhf.c: Likewise.
6866         * math/w_sinhl.c: Likewise.
6867         * math/w_tgamma.c: Likewise.
6868         * math/w_tgammaf.c: Likewise.
6869         * math/w_tgammal.c: Likewise.
6870         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6871         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6872         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
6873         Minor optimizations.  Pretty printing.  Remove cruft.
6874         * sysdeps/i386/fpu/e_acosf.S: Likewise.
6875         * sysdeps/i386/fpu/e_acosh.S: Likewise.
6876         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
6877         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
6878         * sysdeps/i386/fpu/e_acosl.c: Likewise.
6879         * sysdeps/i386/fpu/e_asin.S: Likewise.
6880         * sysdeps/i386/fpu/e_asinf.S: Likewise.
6881         * sysdeps/i386/fpu/e_atan2.S: Likewise.
6882         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
6883         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
6884         * sysdeps/i386/fpu/e_atanh.S: Likewise.
6885         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
6886         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
6887         * sysdeps/i386/fpu/e_exp10.S: Likewise.
6888         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
6889         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
6890         * sysdeps/i386/fpu/e_exp2.S: Likewise.
6891         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
6892         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
6893         * sysdeps/i386/fpu/e_fmod.S: Likewise.
6894         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
6895         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6896         * sysdeps/i386/fpu/e_hypot.S: Likewise.
6897         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
6898         * sysdeps/i386/fpu/e_log.S: Likewise.
6899         * sysdeps/i386/fpu/e_log10.S: Likewise.
6900         * sysdeps/i386/fpu/e_log10f.S: Likewise.
6901         * sysdeps/i386/fpu/e_log10l.S: Likewise.
6902         * sysdeps/i386/fpu/e_log2.S: Likewise.
6903         * sysdeps/i386/fpu/e_log2f.S: Likewise.
6904         * sysdeps/i386/fpu/e_log2l.S: Likewise.
6905         * sysdeps/i386/fpu/e_logf.S: Likewise.
6906         * sysdeps/i386/fpu/e_logl.S: Likewise.
6907         * sysdeps/i386/fpu/e_pow.S: Likewise.
6908         * sysdeps/i386/fpu/e_powf.S: Likewise.
6909         * sysdeps/i386/fpu/e_powl.S: Likewise.
6910         * sysdeps/i386/fpu/e_remainder.S: Likewise.
6911         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
6912         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
6913         * sysdeps/i386/fpu/e_scalb.S: Likewise.
6914         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
6915         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
6916         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
6917         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
6918         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
6919         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
6920         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6921         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6922         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
6923         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6924         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
6925         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6926         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
6927         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6928         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
6929         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6930         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
6931         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6932         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
6933         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
6934         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6935         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6936         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
6937         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6938         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6939         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
6940         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
6941         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
6942         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
6943         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
6944         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
6945         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6946         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
6947         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6948         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
6949         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6950         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6951         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6952         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6953         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
6954         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
6955         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
6956         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
6957         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
6958         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
6959         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
6960         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
6961         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
6962         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
6963         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
6964         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
6965         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
6966         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
6967         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
6968         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6969         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
6970         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
6971         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6972         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6973         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
6974         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
6975         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
6976         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
6977         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
6978         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
6979         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
6980         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
6981         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
6982         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
6983         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
6984         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
6985         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
6986         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
6987         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6988         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
6989         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
6990         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
6991         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
6992         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
6993         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
6994         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
6995         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
6996         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
6997         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
6998         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
6999         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7000         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
7001         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
7002         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7003         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
7004         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
7005         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7006         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7007         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
7008         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
7009         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7010         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
7011         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
7012         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
7013         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
7014         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
7015         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
7016         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
7017         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
7018         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
7019         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
7020         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
7021         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
7022         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
7023         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
7024         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
7025         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
7026         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7027         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
7028         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
7029         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
7030         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
7031         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
7032         (__isnanf): Likewise.
7033         (__isinf_ns): Likewise.
7034         (__isinf_nsf): Likewise.
7035         (__finite): Likewise.
7036         (__finitef): Likewise.
7037         (__ieee754_sqrt): Define as macro.
7038         (__ieee754_sqrtf): Define as macro.
7039         (__ieee754_sqrtl): Define as macro.
7040         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
7041         inlined copy.
7042         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
7043         __FINITE_MATH_ONLY__ consistent.
7044         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
7045
7046 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
7047
7048         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
7049         of rawmemchr.
7050
7051         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
7052
7053 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
7054
7055         * po/ja.po: Update from translation team.
7056
7057 2011-10-08  Roland McGrath  <roland@hack.frob.com>
7058
7059         * locale/programs/locarchive.c (prepare_address_space): New function.
7060         (create_archive, enlarge_archive, open_archive): Use it.
7061
7062         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
7063         inside [SHARED], where it is used.
7064
7065         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
7066
7067         * nss/getent.c (netgroup_keys): Remove unused variable.
7068         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
7069
7070 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
7071
7072         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
7073         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
7074         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
7075         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
7076         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
7077         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
7078         * math/Makefile (libm-calls): Add s_isinf_ns.
7079         * math/divtc3.c: Use __isinf_nsl instead of isinf.
7080         * math/multc3.c: Likewise.
7081         * math/s_casin.c: Likewise.
7082         * math/s_casinf.c: Likewise.
7083         * math/s_casinl.c: Likewise.
7084         * math/s_ccos.c: Likewise.
7085         * math/s_ccosf.c: Likewise.
7086         * math/s_ccosl.c: Likewise.
7087         * math/s_ctan.c: Likewise.
7088         * math/s_ctanf.c: Likewise.
7089         * math/s_ctanh.c: Likewise.
7090         * math/s_ctanhf.c: Likewise.
7091         * math/s_ctanhl.c: Likewise.
7092         * math/s_ctanl.c: Likewise.
7093         * math/w_fmod.c: Likewise.
7094         * math/w_fmodf.c: Likewise.
7095         * math/w_fmodl.c: Likewise.
7096         * math/w_remainder.c: Likewise.
7097         * math/w_remainderf.c: Likewise.
7098         * math/w_remainderl.c: Likewise.
7099         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
7100         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
7101         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
7102         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
7103         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
7104         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
7105         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
7106         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
7107
7108         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
7109         of the number.
7110         * stdio-common/printf_fphex.c: Likewise.
7111         * stdio-common/printf_size.c: Likewise.
7112
7113         * math/e_exp10.c: Include math_private.h using <...> not "...".
7114         * math/e_exp10f.c: Likewise.
7115         * math/e_exp10l.c: Likewise.
7116         * math/e_exp2l.c: Likewise.
7117         * math/e_j0l.c: Likewise.
7118         * math/e_j1l.c: Likewise.
7119         * math/e_jnl.c: Likewise.
7120         * math/e_lgammal_r.c: Likewise.
7121         * math/e_rem_pio2l.c: Likewise.
7122         * math/e_scalb.c: Likewise.
7123         * math/e_scalbf.c: Likewise.
7124         * math/e_scalbl.c: Likewise.
7125         * math/k_cosl.c: Likewise.
7126         * math/k_sinl.c: Likewise.
7127         * math/k_tanl.c: Likewise.
7128         * math/s_cacoshf.c: Likewise.
7129         * math/s_catan.c: Likewise.
7130         * math/s_catanf.c: Likewise.
7131         * math/s_catanh.c: Likewise.
7132         * math/s_catanhf.c: Likewise.
7133         * math/s_catanhl.c: Likewise.
7134         * math/s_catanl.c: Likewise.
7135         * math/s_ccosh.c: Likewise.
7136         * math/s_ccoshf.c: Likewise.
7137         * math/s_ccoshl.c: Likewise.
7138         * math/s_cexp.c: Likewise.
7139         * math/s_cexpf.c: Likewise.
7140         * math/s_cexpl.c: Likewise.
7141         * math/s_clog.c: Likewise.
7142         * math/s_clog10.c: Likewise.
7143         * math/s_clog10f.c: Likewise.
7144         * math/s_clog10l.c: Likewise.
7145         * math/s_clogf.c: Likewise.
7146         * math/s_clogl.c: Likewise.
7147         * math/s_csin.c: Likewise.
7148         * math/s_csinf.c: Likewise.
7149         * math/s_csinh.c: Likewise.
7150         * math/s_csinhf.c: Likewise.
7151         * math/s_csinhl.c: Likewise.
7152         * math/s_csinl.c: Likewise.
7153         * math/s_csqrt.c: Likewise.
7154         * math/s_csqrtf.c: Likewise.
7155         * math/s_csqrtl.c: Likewise.
7156         * math/s_ctan.c: Likewise.
7157         * math/s_ctanf.c: Likewise.
7158         * math/s_ctanh.c: Likewise.
7159         * math/s_ctanhf.c: Likewise.
7160         * math/s_ctanhl.c: Likewise.
7161         * math/s_ctanl.c: Likewise.
7162         * math/s_ldexp.c: Likewise.
7163         * math/s_ldexpf.c: Likewise.
7164         * math/s_ldexpl.c: Likewise.
7165         * math/s_significand.c: Likewise.
7166         * math/s_significandf.c: Likewise.
7167         * math/s_significandl.c: Likewise.
7168         * math/w_acos.c: Likewise.
7169         * math/w_acosf.c: Likewise.
7170         * math/w_acosh.c: Likewise.
7171         * math/w_acoshf.c: Likewise.
7172         * math/w_acoshl.c: Likewise.
7173         * math/w_acosl.c: Likewise.
7174         * math/w_asin.c: Likewise.
7175         * math/w_asinf.c: Likewise.
7176         * math/w_asinl.c: Likewise.
7177         * math/w_atan2.c: Likewise.
7178         * math/w_atan2f.c: Likewise.
7179         * math/w_atan2l.c: Likewise.
7180         * math/w_atanh.c: Likewise.
7181         * math/w_atanhf.c: Likewise.
7182         * math/w_atanhl.c: Likewise.
7183         * math/w_cosh.c: Likewise.
7184         * math/w_coshf.c: Likewise.
7185         * math/w_coshl.c: Likewise.
7186         * math/w_dremf.c: Likewise.
7187         * math/w_exp10.c: Likewise.
7188         * math/w_exp10f.c: Likewise.
7189         * math/w_exp10l.c: Likewise.
7190         * math/w_exp2.c: Likewise.
7191         * math/w_exp2f.c: Likewise.
7192         * math/w_fmod.c: Likewise.
7193         * math/w_fmodf.c: Likewise.
7194         * math/w_fmodl.c: Likewise.
7195         * math/w_hypot.c: Likewise.
7196         * math/w_hypotf.c: Likewise.
7197         * math/w_hypotl.c: Likewise.
7198         * math/w_j0.c: Likewise.
7199         * math/w_j0f.c: Likewise.
7200         * math/w_j0l.c: Likewise.
7201         * math/w_j1.c: Likewise.
7202         * math/w_j1f.c: Likewise.
7203         * math/w_j1l.c: Likewise.
7204         * math/w_jn.c: Likewise.
7205         * math/w_jnf.c: Likewise.
7206         * math/w_jnl.c: Likewise.
7207         * math/w_lgamma.c: Likewise.
7208         * math/w_lgamma_r.c: Likewise.
7209         * math/w_lgammaf.c: Likewise.
7210         * math/w_lgammaf_r.c: Likewise.
7211         * math/w_lgammal.c: Likewise.
7212         * math/w_lgammal_r.c: Likewise.
7213         * math/w_log.c: Likewise.
7214         * math/w_log10.c: Likewise.
7215         * math/w_log10f.c: Likewise.
7216         * math/w_log10l.c: Likewise.
7217         * math/w_log2.c: Likewise.
7218         * math/w_log2f.c: Likewise.
7219         * math/w_log2l.c: Likewise.
7220         * math/w_logf.c: Likewise.
7221         * math/w_logl.c: Likewise.
7222         * math/w_pow.c: Likewise.
7223         * math/w_powf.c: Likewise.
7224         * math/w_powl.c: Likewise.
7225         * math/w_remainder.c: Likewise.
7226         * math/w_remainderf.c: Likewise.
7227         * math/w_remainderl.c: Likewise.
7228         * math/w_scalb.c: Likewise.
7229         * math/w_scalbf.c: Likewise.
7230         * math/w_scalbl.c: Likewise.
7231         * math/w_sinh.c: Likewise.
7232         * math/w_sinhf.c: Likewise.
7233         * math/w_sinhl.c: Likewise.
7234         * math/w_sqrt.c: Likewise.
7235         * math/w_sqrtf.c: Likewise.
7236         * math/w_sqrtl.c: Likewise.
7237         * math/w_tgamma.c: Likewise.
7238         * math/w_tgammaf.c: Likewise.
7239         * math/w_tgammal.c: Likewise.
7240
7241         * po/ja.po: Update from translation team.
7242
7243 2011-09-29  Andreas Jaeger  <aj@suse.de>
7244
7245         [BZ #13179]
7246         * sunrpc/netname.c (netname2host): Fix logic.
7247
7248         [BZ #6779]
7249         [BZ #6783]
7250         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
7251         correctly.
7252         * math/w_remainder.c (__remainder): Likewise.
7253         * math/w_remainderf.c (__remainderf): Likewise.
7254         * math/libm-test.inc (remainder_test): Add test cases.
7255
7256 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7257
7258         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
7259         sdiv_qrnnd.
7260
7261 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
7262
7263         * string/test-memcmp.c: Avoid unncessary #defines.
7264         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
7265
7266 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7267
7268         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
7269         Use new sse2 version for core i3 - i7 as it's faster
7270         than sse42 version.
7271         (bit_Prefer_PMINUB_for_stringop): New.
7272         * sysdeps/x86_64/rawmemchr.S: Update.
7273         Replace with faster SSE2 version.
7274         * sysdeps/x86_64/memrchr.S: New file.
7275         * sysdeps/x86_64/memchr.S: Update.
7276         Replace with faster SSE2 version.
7277
7278 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
7279
7280         * elf/dl-load.c (lose): Add cast to avoid warning.
7281
7282 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
7283
7284         * po/ca.po: Update from translation team.
7285
7286         * inet/getnetgrent_r.c: Hook up nscd.
7287         * nscd/Makefile (routines): Add nscd_netgroup.
7288         (nscd-modules): Add netgroupcache.
7289         (CFLAGS-netgroupcache.c): Define.
7290         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
7291         (cache_search): Add const to second parameter.
7292         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
7293         INNETGR.
7294         (dbs): Add netgrdb entry.
7295         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
7296         (verify_persistent_db): Handle netgrdb.
7297         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
7298         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
7299         GETFDNETGR.
7300         (netgroup_response_header): Define.
7301         (innetgroup_response_header): Define.
7302         (datahead): Add netgroup_response_header and innetgroup_response_header
7303         elements.
7304         * nscd/nscd.conf: Add entries for netgroup cache.
7305         * nscd/nscd.h (dbtype): Add netgrdb.
7306         (_PATH_NSCD_NETGROUP_DB): Define.
7307         (netgroup_iov_disabled): Declare.
7308         (xmalloc, xcalloc, xrealloc): Move declarations here.
7309         (cache_search): Adjust prototype.
7310         Add netgroup-related prototypes.
7311         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
7312         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
7313         (__nscd_innetgr): Declare.
7314         * nscd/selinux.c (perms): Use access_vector_t as element type and
7315         add netgroup-related initializers.
7316         * nscd/netgroupcache.c: New file.
7317         * nscd/nscd_netgroup.c: New file.
7318         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
7319         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
7320         For four parameters use innetgr.
7321         * nss/nss_files/files-init.c: Add definition and callback for netgr.
7322         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
7323         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
7324         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
7325
7326         * nscd/connections.c (register_traced_file): Don't register file
7327         for disabled databases.
7328
7329 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
7330
7331         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
7332
7333         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
7334         from tree and freeing node.
7335
7336 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
7337
7338         * nss/nsswitch.c (__nss_database_lookup): Handle
7339         nss_parse_service_list out of memory case.
7340
7341 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
7342
7343         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
7344         out of memory case.
7345
7346 2011-10-04  Andreas Schwab  <schwab@redhat.com>
7347
7348         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
7349         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
7350         pass it down.
7351         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
7352         elf_machine_rela, elf_machine_lazy_rel.
7353         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
7354         (ELF_DYNAMIC_DO_REL): Likewise.
7355         (ELF_DYNAMIC_DO_RELA): Likewise.
7356         (ELF_DYNAMIC_RELOCATE): Likewise.
7357         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
7358         to ELF_DYNAMIC_DO_REL.
7359         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
7360         (dl_main): In trace mode always set __RTLD_NOIFUNC.
7361         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
7362         elf_machine_rela.
7363         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
7364         skip_ifunc, don't call ifunc function if non-zero.
7365         (elf_machine_rela): Likewise.
7366         (elf_machine_lazy_rel): Likewise.
7367         (elf_machine_lazy_rela): Likewise.
7368         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
7369         (elf_machine_lazy_rel): Likewise.
7370         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
7371         Likewise.
7372         (elf_machine_lazy_rel): Likewise.
7373         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7374         Likewise.
7375         (elf_machine_lazy_rel): Likewise.
7376         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
7377         (elf_machine_lazy_rel): Likewise.
7378         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
7379         (elf_machine_lazy_rel): Likewise.
7380         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7381         (elf_machine_lazy_rel): Likewise.
7382         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7383         (elf_machine_lazy_rel): Likewise.
7384         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7385         (elf_machine_lazy_rel): Likewise.
7386         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
7387         (elf_machine_lazy_rel): Likewise.
7388
7389 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
7390
7391         * nss/nss_files/files-init.c (_nss_files_init): Use static
7392         initialization for all the *_traced_file variables.
7393
7394 2011-09-28  Andreas Schwab  <schwab@redhat.com>
7395
7396         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7397
7398 2011-09-27  Roland McGrath  <roland@hack.frob.com>
7399
7400         [BZ #13226]
7401         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
7402
7403 2011-09-27  Andreas Schwab  <schwab@redhat.com>
7404
7405         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
7406         Reread the line before reparsing it.
7407
7408 2011-09-26  Andreas Schwab  <schwab@redhat.com>
7409
7410         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
7411
7412 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
7413             Maxim Kuvyrkov  <maxim@codesourcery.com>
7414             Joseph Myers  <joseph@codesourcery.com>
7415
7416         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
7417         if needed for __stack_chk_guard.
7418
7419 2011-09-19  Roland McGrath  <roland@hack.frob.com>
7420
7421         * sysdeps/posix/spawni.c (script_execute): Always define it.
7422         It will be optimized away if unused.
7423         (maybe_script_execute): New function.
7424         (__spawni): Call it.
7425
7426         * Makerules: Don't include tls.make.
7427         (config-tls): Always set to thread.
7428         * tls.make.c: File removed.
7429
7430 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
7431
7432         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
7433         * config.make.in (CPPFLAGS-config): New substituted variable.
7434
7435 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
7436
7437         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
7438
7439         [BZ #13192]
7440         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
7441         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
7442
7443 2011-09-15  Roland McGrath  <roland@hack.frob.com>
7444
7445         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
7446         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
7447         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
7448         (CALL_FAIL): Likewise.
7449         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
7450         (CALL_FAIL): Macro removed.
7451         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
7452
7453 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
7454
7455         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
7456         for __FINITE_MATH_ONLY__ == 1.
7457
7458 2011-09-15  Andreas Schwab  <schwab@redhat.com>
7459
7460         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
7461         __ieee754_sqrt instead of sqrt.
7462         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
7463         __ieee754_sqrtf instead of sqrtf.
7464         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
7465         __floorf instead of floorf.
7466         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
7467         __floorf, __truncf instead of floorf, truncf.
7468
7469 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
7470
7471         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
7472
7473         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
7474         __extern_always_inline.
7475         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
7476         32-bit.
7477
7478 2011-09-14  Andreas Schwab  <schwab@redhat.com>
7479
7480         * elf/rtld.c (dl_main): Also relocate in dependency order when
7481         doing symbol dependency testing.
7482
7483 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
7484
7485         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7486         Always define `refsym'.
7487
7488 2011-09-13  Andreas Schwab  <schwab@redhat.com>
7489
7490         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
7491         (__FD_ELT): Renamed from __FDELT.
7492         * misc/bits/select2.h (__FD_ELT): Likewise.
7493         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
7494         __FD_MASK instead of __FDELT, __FDMASK.
7495         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7496         Likewise.
7497         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7498         Likewise.
7499
7500         * elf/Makefile (gen-ldd): Fix pattern.
7501
7502         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
7503         (init_tls): Likewise.
7504
7505 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
7506
7507         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
7508
7509 2011-09-12  Andreas Schwab  <schwab@redhat.com>
7510
7511         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
7512         `struct cmsghdr *' instead of `void *'.
7513         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
7514         Likewise.
7515
7516 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
7517
7518         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
7519         if non-absolute.
7520         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
7521         ldd_rewrite_script.
7522
7523 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
7524
7525         * configure.in: Remove --with-tls option.
7526         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
7527         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
7528         out in case it is missing.
7529         * sysdeps/ia64/elf/configure.in: Likewise.
7530         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
7531         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
7532         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
7533         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
7534         * sysdeps/sh/elf/configure.in: Likewise.
7535         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
7536         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
7537         * sysdeps/x86_64/elf/configure.in: Likewise.
7538         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
7539         * sysdeps/mach/hurd/tls.h: Likewise.
7540
7541         [BZ #13067]
7542         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
7543
7544         [BZ #13090]
7545         * configure.in: Fix use of AC_INIT.
7546
7547         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
7548
7549 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
7550
7551         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
7552         __set_errno.
7553         * malloc/hooks.c: Likewise.
7554
7555         [BZ #11929]
7556         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
7557         variables statically.
7558         (narenas): Initialize.
7559         (list_lock): Initialize.
7560         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
7561         initializtion of main_arena and list_lock.  Small cleanups.
7562         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
7563         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
7564         Add initializers to main_arena and mp_.
7565         (malloc_state): Remove pagesize member.  Change all users to use
7566         GLRO(dl_pagesize).
7567
7568         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
7569         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
7570         is always initialized.
7571
7572         * malloc/malloc.c: Removed unused configurations and dead code.
7573         * malloc/arena.c: Likewise.
7574         * malloc/hooks.c: Likewise.
7575         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
7576
7577         * include/tls.h: Removed.  USE___THREAD must always be defined.
7578         * bits/libc-tsd.h: Don't handle !USE___THREAD.
7579         * elf/dl-libc.c: Likewise.
7580         * elf/dl-tsd.c: Likewise.
7581         * include/errno.h: Likewise.
7582         * include/netdb.h: Likewise.
7583         * include/resolv.h: Likewise.
7584         * inet/herrno-loc.c: Likewise.
7585         * inet/herrno.c: Likewise.
7586         * malloc/arena.c: Likewise.
7587         * malloc/hooks.c: Likewise.
7588         * malloc/malloc.c: Likewise.
7589         * resolv/res-state.c: Likewise.
7590         * resolv/res_libc.c: Likewise.
7591         * sysdeps/i386/dl-machine.h: Likewise.
7592         * sysdeps/ia64/dl-machine.h: Likewise.
7593         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
7594         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
7595         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7596         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7597         * sysdeps/sh/dl-machine.h: Likewise.
7598         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7599         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7600         * sysdeps/unix/i386/sysdep.S: Likewise.
7601         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7602         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
7603         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
7604         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7605         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
7606         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7607         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
7608         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7609         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7610         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7611         * sysdeps/unix/x86_64/sysdep.S: Likewise.
7612         * sysdeps/x86_64/dl-machine.h: Likewise.
7613         * tls.make.c: Likewise.
7614
7615         * configure.in: Remove --with-__thread option.  Make tests for
7616         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
7617         tls_model attribute fail if no support is available.  Remove
7618         USE_IN_LIBIO.
7619         * Makeconfig: Adjust for dropped configure option.  All features are
7620         now mandatory.
7621         * Makerules: Likewise.
7622         * Versions.def: Likewise.
7623         * argp/argp-fmtstream.c: Likewise.
7624         * argp/argp-fmtstream.h: Likewise.
7625         * argp/argp-help.c: Likewise.
7626         * assert/assert.c: Likewise.
7627         * config.h.in: Likewise.
7628         * config.make.in: Likewise.
7629         * configure: Likewise.
7630         * configure.in: Likewise.
7631         * csu/Versions: Likewise.
7632         * csu/init.c: Likewise.
7633         * elf/tst-audit2.c: Likewise.
7634         * elf/tst-tls10.c: Likewise.
7635         * elf/tst-tls10.h: Likewise.
7636         * elf/tst-tls11.c: Likewise.
7637         * elf/tst-tls12.c: Likewise.
7638         * elf/tst-tls14.c: Likewise.
7639         * elf/tst-tlsmod11.c: Likewise.
7640         * elf/tst-tlsmod12.c: Likewise.
7641         * elf/tst-tlsmod13.c: Likewise.
7642         * elf/tst-tlsmod13a.c: Likewise.
7643         * elf/tst-tlsmod14a.c: Likewise.
7644         * elf/tst-tlsmod15b.c: Likewise.
7645         * elf/tst-tlsmod16a.c: Likewise.
7646         * elf/tst-tlsmod16b.c: Likewise.
7647         * elf/tst-tlsmod7.c: Likewise.
7648         * elf/tst-tlsmod8.c: Likewise.
7649         * elf/tst-tlsmod9.c: Likewise.
7650         * gmon/gmon.c: Likewise.
7651         * grp/fgetgrent_r.c: Likewise.
7652         * grp/putgrent.c: Likewise.
7653         * hurd/fopenport.c: Likewise.
7654         * include/libc-symbols.h: Likewise.
7655         * include/tls.h: Likewise.
7656         * intl/gettextP.h: Likewise.
7657         * intl/loadinfo.h: Likewise.
7658         * locale/global-locale.c: Likewise.
7659         * locale/localeinfo.h: Likewise.
7660         * mach/devstream.c: Likewise.
7661         * malloc/arena.c: Likewise.
7662         * malloc/set-freeres.c: Likewise.
7663         * misc/err.c: Likewise.
7664         * misc/getttyent.c: Likewise.
7665         * misc/mntent_r.c: Likewise.
7666         * posix/getopt.c: Likewise.
7667         * posix/wordexp.c: Likewise.
7668         * pwd/fgetpwent_r.c: Likewise.
7669         * resolv/Versions: Likewise.
7670         * resolv/res_hconf.c: Likewise.
7671         * shadow/fgetspent_r.c: Likewise.
7672         * shadow/putspent.c: Likewise.
7673         * stdio-common/printf_fphex.c: Likewise.
7674         * stdio-common/tmpfile.c: Likewise.
7675         * stdlib/abort.c: Likewise.
7676         * stdlib/fmtmsg.c: Likewise.
7677         * sunrpc/auth_unix.c: Likewise.
7678         * sunrpc/clnt_perr.c: Likewise.
7679         * sunrpc/clnt_tcp.c: Likewise.
7680         * sunrpc/clnt_udp.c: Likewise.
7681         * sunrpc/clnt_unix.c: Likewise.
7682         * sunrpc/openchild.c: Likewise.
7683         * sunrpc/svc_simple.c: Likewise.
7684         * sunrpc/svc_tcp.c: Likewise.
7685         * sunrpc/svc_udp.c: Likewise.
7686         * sunrpc/svc_unix.c: Likewise.
7687         * sunrpc/xdr.c: Likewise.
7688         * sunrpc/xdr_array.c: Likewise.
7689         * sunrpc/xdr_rec.c: Likewise.
7690         * sunrpc/xdr_ref.c: Likewise.
7691         * sunrpc/xdr_stdio.c: Likewise.
7692
7693 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7694
7695         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7696
7697 2011-07-03  Andreas Jaeger  <aj@suse.de>
7698
7699         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
7700         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
7701         regenerate with gen-libm-tests.pl.
7702
7703 2010-05-12  Petr Baudis  <pasky@suse.cz>
7704
7705         [BZ #11589]
7706         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
7707         around j0() zero points by switching to j1().
7708         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7709         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7710         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7711         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7712
7713 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7714
7715         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
7716         instead of 0.
7717         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
7718         instead of 0.                              .
7719         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7720         Patch in part by Pavel Roskin <proski@gnu.org>.
7721
7722         [BZ #13138]
7723         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
7724         realloc.
7725         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
7726         Free memory block if necessary.
7727
7728         [BZ #12847]
7729         * libio/genops.c (INTDEF): For string streams the _lock pointer can
7730         be NULL.  Don't lock in this case.
7731
7732 2011-09-09  Roland McGrath  <roland@hack.frob.com>
7733
7734         * elf/elf.h (ELFOSABI_GNU): New macro.
7735         (ELFOSABI_LINUX): Define to that.
7736
7737 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
7738
7739         * string/strncat.c (strncat): Undef the symbol in case it has been
7740         defined in bits/string.h.
7741
7742 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7743
7744         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
7745
7746         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
7747         link map.
7748
7749 2011-08-17  Andreas Jaeger  <aj@suse.de>
7750
7751         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
7752
7753 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
7754             Ian Lance Taylor  <iant@google.com>
7755
7756         * math/libm-test.inc (lround_test): New testcase.
7757         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
7758
7759 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
7760
7761         * Makefile: Remove support for automatic cvs check-ins.
7762         * Makerules: Likewise.
7763         * config.make.in: Likewise.
7764         * configure.in: Likewise.
7765         * intl/Makefile: Likewise.
7766         * locale/Makefile: Likewise.
7767         * po/Makefile: Likewise.
7768         * posix/Makefile: Likewise.
7769         * sysdeps/gnu/Makefile: Likewise.
7770         * sysdeps/mach/hurd/Makefile: Likewise.
7771         * sysdeps/sparc/sparc32/Makefile: Likewise.
7772
7773         [BZ #13118]
7774         * posix/Makefile (bug-regex32-ENV): Define.
7775         Patch by John Stanley <jpsinthemix@verizon.net>.
7776
7777         * misc/Makefile (headers): Add bits/select2.h.
7778         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
7779         * misc/bits/select2.h: New file.
7780         * include/bits/select2.h: New file.
7781         * debug/Makefile (routines): Add fdelt_chk.
7782         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
7783         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
7784         FD_ISSET.
7785         * debug/fdelt_chk.c: New file.
7786
7787         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
7788         * wcsmbs/test-wmemcmp.c: Likewise.
7789         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
7790         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
7791
7792 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7793
7794         * string/Makefile (strop-tests): Add memcmp.
7795         * string/test-wmemcmp.c: New file.
7796         * string/test-memcmp.c: Add wmemcmp support.
7797
7798 2011-09-08  Roland McGrath  <roland@hack.frob.com>
7799
7800         [BZ #13153]
7801         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
7802         2011-07-19 change.
7803
7804         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
7805         garbage value in a __mach_port_mod_refs call in the cases of the
7806         task-self and thread-self ports.
7807
7808 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7809
7810         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
7811
7812 2011-09-08  Andreas Schwab  <schwab@redhat.com>
7813
7814         * elf/dl-load.c (lose): Check for non-null L.
7815
7816 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
7817
7818         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
7819
7820         * elf/dl-libc.c (dlerror_run): Pass back error code from
7821         dl_catch_error.
7822
7823         [BZ #13123]
7824         * elf/dl-load.c (lose): Free l_origin if it is valid.
7825
7826         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
7827         names.
7828         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
7829         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
7830         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
7831         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
7832         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
7833         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
7834
7835 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7836
7837         * sysdeps/powerpc/fpu/e_hypot.c: New file.
7838         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
7839         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
7840         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
7841         * sysdeps/powerpc/fpu/k_cosf.c: New file.
7842         * sysdeps/powerpc/fpu/k_sinf.c: New file.
7843         * sysdeps/powerpc/fpu/s_cosf.c: New file.
7844         * sysdeps/powerpc/fpu/s_sinf.c: New file.
7845         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
7846         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
7847
7848 2011-08-15  Alan Modra  <amodra@gmail.com>
7849
7850         [BZ #13092]
7851         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
7852         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
7853         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
7854         ppc_mcount to static-only-routines.
7855         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
7856         __mcount_internal.
7857         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
7858         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
7859
7860 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
7861
7862         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
7863         for finite and infinity parameters.
7864
7865 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
7866
7867         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
7868         and add nop instructions for throughput optimization.
7869         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
7870
7871 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
7872
7873         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
7874         aligned copy for power7 with vector-scalar instructions.
7875         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
7876
7877 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
7878
7879         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
7880         AVX check.
7881
7882 2011-09-07  Andreas Schwab  <schwab@redhat.com>
7883
7884         [BZ #13144]
7885         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
7886         last change.
7887
7888 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
7889
7890         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7891         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
7892         syscall wrapper around clock_gettime in __vdso_clock_gettime.
7893         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
7894         clock_gettime.
7895
7896 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
7897
7898         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
7899         Forgot to demangle the pointer.
7900
7901         * sysdeps/i386/sysdep.h: Define atom_text_section.
7902         * sysdeps/x86_64/sysdep.h: Likewise.
7903         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
7904         section with atom_text_section.
7905         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
7906         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
7907         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
7908         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
7909         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
7910
7911         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
7912         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
7913         already be defined.  Change to take two parameters and don't assign
7914         result to variable.  Adjust all users.
7915         Define INTERNAL_GETTIME if not already defined.
7916         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
7917         call.
7918         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
7919         HAVE_CLOCK_GETTIME_VSYSCALL.
7920         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
7921
7922         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
7923         gettimeofday vsyscall, just use time.
7924
7925 2011-09-06  Andreas Schwab  <schwab@redhat.com>
7926
7927         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
7928         <errno.h>.
7929
7930 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
7931
7932         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
7933         syscall on x86-64.
7934         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
7935         syscall.
7936         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
7937         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
7938         syscall if possible.
7939
7940 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7941
7942         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
7943         e_ident.  Don't pass to find_mapsXX.
7944         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
7945
7946 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7947
7948         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7949         strchr-sse2-no-bsf strrchr-sse2-no-bsf
7950         * sysdeps/x86_64/multiarch/strchr.S: Update.
7951         Check bit_slow_BSF bit.
7952         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
7953         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
7954         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
7955
7956 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7957
7958         [BZ #13134]
7959         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
7960         before glibc 2.15.
7961         (tryshell): Define.
7962         (__spawni): Change last parameter to be flag.  Test
7963         SPAWN_XFLAGS_USE_PATH flag to use path or not.
7964         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
7965         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
7966         * posix/spawni.c: Likewise.
7967         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
7968         * posix/spawnp.c: Likewise.  Change normal version to use
7969         SPAWN_XFLAGS_USE_PATH.
7970         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
7971         SPAWN_XFLAGS_TRY_SHELL.
7972
7973         [BZ #13150]
7974         * posix/glob.h: Remove gcc 1.x support.
7975
7976         [BZ #13068]
7977         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
7978
7979 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7980
7981         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7982         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
7983         strrchr-sse2-bsf
7984         * sysdeps/i386/i686/multiarch/strchr.S: New file.
7985         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
7986         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
7987         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
7988         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
7989         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
7990
7991 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7992
7993         * sysdeps/x86_64/wcscmp.S: New file.
7994
7995         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
7996         wcscmp-c wcscmp-sse2
7997         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
7998         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
7999         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
8000         * wcsmbs/wcscmp.c: Allow renaming.
8001
8002 2011-09-05  David S. Miller  <davem@davemloft.net>
8003
8004         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
8005         stack slot, rather than the struct return pointer slot.
8006         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
8007         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
8008         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
8009         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
8010
8011 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
8012
8013         * po/ja.po: Update from translation team.
8014
8015         [BZ #13144]
8016         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
8017         kernel in 64-bit binaries.
8018
8019 2011-09-01  David S. Miller  <davem@davemloft.net>
8020
8021         * elf/elf.h (HWCAP_SPARC_*): Move to..
8022         * sysdeps/sparc/sysdep.h: this new file and add new values.
8023         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
8024         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
8025         _DL_HWCAP_COUNT to 24.
8026         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
8027         entries.
8028         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
8029         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
8030         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
8031         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
8032         instead of magic constants.
8033         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8034
8035 2011-08-31  David S. Miller  <davem@davemloft.net>
8036
8037         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
8038         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
8039         Reimplement to do errno handling inline.
8040         (SYSCALL_ERROR_HANDLER): New macro.
8041         (__SYSCALL_STRING): Do not do errno handling in asm.
8042         (__CLONE_SYSCALL_STRING): Delete.
8043         (__INTERNAL_SYSCALL_STRING): Delete.
8044         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
8045         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
8046         (PSEUDO): Reimplement to do errno handling inline.
8047         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
8048         (SYSCALL_ERROR_HANDLER): New macro.
8049         (__SYSCALL_STRING): Do not do errno handling in asm.
8050         (__CLONE_SYSCALL_STRING): Delete.
8051         (__INTERNAL_SYSCALL_STRING): Delete.
8052         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
8053         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
8054         i386.
8055         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
8056         (inline_syscall*): Add 'err' argument.
8057         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
8058         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
8059         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
8060         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
8061
8062         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
8063         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8064
8065 2011-08-30  Andreas Schwab  <schwab@redhat.com>
8066
8067         * elf/rtld.c (dl_main): Relocate objects in dependency order.
8068
8069 2011-08-29  Jiri Olsa <jolsa@redhat.com>
8070
8071         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
8072         directive.
8073
8074 2011-08-24  David S. Miller  <davem@davemloft.net>
8075
8076         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
8077
8078 2011-08-24  Andreas Schwab  <schwab@redhat.com>
8079
8080         * elf/Makefile: Add rules to build and run unload8 test.
8081         * elf/unload8.c: New file.
8082         * elf/unload8mod1.c: New file.
8083         * elf/unload8mod1x.c: New file.
8084         * elf/unload8mod2.c: New file.
8085         * elf/unload8mod3.c: New file.
8086
8087         * elf/dl-close.c (_dl_close_worker): Reset private search list if
8088         it wasn't used.
8089
8090 2011-08-23  David S. Miller  <davem@davemloft.net>
8091
8092         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
8093         subtract stack bias.
8094         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
8095         %sp not %fp in calculations.
8096         (_JMPBUF_UNWINDS_ADJ): Likewise.
8097
8098         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
8099         (aio_suspend): Call it to force an exception region around the
8100         AIO_MISC_WAIT() invocation.
8101
8102 2011-08-23  Andreas Schwab  <schwab@redhat.com>
8103
8104         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
8105         backslash.
8106
8107 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
8108
8109         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
8110         protection macro.
8111         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
8112         and <dl-machine.h>.
8113         (Elf64_FuncDesc): Remove.
8114
8115 2011-08-22  David S. Miller  <davem@davemloft.net>
8116
8117         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
8118         sigaltstack check, add missing cfi directives.
8119         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
8120         missing cfi directives, and sigaltstack handling.
8121
8122 2011-08-16  Andreas Schwab  <schwab@redhat.com>
8123
8124         [BZ #11724]
8125         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
8126         object is seen twice.
8127         * elf/dl-fini.c (_dl_sort_fini): Likewise.
8128
8129         * elf/Makefile (distribute): Add tst-initorder2.c.
8130         (tests): Add tst-initorder2.
8131         (modules-names): Add tst-initorder2a tst-initorder2b
8132         tst-initorder2c tst-initorder2d.  Add rules to build them.
8133         ($(objpfx)tst-initorder2.out): New rule.
8134         * elf/tst-initorder2.c: New file.
8135         * elf/tst-initorder2.exp: New file.
8136
8137 2011-08-22  Andreas Schwab  <schwab@redhat.com>
8138
8139         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
8140
8141         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
8142         dependencies back to end of function.
8143
8144         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
8145         $(elfobjdir)/ld.so.
8146
8147 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
8148
8149         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
8150         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
8151         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
8152         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
8153         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
8154         of __vdso_gettimeofday.
8155         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
8156         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
8157         attribute_hidden.
8158         (_libc_vdso_platform_setup): Remove initialization of
8159         __vdso_gettimeofday and __vdso_time.
8160
8161 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
8162
8163         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
8164         and fgetc_unlocked.
8165         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
8166         getc_unlocked.
8167
8168         * elf/dl-open.c (add_to_global): Report additions to the global scope
8169         for LD_DEBUG=scopes.
8170         (dl_open_worker): Also print scope of newly loaded dependencies.
8171         (_dl_show_scope): Indicate if there is no scope.
8172
8173         [BZ #13114]
8174         * stdio-common/Makefile (tests): Add bug24.
8175         * stdio-common/bug24.c: New file.
8176
8177 2011-08-19  Andreas Jaeger  <aj@suse.de>
8178
8179         [BZ #13114]
8180         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
8181         non-existant file when using close-on-exec mode.
8182
8183 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
8184
8185         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
8186         the very first instruction.
8187
8188         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
8189         the CFI state in the end.
8190         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
8191         inclusion of dl-trampoline.h.
8192         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
8193
8194 2011-08-19  Andreas Schwab  <schwab@redhat.com>
8195
8196         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
8197         expectations for long double.
8198
8199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
8200         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
8201
8202 2011-08-14  David S. Miller  <davem@davemloft.net>
8203
8204         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
8205         artificual limit depends upon the system page size.
8206
8207 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
8208
8209         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
8210         * resolv/Makefile: Define CFLAGS-libresolv.
8211
8212 2011-08-17  Andreas Schwab  <schwab@redhat.com>
8213
8214         * nss/makedb.c (compute_tables): Make variables used in nested
8215         function static.
8216
8217 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
8218
8219         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
8220         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
8221         if buffer was too small.
8222
8223         * elf/pldd.c (main): Attach to all threads in the process.
8224         Rewrite /proc handling to use *at functions.
8225
8226 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
8227
8228         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
8229         specifies first scope to show.
8230         (dl_open_worker): Update callers.  Move printing scope of new
8231         object to before the relocation.
8232         * elf/rtld.c (dl_main): Update _dl_show_scope call.
8233         * sysdeps/generic/ldsodefs.h: Update declaration.
8234
8235         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
8236         string for the scope number.
8237
8238 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
8239
8240         * nscd/servicescache.c (cache_addserv): Make sure written is always
8241         initialized.
8242
8243 2011-08-14  Roland McGrath  <roland@hack.frob.com>
8244
8245         * sysdeps/i386/i486/bits/atomic.h
8246         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
8247         statement expression, so as to suppress "set but not used" warning.
8248         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
8249
8250         * string/strncat.c (STRNCAT): Use prototype definition.
8251
8252         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
8253         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
8254         -Iprograms here.
8255         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
8256         (localedef-modules): Add localedef.
8257         (locale-modules): Add locale.
8258
8259         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
8260         * elf/rtld.c (dl_main): Invert order of assignment in last change,
8261         to avoid a warning.
8262
8263 2011-08-14  David S. Miller  <davem@davemloft.net>
8264
8265         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
8266         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
8267
8268 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
8269
8270         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
8271         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
8272         * elf/rtld.c (dl_main): Set l_name of vDSO.
8273         Call _dl_show_scope when DL_DEBUG_SCOPES.
8274         (process_dl_debug): Recognize scopes flag and also set it for all.
8275         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
8276         Declare _dl_show_scope.
8277
8278         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
8279         (do_dlopen): Pass caller_dlopen to dl_open.
8280         (__libc_dlopen_mode): Initialize caller_dlopen.
8281
8282         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
8283         of libc.  Make tolower call locale-independent.  Optimize a bit by
8284         using isdigit instead of isalnum.
8285         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
8286
8287 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
8288
8289         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
8290         was a dependency or dynamically loaded.
8291
8292 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
8293
8294         * intl/l10nflist.c: Allow architecture-specific pop function.
8295         * sysdeps/x86_64/l10nflist.c: New file.
8296
8297         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
8298         classification.
8299
8300 2011-08-10  Andreas Schwab  <schwab@redhat.com>
8301
8302         * include/dirent.h: Add libc_hidden_proto for scandirat and
8303         scandirat64.  Don't declare __scandirat64.
8304         * dirent/scandirat.c: Add libc_hidden_def.
8305         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
8306         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
8307
8308 2011-08-10  David S. Miller  <davem@davemloft.net>
8309
8310         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
8311         enum.
8312         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8313         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8314         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8315
8316 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
8317
8318         * Versions.def [libc]: Add GLIBC_2.15.
8319         * dirent/Makefile (routines): Add scandirat and scandirat64.
8320         * dirent/Versions [libc]: Export scandirat and scandirat64 for
8321         GLIBC_2.15.
8322         * dirent/dirent.h: Declare scandirat and scandirat64.
8323         * dirent/scandirat.c: New file.
8324         * dirent/scandirat64.c: New file.
8325         * sysdeps/wordsize-64/scandirat.c: New file.
8326         * sysdeps/wordsize-64/scandirat64.c: New file.
8327         * dirent/opendir.c: Define opendirat.
8328         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
8329         using scandirat.
8330         * dirent/scandir64.c: Adjust for scandir.c change.
8331         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
8332         __scandirat64, and __scandir_cancel_handler.
8333         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
8334         additional parameter and use openat instead of open (outside of ld.so).
8335         Add new __opendir as wrapper around __opendirat.
8336         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
8337         here without requiring old scandirat implementation.
8338
8339 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
8340
8341         * dirent/scandir.c (cancel_handler): Renamed to
8342         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
8343         defined.  Adjust users.
8344         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
8345         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
8346
8347 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
8348
8349         * string/test-string.h (IMPL): Use __STRING to expand name and then
8350         stringify it.
8351
8352         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
8353         of cleanups.
8354
8355 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8356
8357         * string/Makefile: Update.
8358         (strop-tests): Append strncat.
8359         * string/test-wcscmp.c: New file.
8360         New comprehensive test for wcscmp.
8361         * string/test-strcmp.c: Update.
8362         (WIDE): New define.
8363
8364 2011-07-22  Andreas Schwab  <schwab@redhat.com>
8365
8366         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
8367         line.
8368
8369 2011-07-26  Andreas Schwab  <schwab@redhat.com>
8370
8371         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
8372         encoding to ACE if AI_IDN.
8373
8374 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
8375
8376         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
8377         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
8378
8379 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8380
8381         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
8382         Fix overflow bug in strncat.
8383         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
8384
8385         * string/test-strncat.c: Update.
8386         Add new tests for checking overflow bugs.
8387
8388 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8389
8390         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8391         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
8392         * sysdeps/i386/i686/multiarch/strcat.S: New file.
8393         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
8394         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
8395         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
8396         * sysdeps/i386/i686/multiarch/strncat.S: New file.
8397         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
8398         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
8399
8400         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
8401         (USE_AS_STRCAT): Define.
8402         Add strcat and strncat support.
8403         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
8404
8405 2011-07-25  Andreas Schwab  <schwab@redhat.com>
8406
8407         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
8408         __n bigger than INT_MAX+1.
8409         (__strncmp_g): Likewise.
8410
8411 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
8412
8413         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
8414         * libio/stido.h: Likewise.
8415
8416         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
8417         (AF_NFC): Define.
8418         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
8419         (AF_NFC): Define.
8420
8421         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
8422         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8423         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8424         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8425         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8426
8427         [BZ #13021]
8428         * scripts/test-installation.pl: Don't expect libnss_test1 to be
8429         installed.
8430
8431         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
8432         typo.
8433         (_dl_x86_64_save_sse): Likewise.
8434
8435 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
8436
8437         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
8438         OSXSAVE.
8439         (_dl_x86_64_save_sse): Likewise.
8440
8441         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
8442
8443         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
8444
8445 2011-07-21  Andreas Schwab  <schwab@redhat.com>
8446
8447         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
8448         change.
8449         (_dl_x86_64_save_sse): Use correct AVX check.
8450
8451 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8452
8453         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
8454         bug in strncpy/strncat.
8455         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
8456
8457 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
8458
8459         * string/tester.c (test_strcat): Add tests for different alignments
8460         of source and destination.
8461         (test_strncat): Likewise.
8462
8463 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8464
8465         [BZ #12852]
8466         * posix/glob.c (glob): Check passed in values before using them in
8467         expressions to avoid some overflows.
8468         (glob_in_dir): Likewise.
8469
8470         [BZ #13007]
8471         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
8472         check for AVX enablement so that we don't crash with old kernels and
8473         new hardware.
8474         * elf/tst-audit4.c: Add same checks here.
8475         * elf/tst-audit6.c: Likewise.
8476
8477         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
8478
8479 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
8480
8481         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
8482
8483 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8484
8485         * po/cs.po: Update from translation team.
8486         * po/bg.po: Likewise.
8487
8488 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
8489
8490         * misc/sys/cdefs.h: Add support for const attribute.
8491         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
8492         to gnu_dev_{major,minor,makedev} functions.
8493
8494 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
8495
8496         * intl/dcigettext.c (get_output_charset): Add missing bracket.
8497
8498 2011-07-20  Andreas Schwab  <schwab@redhat.com>
8499
8500         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
8501         strlen results.
8502
8503 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8504
8505         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
8506         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
8507         register in order to avoid conflicts with the soft frame pointer
8508         being held in r11 when necessary.
8509         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
8510         (INTERNAL_VSYSCALL_NCS): Likewise.
8511
8512 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
8513
8514         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
8515         * elf/dl-fini.c (_dl_fini): Adjust caller.
8516         * elf/dl-close.c (_dl_close_worker): Likewise.
8517         * sysdeps/generic/ldsodefs.h: Adjust declaration.
8518
8519 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8520
8521         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
8522         "aux_cache->nlibs < 0".
8523
8524         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
8525         in the reload-count case.
8526
8527 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8528
8529         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8530         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
8531         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
8532         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
8533         * sysdeps/x86_64/multiarch/strcat.S: New file.
8534         * sysdeps/x86_64/multiarch/strncat.S: New file.
8535         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
8536         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
8537         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
8538         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
8539         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
8540         (USE_AS_STRCAT): Define.
8541         Add strcat and strncat support.
8542         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
8543         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
8544         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
8545         * string/strncat.c: Update.
8546         (USE_AS_STRNCAT): Define.
8547         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8548         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
8549         and i7.
8550         * sysdeps/x86_64/multiarch/init-arch.h
8551         (bit_Prefer_PMINUB_for_stringop): New.
8552         (index_Prefer_PMINUB_for_stringop): Likewise.
8553         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
8554         bit_Prefer_PMINUB_for_stringop.
8555
8556 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8557
8558         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
8559         buffer64.
8560         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
8561         of casting of buffer.
8562         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
8563         buffer32 and buffer64.
8564         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
8565         writes instead of casting of buffer.
8566         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
8567         buffer32.
8568         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
8569         casting of buffer.
8570
8571 2011-07-19  Andreas Schwab  <schwab@redhat.com>
8572
8573         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
8574
8575 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8576
8577         * nscd/nscd.c (termination_handler): Don't do anything for a database
8578         if it has not yet been initialized.
8579
8580 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8581
8582         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8583
8584 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8585
8586         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8587
8588 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8589
8590         * po/nl.po: Update from translation team.
8591         * po/sv.po: Likewise.
8592
8593 2011-07-16  Roland McGrath  <roland@hack.frob.com>
8594
8595         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
8596         now disallowed by GCC.
8597
8598         * configure.in (use-default-link): Default to yes if a test -shared
8599         link meets our qualifications.
8600         * configure: Regenerated.
8601
8602         * config.make.in (output-format): New variable.
8603         * configure.in: Check for ld --print-output-format support.
8604         * configure: Regenerated.
8605         * Makerules ($(common-objpfx)format.lds)
8606         [$(output-format) != unknown]: Just use $(output-format),
8607         instead of the linker-script munging.
8608
8609 2011-07-14  Roland McGrath  <roland@hack.frob.com>
8610
8611         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
8612         of $(common-objpfx)shlib.lds.
8613         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
8614
8615         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
8616         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
8617
8618         * configure.in (-z relro check): Adjust test code to add a large
8619         writable data section after it.
8620         * configure: Regenerated.
8621
8622 2011-07-11  Roland McGrath  <roland@hack.frob.com>
8623
8624         * configure.in (-z relro check): Fix test code to make the variable
8625         truly const.
8626         * configure: Regenerated.
8627
8628 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
8629
8630         * nscd/nscd.h (struct traced_file): Define.
8631         (struct database_dyn): Remove inotify_descr, reset_res, and filename
8632         elements.  Add traced_files.
8633         (inotify_fd): Declare.
8634         (register_traced_file): Declare.
8635         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
8636         (inotify_fd): Export.
8637         (resolv_conf_descr): Remove.
8638         (nscd_init): Move inotify descriptor creation to main.
8639         Don't register files for notification here.
8640         (register_traced_file): New function.
8641         (invalidate_cache): Don't use reset_res to determine whether to call
8642         res_init, go through the list of registered files.
8643         (main_loop_poll): The inotify descriptors are now stored in the
8644         structures for the traced files.
8645         (main_loop_epoll): Likewise
8646         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
8647         to __nss_disable_nscd.
8648         * nscd/cache.c (prune_cache): There is no single inotify descriptor
8649         for a database anymore.  Check the records for all the registered
8650         files instead.
8651         * nss/Makefile (libnss_files-routines): Add files-init.
8652         (libnss_db-routines): Add db-init.
8653         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
8654         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
8655         * nss/nss_db/db-init.c: New file.
8656         * nss/nss_files/files-init.c: New file.
8657         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
8658         __nss_lookup_function.
8659         (__nss_lookup_function): Call nss_load_library.
8660         (nss_load_all_libraries): New function.
8661         (__nss_disable_nscd): Take parameter with callback function for files
8662         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
8663         used for the cached services.
8664         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
8665         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
8666         options for features to all the files in nscd.
8667
8668         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
8669
8670 2011-07-10  Roland McGrath  <roland@hack.frob.com>
8671
8672         * csu/elf-init.c (__libc_csu_init): Comment typo.
8673
8674 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
8675
8676         * po/pl.po: Update from translation team.
8677         * po/ja.po: Likewise.
8678         * po/ru.po: Likewise.
8679         * po/ko.po: Likewise.
8680         * po/fr.po: Likewise.
8681
8682 2011-07-09  Roland McGrath  <roland@hack.frob.com>
8683
8684         * configure.in (.ctors/.dtors header and trailer check):
8685         Use an empirical test on a built program.
8686         * configure: Regenerated.
8687
8688         * configure.in (-z relro check): Use an empirical test on a built DSO.
8689         Detect, but do not require, on ia64.
8690         * configure: Regenerated.
8691
8692         * configure.in (READELF): Find it with AC_CHECK_TOOL.
8693         Update tests that use readelf to use $READELF instead.
8694         * configure: Regenerated.
8695
8696 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
8697
8698         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
8699         if the result is not used.
8700
8701 2011-07-05  Andreas Jaeger  <aj@suse.de>
8702
8703         [BZ#9696]
8704         * stdlib/tst-strtod.c: Add testcase.
8705
8706 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8707
8708         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
8709         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
8710         The latter has a higher limit.  Take additional parameter to pass to
8711         the new function.
8712         (__pathconf): Pass file to __statfs_link_max.
8713         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
8714         __statfs_link_max.
8715         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
8716         __statfs_link_max.
8717
8718         [BZ #12868]
8719         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
8720         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8721         Handle Lustre.
8722         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
8723         (__statfs_filesize_max): Likewise.
8724         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
8725
8726 2011-07-05  Andreas Jaeger  <aj@suse.de>
8727
8728         * resolv/res_comp.c (dn_skipname): Remove unused variable.
8729
8730 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
8731
8732         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
8733         `status' variable.
8734         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
8735         Likewise.
8736
8737 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
8738
8739         * Makefile (strop-tests): Add strncat.
8740         * string/test-strncat.c: New file.
8741
8742 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
8743
8744         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
8745
8746 2011-06-21  Andreas Jaeger  <aj@suse.de>
8747
8748         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
8749         Copy rule from iconvdata/Makefile.
8750
8751 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
8752
8753         [BZ #12922]
8754         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
8755         but no long options are defined, just return 'W'.
8756
8757 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
8758
8759         [BZ #9696]
8760         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
8761
8762 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
8763
8764         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
8765         netgroups to read.
8766         (innetgr): Likewise.
8767
8768 2011-07-05  Roland McGrath  <roland@hack.frob.com>
8769
8770         * config.make.in (install_root): Default to $(DESTDIR).
8771
8772 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
8773
8774         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
8775
8776 2011-07-02  Roland McGrath  <roland@hack.frob.com>
8777
8778         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
8779
8780         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
8781         containing directory rather than embedding absolute directory names.
8782
8783         * scripts/check-local-headers.sh: Rewritten using awk.
8784         Match by word, not by line.  Print error messages for matches.
8785         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
8786
8787         * Makerules [shlib-lds-flags empty]:
8788         ($(common-objpfx)libc_pic.opts): New target.
8789         ($(common-objpfx)libc_pic.os.clean): New target.
8790         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
8791
8792         * config.make.in (OBJCOPY): New variable.
8793         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
8794         * configure: Regenerated.
8795
8796         * config.make.in (use-default-link): New variable.
8797         * configure.in (use_default_link): Grok --with-default-link to set it.
8798         * configure: Regenerated.
8799         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
8800         (shlib-lds, shlib-lds-flags): Define to empty.
8801
8802         * Makerules (shlib-lds): New variable.
8803         (shlib-lds-flags): New variable.
8804         (build-shlib, build-moduile, build-module-asneeded): Use it.
8805         ($(common-objpfx)libc.so): Use $(shlib-lds).
8806         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
8807         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
8808
8809         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
8810         DT_FLAGS/DT_FLAGS_1 with zero flags.
8811
8812         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
8813         linker script munging.
8814
8815 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
8816
8817         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
8818         as 128-bit value.
8819         * crypt/sha512.c (sha512_process_block): Perform total addition using
8820         128-bit if possible.
8821         (__sha512_finish_ctx): Likewise.
8822         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
8823         as 64-bit value.
8824         * crypt/sha256.c (SWAP64): Define.
8825         (sha256_process_block): Perform total addition using 64-bit if
8826         possible.
8827         (__sha256_finish_ctx): Likewise.
8828
8829 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
8830
8831         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
8832         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8833         * nscd/hstcache.c (cache_addhst): Likewise.
8834         * nscd/grpcache.c (cache_addgr): Likewise.
8835         * nscd/aicache.c (addhstaiX): Likewise
8836         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
8837
8838 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
8839
8840         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
8841         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8842         * nscd/hstcache.c (cache_addhst): Likewise.
8843         * nscd/grpcache.c (cache_addgr): Likewise.
8844         * nscd/aicache.c (addhstaiX): Likewise
8845
8846 2011-07-01  Andreas Schwab  <schwab@redhat.com>
8847
8848         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
8849         domain only when needed.
8850
8851 2011-06-30  Andreas Schwab  <schwab@redhat.com>
8852
8853         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
8854         is always restored.
8855
8856 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
8857
8858         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
8859         are re-adding the entry.
8860         * nscd/servicescache.c (cache_addserv): Likewise.
8861
8862 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
8863
8864         * sysdeps/generic/dl-irel.h: fix protection against multiple
8865         inclusions.
8866         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
8867
8868 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
8869
8870         [BZ #12935]
8871         * malloc/memusage.sh: Fix quoting in message.
8872         * debug/xtrace.sh: Likewise.
8873
8874         * configure.in: Remove support for --experimental-malloc option, make
8875         it the default.
8876         * config.make.in: Likewise.
8877         * malloc/Makefile: Likewise.
8878
8879 2011-06-27  Andreas Schwab  <schwab@redhat.com>
8880
8881         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
8882         two-byte characters.
8883
8884 2011-06-27  Roland McGrath  <roland@hack.frob.com>
8885
8886         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
8887         AC_CACHE_CHECK invocation.
8888         * configure: Regenerated.
8889
8890         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
8891
8892 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
8893
8894         [BZ #12350]
8895         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
8896         bit from old_res_options.
8897
8898         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
8899
8900         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
8901         value type for setfct.
8902
8903 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8904
8905         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
8906         __gettimeofday instead of gettimeofday.
8907
8908 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
8909
8910         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
8911
8912 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8913
8914         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
8915
8916         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
8917         info.
8918
8919 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8920
8921         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8922         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
8923         strcpy-sse2-unaligned strncpy-sse2-unaligned
8924         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
8925         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
8926         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
8927         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
8928         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
8929         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
8930         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
8931         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
8932         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
8933         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
8934         (STRCPY): Support SSE2 and SSSE3 versions.
8935
8936 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
8937
8938         [BZ #12874]
8939         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
8940         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
8941         kernels which artificially limit size of requests.
8942
8943 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8944
8945         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8946         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
8947         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
8948         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
8949         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
8950         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
8951         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
8952         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
8953         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
8954         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
8955         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
8956         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
8957         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
8958         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
8959         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
8960         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8961         Enable unaligned load optimization for Intel Core i3, i5 and i7
8962         processors.
8963         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
8964         Define.
8965         (index_Fast_Unaligned_Load): Define.
8966         (HAS_FAST_UNALIGNED_LOAD): Define.
8967
8968 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
8969
8970         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
8971
8972 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
8973
8974         [BZ #12907]
8975         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
8976         until it is clear that the information is realy needed.
8977         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
8978
8979 2011-06-22  Andreas Schwab  <schwab@redhat.com>
8980
8981         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
8982
8983 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
8984
8985         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
8986         /sys/devices/system/cpu/online if it is usable.
8987
8988         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
8989         reading the information from the /proc filesystem to once a second.
8990
8991 2011-06-21  Andreas Jaeger  <aj@suse.de>
8992
8993         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
8994         NULL after inclusion of kernel headers.
8995
8996 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
8997
8998         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
8999         calls to internal_setent.
9000
9001         [BZ #12885]
9002         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
9003         addresses using gethostbyname4_r ignore IPv4 addresses.
9004
9005         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
9006         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
9007
9008         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
9009
9010 2011-06-20  David S. Miller  <davem@davemloft.net>
9011
9012         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
9013         inclusions.
9014         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
9015
9016         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
9017         (elf_irel): Use it.
9018         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
9019         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
9020         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
9021         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
9022         * sysdeps/x86_64/dl-irel.h: Likewise.
9023
9024         * elf/dl-runtime.c: Use elf_ifunc_invoke.
9025         * elf/dl-sym.c: Likewise.
9026
9027 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
9028
9029         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
9030         need to dereference resplen2.
9031
9032 2011-06-14  Andreas Schwab  <schwab@redhat.com>
9033
9034         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
9035
9036 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
9037
9038         * Makeconfig: Define vardbdir and inst_vardbdir.
9039         * nss/Makefile: Add rules to install db-Makefile.
9040
9041         * nss/nss_db/db-XXX.c: Cleanup.
9042
9043         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
9044         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
9045         GLIBC_PRIVATE.
9046         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
9047         * nss/makedb.c: Implement -g option to specify that value strings
9048         are generated and should not be added to table iterated over for
9049         get*ent calls.
9050         * nss/nss_db/db-initgroups.c: New file.
9051
9052         * nss/getent.c: Add support for initgroups lookups through getgrouplist
9053         interface.
9054
9055         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
9056         (internal_getgrouplist): Adjust to name change.
9057         Update use_initgroups_entry if this is not the first call.
9058         * nss/databases.def: Add initgroups entry.
9059
9060         * nss/makedb.c (compute_tables): Check result of multiple hash table
9061         sizes to minimize maximum chain length.
9062
9063 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
9064
9065         * Versions.def: Add entry for libnss_db.
9066         * shlib-versions: Likewise.
9067         * nss/Makefile: Add rules to build libnss_db.
9068         * nss/Versions: Add libnss_db information.  Organize libnss_files
9069         entries better.
9070         * nss/db-Makefile: Add gshadow support.  Change rules for the new
9071         makedb progra.  Some minor improvements to generate smaller files.
9072         * nss/nss_db/nss_db.h: Move NSS database header data structures to
9073         here from...
9074         * nss/makedb.c: ...here.
9075         Improve database format to be smaller and require less memory at
9076         runtime.
9077         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
9078         db anymore.
9079         * nss/nss_db/db-netgrp.c: Likewise.
9080         * nss/nss_db/db-open.c: Likewise.
9081         * nss/nss_files/flies-XXX.x: Adjust comments.
9082         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
9083         * nss/nss_files/files-grp.c: Likewise.
9084         * nss/nss_files/files-hosts.c: Likewise.
9085         * nss/nss_files/files-network.c: Likewise.
9086         * nss/nss_files/files-proto.c: Likewise.
9087         * nss/nss_files/files-pwd.c: Likewise.
9088         * nss/nss_files/files-rpc.c: Likewise.
9089         * nss/nss_files/files-service.c: Likewise.
9090         * nss/nss_files/files-sgrp.c: Likewise.
9091         * nss/nss_files/files-spwd.c: Likewise.
9092         * nss/nss_db/db-alias.c: Removed.
9093         * nss/nss_db/dummy-db.h: Removed.
9094
9095 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
9096
9097         * nss/makedb.c: Rewritten to not use database library.
9098         * nss/Makefile: Update to build new makedb program.
9099
9100 2011-06-14  Andreas Jaeger  <aj@suse.de>
9101
9102         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
9103         memset declaration.
9104
9105 2011-06-10  Andreas Schwab  <schwab@redhat.com>
9106
9107         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
9108         tmpbuf.
9109
9110 2011-06-10  Roland McGrath  <roland@hack.frob.com>
9111
9112         * Makerules (shlib.lds): Fail if the linker script comes out empty.
9113         * elf/Makefile ($(objpfx)ld.so): Likewise.
9114
9115         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
9116         Don't list ld.so twice in dependencies.
9117
9118         * posix/bug-regex31.c: Include <stdlib.h>.
9119
9120         * nscd/hstcache.c (cache_addhst): Remove unused variable.
9121
9122         * nis/nss_compat/compat-spwd.c
9123         (getspent_next_nss_netgr): Remove unused variable.
9124         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
9125
9126         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
9127         nonmembers" output to use the right array.
9128
9129         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
9130
9131         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
9132
9133         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
9134         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
9135         * catgets/gencat.c (read_input_file): Likewise.
9136         * locale/programs/locarchive.c (enlarge_archive): Likewise.
9137
9138         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
9139         variable definition inside #if's controlling its use.
9140
9141         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
9142
9143         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
9144
9145         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
9146
9147         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
9148         unreachable code.
9149
9150         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
9151
9152         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
9153         * configure: Regenerated.
9154
9155         * Makerules: Revert last change.
9156         * elf/Makefile: Likewise.
9157
9158 2011-06-09  Roland McGrath  <roland@hack.frob.com>
9159
9160         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
9161         * elf/Makefile ($(objpfx)librtld.os): Likewise.
9162         (reloc-link): Likewise.
9163
9164 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
9165
9166         * elf/Makefile: Add rules to build pldd.
9167         * elf/pldd.c: New file.
9168         * elf/pldd-xx.c: New file.
9169
9170 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
9171
9172         * version.h: Update for 2.15 development version.
9173
9174 2011-06-07  David S. Miller  <davem@davemloft.net>
9175
9176         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
9177         ifuncs.
9178         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
9179         elf_machine_lazy_rel): Likewise.
9180         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
9181         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
9182         elf_machine_lazy_rel): Likewise.
9183         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
9184         dl_hwcap via passed in argument.
9185         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
9186         Likewise.
9187
9188 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9189
9190         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
9191
9192 2011-06-06  Roland McGrath  <roland@hack.frob.com>
9193
9194         [BZ #12849]
9195         * manual/fdl-1.1.texi: New file, verbatim from:
9196         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
9197         * manual/lgpl-2.1.texi: New file, verbatim from:
9198         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
9199         * manual/Makefile (licenses): New variable, list those new file names.
9200         (texis): Use it.
9201         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
9202
9203         * manual/fdl.texi: File removed.
9204         * manual/lesser.texi: File removed.
9205         * manual/libc.texinfo (Copying, Documentation License):
9206         Use new @include file names, put @appendix directive before @include.
9207
9208 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
9209
9210         [BZ #12841]
9211         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
9212         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
9213         (mq_open): Add __NTH.
9214
9215 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
9216
9217         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9218         Assume Intel Core i3/i5/i7 processor if AVX is available.
9219
9220 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
9221
9222         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9223         typo.
9224
9225 2011-05-31  Andreas Schwab  <schwab@redhat.com>
9226
9227         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
9228         memory.  Use alloca_account.  Fix memory leak when retrying.
9229
9230 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
9231
9232         * version.h (RELEASE): Bump for 2.14 release.
9233         * include/features.h (__GLIBC_MINOR__): Bump to 14.
9234
9235         * config.make.in (RANLIB): Remove entry.
9236
9237 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
9238
9239         * po/Makefile (po-sed-cmd): Add ksh to extensions.
9240         (libc.pot): Work around missing support for .ksh extension in xgettext.
9241
9242         [BZ #12684]
9243         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
9244         if both request failed.
9245         (send_dg): In case of server errors clear resplen or *resplen2.
9246
9247         [BZ #12454]
9248         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
9249         when there are multiple maps.
9250         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
9251         (_dl_fini): Remove test here.
9252
9253         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
9254
9255 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
9256
9257         [BZ #12350]
9258         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
9259         bit from old_res_options.
9260         (gaih_inet): Likewise.
9261
9262         [BZ #11099]
9263         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
9264         as signed.
9265
9266         * resolv/res_init.c (res_setoptions): Make the code more compact.
9267
9268         [BZ #11558]
9269         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
9270         set RES_USEVC.
9271
9272         [BZ #11634]
9273         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
9274
9275         * malloc/malloc.h: Mark malloc hook variables as deprecated.
9276
9277         [BZ #11781]
9278         * malloc/malloc.h: Declare malloc hook variables as volatile.
9279
9280         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
9281         in last patch.
9282
9283         [BZ #11799]
9284         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
9285         raise in the comment.
9286         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9287         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9288         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
9289
9290 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
9291
9292         [BZ #12811]
9293         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
9294         grow the buffers more if it already has to be sufficient.
9295         (build_wcs_upper_buffer): Likewise.
9296         * posix/regexec.c (check_matching): Likewise.
9297         (clean_state_log_if_needed): Likewise.
9298         (extend_buffers): Don't enlarge buffers beyond size of the input
9299         buffer.
9300         Patches mostly by Emil Wojak <emil@wojak.eu>.
9301         * posix/bug-regex32.c: New file.
9302         * posix/Makefile (tests): Add bug-regex32.
9303
9304         * locale/findlocale.c (_nl_find_locale): Return right away if
9305         _nl_explode_name failed.
9306         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
9307
9308         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
9309
9310         * debug/xtrace.sh: Unify messages.
9311         * malloc/memusage.sh: Likewise.
9312
9313         [BZ #12813]
9314         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
9315         time symbol from vDSO.  Substitute with vsyscall if not available.
9316         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
9317         __vdso_time.
9318
9319         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
9320         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
9321         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
9322         Add sendmmsg and internal_sendmmsg.
9323         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
9324         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
9325         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
9326
9327         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
9328         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
9329         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
9330
9331 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
9332
9333         [BZ #12813]
9334         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
9335         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
9336         available.
9337         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
9338         __vdso_getcpu.
9339
9340         [BZ #12814]
9341         * iconvdata/Makefile (tests): Add bug-iconv9.
9342         * iconvdata/bug-iconv9.c: New file.
9343
9344 2011-05-27  Andreas Schwab  <schwab@redhat.com>
9345
9346         [BZ #12814]
9347         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
9348
9349 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
9350
9351         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
9352         (struct user_regs_struct): Change intcs field back to cs.
9353
9354 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
9355
9356         * po/ja.po: Update from translation team.
9357
9358 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
9359
9360         [BZ #12795]
9361         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
9362         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
9363
9364 2011-05-20  Andreas Schwab  <schwab@redhat.com>
9365
9366         * stdlib/longlong.h: Update from GCC.
9367
9368 2011-05-23  Andreas Schwab  <schwab@redhat.com>
9369
9370         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
9371         parameter name.
9372         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
9373         Add parameter name.
9374         (__sysconf): Pass it down.
9375
9376 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
9377
9378         [BZ #12671]
9379         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
9380         some situations.
9381         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9382         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
9383         add in in __libc_use_alloca calls.  Adjust callers.
9384         (glob): Use malloc in some situations.
9385
9386         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
9387         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
9388         pltexit.
9389
9390 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
9391
9392         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
9393         and CLOCK_BOOTTIME_ALARM.
9394
9395         [BZ #12782]
9396         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
9397         is returned.
9398
9399         * string/_strerror.c (__strerror_r): Print negative errors as signed
9400         numbers.
9401
9402         [BZ #12777]
9403         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
9404         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
9405         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
9406
9407         * configure.in: Fix typo in redirection and correct removal of test
9408         files in two cases.
9409
9410         [BZ #12788]
9411         * locale/setlocale.c (new_composite_name): Fix test to check for
9412         identical name of all categories.
9413
9414         [BZ #12792]
9415         * libio/filedoalloc.c (local_isatty): New function.
9416         (_IO_file_doallocate): Use local_isatty.
9417         * stdio-common/perror.c (perror): In case a new stream is used
9418         forward the stream error.
9419         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
9420         error flag.
9421
9422 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
9423
9424         [BZ #11869]
9425         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
9426         alloca.
9427         * include/alloca.h (extend_alloca_account): Define.
9428
9429         [BZ #11857]
9430         * posix/regex.h: Fix comments with documentation of user-accessible
9431         fields after compilation and describe correct free'ing of pattern
9432         after re_compile_pattern.
9433         Patch by Reuben Thomas <rrt@sc3d.org>.
9434
9435 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
9436
9437         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
9438         and -mno-altivec to prevent the compiler from using Altivec and/or
9439         VSX instructions when the corresponding registers are not available.
9440
9441 2011-05-19  Andreas Schwab  <schwab@redhat.com>
9442
9443         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
9444
9445 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
9446
9447         * libio/freopen.c (freopen): Use __dup2, not dup2.
9448         * libio/freopen64.c (freopen64): Likewise.
9449
9450 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
9451
9452         [BZ #12775]
9453         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
9454         * math/Makefile (tests): Add test-powl.
9455         (CFLAGS-test-powl.c): Define.
9456         * math/test-powl.c: New file.
9457
9458 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
9459
9460         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
9461
9462 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
9463
9464         [BZ #11837]
9465         * iconvdata/gb18030.c: Update to GB18020-2005.
9466
9467 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
9468
9469         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
9470         RE_SYNTAX_POSIX_AWK): Update to match recent development.
9471         Patch by Aharon Robbins <arnold@skeeve.com>.
9472
9473         [BZ #11892]
9474         * stdlib/putenv.c (putenv): Don't always create copy of the variable
9475         on the stack.
9476
9477         [BZ #11895]
9478         * misc/pselect.c (__pselect): Handle timeout value errors hidden
9479         through underflows.
9480
9481         [BZ #12766]
9482         * misc/error.c (error_at_line): Ensure file_name and old_file_name
9483         point to strings before performing equality test for error_one_per_line
9484         mode.
9485
9486         [BZ #11697]
9487         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
9488
9489         [BZ #11820]
9490         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
9491         (struct user_fpregs_struct): Avoid __uint*_t types.
9492
9493         [BZ #6420]
9494         * malloc/mtrace.c (tr_where): Add additional parameter to point to
9495         symbol info.  Use it instead of calling _dl_addr locally.
9496         (lock_and_info): New function.
9497         (tr_freehook): Call lock_and_info and pass symbol info as additional
9498         parameter to tr_where.
9499         (tr_mallochook): Likewise.
9500         (tr_reallochook): Likewise.
9501         (tr_memalignhook): Likewise.
9502
9503         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
9504         used and couldn't be at all thread-safe.
9505
9506 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
9507
9508         * libio/freopen.c (freopen): Don't close old file descriptor
9509         before the new one is opened.  Instead dup the new file descriptor
9510         to the old one after the new stream is created.
9511         * libio/freopen64.c (freopen64): Likewise.
9512         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
9513         * libio/fileops.c (_IO_new_file_close_it): Handle new
9514         _IO_FLAGS2_NOCLOSE flag.
9515         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
9516         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
9517         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
9518         _IO_FLAGS2_NOCLOSE flag.
9519         * include/unistd.h: Add hidden_proto for dup3.
9520         Define __have_dup3.
9521         * io/dup3.c: Define hidden symbol.
9522         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
9523
9524         [BZ #7101]
9525         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
9526         when an incomplete long option is used.
9527         * posix/tst-getopt_long1.c: New file.
9528         * posix/Makefile (tests): Add tst-getopt_long1.
9529
9530         [BZ #10138]
9531         * scripts/config.guess: Update from autoconf-2.68.
9532         * scripts/config.sub: Likewise.
9533
9534         [BZ #10157]
9535         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
9536         tests into ...
9537         (has_cpuclock): ...this.  New function.
9538         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
9539         macro here based on has_cpuclock code.
9540
9541         [BZ #10149]
9542         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9543         First byte (not low byte) is now always NUL.
9544         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
9545
9546         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9547         Use non-cancelable interfaces.
9548
9549         [BZ #9809]
9550         * locale/iso-639.def: Add entry for Sorani.
9551
9552         [BZ #11901]
9553         * include/stdlib.h: Move include protection to the right place.
9554         Define abort_msg_s.  Declare __abort_msg with it.
9555         * stdlib/abort.c (__abort_msg): Adjust type.
9556         * assert/assert.c (__assert_fail_base): New function.  Majority
9557         of code from __assert_fail.  Allocate memory for __abort_msg with
9558         mmap.
9559         (__assert_fail): Now call __assert_fail_base.
9560         * assert/assert-perr.c: Remove bulk of implementation.  Use
9561         __assert_fail_base.
9562         * include/assert.hL Declare __assert_fail_base.
9563         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
9564         mmap.
9565         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
9566
9567 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
9568
9569         [BZ #11952]
9570         [BZ #12453]
9571         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
9572         until all modules are registered in the DTV.
9573         * elf/Makefile: Add rules to build and run tst-tls19.
9574         * elf/tst-tls19.c: New file.
9575         * elf/tst-tls19mod1.c: New file.
9576         * elf/tst-tls19mod2.c: New file.
9577         * elf/tst-tls19mod3.c: New file.
9578         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
9579
9580         [BZ #12083]
9581         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
9582         correctly.
9583
9584         [BZ #12601]
9585         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
9586         two-byte sequence errors.
9587         * iconvdata/Makefile (tests): Add bug-iconv8.
9588         * iconvdata/bug-iconv8.c: New file.
9589
9590         [BZ #12626]
9591         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
9592         buf2 definition.
9593
9594         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
9595
9596         [BZ #12432]
9597         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
9598         (dummy_getcfa): New function.
9599         (init): Get _Unwind_GetCFA address, use dummy if not found.
9600         (backtrace_helper): In recursion check, also check whether CFA changes.
9601         (__backtrace): Completely initialize arg.
9602
9603         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
9604         storing incomplete byte sequence in state object.  Avoid testing for
9605         guaranteed too small input if we know there is enough data available.
9606
9607 2011-05-11  Andreas Schwab  <schwab@redhat.com>
9608
9609         * Makeconfig (+link-pie): Indent.
9610         * Rules (binaries-pie): Define if $(have-fpie) and
9611         $(build-shared).
9612         (binaries-shared): Also filter out $(binaries-pie).
9613         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
9614         * nscd/Makefile (others-pie): Add nscd.
9615         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
9616         ($(objpfx)nscd): Remove command override.
9617         * login/Makefile (others-pie): Add pt_chown.
9618         ($(objpfx)pt_chown): Remove command override.
9619         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
9620         remove command overrides.
9621
9622 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
9623
9624         * libio/tst_putwc.c: Fix error messages.
9625
9626         [BZ #12724]
9627         * libio/fileops.c (_IO_new_file_close_it): Always flush when
9628         currently writing and seek to current position when not.
9629         * libio/Makefile (tests): Add bug-fclose1.
9630         * libio/bug-fclose1.c: New file.
9631
9632 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
9633
9634         [BZ #12511]
9635         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
9636         don't set DF_1_NODELETE here.
9637         (do_lookup_x): When entering new entry test for copy relocation
9638         and if necessary set DF_1_NODELETE flag.
9639         * elf/tst-unique4.cc: New file.
9640         * elf/tst-unique4.h: New file.
9641         * elf/tst-unique4lib.cc: New file.
9642         * elf/Makefile: Add rules to build and run tst-unique4.
9643         Patch by Piotr Bury <pbury@goahead.com>.
9644
9645 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9646
9647         [BZ #12052]
9648         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
9649
9650         [BZ #12625]
9651         * misc/mntent_r.c (addmntent): Flush the stream after the output
9652
9653         [BZ #12393]
9654         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
9655         (is_trusted_path_normalize): Skip initial colon.  Append slash
9656         to empty buffer.  Duplicate is_trusted_path code but allow
9657         constructed patch to be prefix.
9658         (is_dst): Allow $ORIGIN followed by /.
9659         (_dl_dst_substitute): Correct clearing of check_for_trusted.
9660         Correct testing of result of is_trusted_path_normalize
9661         (decompose_rpath): Fix warning.
9662
9663 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
9664
9665         [BZ #11257]
9666         * grp/initgroups.c (internal_getgrouplist): When we found the service
9667         list through the initgroups entry in nsswitch.conf do not always
9668         continue on a successful lookup.  Don't always use the
9669         __nss_group_database value if it is set.
9670         * nss/nsswitch.conf (initgroups): Change action for successful db
9671         lookup to continue for compatibility.
9672
9673 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
9674
9675         [BZ #11532]
9676         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
9677         and CP774 modules.
9678         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
9679         and CP774 modules.
9680         * iconvdata/tst-tables.sh: Likewise.
9681         * iconvdata/cp770.c: New file.
9682         * iconvdata/cp771.c: New file.
9683         * iconvdata/cp772.c: New file.
9684         * iconvdata/cp773.c: New file.
9685         * iconvdata/cp774.c: New file.
9686         * iconvdata/testdata/CP770: New file.
9687         * iconvdata/testdata/CP770..UTF8: New file.
9688         * iconvdata/testdata/CP771: New file.
9689         * iconvdata/testdata/CP771..UTF8: New file.
9690         * iconvdata/testdata/CP772: New file.
9691         * iconvdata/testdata/CP772..UTF8: New file.
9692         * iconvdata/testdata/CP773: New file.
9693         * iconvdata/testdata/CP773..UTF8: New file.
9694         * iconvdata/testdata/CP774: New file.
9695         * iconvdata/testdata/CP774..UTF8: New file.
9696
9697         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
9698         END CHARMAP line.
9699         * iconvdata/gen-8bit-gap.sh: Likewise.
9700         * iconvdata/gen-8bit.sh: Likewise.
9701
9702         * locale/iso-639.def: Add ary entry.
9703
9704         [BZ #11258]
9705         * locale/C-translit.h.in: Add U20A1 transliteration.
9706
9707         [BZ #12178]
9708         * locale/iso-639.def: Add wae entry.
9709         Patch by Kevin Bortis <bortis@translate-wae.ch>.
9710
9711         [BZ #12545]
9712         * locale/programs/localedef.c (construct_output_path): Use ssize_t
9713         for n.
9714
9715         [BZ #12711]
9716         * locale/C-translit.h.in: Add entry for U20B9.
9717         Patch by pravin.d.s@gmail.com.
9718
9719 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
9720
9721         [BZ #12713]
9722         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
9723         ENAMETOOLONG use generic getcwd.
9724         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
9725         in rtld.  Use *stat64.
9726         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
9727         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
9728         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
9729         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
9730         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
9731         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
9732         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
9733         __fstatat64 macros.
9734         * include/dirent.h: Add libc_hidden_proto for rewinddir.
9735         * dirent/rewinddir.c: Add libc_hidden_def.
9736         * sysdeps/mach/hurd/rewinddir.c: Likewise.
9737         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
9738
9739         * include/dirent.h (__alloc_dir): Add flags parameter.
9740         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
9741         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
9742         __alloc_dir.
9743         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
9744         from fdopendir if O_CLOEXEC is already set.
9745
9746 2011-03-15  Alan Modra  <amodra@gmail.com>
9747
9748         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
9749         l_tls_firstbyte_offset non-zero.  Save padding offset in
9750         l_tls_firstbyte_offset for later use.
9751         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
9752         freeing static tls block.
9753
9754 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
9755
9756         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
9757         where #ifdef was intended.  The intent is to prevent ARG_MAX from
9758         being defined by the kernel headers.
9759
9760 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
9761
9762         [BZ #12734]
9763         * resolv/resolv.h: Define RES_NOTLDQUERY.
9764         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
9765         no-tld-query and set RES_NOTLDQUERY.
9766         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
9767         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
9768         modern BIND to search name as TLD unless forbidden.
9769
9770 2011-05-07  Petr Baudis  <pasky@suse.cz>
9771             Ulrich Drepper  <drepper@gmail.com>
9772
9773         [BZ #12393]
9774         * elf/dl-load.c (fillin_rpath): Move trusted path check...
9775         (is_trusted_path): ...to here.
9776         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
9777         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
9778         using is_trusted_path_normalize() in setuid scripts.
9779
9780 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9781
9782         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
9783         __BEGIN/__END_DECLS.
9784
9785 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
9786
9787         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
9788         NSS_STATUS_NOTFOUND if no record was found.
9789
9790 2011-05-05  Andreas Schwab  <schwab@redhat.com>
9791
9792         * sunrpc/Makefile (headers): Add rpc/netdb.h.
9793         (headers-not-in-tirpc): Remove rpc/netdb.h
9794         * resolv/netdb.h: Revert last change.
9795
9796 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
9797
9798         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
9799         circular dependency between libgcc.a and libc.a.
9800
9801 2011-05-05  Andreas Schwab  <schwab@redhat.com>
9802
9803         * resolv/netdb.h: Don't include <rpc/netdb.h>.
9804         * nis/Makefile: Don't install rpcsvc/*.
9805         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
9806         instead of <rpc/types.h>.
9807         (MAXHOSTNAMELEN): Define.
9808
9809 2011-05-03  Andreas Schwab  <schwab@redhat.com>
9810
9811         * elf/ldconfig.c (add_dir): Don't crash on empty path.
9812
9813 2011-04-28  Maciej Babinski  <mbabinski@google.com>
9814
9815         [BZ #12714]
9816         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
9817         gethostbyname4_r when IPv6 results are possible.
9818
9819 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
9820
9821         [BZ #12723]
9822         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
9823         _PC_PIPE_BUF handling.
9824
9825 2011-04-30  Bruno Haible  <bruno@clisp.org>
9826
9827         [BZ #12717]
9828         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
9829         * resolv/netdb.h (getnameinfo): Change type of flags parameter
9830         to 'int'.
9831         * inet/getnameinfo.c (getnameinfo): Likewise.
9832
9833 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
9834
9835         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
9836         to groups setting in database lookup.
9837         * nss/nsswitch.conf: Add initgroups entry.
9838
9839 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
9840
9841         [BZ #12685]
9842         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
9843         mode string.
9844         Patch by Eric Blake <eblake@redhat.com>.
9845
9846 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
9847
9848         * sunrpc/Makefile (need-export-routines): Add svc_run.
9849         (routines): Remove svc_run.
9850         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
9851         * sunrpc/clnt_perr.c (clnt_perrno): Export.
9852         * sunrpc/svc_run.c (svc_run): Likewise.
9853         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9854
9855 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
9856
9857         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
9858         problem in reallocation in last patch.
9859
9860 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
9861
9862         * sunrpc/Makefile: Move inclusion of Rules.
9863
9864 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
9865
9866         * nss/nss_files/files-initgroups.c: New file.
9867         * nss/Makefile (libnss_files-routines): Add files-initgroups.
9868         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
9869         _nss_files_initgroups_dyn.
9870
9871 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
9872
9873         * elf/elf.h (R_ARM_IRELATIVE): Define.
9874
9875 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
9876
9877         * po/ru.po: Update from translation team.
9878
9879 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
9880
9881         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
9882         dependencies.
9883
9884 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
9885
9886         [BZ #12653]
9887         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
9888         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
9889         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
9890         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
9891         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
9892
9893 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
9894
9895         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
9896         differing bytes.
9897         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
9898         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
9899         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
9900
9901 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
9902
9903         [BZ #12420]
9904         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
9905         storing it.
9906         * stdlib/bug-getcontext.c: New file.
9907         * stdlib/Makefile: Add rules to build and run bug-getcontext.
9908
9909 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9910
9911         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
9912         instructions into .machine "z9-109".
9913         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
9914         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
9915
9916 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9917
9918         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
9919         between environment variables and auxiliary vector.
9920
9921 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
9922
9923         * Makefile: Add rules to build linkobj/libc.so.
9924         * include/libc-symbols.h: Define libc_hidden_nolink.
9925         * include/rpc/auth.h: Mark functions which are to be hidden.
9926         * include/rpc/auth_des.h: Likewise.
9927         * include/rpc/auth_unix.h: Likewise.
9928         * include/rpc/clnt.h: Likewise.
9929         * include/rpc/des_crypt.h: Likewise.
9930         * include/rpc/key_prot.h: Likewise.
9931         * include/rpc/pmap_clnt.h: Likewise.
9932         * include/rpc/pmap_prot.h: Likewise.
9933         * include/rpc/pmap_rmt.h: Likewise.
9934         * include/rpc/rpc_msg.h: Likewise.
9935         * include/rpc/svc.h: Likewise.
9936         * include/rpc/svc_auth.h: Likewise.
9937         * include/rpc/xdr.h: Likewise.
9938         * nis/Makefile: Link all DSOs against linkobj/libc.so.
9939         * nss/Makefile: Likewise.
9940         * sunrpc/Makefile: Don't install headers.  Build library with normal
9941         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
9942         * sunrpc/auth_des.c: Hide exported symbols by default, export some
9943         for the compat linking library.  Remove use of INTDEF/INTUSE.
9944         * sunrpc/auth_none.c: Likewise.
9945         * sunrpc/auth_unix.c: Likewise.
9946         * sunrpc/authdes_prot.c: Likewise.
9947         * sunrpc/authuxprot.c: Likewise.
9948         * sunrpc/clnt_gen.c: Likewise.
9949         * sunrpc/clnt_perr.c: Likewise.
9950         * sunrpc/clnt_raw.c: Likewise.
9951         * sunrpc/clnt_simp.c: Likewise.
9952         * sunrpc/clnt_tcp.c: Likewise.
9953         * sunrpc/clnt_udp.c: Likewise.
9954         * sunrpc/clnt_unix.c: Likewise.
9955         * sunrpc/des_crypt.c: Likewise.
9956         * sunrpc/des_soft.c: Likewise.
9957         * sunrpc/get_myaddr.c: Likewise.
9958         * sunrpc/key_call.c: Likewise.
9959         * sunrpc/key_prot.c: Likewise.
9960         * sunrpc/netname.c: Likewise.
9961         * sunrpc/pm_getmaps.c: Likewise.
9962         * sunrpc/pm_getport.c: Likewise.
9963         * sunrpc/pmap_clnt.c: Likewise.
9964         * sunrpc/pmap_prot.c: Likewise.
9965         * sunrpc/pmap_prot2.c: Likewise.
9966         * sunrpc/pmap_rmt.c: Likewise.
9967         * sunrpc/publickey.c: Likewise.
9968         * sunrpc/rpc_cmsg.c: Likewise.
9969         * sunrpc/rpc_common.c: Likewise.
9970         * sunrpc/rpc_dtable.c: Likewise.
9971         * sunrpc/rpc_prot.c: Likewise.
9972         * sunrpc/rpc_thread.c: Likewise.
9973         * sunrpc/rtime.c: Likewise.
9974         * sunrpc/svc.c: Likewise.
9975         * sunrpc/svc_auth.c: Likewise.
9976         * sunrpc/svc_authux.c: Likewise.
9977         * sunrpc/svc_raw.c: Likewise.
9978         * sunrpc/svc_run.c: Likewise.
9979         * sunrpc/svc_simple.c: Likewise.
9980         * sunrpc/svc_tcp.c: Likewise.
9981         * sunrpc/svc_udp.c: Likewise.
9982         * sunrpc/svc_unix.c: Likewise.
9983         * sunrpc/svcauth_des.c: Likewise.
9984         * sunrpc/xcrypt.c: Likewise.
9985         * sunrpc/xdr.c: Likewise.
9986         * sunrpc/xdr_array.c: Likewise.
9987         * sunrpc/xdr_float.c: Likewise.
9988         * sunrpc/xdr_intXX_t.c: Likewise.
9989         * sunrpc/xdr_mem.c: Likewise.
9990         * sunrpc/xdr_rec.c: Likewise.
9991         * sunrpc/xdr_ref.c: Likewise.
9992         * sunrpc/xdr_sizeof.c: Likewise.
9993         * sunrpc/xdr_stdio.c: Likewise.
9994
9995 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
9996
9997         [BZ #12650]
9998         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
9999         * sysdeps/ia64/dl-tls.h: Likewise.
10000         * sysdeps/powerpc/dl-tls.h: Likewise.
10001         * sysdeps/s390/dl-tls.h: Likewise.
10002         * sysdeps/sh/dl-tls.h: Likewise.
10003         * sysdeps/sparc/dl-tls.h: Likewise.
10004         * sysdeps/x86_64/dl-tls.h: Likewise.
10005         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
10006
10007 2011-03-14  Andreas Schwab  <schwab@redhat.com>
10008
10009         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
10010         rpath element also skip the following colon.
10011         (expand_dynamic_string_token): Add is_path parameter and pass
10012         down to DL_DST_REQUIRED and _dl_dst_substitute.
10013         (decompose_rpath): Call expand_dynamic_string_token with
10014         non-zero is_path.  Ignore empty rpaths.
10015         (_dl_map_object_from_fd): Call expand_dynamic_string_token
10016         with zero is_path.
10017
10018 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
10019
10020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
10021         Make cancelable.
10022
10023 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
10024
10025         [BZ #12655]
10026         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
10027         Patch by Filipe David Manana <fdmanana@apache.org>.
10028
10029 2011-04-07  Andreas Schwab  <schwab@redhat.com>
10030
10031         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
10032         Maintain aligned stack.
10033         (CHECK_RSP): Remove unused macro.
10034
10035 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
10036
10037         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
10038         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10039
10040 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
10041
10042         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
10043
10044         * include/features.h: Mention __USE_XOPEN2K8 in comment.
10045
10046 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
10047
10048         [BZ #12518]
10049         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
10050         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
10051         * sysdeps/x86_64/memmove.c: New file.
10052         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
10053         (memcpy): Renamed to ...
10054         (__new_memcpy): This.
10055         (memcpy): Provide GLIBC_2_14 memcpy.
10056         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
10057         (memcpy): Provide GLIBC_2_2_5 memcpy.
10058
10059 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
10060
10061         [BZ #12631]
10062         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
10063
10064 2011-03-30  Andreas Schwab  <schwab@redhat.com>
10065
10066         * misc/syncfs.c: New file.
10067         * misc/Makefile (routines): Add syncfs.
10068         * posix/unistd.h: Declare syncfs.
10069         * sysdeps/unix/syscalls.list: Add syncfs.
10070
10071 2011-04-01  Andreas Schwab  <schwab@redhat.com>
10072
10073         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
10074         open_by_handle_at.
10075         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10076         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10077         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10078         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10079         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10080         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
10081         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10082
10083 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
10084
10085         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
10086         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10087         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10088         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10089         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10090         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10091         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10092
10093         * io/Makefile: Compile fallocate.c, fallocate64.c, and
10094         sync_file_range.c with -fexceptions.
10095         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
10096         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
10097         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
10098         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
10099         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
10100         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
10101         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
10102         sync_file_range as cancellation point
10103         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
10104         now a wrapper around __call_sync_file_range with cancellation handling.
10105         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
10106         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
10107         function name to __call_sync_file_range.
10108         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
10109         Add call_sync_file_range.
10110
10111 2011-04-01  Andreas Schwab  <schwab@redhat.com>
10112
10113         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10114         bits/timex.h.
10115
10116 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
10117
10118         * iconv/iconv.h: Fix typo in comment.
10119         * io/fcntl.h: Likewise.
10120         * libio/stdio.h: Likewise.
10121         * posix/spawn.h: Likewise.
10122         * posix/unistd.h: Likewise.
10123         * stdlib/stdlib.h: Likewise.
10124         * time/time.h: Likewise.
10125         * wcsmbs/wchar.h: Likewise.
10126
10127         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
10128         open_by_handle): Add.
10129         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
10130         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
10131         Augment a few comments.
10132         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10133         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10134         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10135         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10136         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10137         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
10138         open_by_handle.
10139
10140         * io/fcntl.h (AT_EMPTY_PATH): Define.
10141
10142 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
10143
10144         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
10145         * sysdeps/unix/sysv/linux/bits/time.h: New file.
10146         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
10147         to...
10148         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
10149         * Versions.def: Add GLIBC_2.14.
10150         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
10151         Export.
10152
10153 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
10154
10155         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
10156         round counter.
10157         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
10158
10159 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10160
10161         [BZ #12597]
10162         * string/test-strncmp.c (do_page_test): New function.
10163         (check2): Likewise.
10164         (test_main): Call check2.
10165         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
10166
10167 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
10168
10169         [BZ #12587]
10170         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
10171         Handle cache information in CPU leaf 4.
10172         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
10173
10174 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
10175
10176         [BZ #12583]
10177         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
10178         character representation.
10179         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
10180
10181 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
10182
10183         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
10184         END(__isnan) to END(__isnanf) to match function entry point/label
10185         EALIGN(__isnanf,...).
10186
10187 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10188
10189         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
10190
10191 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
10192
10193         [BZ #12510]
10194         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
10195         copy from the symbol referenced in the relocation to initialize the
10196         used variable.
10197         Patch by Piotr Bury <pbury@goahead.com>.
10198         * elf/Makefile: Add rules to build and tst-unique3.
10199         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
10200         * elf/tst-unique3.cc: New file.
10201         * elf/tst-unique3.h: New file.
10202         * elf/tst-unique3lib.cc: New file.
10203         * elf/tst-unique3lib2.cc: New file.
10204
10205         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
10206
10207 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
10208
10209         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
10210         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
10211         to _start.
10212
10213 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
10214
10215         * elf/dl-load.c (_dl_map_object): If we are looking for the first
10216         to-be-loaded object along a path to loader is ld.so.
10217
10218 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
10219             Ulrich Drepper  <drepper@gmail.com>
10220
10221         * sysdeps/x86_64/memset.S: After aligning destination, code
10222         branches to different locations depending on the value of
10223         misalignment, when multiarch is enabled. Fix this.
10224
10225 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
10226
10227         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
10228         Set _x86_64_preferred_memory_instruction for AMD processsors.
10229         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10230         Set bit_Prefer_SSE_for_memop for AMD processors.
10231
10232 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
10233
10234         * libio/fmemopen.c (fmemopen): Optimize a bit.
10235
10236 2011-03-03  Andreas Schwab  <schwab@redhat.com>
10237
10238         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
10239
10240 2011-03-03  Roland McGrath  <roland@redhat.com>
10241
10242         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
10243
10244 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
10245
10246         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
10247         __bzero_ultra1 instead of __memset_ultra1.
10248
10249 2011-02-23  Andreas Schwab  <schwab@redhat.com>
10250             Ulrich Drepper  <drepper@gmail.com>
10251
10252         [BZ #12509]
10253         * include/link.h (struct link_map): Add l_orig_initfini.
10254         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
10255         returning unsuccessfully.
10256         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
10257         close of a file loaded at startup, restore the original l_initfini
10258         list.
10259         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
10260         list, store the pointer.
10261         * elf/Makefile ($(objpfx)noload-mem): New rule.
10262         (noload-ENV): Define.
10263         (tests): Add $(objpfx)noload-mem.
10264         * elf/noload.c: Include <memcheck.h>.
10265         (main): Call mtrace.  Close all opened handles.
10266
10267 2011-02-17  Andreas Schwab  <schwab@redhat.com>
10268
10269         [BZ #12454]
10270         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
10271         dependencies are missing.
10272
10273 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10274
10275         Fix __if_freereq crash: Unlike the generic version which uses free,
10276         Hurd needs munmap.
10277         * sysdeps/mach/hurd/ifreq.h: New file.
10278
10279 2011-01-27  Petr Baudis  <pasky@suse.cz>
10280             Ulrich Drepper  <drepper@gmail.com>
10281
10282         [BZ 12445]#
10283         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
10284         to extend_alloca().
10285         * stdio-common/bug23.c: New file.
10286         * stdio-common/Makefile (tests): Add bug23.
10287
10288 2010-09-28  Andreas Schwab  <schwab@redhat.com>
10289             Ulrich Drepper  <drepper@gmail.com>
10290
10291         [BZ #12489]
10292         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
10293         before performing relro protection.  At old place add assertion
10294         to make sure nothing changed.
10295
10296 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
10297             Glauber de Oliveira Costa  <glommer@gmail.com>
10298
10299         * elf/elf.h: Add new ARM TLS relocs.
10300
10301 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
10302
10303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10304         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
10305         cast from r3.
10306         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
10307         'tests' variable.
10308         * sysdeps/wordsize-64/tst-writev.c: New file.
10309
10310 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
10311
10312         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
10313         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
10314         insns in _dl_start to prevent a TOC reference before relocs are
10315         resolved.
10316
10317 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
10318
10319         [BZ #12469]
10320         * Makeconfig: Remove RANLIB definition.
10321         * Makerules: Don't use RANLIB.
10322         * aclocal.m4: Remove ranlib test.
10323         * configure.in: No need to check for ranlib.
10324         * elf/rtld-Rules: Don't use RANLIB.
10325
10326 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10327
10328         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
10329         protection macro.
10330         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
10331         inclusion protection macro.
10332
10333         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
10334         SIGRTMIN and SIGRTMAX and print information in that case only when
10335         SIGRTMIN is defined.
10336
10337 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10338
10339         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
10340         arginfo fn returning -1.
10341
10342         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
10343         and thousands string is zero terminated.
10344
10345 2011-02-03  Andreas Schwab  <schwab@redhat.com>
10346
10347         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
10348         sysdeps/unix/sysv/linux/bits/socket.h.
10349
10350 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10351
10352         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
10353         (__CPU_COUNT): Remove old macros.
10354         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
10355         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
10356         (__CPU_ALLOC, __CPU_FREE): Add macros.
10357         (__sched_cpualloc, __sched_cpufree): Add declarations.
10358
10359 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
10360
10361         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
10362         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
10363         * nscd/aicache.c (addhstaiX): Return timeout of added value.
10364         (readdhstai): Return value of addhstaiX call.
10365         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
10366         (addgrbyX): Return value returned by cache_addgr.
10367         (readdgrbyname): Return value returned by addgrbyX.
10368         (readdgrbygid): Likewise.
10369         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
10370         (addpwbyX): Return value returned by cache_addpw.
10371         (readdpwbyname): Return value returned by addhstbyX.
10372         (readdpwbyuid): Likewise.
10373         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
10374         (addservbyX): Return value returned by cache_addserv.
10375         (readdservbyname): Return value returned by addservbyX:
10376         (readdservbyport): Likewise.
10377         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
10378         (addhstbyX): Return value returned by cache_addhst.
10379         (readdhstbyname): Return value returned by addhstbyX.
10380         (readdhstbyaddr): Likewise.
10381         (readdhstbynamev6): Likewise.
10382         (readdhstbyaddrv6): Likewise.
10383         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
10384         (readdinitgroups): Return value returned by addinitgroupsX.
10385         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
10386         (prune_cache): Keep track of timeout value of re-added entries.
10387         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
10388         * nscd/nscd.h: Adjust prototypes of readd* functions.
10389
10390 2011-02-04  Roland McGrath  <roland@redhat.com>
10391
10392         * nis/nis_server.c (nis_servstate): Use the right name for 0.
10393         (nis_stats): Likewise.
10394         * nis/nis_modify.c (nis_modify): Likewise.
10395         * nis/nis_remove.c (nis_remove): Likewise.
10396         * nis/nis_add.c (nis_add): Likewise.
10397
10398         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
10399
10400         * posix/fnmatch_loop.c: Add some consts.
10401
10402         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
10403
10404 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
10405
10406         [BZ #12460]
10407         * config.make.in (config-cflags-novzeroupper): Define.
10408         * configure.in: Substitute libc_cv_cc_novzeroupper.
10409         * elf/Makefile (AVX-CFLAGS): Define.
10410         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
10411         (CFLAGS-tst-auditmod4a.c): Likewise.
10412         (CFLAGS-tst-auditmod4b.c): Likewise.
10413         (CFLAGS-tst-auditmod6b.c): Likewise.
10414         (CFLAGS-tst-auditmod6c.c): Likewise.
10415         (CFLAGS-tst-auditmod7b.c): Likewise.
10416         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
10417
10418 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
10419
10420         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
10421         function to the callback.
10422         Patch partly by Jiri Olsa <jolsa@redhat.com>.
10423
10424 2011-02-02  Andreas Schwab  <schwab@redhat.com>
10425
10426         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
10427         of errno.
10428
10429 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
10430
10431         [BZ #11724]
10432         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
10433         of constructors.
10434         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
10435         of destructors.
10436         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
10437
10438         [BZ #11724]
10439         * elf/Makefile: Add rules to build and run new test.
10440         * elf/tst-initorder.c: New file.
10441         * elf/tst-initorder.exp: New file.
10442         * elf/tst-initordera1.c: New file.
10443         * elf/tst-initordera2.c: New file.
10444         * elf/tst-initordera3.c: New file.
10445         * elf/tst-initordera4.c: New file.
10446         * elf/tst-initorderb1.c: New file.
10447         * elf/tst-initorderb2.c: New file.
10448         * elf/tst-order-a1.c: New file.
10449         * elf/tst-order-a2.c: New file.
10450         * elf/tst-order-a3.c: New file.
10451         * elf/tst-order-a4.c: New file.
10452         * elf/tst-order-b1.c: New file.
10453         * elf/tst-order-b2.c: New file.
10454         * elf/tst-order-main.c: New file.
10455         New test case by George Gensure <werkt0@gmail.com>.
10456
10457 2010-10-01  Andreas Schwab  <schwab@redhat.com>
10458
10459         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
10460         decoding ACE if AI_CANONIDN.
10461
10462 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
10463
10464         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
10465
10466 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
10467
10468         * version.h (RELEASE): Bump for 2.13 release.
10469         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
10470
10471         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
10472
10473         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
10474         MADV_NOHUGEPAGE.
10475         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
10476         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
10477         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10478         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10479         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10480         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
10481
10482         * posix/getconf.c: Update copyright year.
10483         * catgets/gencat.c: Likewise.
10484         * csu/version.c: Likewise.
10485         * debug/catchsegv.sh: Likewise.
10486         * debug/xtrace.sh: Likewise.
10487         * elf/ldconfig.c: Likewise.
10488         * elf/ldd.bash.in: Likewise.
10489         * elf/sprof.c (print_version): Likewise.
10490         * iconv/iconv_prog.c: Likewise.
10491         * iconv/iconvconfig.c: Likewise.
10492         * locale/programs/locale.c: Likewise.
10493         * locale/programs/localedef.c: Likewise.
10494         * malloc/memusage.sh: Likewise.
10495         * malloc/mtrace.pl: Likewise.
10496         * nscd/nscd.c (print_version): Likewise.
10497         * nss/getent.c: Likewise.
10498
10499         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
10500         PF_CAIF, and PF_ALG.
10501         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10502
10503 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
10504
10505         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
10506         (modules-names): Use them.
10507         (ifunc-test-modules, ifunc-pie-tests): Define.
10508         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
10509         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
10510         (test-extras): Likewise.
10511         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
10512         $(compile-command.c).
10513         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
10514         (all-built-dso): Define.
10515         (check-textrel.out, check-execstack.out): Depend on it.
10516
10517         * configure.in: Don't override --enable-multi-arch.
10518
10519 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
10520
10521         [BZ #6812]
10522         * nscd/hstcache.c (tryagain): Define.
10523         (cache_addhst): Return tryagain not notfound for temporary errors.
10524         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
10525         failed.
10526
10527 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
10528
10529         [BZ #10563]
10530         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
10531         to make the syscall.
10532         * sysdeps/unix/sysv/linux/setgroups.c: New file.
10533
10534         [BZ #12378]
10535         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
10536         and fall back to matching as normal character if the string ends before
10537         the matching ']' is found.  This is what POSIX requires.
10538         * posix/testfnm.c: Adjust test result.
10539         * posix/globtest.sh: Adjust test result.  Add new test.
10540         * posix/tst-fnmatch.input: Likewise.
10541         * posix/tst-fnmatch2.c: Add new test.
10542
10543 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
10544
10545         * elf/Makefile (check-execstack): Revert last change.  Depend on
10546         check-execstack.h.
10547         (check-execstack.h): New target.
10548         (generated): Add check-execstack.h.
10549         * elf/check-execstack.c: Include "check-execstack.h".
10550         (main): Revert last change.
10551         (handle_file): Return zero if GNU_STACK is absent and
10552         DEFAULT_STACK_PERMS doesn't include PF_X.
10553
10554 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
10555
10556         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
10557         in child fails because the descriptor is already closed.
10558         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
10559         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
10560         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10561
10562         [BZ #12397]
10563         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
10564         syscall.
10565
10566         [BZ #10484]
10567         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
10568         temporary buffer used to handle multi lookups locally.
10569         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
10570
10571 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10572
10573         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
10574         loader is ld.so.
10575
10576 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
10577
10578         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
10579         alignment for SSE2.
10580
10581 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10582
10583         [BZ #12394]
10584         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
10585         characters.  When rounding increased number of integer digits recompute
10586         number of groups.
10587         * stdio-common/tst-grouping.c: New file.
10588         * stdio-common/Makefile: Add rules to build and run tst-grouping.
10589
10590 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
10591
10592         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
10593         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
10594
10595         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
10596         void.
10597         * bits/select.h: Likewise.
10598
10599 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
10600
10601         * po/ja.po: Update from translation team.
10602
10603 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
10604
10605         [BZ #11155]
10606         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
10607         implementation just like for lxstat, fxstatat, et al.
10608
10609 2010-12-27  Jim Meyering  <meyering@redhat.com>
10610
10611         [BZ #12348]
10612         * posix/regexec.c (build_trtable): Return failure indication upon
10613         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
10614
10615 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
10616
10617         [BZ #12201]
10618         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
10619         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
10620         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
10621         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
10622
10623         [BZ #12207]
10624         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
10625
10626         [BZ #12204]
10627         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
10628         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
10629
10630 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
10631
10632         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
10633         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
10634         script has SORT_BY_INIT_PRIORITY.
10635         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
10636         NO_CTORS_DTORS_SECTIONS is defined.
10637         * elf/soinit.c: Likewise.
10638         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
10639         NO_CTORS_DTORS_SECTIONS is defined.
10640         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
10641         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
10642         * sysdeps/sh/init-first.c: Likewise.
10643         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10644
10645 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
10646
10647         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
10648         always use the slow path.
10649
10650 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
10651
10652         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
10653         similar rule which adds the sysdep directories to the header search in
10654         order to pick up the correct platform stackinfo.h.
10655         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
10656         perform test if it is, otherwise return successfully without testing.
10657         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
10658         DEFAULT_STACK_PERMS define in stackinfo.h.
10659         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
10660         defined in stackinfo.h.
10661         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
10662         DEFAULT_STACK_PERMS defined in stackinfo.h.
10663         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
10664         * sysdeps/ia64/stackinfo.h: Likewise.
10665         * sysdeps/s390/stackinfo.h: Likewise.
10666         * sysdeps/sh/stackinfo.h: Likewise.
10667         * sysdeps/sparc/stackinfo.h: Likewise.
10668         * sysdeps/x86_64/stackinfo.h: Likewise.
10669         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
10670         PF_X for powerpc64.  Retain PF_X for powerpc32.
10671
10672 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
10673
10674         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
10675         accurately.
10676         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
10677         GETDENTS_64BIT_ALIGNED.
10678
10679 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
10680
10681         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
10682
10683 2010-12-10  Andreas Schwab  <schwab@redhat.com>
10684
10685         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
10686         _GNU_SOURCE.
10687
10688         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
10689         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
10690         Remove __restrict.
10691         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
10692         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
10693
10694 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
10695
10696         [BZ #11655]
10697         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
10698         are initialized.
10699
10700 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
10701
10702         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
10703
10704 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
10705
10706         * po/it.po: Update from translation team.
10707
10708 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
10709
10710         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
10711         unused codes.
10712
10713 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
10714
10715         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
10716
10717 2010-11-24  Andreas Schwab  <schwab@redhat.com>
10718
10719         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
10720         specially.
10721         (gaih_getanswer_slice): Likewise.
10722
10723 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
10724
10725         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
10726
10727 2010-05-31  Petr Baudis  <pasky@suse.cz>
10728
10729         [BZ #11149]
10730         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
10731         silently even in the chroot mode.
10732
10733 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
10734
10735         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
10736         last patch a bit.  Pretty printing
10737
10738 2010-05-31  Petr Baudis <pasky@suse.cz>
10739
10740         [BZ #10085]
10741         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
10742         initialization of skip_initgroups_dyn.
10743
10744 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
10745
10746         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
10747         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
10748
10749 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
10750
10751         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
10752
10753 2010-11-11  Andreas Schwab  <schwab@redhat.com>
10754
10755         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
10756         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
10757         (tst-fnmatch-ENV): Set MALLOC_TRACE.
10758         ($(objpfx)tst-fnmatch-mem): New rule.
10759         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
10760         * posix/tst-fnmatch.c (main): Call mtrace.
10761
10762 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
10763
10764         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10765         Support Intel processor model 6 and model 0x2c.
10766
10767 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
10768
10769         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
10770           signed comparison.
10771
10772 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
10773
10774         [BZ #12205]
10775         * string/test-strncasecmp.c (check_result): New function.
10776         (do_one_test): Use it.
10777         (check1): New function.
10778         (test_main): Use it.
10779         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
10780         Support strcasecmp and strncasecmp.
10781
10782 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
10783
10784         [BZ #12194]
10785         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
10786         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10787
10788 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
10789
10790         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
10791         IFUNC support.
10792         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10793         memset-x86-64.
10794         * sysdeps/x86_64/multiarch/bzero.S: New file.
10795         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
10796         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
10797         * sysdeps/x86_64/multiarch/memset.S: New file.
10798         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
10799         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10800         Set bit_Prefer_SSE_for_memop for Intel processors.
10801         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
10802         Define.
10803         (index_Prefer_SSE_for_memop): Define.
10804         (HAS_PREFER_SSE_FOR_MEMOP): Define.
10805
10806 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
10807
10808         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
10809         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
10810
10811 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
10812
10813         [BZ #12191]
10814         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
10815         (__x86_64_raw_data_cache_size_half): Likewise.
10816         (__x86_64_raw_shared_cache_size): Likewise.
10817         (__x86_64_raw_shared_cache_size_half): Likewise.
10818
10819         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
10820         (__x86_64_raw_data_cache_size_half): Likewise.
10821         (__x86_64_raw_shared_cache_size): Likewise.
10822         (__x86_64_raw_shared_cache_size_half): Likewise.
10823         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
10824         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
10825         and __x86_64_raw_shared_cache_size_half.  Round
10826         __x86_64_data_cache_size_half, __x86_64_data_cache_size
10827         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
10828         to multiple of 256 bytes.
10829
10830 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
10831
10832         [BZ #12167]
10833         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
10834         of inacessible symlinks.  Verify result of symlink before returning it.
10835         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
10836         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
10837
10838 2010-10-28  Erich Ritz  <erichritz@gmail.com>
10839
10840         * math/math.h (isinf): Fix typo in comment.
10841
10842 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
10843
10844         * po/da.po: Update from translation team.
10845
10846 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
10847
10848         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
10849         is added to the list.
10850
10851 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10852             Ulrich Drepper  <drepper@gmail.com>
10853
10854         * elf/dl-object.c (_dl_new_object): Don't append the new object to
10855         the global list here.  Move code to...
10856         (_dl_add_to_namespace_list): ...here.  New function.
10857         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
10858         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
10859         * elf/dl-load.c (lose): Don't remove the element from the list.
10860         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
10861         (_dl_map_object): Likewise.
10862
10863 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
10864
10865         [BZ #12159]
10866         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
10867         into all bytes of SSE register.
10868         Patch by Richard Li <richardpku@gmail.com>.
10869
10870 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
10871
10872         [BZ #12140]
10873         * malloc/malloc.c (_int_free): Fill correct number of bytes when
10874         perturbing.
10875
10876 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
10877
10878         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
10879         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
10880         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
10881         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
10882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
10883         submachine.
10884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
10885
10886 2010-10-22  Andreas Schwab  <schwab@redhat.com>
10887
10888         * include/dlfcn.h (__RTLD_SECURE): Define.
10889         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
10890         mode & __RTLD_SECURE instead.
10891         (open_path): Rename preloaded parameter to secure.
10892         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
10893         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
10894         * elf/dl-deps.c (openaux): Likewise.
10895         * elf/rtld.c (struct map_args): Remove is_preloaded.
10896         (map_doit): Don't use it.
10897         (dl_main): Likewise.
10898         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
10899         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
10900
10901 2010-09-09  Andreas Schwab  <schwab@redhat.com>
10902
10903         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
10904         (sysd-rules-targets): Remove duplicates.
10905         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
10906         rtld-%.$o dependency.
10907
10908 2010-10-18  Andreas Schwab  <schwab@redhat.com>
10909
10910         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
10911         _dl_map_object do it.
10912
10913 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
10914
10915         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
10916         fast fma builtins, define the macros in the C99 standard.
10917         (FP_FAST_FMAF): Likewise.
10918         (FP_FAST_FMAL): Likewise.
10919         * sysdeps/x86_64/bits/mathdef.h: Likewise.
10920
10921         * bits/mathdef.h: Update copyright year.
10922         * sysdeps/powerpc/bits/mathdef.h: Likewise.
10923
10924 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
10925
10926         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
10927         builtins, define the macros in the C99 standard.
10928         (FP_FAST_FMAF): Likewise.
10929         (FP_FAST_FMAL): Likewise.
10930         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
10931         multiply/add.
10932         (FP_FAST_FMAF): Likewise.
10933
10934 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
10935
10936         [BZ #3268]
10937         * math/libm-test.inc (fma_test): Some new testcases.
10938         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
10939         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
10940         y and infinite z.  Do multiplication by C already in long double.
10941         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
10942         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
10943         y and infinite z.  Do bitwise or of inexact bit into u.d.
10944         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
10945         * sysdeps/i386/fpu/s_fmaf.S: Removed.
10946         * sysdeps/i386/fpu/s_fma.S: Removed.
10947         * sysdeps/i386/fpu/s_fmal.S: Removed.
10948
10949 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
10950
10951         [BZ #3268]
10952         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
10953         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
10954         computation is not scheduled after fetestexcept.  Fix value
10955         of minimum denormal long double.
10956
10957 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
10958
10959         [BZ #3268]
10960         * math/libm-test.inc (fma_test): Add some more tests.
10961         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
10962         correctly.
10963
10964 2010-10-15  Andreas Schwab  <schwab@redhat.com>
10965
10966         * scripts/data/localplt-s390-linux-gnu.data: New file.
10967         * scripts/data/localplt-s390x-linux-gnu.data: New file.
10968
10969 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
10970
10971         [BZ #3268]
10972         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
10973         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
10974         instead of dbl-64.
10975         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
10976         inlines.
10977         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
10978         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
10979         if one of x and y is very large and the other is subnormal.
10980         * sysdeps/s390/fpu/s_fmaf.c: New file.
10981         * sysdeps/s390/fpu/s_fma.c: New file.
10982         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
10983         * sysdeps/powerpc/fpu/s_fma.S: New file.
10984         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
10985         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
10986         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
10987
10988 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
10989
10990         [BZ #3268]
10991         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
10992         fma tests.
10993         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
10994         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
10995         * sysdeps/i386/i686/multiarch/s_fma.c: Include
10996         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
10997         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
10998         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
10999         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
11000
11001 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
11002
11003         [BZ #12078]
11004         * posix/regcomp.c (parse_branch): One more memory leak plugged.
11005         * posix/bug-regex31.input: Add test case.
11006
11007 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
11008
11009         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
11010         * posix/bug-regex31.input: New file.
11011
11012         [BZ #12078]
11013         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
11014         (parse_sub_exp): Fix last change, use postorder.
11015
11016         * posix/bug-regex31.c: New file.
11017         * posix/Makefile: Add rules to build and run bug-regex31.
11018
11019         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
11020
11021         [BZ #12078]
11022         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
11023
11024         [BZ #12108]
11025         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
11026         to have entries in sys_siglist.
11027
11028         [BZ #12093]
11029         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
11030         be NULL.
11031
11032 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
11033
11034         [BZ #3268]
11035         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
11036         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
11037         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
11038         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
11039         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
11040         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
11041         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
11042         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
11043         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
11044         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
11045         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
11046         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
11047         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
11048         * math/ftestexcept.c (fetestexcept): Likewise.
11049         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
11050         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
11051         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
11052         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
11053         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
11054         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
11055         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
11056
11057 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
11058
11059         [BZ #12107]
11060         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
11061         newline.
11062
11063 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
11064
11065         * string/bug-strstr1.c: New file.
11066         * string/Makefile: Add rules to build and run bug-strstr1.
11067
11068 2010-10-05  Eric Blake  <eblake@redhat.com>
11069
11070         [BZ #12092]
11071         * string/str-two-way.h (two_way_long_needle): Always clear memory
11072         when skipping input due to the shift table.
11073
11074 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
11075
11076         [BZ #12005]
11077         * malloc/mcheck.c: Handle large requests.
11078
11079         [BZ #12077]
11080         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
11081         for strncmp and strncasecmp.
11082         * string/stratcliff.c: Add tests for strcmp and strncmp.
11083         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
11084
11085 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11086
11087         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
11088         __set_fpscr.
11089
11090 2010-09-30  Andreas Jaeger  <aj@suse.de>
11091
11092         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
11093         (CGROUP_SUPER_MAGIC): Define.
11094         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11095         Handle btrfs and cgroup file systems.
11096         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
11097         Likewise.
11098
11099 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
11100
11101         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
11102         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
11103
11104 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11105
11106         [BZ #12067]
11107         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
11108         trying to locate the ELF header.
11109
11110 2010-09-27  Andreas Schwab  <schwab@redhat.com>
11111
11112         [BZ #11611]
11113         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
11114         Mask out sign-bit copies when constructing f_fsid.
11115
11116 2010-09-24  Petr Baudis <pasky@suse.cz>
11117
11118         * debug/stack_chk_fail_local.c: Add missing licence exception.
11119         * debug/warning-nop.c: Likewise.
11120
11121 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
11122
11123         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
11124         implementing getdents64 using getdents syscall, set d_type if
11125         __ASSUME_GETDENTS32_D_TYPE.
11126
11127 2010-09-16  Andreas Schwab  <schwab@redhat.com>
11128
11129         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
11130         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
11131
11132 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
11133
11134         [BZ #12037]
11135         * posix/unistd.h: Undo change of feature selection for ftruncate from
11136         2010-01-11.
11137
11138 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
11139
11140         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
11141         detection.
11142
11143 2010-09-20  Andreas Schwab  <schwab@redhat.com>
11144
11145         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
11146         fanotify_mark.
11147         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
11148
11149 2010-09-14  Andreas Schwab  <schwab@redhat.com>
11150
11151         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
11152         variables after CHECK_SP call.
11153         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
11154
11155 2010-09-13  Andreas Schwab  <schwab@redhat.com>
11156             Ulrich Drepper  <drepper@redhat.com>
11157
11158         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
11159         re-relocationg ld.so.
11160         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
11161         _dl_init_paths call.
11162         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
11163         here anymore.
11164
11165 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
11166
11167         * resolv/res_init.c (__res_vinit): Count the default server we added.
11168
11169 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
11170             Ulrich Drepper  <drepper@redhat.com>
11171
11172         [BZ #11968]
11173         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
11174         (____longjmp_chk): Use %ebx for saving value across system call.
11175         Add unwind info.
11176
11177 2010-09-06  Andreas Schwab  <schwab@redhat.com>
11178
11179         * manual/Makefile: Don't mix pattern rules with normal rules.
11180
11181 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
11182
11183         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
11184         operation.
11185         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
11186         * libio/iofopncook.c (_IO_cookie_init): Likewise.
11187         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
11188         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
11189         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
11190         Likewise.
11191
11192 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
11193
11194         [BZ #11979]
11195         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
11196         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
11197
11198 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
11199
11200         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
11201         * sysdeps/x86_64/addmul_1.S: Likewise.
11202         * sysdeps/x86_64/lshift.S: Likewise.
11203         * sysdeps/x86_64/mul_1.S: Likewise.
11204         * sysdeps/x86_64/rshift.S: Likewise.
11205         * sysdeps/x86_64/sub_n.S: Likewise.
11206         * sysdeps/x86_64/submul_1.S: Likewise.
11207
11208 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11209
11210         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
11211         Define __sched_param instead of SCHED_* and sched_param when
11212         <bits/sched.h> is included with __need_schedparam defined.
11213         * bits/sched.h [__need_schedparam]
11214         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
11215         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
11216         (__defined_schedparam): Define to 1.
11217         (__sched_param): New structure, identical to sched_param.
11218         (__need_schedparam): Undefine.
11219
11220 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
11221
11222         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
11223         (epoll_create1): Declare.
11224
11225         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
11226
11227 2010-08-31  Andreas Schwab  <schwab@redhat.com>
11228
11229         [BZ #7066]
11230         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
11231         shifting retval into place.
11232
11233 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
11234
11235         * nis/rpcsvc/nis.h: Update copyright notice.
11236         * nis/rpcsvc/nis.x: Likewise.
11237         * nis/rpcsvc/nis_callback.h: Likewise.
11238         * nis/rpcsvc/nis_callback.x: Likewise.
11239         * nis/rpcsvc/nis_object.x: Likewise.
11240         * nis/rpcsvc/nis_tags.h: Likewise.
11241         * nis/rpcsvc/yp.h: Likewise.
11242         * nis/rpcsvc/yp.x: Likewise.
11243         * nis/rpcsvc/ypupd.h: Likewise.
11244         * nis/yp_xdr.c: Likewise.
11245         * nis/ypupdate_xdr.c: Likewise.
11246
11247         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
11248         mainly the body of pmap_getport.  Add parameters to specify timeouts.
11249         (pmap_getport): Use __libc_rpc_getport.
11250         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
11251         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
11252         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
11253
11254 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
11255
11256         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
11257         fanotify_mark.
11258
11259 2010-08-27  Roland McGrath  <roland@redhat.com>
11260
11261         * sysdeps/i386/i686/multiarch/Makefile
11262         (CFLAGS-varshift.c): New variable.
11263
11264 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
11265
11266         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
11267         * sysdeps/i386/i686/multiarch/varshift.c: New file.
11268
11269         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
11270
11271         * sysdeps/x86_64/strlen.S: Minimal code improvement.
11272
11273 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
11274
11275         * sysdeps/x86_64/strlen.S: Unroll the loop.
11276         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11277         strlen-sse2 strlen-sse2-bsf.
11278         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
11279         __strlen_no_bsf if bit_Slow_BSF is set.
11280         (__strlen_sse42): Removed.
11281         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
11282         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
11283
11284 2010-08-25  Roland McGrath  <roland@redhat.com>
11285
11286         * sysdeps/x86_64/multiarch/varshift.S: File removed.
11287         * sysdeps/x86_64/multiarch/varshift.c: New file.
11288         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
11289         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
11290         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
11291         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
11292
11293 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
11294
11295         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11296         strlen-sse2 strlen-sse2-bsf.
11297         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
11298         __strlen_sse2_bsf if bit_Slow_BSF is unset.
11299         (__strlen_sse2): Removed.
11300         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
11301         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
11302         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
11303         bit_Slow_BSF for Atom.
11304         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
11305         (index_Slow_BSF): Define.
11306         (HAS_SLOW_BSF): Define.
11307
11308 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
11309
11310         [BZ #10851]
11311         * resolv/res_init.c (__res_vinit): When no server address at all
11312         is given default to loopback.
11313
11314 2010-08-24  Roland McGrath  <roland@redhat.com>
11315
11316         * configure.in: Remove config-name.h generation.
11317         * configure: Regenerated.
11318         * config-name.in: File removed.
11319         * scripts/config-uname.sh: New file.
11320         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
11321         ($(objdir)config-name.h): New target.
11322
11323         * sunrpc/rpc_parse.h: Avoid nested comment.
11324
11325 2010-08-24  Richard Henderson  <rth@redhat.com>
11326             Ulrich Drepper  <drepper@redhat.com>
11327             H.J. Lu  <hongjiu.lu@intel.com>
11328
11329         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
11330         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
11331         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
11332         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
11333         _mm_alignr_epi8 with _mm_loadu_si128.
11334         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
11335         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
11336         (__m128i_shift_right): Removed.
11337         * sysdeps/i386/i686/multiarch/varshift.h: New file.
11338         * sysdeps/i386/i686/multiarch/varshift.S: New file.
11339         * sysdeps/x86_64/multiarch/varshift.h: New file.
11340         * sysdeps/x86_64/multiarch/varshift.S: New file.
11341
11342 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
11343
11344         * configure.in: Move assembler checks to before sysdep dir checking.
11345
11346 2010-08-20  Petr Baudis  <pasky@suse.cz>
11347
11348         * LICENSES: Sync the sunrpc license.
11349
11350 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
11351
11352         * sunrpc/auth_des.c: Update copyright notice once again.
11353         * sunrpc/auth_none.c: Likewise.
11354         * sunrpc/auth_unix.c: Likewise.
11355         * sunrpc/authdes_prot.c: Likewise.
11356         * sunrpc/authuxprot.c: Likewise.
11357         * sunrpc/bindrsvprt.c: Likewise.
11358         * sunrpc/clnt_gen.c: Likewise.
11359         * sunrpc/clnt_perr.c: Likewise.
11360         * sunrpc/clnt_raw.c: Likewise.
11361         * sunrpc/clnt_simp.c: Likewise.
11362         * sunrpc/clnt_tcp.c: Likewise.
11363         * sunrpc/clnt_udp.c: Likewise.
11364         * sunrpc/clnt_unix.c: Likewise.
11365         * sunrpc/des_crypt.c: Likewise.
11366         * sunrpc/des_soft.c: Likewise.
11367         * sunrpc/get_myaddr.c: Likewise.
11368         * sunrpc/getrpcport.c: Likewise.
11369         * sunrpc/key_call.c: Likewise.
11370         * sunrpc/key_prot.c: Likewise.
11371         * sunrpc/openchild.c: Likewise.
11372         * sunrpc/pm_getmaps.c: Likewise.
11373         * sunrpc/pm_getport.c: Likewise.
11374         * sunrpc/pmap_clnt.c: Likewise.
11375         * sunrpc/pmap_prot.c: Likewise.
11376         * sunrpc/pmap_prot2.c: Likewise.
11377         * sunrpc/pmap_rmt.c: Likewise.
11378         * sunrpc/rpc/auth.h: Likewise.
11379         * sunrpc/rpc/auth_unix.h: Likewise.
11380         * sunrpc/rpc/clnt.h: Likewise.
11381         * sunrpc/rpc/des_crypt.h: Likewise.
11382         * sunrpc/rpc/key_prot.h: Likewise.
11383         * sunrpc/rpc/netdb.h: Likewise.
11384         * sunrpc/rpc/pmap_clnt.h: Likewise.
11385         * sunrpc/rpc/pmap_prot.h: Likewise.
11386         * sunrpc/rpc/pmap_rmt.h: Likewise.
11387         * sunrpc/rpc/rpc.h: Likewise.
11388         * sunrpc/rpc/rpc_des.h: Likewise.
11389         * sunrpc/rpc/rpc_msg.h: Likewise.
11390         * sunrpc/rpc/svc.h: Likewise.
11391         * sunrpc/rpc/svc_auth.h: Likewise.
11392         * sunrpc/rpc/types.h: Likewise.
11393         * sunrpc/rpc/xdr.h: Likewise.
11394         * sunrpc/rpc_clntout.c: Likewise.
11395         * sunrpc/rpc_cmsg.c: Likewise.
11396         * sunrpc/rpc_common.c: Likewise.
11397         * sunrpc/rpc_cout.c: Likewise.
11398         * sunrpc/rpc_dtable.c: Likewise.
11399         * sunrpc/rpc_hout.c: Likewise.
11400         * sunrpc/rpc_main.c: Likewise.
11401         * sunrpc/rpc_parse.c: Likewise.
11402         * sunrpc/rpc_parse.h: Likewise.
11403         * sunrpc/rpc_prot.c: Likewise.
11404         * sunrpc/rpc_sample.c: Likewise.
11405         * sunrpc/rpc_scan.c: Likewise.
11406         * sunrpc/rpc_scan.h: Likewise.
11407         * sunrpc/rpc_svcout.c: Likewise.
11408         * sunrpc/rpc_tblout.c: Likewise.
11409         * sunrpc/rpc_util.c: Likewise.
11410         * sunrpc/rpc_util.h: Likewise.
11411         * sunrpc/rpcinfo.c: Likewise.
11412         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
11413         * sunrpc/rpcsvc/key_prot.x: Likewise.
11414         * sunrpc/rpcsvc/klm_prot.x: Likewise.
11415         * sunrpc/rpcsvc/mount.x: Likewise.
11416         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
11417         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
11418         * sunrpc/rpcsvc/rex.x: Likewise.
11419         * sunrpc/rpcsvc/rstat.x: Likewise.
11420         * sunrpc/rpcsvc/rusers.x: Likewise.
11421         * sunrpc/rpcsvc/sm_inter.x: Likewise.
11422         * sunrpc/rpcsvc/spray.x: Likewise.
11423         * sunrpc/rpcsvc/yppasswd.x: Likewise.
11424         * sunrpc/rtime.c: Likewise.
11425         * sunrpc/svc.c: Likewise.
11426         * sunrpc/svc_auth.c: Likewise.
11427         * sunrpc/svc_authux.c: Likewise.
11428         * sunrpc/svc_raw.c: Likewise.
11429         * sunrpc/svc_run.c: Likewise.
11430         * sunrpc/svc_simple.c: Likewise.
11431         * sunrpc/svc_tcp.c: Likewise.
11432         * sunrpc/svc_udp.c: Likewise.
11433         * sunrpc/svc_unix.c: Likewise.
11434         * sunrpc/svcauth_des.c: Likewise.
11435         * sunrpc/xcrypt.c: Likewise.
11436         * sunrpc/xdr.c: Likewise.
11437         * sunrpc/xdr_array.c: Likewise.
11438         * sunrpc/xdr_float.c: Likewise.
11439         * sunrpc/xdr_mem.c: Likewise.
11440         * sunrpc/xdr_rec.c: Likewise.
11441         * sunrpc/xdr_ref.c: Likewise.
11442         * sunrpc/xdr_sizeof.c: Likewise.
11443         * sunrpc/xdr_stdio.c: Likewise.
11444
11445         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
11446         handling.
11447
11448 2010-08-19  Andreas Schwab  <schwab@redhat.com>
11449
11450         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
11451
11452 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
11453
11454         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
11455         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
11456         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
11457         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
11458         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
11459         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
11460         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
11461         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
11462         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
11463         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
11464         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
11465         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
11466         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
11467         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
11468
11469 2010-07-26  Anton Blanchard  <anton@samba.org>
11470
11471         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
11472         * malloc/arena.c (heap_trim): Likewise.
11473
11474 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
11475
11476         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
11477         here.  Not...
11478         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
11479         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
11480
11481 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
11482
11483         * sysdeps/i386/elf/Makefile: New file.
11484
11485 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11486
11487         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
11488         from fanotify_init.
11489         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
11490         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11491
11492 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
11493
11494         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
11495         of strncasecmp_l.
11496         * sysdeps/multiarch/strcmp.S: Likewise.
11497
11498 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
11499
11500         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11501         strncase_l-nonascii.
11502         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11503         Add strncase_l-ssse3.
11504         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
11505         * sysdeps/x86_64/strcmp.S: Likewise.
11506         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
11507         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
11508         * sysdeps/x86_64/strncase.S: New file.
11509         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
11510         * sysdeps/x86_64/strncase_l.S: New file.
11511         * string/Makefile (strop-tests): Add strncasecmp.
11512         * string/test-strncasecmp.c: New file.
11513
11514         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
11515         warning.
11516
11517         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
11518         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
11519
11520 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11521
11522         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
11523
11524 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
11525
11526         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
11527         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
11528         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
11529
11530 2010-05-01  Alan Modra  <amodra@gmail.com>
11531
11532         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
11533         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
11534         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
11535         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
11536         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
11537         tidying.  Don't tail-call __sigjmp_save for static lib.
11538         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
11539         save location.
11540         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
11541         (CALL_MCOUNT): Add eh info, and nop after bl.
11542         (TAIL_CALL_SYSCALL_ERROR): New macro.
11543         (PSEUDO_RET): Use it.
11544         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
11545         Correct save location of integer regs and cr.
11546         (_dl_profile_resolve): Correct cr save location.  Delete nops
11547         after bl when SHARED.  Reduce cfi size a little by better
11548         placement of cfi directives.
11549         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
11550         make a stack frame.  Instead use parm save area as a temp.
11551         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
11552         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
11553         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11554         Don't make a stack frame for parent, use parm save area.
11555         Increase child stack frame to 112 bytes.  Don't save unused reg,
11556         and adjust reg usage.  Set up cfi on error recovery and
11557         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
11558         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11559         (__makecontext): Add dummy nop after jump to exit.
11560         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
11561         Use correct parm save area and cr save, reduce stack frame.
11562         Correct cfi for possible PSEUDO_RET frame setup.
11563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
11564         Branch to local label emitted by PSEUDO_RET rather than
11565         __syscall_error.
11566
11567 2010-08-12  Andreas Schwab  <schwab@redhat.com>
11568
11569         [BZ #11904]
11570         * locale/programs/locale.c (print_assignment): New function.
11571         (show_locale_vars): Use it.
11572
11573 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
11574
11575         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
11576         field.
11577         (struct statfs64): Likewise.
11578         (_STATFS_F_FLAGS): Define.
11579         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
11580         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11581         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
11582         (ST_VALID): Define locally.
11583         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
11584         __statvfs_getflags, use the provided value.
11585         * sysdeps/unix/sysv/linux/kernel-features.h: Define
11586         __ASSUME_STATFS_F_FLAGS.
11587
11588         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
11589
11590         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
11591         Add sys/fanotify.h.
11592         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
11593         fanotify_mask for GLIBC_2.13.
11594         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
11595         fanotify_init and fanotify_mark.
11596         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11597         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
11598
11599         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
11600         Add prlimit.
11601         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
11602         prlimit64 for GLIBC_2.13.
11603         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
11604         prlimit64.
11605         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
11606         syscall.
11607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11608         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
11609         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
11610         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
11611         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
11612         add prlimit alias.
11613         * sysdeps/unix/sysv/linux/prlimit.c: New file.
11614
11615         [BZ #11903]
11616         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
11617         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
11618
11619         * nss/Makefile: Add rules to build and run tst-nss-test1.
11620         * shlib-versions: Add entry for libnss_test1.
11621         * nss/nss_test1.c: New file.
11622         * nss/tst-nss-test1.c: New file.
11623
11624         * nss/nsswitch.c (__nss_database_custom): Define new variable.
11625         (__nss_configure_lookup): Set appropriate entry in
11626         __nss_configure_lookup to true.
11627         * nss/nsswitch.h: Define enum with indeces of databases in
11628         databases and __nss_database_custom arrays.  Declare
11629         __nss_database_custom.
11630         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
11631         to avoid using nscd when custom rules are installed.
11632         * nss/getXXbyYY_r.c: Likewise.
11633         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
11634
11635         * nss/nss_files/files-parse.c: Whitespace fixes.
11636
11637 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
11638
11639         [BZ #11883]
11640         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
11641         * posix/fnmatch_loop.c: Likewise.
11642
11643 2010-07-17  Andi Kleen  <ak@linux.intel.com>
11644
11645         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
11646         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
11647         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
11648         * Versions.def [GLIBC_2.13]: Add.
11649
11650 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
11651
11652         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11653         Also fail if tpwd after pwuid call is NULL.
11654
11655 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11656
11657         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
11658         when converting to ms.
11659
11660 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11661
11662         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
11663         EOPNOTSUPP errors with ENOTTY.
11664         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
11665         EOPNOTSUPP errors with ENOTTY.
11666
11667 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
11668
11669         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11670         Add strcasecmp_l-ssse3.
11671         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
11672         strcasecmp.
11673         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
11674         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
11675         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
11676
11677 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
11678
11679         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
11680
11681         * string/Makefile (strop-tests): Add strcasecmp.
11682         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11683         strcasecmp_l-nonascii.
11684         (gen-as-const-headers): Add locale-defines.sym.
11685         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
11686         * sysdeps/x86_64/strcasecmp.S: New file.
11687         * sysdeps/x86_64/strcasecmp_l.S: New file.
11688         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
11689         * sysdeps/x86_64/locale-defines.sym: New file.
11690         * string/test-strcasecmp.c: New file.
11691
11692         * string/test-strcasestr.c: Test both ends of the range of characters.
11693         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
11694
11695 2010-07-29  Roland McGrath  <roland@redhat.com>
11696
11697         [BZ #11856]
11698         * manual/locale.texi (Yes-or-No Questions): Fix example code.
11699
11700 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
11701
11702         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
11703         for ld.so.
11704
11705 2010-07-27  Andreas Schwab  <schwab@redhat.com>
11706
11707         * manual/memory.texi (Malloc Tunable Parameters): Document
11708         M_PERTURB.
11709
11710 2010-07-26  Roland McGrath  <roland@redhat.com>
11711
11712         [BZ #11840]
11713         * configure.in (-fgnu89-inline check): Set and substitute
11714         gnu89_inline, not libc_cv_gnu89_inline.
11715         * configure: Regenerated.
11716         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
11717
11718 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
11719
11720         * string/test-strnlen.c: New file.
11721         * string/Makefile (strop-tests): Add strnlen.
11722         * string/tester.c (test_strnlen): Add a few more test cases.
11723         * string/tst-strlen.c: Better error reporting.
11724
11725         * sysdeps/x86_64/strnlen.S: New file.
11726
11727 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
11728
11729         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
11730         lower-latency instructions.
11731
11732 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
11733
11734         * string/test-strcasestr.c: New file.
11735         * string/test-strstr.c: New file.
11736         * string/Makefile (strop-tests): Add strstr and strcasestr.
11737         * string/str-two-way.h: Don't undefine MAX.
11738         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
11739
11740 2010-07-21  Andreas Schwab  <schwab@redhat.com>
11741
11742         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11743         strcasestr-nonascii.
11744         (CFLAGS-strcasestr-nonascii.c): Define.
11745         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
11746         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
11747         Remove unused attribute.
11748
11749 2010-07-20  Roland McGrath  <roland@redhat.com>
11750
11751         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
11752         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
11753         ld.so.cache was broken.  With it, there is no way to disable dsocaps
11754         like LD_HWCAP_MASK can disable hwcaps.
11755
11756 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
11757
11758         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
11759
11760 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
11761
11762         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
11763         call in strcasestr.
11764         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
11765         __strcasestr_sse42_nonascii.
11766         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
11767         strcasestr-nonascii.c.
11768         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
11769
11770 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
11771
11772         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
11773         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
11774         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
11775         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
11776
11777 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
11778
11779         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
11780         fcntl.
11781
11782 2010-07-06  Andreas Schwab  <schwab@redhat.com>
11783
11784         [BZ #11577]
11785         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
11786         dl_signal_cerror.
11787
11788 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
11789
11790         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
11791         _PC_PIPE_BUF using F_GETPIPE_SZ.
11792
11793 2010-07-05  Roland McGrath  <roland@redhat.com>
11794
11795         * manual/arith.texi (Rounding Functions): Fix rint description
11796         implicit in round description.
11797
11798 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
11799
11800         * elf/Makefile: Fix linking for a few tests to make recent linker
11801         happy.
11802
11803 2010-06-30  Andreas Schwab  <schwab@redhat.com>
11804
11805         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
11806         $(common-objpfx)libc_nonshared.a.
11807
11808 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
11809
11810         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
11811         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
11812         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
11813         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
11814         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
11815         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
11816         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
11817         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
11818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
11819         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
11820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
11821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
11822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
11823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
11824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
11825         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
11826         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
11827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
11828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
11829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
11830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
11831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
11832         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
11833         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
11834         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
11835         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
11836         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
11837         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
11838         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
11839         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
11840         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
11841         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
11842         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
11843         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
11844         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
11845         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
11846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
11847         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
11848         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
11849         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
11850         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
11851         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
11852         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
11853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
11854         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
11855         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
11856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
11857         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
11858
11859 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
11860
11861         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
11862         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
11863         * string/memmove.c (memmove): Renamed to ...
11864         (MEMMOVE): ...this.  Default to memmove.
11865         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
11866         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
11867         (END_CHK): Define.
11868         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11869         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
11870         mempcpy-ssse3-back memmove-ssse3-back.
11871         * sysdeps/x86_64/multiarch/bcopy.S: New file .
11872         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
11873         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
11874         * sysdeps/x86_64/multiarch/memcpy.S: New file.
11875         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
11876         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
11877         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
11878         * sysdeps/x86_64/multiarch/memmove.c: New file.
11879         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
11880         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
11881         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
11882         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
11883         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
11884         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
11885         Define.
11886         (index_Fast_Copy_Backward): Define.
11887         (HAS_ARCH_FEATURE): Define.
11888         (HAS_FAST_REP_STRING): Define.
11889         (HAS_FAST_COPY_BACKWARD): Define.
11890
11891 2010-06-21  Andreas Schwab  <schwab@redhat.com>
11892
11893         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11894         Restore proper fallback handling.
11895
11896 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
11897
11898         [BZ #11701]
11899         * posix/group_member.c (__group_member): Correct checking loop.
11900
11901         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
11902         OOM in getpwuid_r correctly.  Return error number when the caller
11903         should return, otherwise -1.
11904         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
11905         call returning > 0 value.
11906         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
11907
11908 2010-06-07  Andreas Schwab  <schwab@redhat.com>
11909
11910         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
11911         libc_nonshared.a from targets in modules-names.
11912
11913 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
11914
11915         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
11916         requires it.
11917
11918 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
11919
11920         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
11921         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
11922         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
11923         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
11924
11925 2010-06-02  Andreas Schwab  <schwab@redhat.com>
11926
11927         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
11928
11929 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
11930
11931         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
11932         and F_GETPIPE_SZ.
11933         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11934         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11935         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11936         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11937         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11938         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
11939
11940 2010-06-14  Roland McGrath  <roland@redhat.com>
11941
11942         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
11943
11944 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
11945
11946         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
11947         __REDIRECT followed by __THROW.
11948         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
11949         * posix/getopt.h (getopt): Likewise.
11950
11951 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
11952
11953         * hurd/lookup-at.c (__file_name_lookup_at): Accept
11954         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
11955         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
11956         in AT_FLAGS.
11957         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
11958         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
11959
11960 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
11961
11962         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
11963
11964 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
11965
11966         [BZ #11640]
11967         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11968         Properly check family and model.
11969
11970 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
11971
11972         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
11973
11974 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
11975
11976         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
11977
11978 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
11979
11980         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
11981         symbol reference.
11982
11983 2010-05-19  Andreas Schwab  <schwab@redhat.com>
11984
11985         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
11986         symbol reference.
11987
11988 2010-05-21  Andreas Schwab  <schwab@redhat.com>
11989
11990         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
11991         and internal_recvmmsg.
11992         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
11993         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
11994         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
11995         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
11996
11997         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
11998         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
11999         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
12000
12001 2010-05-20  Andreas Schwab  <schwab@redhat.com>
12002
12003         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
12004
12005 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
12006
12007         POWER7 optimizations.
12008         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
12009         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
12010
12011 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
12012
12013         * version.h: Update for 2.13 development version.
12014
12015 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
12016
12017         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
12018         exceptions.  Return 0.
12019
12020 2010-05-07  Roland McGrath  <roland@redhat.com>
12021
12022         * elf/ldconfig.c (main): Add a const.
12023
12024 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
12025
12026         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
12027         (args_options): Add no-idn option.
12028         (ahosts_keys_int): Add idn_flags to ai_flags.
12029         (parse_option): Handle 'i' option to clear idn_flags.
12030
12031         * malloc/malloc.c (_int_free): Possible race in the most recently
12032         added check.  Only act on the data if no current modification
12033         happened.
12034
12035 See ChangeLog.17 for earlier changes.