Move sysdeps/unix/common/tcsendbrk.c to sysdeps/unix/sysv/linux/.
[platform/upstream/glibc.git] / ChangeLog
1 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
2
3         * sysdeps/unix/common/tcsendbrk.c: Move to ...
4         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
5
6         * configure.in (arm*-none*): Do not allow without
7         --enable-hacker-mode.
8         (netbsd*): Remove case setting base_os.
9         (386bsd*): Likewise.
10         (freebsd*): Likewise.
11         (bsdi*): Likewise.
12         (osf*): Likewise.
13         (sunos*): Likewise.
14         (ultrix*): Likewise.
15         (newsos*): Likewise.
16         (dynix*): Likewise.
17         (*bsd*): Likewise.
18         (sysv*): Likewise.
19         (isc*): Likewise.
20         (esix*): Likewise.
21         (sco*): Likewise.
22         (minix*): Likewise.
23         (irix4*): Likewise.
24         (irix6*): Likewise.
25         (solaris[2-9]*): Likewise.
26         (none): Likewise.
27         * configure: Regenerated.
28
29 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
30
31         [BZ #11521]
32         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
33         overflow or cancellation in calculating denominator.
34         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
35         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
36         down expression to avoid unexpected rounding in newer GCCs.
37         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
38
39 2012-04-26  David S. Miller  <davem@davemloft.net>
40
41         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
42         long-double compat symbols.
43         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
44         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
45         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
46         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
47         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
48         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
49         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
50         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
51         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
52         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
53         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
54         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
55         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
56
57 2012-04-25  David S. Miller  <davem@davemloft.net>
58
59         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
60         HWCAP_* values only after the memory barriers have been defined.
61         (atomic_full_barrier): Define.
62         (atomic_read_barrier): Define.
63         (atomic_write_barrier): Define.
64
65 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
66
67         * shlib-versions: Add libgcc_s version information.
68         * sysdeps/generic/libgcc_s.h: Remove.
69         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
70         libgcc_s.h.
71         * sysdeps/gnu/unwind-resume.c: Likewise.
72         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
73
74 2012-04-25  David S. Miller  <davem@davemloft.net>
75
76         * sysdeps/unix/sparc/brk.S: Delete.
77         * sysdeps/unix/sparc/dl-brk.S: Delete.
78         * sysdeps/unix/sparc/pipe.S: Delete.
79         * sysdeps/unix/sparc/sysdep.S: Delete.
80         * sysdeps/unix/sparc/sysdep.h: Delete.
81         * sysdeps/unix/sparc/vfork.S: Delete.
82         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
83         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
84         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
85         ret_ERRVAL, r0, r1, MOVE): Define.
86         (JUMPTARGET): Remove.
87         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
88         sysdeps/unix/sparc/sysdep.h
89         (ENTRY, END): Remove.
90         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
91
92 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
93
94         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
95         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
96         -DIS_IN_build.
97
98         * timezone/README: Update upstream location and email address for
99         tzcode and tzdata.
100         * timezone/zdump.c: Update from tzcode 2012b.
101         * timezone/zic.c: Likewise.
102
103         * configure.in (libc_cv_as_needed): Remove test.
104         * configure: Regenerated.
105         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
106         conditional definition.
107         [$(have-as-needed) != yes] (no-as-needed): Likewise.
108         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
109         * config.make.in (have-as-needed): Remove variable.
110
111 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
112             Paul Pluzhnikov  <ppluzhnikov@google.com>
113
114         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
115         strings correctly.
116
117 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
118
119         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
120         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
121         * sysdeps/sh/strlen.S: Likewise.
122
123 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
124
125         * sysdeps/unix/fork.S: Remove file.
126         * sysdeps/unix/i386/fork.S: Likewise.
127         * sysdeps/unix/sparc/fork.S: Likewise.
128
129         * sysdeps/unix/system.c: Remove file.
130         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
131
132         * sysdeps/unix/getegid.S: Remove file.
133         * sysdeps/unix/geteuid.S: Likewise.
134
135 2012-04-24  Roland McGrath  <roland@hack.frob.com>
136
137         * scripts/check-localplt.awk: New file.
138         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
139         of diff.
140         * scripts/data/localplt-generic.data: Add a comment.
141
142         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
143         NODE when __dir_mkfile failed.
144         * sysdeps/mach/hurd/symlinkat.c: Likewise.
145         Reported by Ludovic Courtès <ludo@gnu.org>.
146
147 2012-04-24  Andreas Jaeger  <aj@suse.de>
148
149         * Makerules (common-clean): Also remove gen-as-const-headers
150         files.
151
152 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
153
154         * Makerules (native-compile): Do not change working directory for
155         build.  Use $(OUTPUT_OPTION) in command.
156         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
157
158 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
159
160         [BZ #13886]
161         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
162         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
163         * math/libm-test.inc (floor_test): Add more tests.
164         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
165
166 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
167
168         * sysdeps/unix/getdents.c: Remove file.
169         * sysdeps/unix/sysv/getdents.c: Likewise.
170         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
171
172         * sysdeps/unix/syscalls.list (madvise): Add syscall from
173         sysdeps/unix/mman/syscalls.list.
174         (mmap): Likewise.
175         (mprotect): Likewise.
176         (msync): Likewise.
177         (munmap): Likewise.
178         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
179         * sysdeps/unix/mman/syscalls.list: Remove.
180         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
181
182         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
183         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
184         * configure: Regenerated.
185         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
186         $(libgcc_s_suffix).
187         * config.make.in (libgcc_s_suffix): Remove variable.
188
189 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
190
191         * sysdeps/unix/sysv/gethostname.c: Move to ...
192         * sysdeps/posix/gethostname.c: ... here.
193
194         * sysdeps/unix/execve.S: Remove file.
195
196         * sysdeps/unix/_exit.S: Remove file.
197
198 2012-04-23  Andreas Jaeger  <aj@suse.de>
199
200         [BZ #13739]
201         * manual/Makefile: Remove make dist support, there's no
202         need for a stand-alone documentation tar ball.
203         (TEXI2DVI): Define always, it's not in Makeconfig.
204         (dist): Removed.
205         (tar-it): Removed.
206         (edition): Removed.
207         (glibc-doc-$(edition).tar): Removed
208         (%.Z): Removed.
209         (%.gz): Removed.
210         (%.uu): Removed.
211         (ETAGS): Remove, it's in Makeconfig.
212         (move-if-change): Remove, it's in Makeconfig.
213
214 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
215
216         [BZ #13970]
217         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
218         (strtod, strtof, strtold, strtol, strtoul, strtoq)
219         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
220         (strtod_l, strtof_l, strtold_l): Remove __wur.
221         It is not necessarily an error to ignore strtol's return value.
222         One can reliably look at the stored endptr to decide whether
223         the number had valid syntax.
224
225 2012-04-21  Andreas Jaeger  <aj@suse.de>
226
227         [BZ #13739]
228         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
229
230 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
231
232         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
233         * sysdeps/unix/sysv/Versions: Remove file.
234
235 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
236
237         [BZ #13927]
238         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
239
240 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
241
242         [BZ #7064]
243         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
244         version from __vm86.
245
246 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
247
248         * sysdeps/unix/common/lxstat.c: Remove file.
249         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
250
251         * sysdeps/unix/sysv/Makefile: Remove file.
252
253         * sysdeps/unix/sysv/direct.h: Remove file.
254
255         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
256         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
257         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
258         * sysdeps/unix/sysv/bits/signum.h: Likewise.
259         * sysdeps/unix/sysv/bits/stat.h: Likewise.
260         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
261         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
262
263         * sysdeps/unix/sysv/setrlimit.c: Remove file.
264
265         * sysdeps/unix/xmknod.c: Remove file.
266         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
267
268         * sysdeps/unix/sysv/settimeofday.c: Remove file.
269
270         * sysdeps/unix/sysv/i386/time.S: Remove file.
271
272         * sysdeps/unix/fxstat.c: Remove file.
273         * sysdeps/unix/xstat.c: Likewise.
274         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
275
276         * sysdeps/unix/sysv/sigaction.c: Remove file.
277
278         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
279         (sysdep_headers): Remove variable.
280         [termio.h not in sysdep_headers] (generated): Likewise.
281         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
282         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
283         * sysdeps/unix/sysv/tcdrain.c: Likewise.
284         * sysdeps/unix/sysv/tcflow.c: Likewise.
285         * sysdeps/unix/sysv/tcflush.c: Likewise.
286         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
287         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
288         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
289         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
290         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
291
292         * sysdeps/unix/siglist.c: Remove file.
293
294         * sysdeps/unix/getppid.S: Remove file.
295
296         * sysdeps/unix/mkdir.c: Remove file.
297         * sysdeps/unix/rmdir.c: Likewise.
298
299 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
300
301         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
302         ERR_MAX value.
303         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
304         errlist-compat value.
305
306 2012-04-18  David S. Miller  <davem@davemloft.net>
307
308         * sysdeps/generic/memcopy.h (reg_char): Delete.
309         * debug/strcat_chk.c: Use char, not reg_char.
310         * debug/strcpy_chk.c: Likewise.
311         * debug/strncat_chk.c: Likewise.
312         * debug/strncpy_chk.c: Likewise.
313         * string/memchr.c: Likewise.
314         * string/memrchr.c: Likewise.
315         * string/rawmemchr.c: Likewise.
316         * string/strcat.c: Likewise.
317         * string/strchr.c: Likewise.
318         * string/strchrnul.c: Likewise.
319         * string/strcmp.c: Likewise.
320         * string/strcpy.c: Likewise.
321         * string/strncat.c: Likewise.
322         * string/strncmp.c: Likewise.
323         * string/strncpy.c: Likewise.
324
325 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
326
327         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
328         __builtin_memcopy is called when src and dest ranges are known to not
329         overlap.
330
331 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
332
333         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
334         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
335         fwd_align_merge macro call.
336         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
337         bwd_align_merge macro call.
338         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
339
340 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
341
342         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
343         bwd_align_merge macros.
344         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
345         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
346         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
347
348 2012-04-18  David S. Miller  <davem@davemloft.net>
349
350         * sysdeps/sparc/sparc64/memcopy.h: Delete.
351
352 2012-04-18  Andreas Jaeger  <aj@suse.de>
353
354         [BZ# 6794]
355         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
356         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
357         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
358
359         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
360         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
361         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
362
363         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
364         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
365         Adjust for changed ldbl-128 files.
366
367         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
368         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
369         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
370
371 2012-04-17  David S. Miller  <davem@davemloft.net>
372
373         * sysdeps/sparc/sparc32/memcopy.h: Delete.
374
375 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
376
377         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
378         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
379         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
380         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
381         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
382         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
383
384 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
385
386         [BZ #6794]
387         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
388         * math/libm-test.inc: Add ilogb errno and exception tests.
389         * math/w_ilogb.c: New file: ilogb wrapper.
390         * math/w_ilogbf.c: New file: ilogbf wrapper.
391         * math/w_ilogbl.c: New file: ilogbl wrapper.
392         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
393         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
394         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
395         exception being thrown with 0.0 as argument.
396         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
397         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
398         exception being thrown with 0.0 as argument.
399         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
400         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
401         exception being thrown with 0.0 as argument.
402         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
403         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
404         exception being thrown with 0.0 as argument.
405         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
406         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
407         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
408         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
409         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
410         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
411         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
412         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
413         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
414
415 2012-04-17  Petr Baudis  <pasky@ucw.cz>
416
417         * include/sys/uio.h: Change __vector to __iovec to avoid clash
418         with altivec.
419
420 2012-04-16  Marek Polacek  <polacek@redhat.com>
421
422         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
423
424 2012-04-16  Marek Polacek  <polacek@redhat.com>
425
426         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
427         operands of fdivp instruction.
428
429 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
430
431         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
432         * elf/tst-auditmod3b.c: Likewise.
433         * elf/tst-auditmod4b.c: Likewise.
434         * elf/tst-auditmod5b.c: Likewise.
435         * elf/tst-auditmod6b.c: Likewise.
436         * elf/tst-auditmod6c.c: Likewise.
437         * elf/tst-auditmod7b.c: Likewise.
438         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
439         * sysdeps/x86_64/preconfigure.in: Likewise.
440         * sysdeps/x86_64/preconfigure: Regenerated.
441
442 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
443
444         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
445         __ILP32__.
446
447 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
448
449         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
450         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
451
452 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
453
454         [BZ #13973]
455         * locale/iso-639.def: Fix gl language name. Spotted by
456         Yaron Shahrabani.
457
458 2012-04-12  Roland McGrath  <roland@hack.frob.com>
459
460         [BZ #2074]
461         * libio/libio.h (__io_write_fn): Update comment.
462
463 2012-04-12  Petr Baudis  <pasky@ucw.cz>
464
465         [BZ #2074]
466         * stdio.texi (Hook Functions): The user provided writer function
467         is not allowed to return -1.
468
469 2012-04-11  David S. Miller  <davem@davemloft.net>
470
471         * sysdeps/sparc/fpu/libm-test-ulps: Update.
472
473 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
474
475         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
476         Add a leading slash to rtkaio.
477
478 2012-04-11  Jim Meyering  <meyering@redhat.com>
479
480         [BZ #11959]
481         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
482         It is not necessarily an error to ignore fwrite's return
483         value.  One can reliably use ferror to test for errors after
484         the fact.
485
486 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
487
488         * bits/types.h (__snseconds_t): New type.
489         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
490
491         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
492         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
493         (__SNSECONDS_T_TYPE): Likewise.
494         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
495         (__SNSECONDS_T_TYPE): Likewise.
496         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
497         (__SNSECONDS_T_TYPE): Likewise.
498
499 2012-04-10  Andreas Jaeger  <aj@suse.de>
500
501         [BZ #2636]
502         * manual/time.texi (Processor Time): Return type of times is
503         elapsed real time since an arbitrary point in the past.
504         (CPU Time): Move CLK_TCK from here...
505         (Processor Time): ...to here.  Correct description.
506         * manual/conf.texi (Constants for Sysconf): Correct description of
507         _SC_CLK_TCK.
508
509 2012-04-10  David S. Miller  <davem@davemloft.net>
510
511         [BZ #13967]
512         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
513         where the is a gap between DT_REL(A) and DT_JMPREL.
514
515 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
516
517         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
518         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
519         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
520
521 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
522
523         * elf/dl-support.c (_dl_inhibit_cache): New variable.
524         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
525         (dl_main): Handle --inhibit-cache.
526         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
527         _dl_inhibit_cache.
528         * elf/dl-load.c (_dl_map_object): Use it.
529         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
530
531 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
532
533         [BZ #13872]
534         * sysdeps/i386/fpu/e_powl.S (p78): New object.
535         (__ieee754_powl): Saturate large exponents rather than testing for
536         overflow of y*log2(x).
537         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
538         * math/libm-test.inc (pow_test): Do not permit spurious overflow
539         exceptions.
540
541         [BZ #11521]
542         * math/s_ctan.c: Include <float.h>.
543         (__ctan): Avoid internal overflow or cancellation in calculating
544         denominator.
545         * math/s_ctanf.c: Likewise.
546         * math/s_ctanl.c: Likewise.
547         * math/s_ctanh.c: Likewise.
548         * math/s_ctanhf.c: Likewise.
549         * math/s_ctanhl.c: Likewise.
550         * math/libm-test.inc (ctan_test): Add more tests.
551         (ctanh_test): Likewise.
552         * sysdeps/i386/fpu/libm-test-ulps: Update.
553         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
554
555 2012-04-09  Andreas Jaeger  <aj@suse.de>
556
557         [BZ #6894]
558         * manual/filesys.texi (Directory Entries): Mention that d_namlen
559         is an optional BSD extension.
560
561         [BZ #10254]
562         * manual/stdio.texi (Opening Streams): Document additional fopen
563         parameters.
564
565 2012-04-09  Roland McGrath  <roland@hack.frob.com>
566
567         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
568         %eax without telling the compiler.
569
570 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
571
572         [BZ # 13963]
573         * manual/install.texi: Use sourceware.org.
574
575 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
576
577         [BZ #13873]
578         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
579         (__ieee754_pow): Generate overflow and underflow using huge*huge
580         and tiny*tiny rather than just returning constant infinity or zero
581         for large exponents.
582         * math/libm-test.inc (pow_test): Require overflow exceptions for
583         applicable cases of large exponents.
584
585         [BZ #706]
586         * sysdeps/i386/fpu/e_pow.S (p10): New object.
587         (__ieee754_pow): Use iterative multiplication algorithm only for
588         integer exponents with absolute value below 1024.  Check for odd
589         integer exponents when using algorithm for real exponents.
590         * math/libm-test.inc (pow_test): Add more tests.
591         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
592
593 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
594
595         [BZ #13705]
596         * math/libm-test.inc (exp_test): Do not allow overflow exception
597         on underflow test.
598
599 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
600
601         [BZ #13705]
602         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
603         instead of __kernel_standard_f.
604
605 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
606
607         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
608         * sysdeps/x86_64/memset_chk.S: Likewise.
609
610 2012-04-08  Andreas Jaeger  <aj@suse.de>
611
612         [BZ #10153]
613         * manual/startup.texi (Environment Access): Describe return value
614         for putenv and setenv.
615
616         [BZ #6895]
617         * manual/filesys.texi (Directory Entries): Add description for
618         DT_LNK.
619
620         [BZ #6890]
621         * manual/filesys.texi (Directory Entries): Clarify that it's file
622         system not operating system in the description of DT_UNKNOWN.
623
624         [BZ #6578]
625         * manual/syslog.texi (closelog): Fix reference, it's openlog.
626
627 2012-04-08  Stephen Compall  <s11@member.fsf.org>
628
629         [BZ #6649]
630         * manual/llio.texi (Opening and Closing Files): Add cross
631         reference to explain mode argument.
632
633 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
634
635         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
636         * sysdeps/x86_64/memset_chk.S: Likewise.
637
638 2012-04-07  David S. Miller  <davem@davemloft.net>
639
640         * elf/elf.h (R_SPARC_WDISP10): Define.
641         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
642         R_SPARC_SIZE32.
643         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
644         R_SPARC_SIZE64 and R_SPARC_H34.
645
646 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
647
648         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
649         conditions and remove no longer applicable assertion.
650
651 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
652
653         * bits/byteswap.h: Include <features.h>.
654         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
655         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
656
657 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
658
659         * bits/byteswap.h (__bswap_16): Removed.
660         Include <bits/byteswap-16.h> to get __bswap_16.
661         * sysdeps/i386/bits/byteswap.h: Likewise.
662         * sysdeps/s390/bits/byteswap.h: Likewise.
663         * sysdeps/x86_64/bits/byteswap.h: Likewise.
664         * bits/byteswap-16.h: New file.
665         * sysdeps/i386/bits/byteswap-16.h: Likewise.
666         * sysdeps/s390/bits/byteswap-16.h: Likewise.
667         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
668         * string/Makefile (headers): Add bits/byteswap-16.h.
669
670 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
671
672         [BZ #13895]
673         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
674         extra indirection.
675         * nss/Makefile (tests-static, tests): Add tst-nss-static.
676         * nss/tst-nss-static.c: New.
677
678 2012-04-06  Robert Millan  <rmh@gnu.org>
679
680         [BZ #6486]
681         * manual/llio.texi (File Position Primitive): lseek
682         refers to WHENCE when it really means OFFSET.
683
684 2012-04-06  Andreas Jaeger  <aj@suse.de>
685
686         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
687         strncmp declarations.
688
689         * abilist/libc.abilist: Add __poll and __ppoll.
690
691 2012-04-05  David S. Miller  <davem@davemloft.net>
692
693         * scripts/check-local-headers.sh: Accept a host triplet in the
694         path matched by the exclude regexp.
695
696         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
697         definition.
698         * sysdeps/powerpc/powerpc32/dl-machine.h
699         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
700         * sysdeps/s390/s390-32/dl-machine.h
701         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
702         * sysdeps/sparc/sparc32/dl-machine.h
703         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
704         * sysdeps/sparc/sparc64/dl-machine.h
705         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
706
707         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
708         lazy binding.
709         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
710         undefined symbol errors.
711
712         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
713         DT_NEEDED entries.
714
715 2012-04-05  Michael Matz  <matz@suse.de>
716
717         [BZ #13592]
718         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
719
720 2012-04-05  Andreas Jaeger  <aj@suse.de>
721
722         [BZ #13908]
723         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
724         comment.
725
726 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
727
728         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
729         which ROUND is no valid rounding mode.
730
731 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
732
733         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
734         read again.
735         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
736
737 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
738
739         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
740         an exception using FPU order intentionally.
741
742 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
743
744         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
745         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
746         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
747         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
748
749 2012-04-05  Simon Josefsson  <simon@josefsson.org>
750
751         [BZ #12340]
752         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
753         EINVAL when BUFLEN is too smal.
754
755 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
756
757         [BZ #13553]
758         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
759         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
760
761 2012-04-03  Andreas Jaeger  <aj@suse.de>
762
763         [BZ #13938]
764         * manual/setjmp.texi (System V contexts): Fix sentence.
765
766         [BZ #13926]
767         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
768         New macro for this case.
769         [!__GNUC__] (__bswap_64): New inline function for this case.
770         * sysdeps/x86_64/bits/byteswap.h: Likewise.
771         * bits/byteswap.h: Likewise.
772         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
773         ull, guard with __GLIBC_HAVE_LONG_LONG.
774
775         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
776         __GLIBC_HAVE_LONG_LONG.
777
778         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
779         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
780
781 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
782
783         [BZ #13691]
784         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
785         inptr and inend, rather than using last_ch.
786
787 2012-04-02  David S. Miller  <davem@davemloft.net>
788
789         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
790         * stdio-common/printf-parse.h (read_int): Change return type to
791         'int', return -1 on INT_MAX overflow.
792         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
793         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
794         overflows INT_MAX.  Check for overflow of in-format-string precision
795         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
796         SIZE_MAX not INT_MAX for integer overflow test.
797         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
798         skip the construct in the format string but do not record anything.
799         * stdio-common/bug22.c: Adjust to test both width/prevision
800         INT_MAX overflow as well as total length INT_MAX overflow.  Check
801         explicitly for proper errno values.
802
803 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
804
805         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
806         CHAR_MAX.
807         * string/test-strcmp.c [! WIDE]: Likewise.
808         * time/tst-mktime2.c: Likewise for INT_MAX.
809         * string/test-string.h: #include <sys/param.h> for MIN.
810
811         * csu/init-first.c (__libc_init_first): Call __ctype_init.
812         * sysdeps/i386/init-first.c (init): Likewise.
813         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
814         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
815         * sysdeps/sh/init-first.c (init): Likewise.
816
817 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
818
819         * po/ru.po: Update from translation team.
820         * po/vi.po: Likewise.
821
822 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
823
824         * resolv/nss_dns/dns-host.c: Merge copyright years.
825
826 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
827
828         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
829         Optimize memcpy with prefetch if
830         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
831         src, dst pointers have unequal 16 byte alignments.
832
833 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
834
835         [BZ #13928]
836         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
837         from a CNAME entry and return the minimum ttl for the query.
838         (gaih_getanswer_slice): Likewise.
839
840 2012-03-30  Jeff Law  <law@redhat.com>
841
842         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
843         due to long keys.
844         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
845         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
846
847         * resolv/nss_dns/dns-host.c: Update copyright year.
848
849 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
850
851         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
852         requests to save a system call.  Fix check that all bytes are sent.
853
854         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
855         comments for sendmmsg.
856
857 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
858
859         [BZ #13691]
860         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
861         with only 1 character between 0x0041 and 0x01b0.
862         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
863         * wcsmbs/tst-mbsnrtowcs.c: New file.
864
865 2012-03-29  David S. Miller  <davem@davemloft.net>
866
867         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
868         small copies by hand.
869
870 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
871
872         [BZ #13761]
873         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
874         _nss_compat_initgroups_dyn): Fall back to malloc/free
875         for large group memberships.
876
877 2012-03-28  David S. Miller  <davem@davemloft.net>
878
879         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
880         that branches into memcpy.
881         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
882         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
883         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
884         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
885         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
886         bits.
887         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
888         implementation too.
889         * sysdeps/sparc/mempcpy.S: New file.
890
891         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
892         the IFUNC routine in the libc case.
893         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
894
895         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
896         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
897         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
898         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
899         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
900         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
901         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
902         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
903
904         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
905         loop to 256 bytes instead of 64 bytes and fix test signedness.
906
907         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
908         * sysdeps/sparc/sparc32/Makefile: rather than here...
909         * sysdeps/sparc/sparc64/Makefile: and here.
910
911 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
912
913         * malloc/mallocbug.c: Avoid warnings about unused variables.
914
915 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
916
917         [BZ #13760]
918         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
919         in the right place. Discard and retry query if response is
920         larger than input buffer size.
921
922 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
923
924         [BZ #369]
925         [BZ #2678]
926         [BZ #3866]
927         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
928         x for large integer exponent.
929         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
930         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
931         sign of result as needed afterwards.
932         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
933         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
934         result for underflowing pow the same as for overflow.
935         (__kernel_standard_l): Handle powl overflow and underflow here
936         rather than calling __kernel_standard.
937         * math/libm-test.inc (pow_test): Add more tests.
938
939         [BZ #3868]
940         [BZ #13879]
941         [BZ #13910]
942         [BZ #13911]
943         [BZ #13912]
944         [BZ #13913]
945         [BZ #13915]
946         [BZ #13916]
947         [BZ #13917]
948         [BZ #13918]
949         [BZ #13919]
950         [BZ #13920]
951         [BZ #13921]
952         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
953         * sysdeps/ieee754/k_standard.c: Include <float.h>.
954         (__kernel_standard_l): New function.
955         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
956         __kernel_standard.
957         * math/w_acosl.c (__acosl): Likewise.
958         * math/w_asinl.c (__asinl): Likewise.
959         * math/w_atan2l.c (__atan2l): Likewise.
960         * math/w_atanhl.c (__atanhl): Likewise.
961         * math/w_coshl.c (__coshl): Likewise.
962         * math/w_exp10l.c (__exp10l): Likewise.
963         * math/w_exp2l.c (__exp2l): Likewise.
964         * math/w_fmodl.c (__fmodl): Likewise.
965         * math/w_hypotl.c (__hypotl): Likewise.
966         * math/w_j0l.c (__j0l, __y0l): Likewise.
967         * math/w_j1l.c (__j1l, __y1l): Likewise.
968         * math/w_jnl.c (__jnl, __ynl): Likewise.
969         * math/w_lgammal.c (__lgammal): Likewise.
970         * math/w_log10l.c (__log10l): Likewise.
971         * math/w_log2l.c (__log2l): Likewise.
972         * math/w_logl.c (__logl): Likewise.
973         * math/w_powl.c (__powl): Likewise.
974         * math/w_remainderl.c (__remainderl): Likewise.
975         * math/w_scalbl.c (sysv_scalbl): Likewise.
976         * math/w_sinhl.c (__sinhl): Likewise.
977         * math/w_sqrtl.c (__sqrtl): Likewise.
978         * math/w_tgammal.c (__tgammal): Likewise.
979         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
980         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
981         * math/libm-test.inc (acos_test): Add more tests.
982         (acosh_test): Likewise.
983         (asin_test): Likewise.
984         (atanh_test): Likewise.
985         (exp_test): Likewise.
986         (exp10_test): Likewise.
987         (exp2_test): Likewise.
988         (expm1_test): Likewise.
989         (lgamma_test): Likewise.
990         (log_test): Likewise.
991         (log10_test): Likewise.
992         (log1p_test): Likewise.
993         (log2_test): Likewise.
994         (pow_test): Do not allow some spurious overflow exceptions.
995         (sqrt_test): Add more tests.
996         (tgamma_test): Likewise.
997         (y0_test): Likewise.
998         (y1_test): Likewise.
999         (yn_test): Likewise.
1000
1001 2012-03-27  Anton Blanchard  <anton@samba.org>
1002
1003         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
1004         MAP_HUGETLB.
1005         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
1006         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
1007         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
1008
1009 2012-03-27  David S. Miller  <davem@davemloft.net>
1010
1011         * conform/Makefile: Run run-conformtest.sh using $(BASH).
1012
1013         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
1014         have-as-vis3 check.
1015
1016 2012-03-27  Andreas Jaeger  <aj@suse.de>
1017
1018         * sysdeps/x86_64/elf/configure.in: Moved to ...
1019         * sysdeps/x86_64/configure.in: ... here.
1020         * sysdeps/x86_64/elf/start.S: Moved to ...
1021         * sysdeps/x86_64/start.S: ... here.
1022         * sysdeps/x86_64/elf/configure: Delete.
1023
1024         * sysdeps/x86_64/configure.in: Merge contents from
1025         sysdeps/i386/configure.in (without i686 check).
1026
1027         * sysdeps/i386/elf/Versions: Merge into ...
1028         * sysdeps/i386/Versions: ... this.
1029         * sysdeps/i386/elf/Versions: Delete file.
1030         * sysdeps/i386/elf/start.S: Moved to ...
1031         * sysdeps/i386/start.S: ...here.
1032         * sysdeps/i386/elf/configure.in: Merge into...
1033         * sysdeps/i386/configure.in: ...here.
1034         * sysdeps/i386/elf/configure.in: Delete file.
1035         * sysdeps/i386/elf/configure: Delete file.
1036
1037         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
1038         * debug/backtracesyms.c: ... here.
1039         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
1040         * debug/backtracesymsfd.c: ... here.
1041         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
1042         * sysdeps/generic/ifunc-sel.h: ... here.
1043
1044         * sysdeps/unix/i386/start.c: Delete file.
1045         * sysdeps/unix/sparc/start.c: Delete file.
1046         * sysdeps/unix/start.c: Delete file.
1047
1048         * sysdeps/sh/elf/configure.in: Moved to ...
1049         * sysdeps/sh/configure.in: ... here.
1050         * sysdeps/sh/elf/start.S: Moved to ...
1051         * sysdeps/sh/start.S: ... here.
1052         * sysdeps/sh/elf/configure: Delete file.
1053
1054         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
1055         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
1056         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
1057         * sysdeps/powerpc/powerpc64/entry.h: ... here.
1058         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
1059         * sysdeps/powerpc/powerpc64/start.S: here.
1060         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
1061         * sysdeps/powerpc/powerpc64/Makefile: ... this.
1062         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
1063         * sysdeps/powerpc/powerpc64/configure.in: ... this.
1064         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
1065
1066         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
1067         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
1068         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
1069         * sysdeps/powerpc/powerpc32/start.S: ... here.
1070         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
1071         * sysdeps/powerpc/powerpc32/configure.in: ... this.
1072         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
1073
1074         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
1075         * sysdeps/powerpc/ifunc-sel.h: ... here.
1076         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
1077         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
1078
1079         * sysdeps/sparc/elf/configure.in: Moved to ...
1080         * sysdeps/sparc/configure.in: ... here.
1081         * sysdeps/sparc/elf/configure: Delete file.
1082         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
1083         * sysdeps/sparc/sparc32/start.S: ... here.
1084         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
1085         * sysdeps/sparc/sparc64/start.S: ... here.
1086         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
1087         * sysdeps/sparc/sparc32/Makefile: ... this.
1088         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
1089         * sysdeps/sparc/sparc64/Makefile: ... this.
1090
1091         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
1092         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
1093         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
1094         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
1095         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
1096         * sysdeps/s390/s390-32/setjmp.S: ... here.
1097         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
1098         * sysdeps/s390/s390-32/configure.in: ... here.
1099         * sysdeps/s390/s390-32/elf/configure: Delete file.
1100         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
1101         * sysdeps/s390/s390-32/start.S: ... here.
1102
1103         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
1104         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
1105         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
1106         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
1107         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
1108         * sysdeps/s390/s390-64/setjmp.S: ... here.
1109         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
1110         * sysdeps/s390/s390-64/configure.in: ... here
1111         * sysdeps/s390/s390-64/elf/configure: Delete file.
1112         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
1113         * sysdeps/s390/s390-64/start.S: ... here.
1114         * sysdeps/s390/s390-64/elf/configure: Delete.
1115
1116         * configure.in: Remove support for elf directories in sysdeps.
1117
1118         * configure: Regenerated.
1119         * sysdeps/i386/configure: Regenerated.
1120         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1121         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1122         * sysdeps/s390/s390-32/configure: Regenerated.
1123         * sysdeps/s390/s390-64/configure: Regenerated.
1124         * sysdeps/sh/configure: Regenerated.
1125         * sysdeps/sparc/configure: Regenerated.
1126         * sysdeps/x86_64/configure: Regenerated.
1127
1128 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
1129
1130         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1131
1132         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
1133         denormal result into account.
1134
1135 2012-03-25  Roland McGrath  <roland@hack.frob.com>
1136
1137         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
1138         Reported by Allan McRae <allan@archlinux.org>.
1139
1140 2012-03-23  Jeff Law  <law@redhat.com>
1141
1142         * nss/getnssent.c (__nss_getent): Fix typo.
1143
1144 2012-03-23  David S. Miller  <davem@davemloft.net>
1145
1146         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1147
1148 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
1149
1150         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
1151         to pad to uint64_t for each field.
1152         (dl_tls_index): Replace unsigned long with uint64_t.
1153
1154 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
1155         Paul Pluzhnikov  <ppluzhnikov@google.com>
1156
1157         [BZ #6528]
1158         * grp/Makefile (otherlibs): Don't set it.
1159         * inet/Makefile (otherlibs): Likewise.
1160         * login/Makefile (otherlibs): Likewise.
1161         * nscd/Makefile (otherlibs): Likewise.
1162         * posix/Makefile (otherlibs): Likewise.
1163         * pwd/Makefile (otherlibs): Likewise.
1164         * rt/Makefile (otherlibs): Likewise.
1165         * sunrpc/Makefile (otherlibs): Likewise.
1166         * nss/Makefile (otherlibs): Likewise.
1167         Add libnss_files to routines and static-only-routines.
1168         ($(objpfx)getent): Remove rule.
1169         * resolv/Makefile: Add libnss_dns and libresolv to routines and
1170         static-only-routines.
1171
1172 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
1173
1174         [BZ #13892]
1175         * math/s_cexp.c: Include <float.h>.
1176         (__cexp): Handle exp result overflowing not necessarily
1177         overflowing both real and imaginary parts of result.
1178         * math/s_cexpf.c: Likewise.
1179         * math/s_cexpl.c: Likewise.
1180         * math/libm-test.inc (cexp_test): Add more tests.
1181         * sysdeps/i386/fpu/libm-test-ulps: Update.
1182         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1183
1184 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1185
1186         * include/link.h (ELFW): New macro.
1187         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
1188         Replace ELF64_R_TYPE with ELFW(R_TYPE).
1189
1190 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1191
1192         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
1193         with uint64_t.
1194
1195 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1196
1197         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
1198         declaration.
1199         (struct La_x32_retval): Likewise.
1200
1201 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1202
1203         * sysdeps/x86_64/preconfigure.in: New file.
1204         * sysdeps/x86_64/preconfigure: New generated file.
1205
1206 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
1207
1208         [BZ #13824]
1209         * math/e_exp2l.c: Include <float.h>.
1210         (__ieee754_exp2l): Handle overflow and underflow cases
1211         separately.  Only pass fractional part of argument to
1212         __ieee754_expl.
1213         * math/libm-test.inc (exp2_test): Add more tests.
1214
1215         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
1216         negating x to take absolute value.
1217         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
1218         Likewise.
1219         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
1220         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
1221         Likewise.
1222         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
1223         computing low part if x was negated.
1224         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
1225
1226 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1227
1228         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
1229         la_x32_gnu_pltexit.
1230         (pltexit): Cast int_retval to ptrdiff_t.
1231         * elf/tst-auditmod3b.c: Likewise.
1232         * elf/tst-auditmod4b.c: Likewise.
1233         * elf/tst-auditmod5b.c: Likewise.
1234         * elf/tst-auditmod6b.c: Likewise.
1235         * elf/tst-auditmod6c.c: Likewise.
1236         * elf/tst-auditmod7b.c: Likewise.
1237
1238         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
1239         and x32_gnu_pltexit.
1240
1241         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
1242         __ELF_NATIVE_CLASS.
1243         (La_x32_regs): New macro.
1244         (La_x32_retval): Likewise.
1245         (la_x32_gnu_pltenter): New function prototype.
1246         (la_x32_gnu_pltexit): Likewise.
1247
1248 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
1249
1250         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
1251         exponent.
1252
1253         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1254
1255         * configure.in (libc_cv_cc_nofma): Check for option to disable
1256         generation of FMA instructions.
1257         * configure: Regenerate.
1258         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
1259         * sysdeps/ieee754/dbl-64/Makefile: New file.
1260         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1261         Remove brandred-fma4.
1262         (CFLAGS-brandred-fma4.c): Remove.
1263         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
1264         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
1265         define.
1266         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
1267         define.
1268
1269 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1270
1271         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
1272         LLONG_MAX != LONG_MAX.
1273         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1274         (_fitoa_word): Likewise.
1275         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
1276         LLONG_MAX != LONG_MAX.
1277         * stdio-common/_itowa.h: Include <_itoa.h>.
1278         (_itowa_word): Use _ITOA_WORD_TYPE on value.
1279         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
1280         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
1281         only if not defined.
1282         (_ITOA_WORD_TYPE): Likewise.
1283         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1284         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
1285
1286 2012-03-21  David S. Miller  <davem@davemloft.net>
1287
1288         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1289
1290 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1291
1292         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
1293         of x86_64 when setting libc_cv_slibdir, libdir and
1294         libc_cv_localedir.
1295         * sysdeps/unix/sysv/linux/configure: Regenerated.
1296
1297 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1298
1299         * manual/lang.texi (Old Varargs): Remove section.
1300         (How Variadic): Update menu.
1301         (va_start): Do not mention varargs.h.
1302
1303 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1304             Joseph Myers  <joseph@codesourcery.com>
1305
1306         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
1307         link test.
1308         * configure: Regenerated.
1309
1310 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1311
1312         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
1313         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
1314         conformtest.pl
1315
1316 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1317
1318         * NOTES: Remove.
1319         * Makefile (files-for-dist): Remove NOTES.
1320         (NOTES): Remove rule.
1321         * README: Don't refer to NOTES.
1322         * manual/creature.texi: Don't include macros.texi.
1323         * manual/intro.texi (creature.texi): Remove comment referring to
1324         NOTES.
1325
1326         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
1327         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
1328         * configure: Regenerated.
1329         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
1330         LIBC_TRY_CC_OPTION.
1331         (libc_cv_as_i686): Likewise.
1332         (libc_cv_cc_avx): Likewise.
1333         (libc_cv_cc_sse2avx): Likewise.
1334         (libc_cv_cc_fma4): Likewise.
1335         (libc_cv_cc_novzeroupper): Likewise.
1336         * sysdeps/i386/configure: Regenerated.
1337
1338         [BZ #13883]
1339         * sysdeps/i386/fpu/s_cexp.S: Remove.
1340         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
1341         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
1342         * math/libm-test.inc (cexp_test): Add more tests.
1343         * sysdeps/i386/fpu/libm-test-ulps: Update.
1344         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1345
1346 2012-03-21  Allan McRae  <allan@archlinux.org>
1347
1348         * timezone/Makefile: Do not install iso3166.tab and zone.tab
1349
1350 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1351
1352         [BZ #13871]
1353         * math/w_exp2.c: Do not include <float.h>.
1354         (o_threshold, u_threshold): Remove.
1355         (__exp2): Calculate result before checking finiteness and calling
1356         __kernel_standard.
1357         * math/w_exp2f.c: Likewise.
1358         * math/w_exp2l.c: Likewise.
1359         * math/libm-test.inc (exp2_test): Require overflow exception for
1360         1e6 input.
1361
1362         [BZ #3866]
1363         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
1364         range of signed 64-bit integers before using fistpll.  Remove
1365         checks for whether integers fit in mantissa bits.
1366         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
1367         the range of signed 32-bit integers before using fistpl.  Remove
1368         checks for whether integers fit in mantissa bits.
1369         * sysdeps/i386/fpu/e_powl.S (p64): New object.
1370         (__ieee754_powl): Test for y outside the range of signed 64-bit
1371         integers before using fistpll.  Reduce 64-bit values to 63-bit
1372         ones as needed.
1373         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
1374         divide-by-zero is raised for zero to large negative powers.
1375         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
1376         (__ieee754_powl): Test for y outside the range of signed 64-bit
1377         integers before using fistpll.  Reduce 64-bit values to 63-bit
1378         ones as needed.
1379         * math/libm-test.inc (pow_test): Add more tests.
1380
1381 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1382
1383         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
1384         <stdio-common/_itoa.h>.
1385         * debug/segfault.c: Likewise.
1386         * elf/dl-cache.c: Likewise.
1387         * elf/dl-minimal.c: Likewise.
1388         * elf/dl-misc.c: Likewise.
1389         * elf/dl-sysdep.c: Likewise.
1390         * elf/dl-version.c: Likewise.
1391         * elf/rtld.c: Likewise.
1392         * hurd/hurdsock.c: Likewise.
1393         * hurd/lookup-retry.c: Likewise.
1394         * malloc/malloc.c: Likewise.
1395         * malloc/mtrace.c: Likewise.
1396         * nscd/nscd_getgr_r.c: Likewise.
1397         * nscd/nscd_getpw_r.c: Likewise.
1398         * nscd/nscd_getserv_r.c: Likewise.
1399         * posix/getopt_init.c: Likewise.
1400         * posix/wordexp.c: Likewise.
1401         * stdio-common/_itoa.c: Likewise.
1402         * stdio-common/printf_fphex.c: Likewise.
1403         * stdio-common/vfprintf.c: Likewise.
1404         * string/_strerror.c: Likewise.
1405         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
1406         * sysdeps/i386/i686/hp-timing.h: Likewise.
1407         * sysdeps/mach/_strerror.c: Likewise.
1408         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
1409         * sysdeps/mach/hurd/sethostid.c: Likewise.
1410         * sysdeps/mach/hurd/xmknodat.c: Likewise.
1411         * sysdeps/mach/xpg-strerror.c: Likewise.
1412         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
1413         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
1414         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
1415         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
1416         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
1417         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
1418         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
1419         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
1420         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
1421         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
1422         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
1423         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1424         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
1425         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
1426         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
1427         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1428         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
1429         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
1430         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1431         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1432         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
1433
1434         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
1435
1436         * stdio-common/_itoa.h: Moved to ...
1437         * sysdeps/generic/_itoa.h: Here.
1438
1439         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
1440
1441         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
1442         instead of "_itoa.h" and "_itowa.h".
1443         * stdio-common/vfprintf.: Likewise.
1444
1445 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1446
1447         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
1448         <bits/wordsize.h>.
1449         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
1450         (__signbit): Likwise.
1451         (llrintf): Likwise.
1452         (llrint): Likwise.
1453
1454 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1455
1456         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
1457         __WORDSIZE != 64.
1458
1459 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
1460
1461         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
1462         OVERFLOW_EXCEPTION_OK.
1463         * math/libm-test.inc ("Philosophy"): Update comment about
1464         exception testing.
1465         (OVERFLOW_EXCEPTION): Define.
1466         (OVERFLOW_EXCEPTION_OK): Likewise.
1467         (INVALID_EXCEPTION_OK): Renumber.
1468         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
1469         (IGNORE_ZERO_INF_SIGN): Likewise.
1470         (test_exceptions): Handle FE_OVERFLOW.
1471         (exp10_test): Expect overflow exceptions.
1472         (exp2_test): Likewise.
1473         (expm1_test): Likewise.
1474         (nextafter_test): Likewise.
1475         (pow_test): Likewise.
1476         (scalbn_test): Likewise.
1477         (scalbln_test): Likewise.
1478
1479 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1480
1481         * sysdeps/x86_64/bits/atomic.h
1482         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
1483         64bit integer.
1484         (atomic_exchange_acq): Likewise.
1485         (__arch_exchange_and_add_body): Likewise.
1486         (__arch_add_body): Likewise.
1487         (atomic_add_negative): Likewise.
1488         (atomic_add_zero): Likewise.
1489
1490 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1491
1492         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
1493         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
1494
1495 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1496
1497         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
1498         Check __x86_64__ instead of __WORDSIZE.
1499
1500 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1501
1502         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
1503
1504 2012-03-19  David S. Miller  <davem@davemloft.net>
1505
1506         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1507
1508         * sysdeps/sparc/fpu/fenv_private.h: New file.
1509         * sysdeps/sparc/fpu/math_private.h: Use it.
1510         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
1511         Remove.
1512         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
1513         (libc_feholdexcept_setroundl): Remove.
1514         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
1515         Remove.
1516         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
1517         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
1518
1519 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1520
1521         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
1522         int64_t instead of long int.
1523         (INSERT_WORDS64): Likwise.
1524
1525 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1526
1527         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
1528         _Unwind_GetCFA return to _Unwind_Ptr first.
1529
1530 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
1531
1532         [BZ #13629]
1533         * math/s_clog.c: Include <float.h>.
1534         (__clog): Scale large or subnormal inputs.
1535         * math/s_clogf.c: Likewise.
1536         * math/s_clogl.c: Likewise.
1537         * math/s_clog10.c: Include <float.h>.
1538         (M_LOG10_2): Define.
1539         (__clog10): Scale large or subnormal inputs.
1540         * math/s_clog10f.c: Likewise.
1541         * math/s_clog10l.c: Likewise.
1542         * math/libm-test.inc (clog_test): Add more tests.
1543         (clog10_test): Likewise.
1544         * sysdeps/i386/fpu/libm-test-ulps: Update.
1545         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1546
1547         [BZ #11451]
1548         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
1549         x and y.
1550         * math/libm-test.inc (atan2_test): Add another test.
1551
1552         * Makerules (common-objdir-compile): Remove.
1553         * sysdeps/unix/Makefile (config-generated): Do not add
1554         $(unix-generated) to variable.
1555         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
1556         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
1557         Remove rule.
1558         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
1559         Likewise.
1560         [generic bits/local_lim.h] (before-compile): Do not append to
1561         variable.
1562         [generic bits/local_lim.h] (common-generated): Likewise.
1563         [generic sys/param.h] (before-compile): Do not append to variable.
1564         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
1565         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
1566         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
1567         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
1568         include.
1569         [generic sys/param.h] (sys/param.h-includes): Remove variable.
1570         [generic sys/param.h] (sys/param.h-includes): Remove rule.
1571         [generic sys/param.h] ($(addprefix
1572         $(common-objpfx),$(sys/param.h-includes))): Likewise.
1573         [generic sys/param.h] (common-generated): Do not append to
1574         variable.
1575         [generic sys/param.h] (sysdep_headers): Likewise.
1576         [generic bits/errno.h] (before-compile): Do not append to
1577         variable.
1578         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
1579         rule.
1580         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
1581         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
1582         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
1583         [generic bits/errno.h] (common-generated): Do not append to
1584         variable.
1585         [generic bits/ioctls.h] (before-compile): Do not append to
1586         variable.
1587         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
1588         rule.
1589         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
1590         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
1591         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
1592         rule.
1593         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
1594         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
1595         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
1596         [generic bits/ioctls.h] (common-generated): Do not append to
1597         variable.
1598         [generic sys/syscall.h] (syscall.h): Remove variable.
1599         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
1600         rule.
1601         [generic sys/syscall.h] (before-compile): Do not append to
1602         variable.
1603         [generic sys/syscall.h] (common-generated): Likewise.
1604         * sysdeps/unix/errnos-tmpl.c: Remove file.
1605         * sysdeps/unix/errnos.awk: Likewise.
1606         * sysdeps/unix/ioctls-tmpl.c: Likewise.
1607         * sysdeps/unix/ioctls.awk: Likewise.
1608         * sysdeps/unix/mk-local_lim.c: Likewise.
1609         * sysdeps/unix/snarf-ioctls: Likewise.
1610
1611 2012-03-19  Richard Henderson  <rth@twiddle.net>
1612
1613         * sysdeps/i386/fpu/fenv_private.h: New file.
1614         * sysdeps/i386/fpu/math_private.h: Use it.
1615         (math_opt_barrier, math_force_eval): Remove.
1616         (libc_feholdexcept_setround_53bit): Remove.
1617         (libc_feupdateenv_53bit): Remove.
1618         * sysdeps/x86_64/fpu/math_private.h: Likewise.
1619         (math_opt_barrier, math_force_eval): Remove.
1620         (libc_feholdexcept): Remove.
1621         (libc_feholdexcept_setround): Remove.
1622         (libc_fetestexcept, libc_fesetenv): Remove.
1623         (libc_feupdateenv_test): Remove.
1624         (libc_feupdateenv, libc_feholdsetround): Remove.
1625         (libc_feresetround): Remove.
1626
1627         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
1628         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
1629
1630         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
1631         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
1632         (libc_feupdateenv_testl): New.
1633         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
1634         (libc_feupdateenv_testf): New.
1635         (libc_feupdateenv): Use libc_feupdateenv_test.
1636         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
1637         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
1638
1639         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
1640         (libc_feholdsetroundf, libc_feholdsetroundl): New.
1641         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
1642         (libc_feresetround_noex): New.
1643         (libc_feresetround_noexf): New.
1644         (libc_feresetround_noexl): New.
1645         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
1646         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
1647         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
1648         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
1649         SET_RESTORE_ROUND.
1650         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
1651         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
1652         (__cos): Likewise.
1653         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
1654         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
1655         SET_RESTORE_ROUND_NOEX.
1656         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
1657         SET_RESTORE_ROUND_NOEXF.
1658         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
1659         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
1660         (libc_feholdsetroundf): New.
1661         (libc_feresetround, libc_feresetroundf): New.
1662
1663         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
1664         (libc_feholdexcept_setround_53bit): Convert from macro to function.
1665         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
1666
1667         * sysdeps/generic/math_private.h: Include <fenv.h>.
1668         (default_libc_feholdexcept): New.
1669         (default_libc_feholdexcept_setround): New.
1670         (default_libc_fesetenv, default_libc_feupdateenv): New.
1671         (libc_feholdexcept): Only define if undefined.
1672         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
1673         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
1674         (libc_feholdexcept_setroundl): Likewise.
1675         (libc_feholdexcept_setround_53bit): Likewise.
1676         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
1677         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
1678         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
1679         (libc_feupdateenv_53bit): Likewise.
1680         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
1681         (libc_feholdexcept): Convert from macro to inline function.
1682         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
1683         (libc_fesetenv, libc_feupdateenv): Likewise.
1684
1685         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
1686         not previously defined.
1687         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
1688         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
1689         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
1690         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
1691         * sysdeps/ieee754/flt-32/math_private.h: New file.
1692         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
1693         math_private.h below SET_FLOAT_WORD.
1694         (__isnan, __isinf_ns, __finite): Remove.
1695         (__isnanf, __isinf_nsf, __finitef): Remove.
1696
1697 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
1698
1699         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1700
1701 2012-03-17  David S. Miller  <davem@davemloft.net>
1702
1703         [BZ #6471]
1704         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
1705         for 2.16.
1706
1707 2012-03-16  David S. Miller  <davem@davemloft.net>
1708
1709         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
1710         warnings.
1711
1712         [BZ #6471]
1713         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
1714         properly.
1715         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
1716         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
1717         sysdep_routines when subdir is sysvipc.
1718         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
1719         __getshmlba helper.
1720
1721         * sysdeps/sparc/fpu/libm-test/ulps: Update.
1722
1723 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1724
1725         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
1726         [__LP64__].
1727
1728 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1729
1730         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
1731         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
1732         (__lround): Renamed to ...
1733         (__llround): This.  Replace long int with long long int.
1734         Define lround functions as aliases of llround functions.
1735         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
1736
1737 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1738
1739         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1740         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
1741         adresses to uintptr_t.  Replace "long int" and "unsigned long
1742         int" with "greg_t" on va_arg.
1743
1744 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1745
1746         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
1747         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
1748
1749         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
1750         Move e_machine check before EI_CLASS check.  Handle x32
1751         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
1752         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
1753         SKIP_EM_IA_64 and include
1754         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
1755
1756         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
1757         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
1758         (add_system_dir): New macro.
1759
1760         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
1761         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
1762
1763 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
1764
1765         [BZ #2551]
1766         [BZ #2552]
1767         [BZ #2553]
1768         [BZ #2554]
1769         [BZ #2562]
1770         [BZ #2563]
1771         [BZ #2565]
1772         [BZ #2566]
1773         [BZ #2576]
1774         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
1775         (y0): Likewise.
1776         * math/w_j0f.c (j0f): Likewise.
1777         (y0f): Likewise.
1778         * math/w_j0l.c (__j0l): Likewise.
1779         (__y0l): Likewise.
1780         * math/w_j1.c (j1): Likewise.
1781         (y1): Likewise.
1782         * math/w_j1f.c (j1f): Likewise.
1783         (y1f): Likewise.
1784         * math/w_j1l.c (__j1l): Likewise.
1785         (__y1l): Likewise.
1786         * math/w_jn.c (jn): Likewise.
1787         (yn): Likewise.
1788         * math/w_jnf.c (jnf): Likewise.
1789         (ynf): Likewise.
1790         * math/w_jnl.c (__jnl): Likewise.
1791         (__ynl): Likewise.
1792         * math/libm-test.inc (j0_test): Add more tests.
1793         (j1_test): Likewise.
1794         (jn_test): Likewise.  Add trailing semicolon to existing test.
1795         (y0_test): Likewise.
1796         (y1_test): Likewise.
1797         * sysdeps/i386/fpu/libm-test-ulps: Update.
1798         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1799
1800         [BZ #13851]
1801         [BZ #13854]
1802         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
1803         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
1804         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
1805         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
1806         (__tanl): Set errno for infinite argument.
1807         * sysdeps/i386/fpu/mptan.c: Remove.
1808         * sysdeps/i386/fpu/s_tan.S: Likewise.
1809         * sysdeps/i386/fpu/s_tanl.S: Likewise.
1810         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
1811         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1812         * math/libm-test.inc (tan_test): Add more tests and enable more
1813         tests for double and long double.
1814         * sysdeps/i386/fpu/libm-test-ulps: Update.
1815         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1816
1817 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1818
1819         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
1820         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
1821
1822 2012-03-16  Roland McGrath  <roland@hack.frob.com>
1823
1824         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
1825         * configure.in: Use it for both main tree and add-ons.
1826         * configure: Regenerated.
1827
1828 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1829
1830         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
1831
1832 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
1833
1834         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
1835         in comment.
1836
1837         [BZ #13851]
1838         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
1839         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
1840         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
1841         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
1842         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
1843         infinite argument.
1844         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
1845         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
1846         != 0 for prec == 2.
1847         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
1848         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
1849         * sysdeps/i386/fpu/s_cosl.S: Likewise.
1850         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
1851         * sysdeps/i386/fpu/s_sinl.S: Likewise.
1852         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
1853         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
1854         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
1855         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1856         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
1857         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1858         * math/libm-test.inc (cos_test): Add more tests and enable more
1859         tests for long double.
1860         (sin_test): Likewise.
1861         (sincos_test): Likewise.
1862         * sysdeps/i386/fpu/libm-test-ulps: Update.
1863         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1864
1865 2012-03-16  David S. Miller  <davem@davemloft.net>
1866
1867         * sysdeps/sparc/fpu/math_private.h: New file.
1868
1869 2012-03-15  David S. Miller  <davem@davemloft.net>
1870
1871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
1872         file.
1873         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
1874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
1875         file.
1876         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
1877         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
1878         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
1879         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
1880         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
1881         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
1882         sysdep routines.
1883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
1884
1885         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
1886         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
1887
1888         * sysdeps/sparc/sparc-ifunc.h: New file.
1889         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
1890         sparc-ifunc.h
1891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
1892         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
1893         Likewise.
1894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
1895         Likewise.
1896         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
1897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
1898         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
1899         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
1900         Likewise.
1901         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
1902         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
1903         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
1904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
1905         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
1906         Likewise.
1907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
1908         Likewise.
1909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
1910         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
1911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
1912         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
1913         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
1914         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
1915         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
1916         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
1917         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
1918         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
1919         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
1920         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
1921         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
1922         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
1923         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
1924         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
1925         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
1926         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
1927         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
1928         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
1929         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
1930         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
1931         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
1932         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
1933
1934 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
1935
1936         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
1937         scaling.
1938         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1939
1940 2012-03-15  Andreas Jaeger  <aj@suse.de>
1941
1942         [BZ #13852]
1943         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
1944         ieee754/flt-32 implementation for sin, cos and sincos.
1945         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
1946         * sysdeps/i386/fpu/s_cosf.S: Likewise.
1947         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
1948         * sysdeps/i386/fpu/s_sinf.S: Likewise.
1949         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
1950         ieee754/flt-32 implementation for tan.
1951
1952         * math/libm-test.inc (cos_test): Enable some large input tests for
1953         float as well
1954         (sin_test): Likewise.
1955         (sincos_test): Likewise.
1956         (tan_test): Add tests for large input.
1957
1958         * sysdeps/i386/fpu/libm-test-ulps: Update.
1959
1960 2012-03-15  Andreas Jaeger  <aj@suse.de>
1961
1962         [BZ #13658]
1963         * math/libm-test.inc (cos_test): Add more test cases.
1964         (sin_test): Likewise.
1965         (sincos_test): Likewise.
1966
1967 2012-03-15  Andreas Jaeger  <aj@suse.de>
1968
1969         [BZ #13837]
1970         * math/libm-test.inc (cos_test): Add a test case for large input
1971         value.
1972         (sin_test): Likewise.
1973         (sincos_test): Likewise.
1974
1975 2012-03-15  Andreas Jaeger  <aj@suse.de>,
1976         Joseph Myers  <joseph@codesourcery.com>
1977
1978         [BZ #13658]
1979         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
1980         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
1981         * sysdeps/i386/fpu/branred.c: Likewise.
1982         * sysdeps/i386/fpu/dosincos.c: Likewise.
1983         * sysdeps/i386/fpu/mpa.c: Likewise.
1984         * sysdeps/i386/fpu/s_cos.S: Likewise.
1985         * sysdeps/i386/fpu/s_sin.S: Likewise.
1986         * sysdeps/i386/fpu/s_sincos.S: Likewise.
1987         * sysdeps/i386/fpu/sincos32.c: Likewise.
1988
1989         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
1990         Define.
1991         (libc_feupdateenv_53bit): Define.
1992         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
1993         Define.
1994         (libc_feupdateenv_53bit): Define.
1995
1996         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
1997         53 bit (without extend i386 double precision).
1998
1999         * math/libm-test.inc (sincos_test): Add tests for large input.
2000         (sin): Likewise.
2001         (cos): Likewise.
2002
2003         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
2004
2005 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
2006
2007         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2008
2009 2012-03-15  David S. Miller  <davem@davemloft.net>
2010
2011         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
2012         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
2013         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
2014         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
2015         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
2016         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
2017         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
2018         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
2019         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
2020         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
2021         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
2022         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
2023         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
2024         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
2025         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
2026         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
2027         file.
2028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
2029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
2030         file.
2031         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
2032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
2033         file.
2034         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
2035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
2036         file.
2037         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
2038         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
2039         fmin/fmax sysdep routines.
2040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
2041
2042 2012-03-14  David S. Miller  <davem@davemloft.net>
2043
2044         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
2045         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
2046         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
2047         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
2048         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
2049         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
2050         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
2051         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
2052         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
2053         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
2054         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
2055         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
2056         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
2057         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
2058         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
2059         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
2060         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
2061         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
2062         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
2063         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
2064         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
2065         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
2066         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
2067         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
2068         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
2069         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
2070         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
2071         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
2072         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
2073         routines.
2074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
2075         file.
2076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
2077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
2078         file.
2079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
2080         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
2081         file.
2082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
2083         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
2084         file.
2085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
2086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
2087         file.
2088         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
2089         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
2090         file.
2091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
2092         file.
2093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
2094         file.
2095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
2096         file.
2097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
2098         New file.
2099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
2100         file.
2101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
2102         file.
2103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
2104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
2105         file.
2106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
2107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
2108         file.
2109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
2110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
2111         file.
2112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
2113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
2114         VIS3 routines.
2115
2116         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
2117         New file.
2118
2119         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2120
2121         * sysdeps/sparc/configure.in: New file.
2122         * sysdeps/sparc/configure: Generate.
2123         * configure.in (libc_cv_sparc_as_vis3): Substitute.
2124         * configure: Regenerate.
2125         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
2126         * config.make.in (have-as-vis3): New.
2127         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
2128         available use -Av9d instead of -Av9a.
2129         * sysdeps/sparc/sparc64/Makefile: Likewise.
2130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
2131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
2132         New file.
2133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
2134         file.
2135         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
2136         New file.
2137         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
2138         file.
2139         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
2140         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
2141         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
2142         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
2143         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
2144
2145         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
2146         fzeros/fnegs to load 0x80000000 into a float register instead of
2147         using the stack.
2148         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
2149
2150 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
2151
2152         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2153         bits/syscall.h.
2154         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
2155         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
2156         ($(inst_includedir)/bits/syscall.h): Remove rule.
2157         ($(objpfx)bits/syscall.d): Include instead of
2158         $(objpfx)syscall-list.d.
2159         (generated): Change syscall-list.h and syscall-list.d to
2160         bits/syscall.h and bits/syscall.d.
2161
2162 2012-03-14  Roland McGrath  <roland@hack.frob.com>
2163
2164         [BZ #13846]
2165         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
2166
2167 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
2168
2169         [BZ #13841]
2170         * math/s_csqrt.c: Include <float.h>.
2171         (__csqrt): Scale large or subnormal inputs.
2172         * math/s_csqrtf.c: Likewise.
2173         * math/s_csqrtl.c: Likewise.
2174         * math/libm-test.inc (csqrt_test): Add more tests.
2175         * sysdeps/i386/fpu/libm-test-ulps: Update.
2176         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2177
2178         [BZ #13840]
2179         * math/libm-test.inc (hypot_test): Add more tests.
2180
2181 2012-03-13  David S. Miller  <davem@davemloft.net>
2182
2183         [BZ #13840]
2184         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
2185         double-precision for the calculation instead of scaling.
2186
2187 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
2188
2189         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
2190         manipulate bits before adding and subtracting TWO52[sx].
2191         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
2192         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
2193         Likewise.
2194         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
2195
2196 2012-03-13  David S. Miller  <davem@davemloft.net>
2197
2198         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
2199         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
2200         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
2201         rtld-global-offsets.h
2202         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
2203
2204         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
2205         large parameters.
2206
2207         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
2208
2209         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
2210         'err' in the ifdef scope in which it is actually used.
2211
2212         * nss/nss_db/db-init.c: Include string.h
2213
2214 2012-03-12  David S. Miller  <davem@davemloft.net>
2215
2216         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
2217         masking out of the most significant byte of random value used.
2218         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
2219         Fix coding style in previous change.
2220
2221         * sysdeps/unix/sysv/linux/kernel-features.h
2222         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
2223         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
2224         expression.
2225         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
2226         later.
2227
2228 2012-03-11  David S. Miller  <davem@davemloft.net>
2229
2230         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
2231         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
2232         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
2233         for 'resultvar' otherwise things get truncated on 64-bit.
2234
2235         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
2236         Fix masking out of the most significant byte of random value used.
2237
2238         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2239
2240 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
2241
2242         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2243
2244 2012-03-09  David S. Miller  <davem@davemloft.net>
2245
2246         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
2247         variables with appropriate CPP guards.
2248         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
2249         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
2250         on resulting framesize and the management of the outregs buffer for pltexit.
2251         Preserve floating point return values across _dl_call_pltexit call.
2252         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
2253         framesize and the management of the outregs buffer for pltexit.
2254         Preserve floating point return values across _dl_call_pltexit
2255         call.
2256         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
2257         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
2258         (print_exit): Fix format string for return register value.
2259
2260 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
2261
2262         * sunrpc/Makefile (others): Add rpcgen.
2263         ($(objpfx)rpcgen): Remove special build rule and dependency on
2264         libc.
2265         * sunrpc/rpcgen.c: New file.
2266
2267 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
2268
2269         [BZ #13673]
2270         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
2271         * stdio-common/bug-vfprintf-nargs.c: Likewise.
2272         * sysdeps/i386/crti.S: Likewise.
2273         * sysdeps/i386/crtn.S: Likewise.
2274         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
2275         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
2276         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
2277         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
2278         * sysdeps/sh/crti.S: Likewise.
2279         * sysdeps/sh/crtn.S: Likewise.
2280         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2281
2282         [BZ #13673]
2283         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
2284         with URL.
2285         * locale/programs/locfile-kw.gperf: Likewise.
2286         * locale/programs/charmap-kw.h: Regenerated.
2287         * locale/programs/locfile-kw.h: Likewise.
2288
2289         [BZ #13673]
2290         * intl/plural.y: Replace FSF snail mail address with URL.
2291         * intl/plural.c: Regenerated.
2292
2293 2012-03-09  Richard Henderson  <rth@twiddle.net>
2294
2295         * include/math_private.h: Remove file.
2296         * math/math_private.h: Move file ...
2297         * sysdeps/generic/math_private.h: ... here.
2298
2299         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
2300         * sysdeps/powerpc/fpu/math_private.h: Likewise.
2301         * sysdeps/x86_64/fpu/math_private.h: Likewise.
2302
2303         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
2304         and <math_private.h>.
2305         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
2306         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
2307         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
2308         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
2309         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
2310         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2311         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2312         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2313         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
2314         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2315         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2316         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
2317         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
2318         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2319         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
2320         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
2321         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
2322         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
2323         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
2324         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
2325         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2326         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
2327         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
2328         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2329         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
2330         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2331         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
2332         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2333         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2334         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2335         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
2336         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2337         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
2338         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
2339         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
2340         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
2341         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
2342         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
2343         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
2344         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
2345         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
2346         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
2347         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
2348         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
2349         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
2350         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
2351         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
2352         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
2353         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
2354         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
2355         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
2356         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
2357         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
2358         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
2359         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
2360         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
2361         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
2362         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
2363         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
2364         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
2365         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2366         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
2367         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2368         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
2369         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
2370         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2371         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2372         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2373         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
2374         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
2375         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
2376         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
2377         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
2378         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
2379         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
2380         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
2381         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
2382         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
2383         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
2384         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
2385         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
2386         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
2387         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
2388         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
2389         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
2390         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
2391         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
2392         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
2393         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
2394         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
2395         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
2396         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
2397         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
2398         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
2399         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
2400         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
2401         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
2402         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
2403         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
2404         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
2405         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
2406         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
2407         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
2408         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
2409         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
2410         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
2411         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
2412         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
2413         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
2414         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
2415         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
2416         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
2417         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
2418         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
2419         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
2420         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
2421         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
2422         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2423         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
2424         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2425         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
2426         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
2427         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
2428         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
2429         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
2430         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
2431         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
2432         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
2433         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
2434         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
2435         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
2436         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
2437         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
2438         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
2439         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
2440         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
2441         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
2442         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
2443         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
2444         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
2445         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
2446         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
2447         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
2448         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
2449         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
2450         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2451         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2452         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
2453         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
2454         * sysdeps/ieee754/k_standard.c: Likewise.
2455         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
2456         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2457         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2458         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
2459         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
2460         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2461         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
2462         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
2463         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
2464         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2465         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2466         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2467         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2468         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2469         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2470         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2471         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
2472         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
2473         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2474         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
2475         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
2476         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
2477         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2478         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
2479         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2480         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2481         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
2482         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
2483         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
2484         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2485         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2486         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
2487         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
2488         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
2489         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
2490         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
2491         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
2492         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
2493         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
2494         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
2495         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
2496         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
2497         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2498         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
2499         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
2500         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
2501         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
2502         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
2503         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
2504         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
2505         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
2506         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
2507         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
2508         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
2509         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
2510         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
2511         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
2512         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
2513         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
2514         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
2515         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
2516         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
2517         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
2518         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
2519         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
2520         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
2521         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
2522         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
2523         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
2524         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
2525         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
2526         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
2527         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
2528         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
2529         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
2530         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
2531         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
2532         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
2533         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2534         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
2535         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
2536         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
2537         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
2538         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
2539         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
2540         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
2541         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2542         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
2543         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2544         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
2545         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
2546         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
2547         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
2548         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
2549         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
2550         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
2551         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
2552         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
2553         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
2554         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
2555         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
2556         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
2557         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
2558         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
2559         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
2560         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
2561         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
2562         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
2563         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
2564         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
2565         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
2566         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2567         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
2568         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2569         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
2570         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
2571         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
2572         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
2573         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2574         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2575         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2576         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2577         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
2578         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
2579         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
2580         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
2581         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
2582         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
2583         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2584         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2585         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
2586         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2587         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
2588         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
2589         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
2590         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
2591         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
2592         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2593         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
2594         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
2595         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
2596         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
2597         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
2598         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
2599         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
2600         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
2601         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
2602         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
2603         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
2604         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
2605         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
2606         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
2607         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
2608         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
2609         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
2610         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
2611         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2612         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
2613         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
2614         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
2615         * sysdeps/ieee754/s_lib_version.c: Likewise.
2616         * sysdeps/ieee754/s_matherr.c: Likewise.
2617         * sysdeps/ieee754/s_signgam.c: Likewise.
2618         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
2619         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
2620         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
2621         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
2622         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
2623         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2624         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
2625         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
2626         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
2627         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
2628         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
2629         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
2630         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
2631         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
2632         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
2633         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
2634         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
2635         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
2636         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
2637         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
2638         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
2639
2640 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
2641
2642         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
2643         * sunrpc/rpc_main.c: Likewise.
2644         * sunrpc/rpc_svcout.c: Likewise.
2645
2646 2012-03-09  David S. Miller  <davem@davemloft.net>
2647
2648         * include/math_private.h: New file.
2649
2650 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
2651
2652         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
2653         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
2654         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
2655         from <bits/socket_type.h>.
2656         (enum __socket_type): Don't define here.
2657         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
2658         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2659         bits/socket_type.h.
2660
2661         [BZ #13566]
2662         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
2663         checking __USE_GNU.
2664
2665         * Makerules ($(inst_includedir)/%.h): New rule.
2666         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
2667         (install-others): Remove variable setting.
2668         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
2669
2670 2012-03-08  Richard Henderson  <rth@twiddle.net>
2671
2672         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
2673         from macro to inline function; merge with the
2674         !__LIBC_INTERNAL_MATH_INLINES version.
2675         (__ieee754_sqrtf): Likewise.
2676
2677         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
2678         to inline function.
2679         (__rintf, __floor, __floorf): Likewise.
2680
2681         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
2682         macro to inline function.
2683         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
2684
2685         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
2686         not <math/math_private.h>.
2687
2688 2012-03-08  David S. Miller  <davem@davemloft.net>
2689
2690         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
2691         copyright year.
2692         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
2693
2694 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
2695
2696         * resolv/gai_misc.c (handle_requests): Fix struct timespec
2697         normalization.
2698         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
2699         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
2700
2701 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
2702
2703         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
2704         be defined individually, they must be defined as a block.  Define
2705         S for printing a string instead of hidint the different by using a
2706         macro for adding the 'l'.
2707         * stdio-common/tst-fphex-wide.c: Adjust.
2708
2709 2012-03-07  Marek Polacek  <polacek@redhat.com>
2710
2711         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
2712
2713 2012-03-08  Marek Polacek  <polacek@redhat.com>
2714
2715         [BZ #13806]
2716         * stdio-common/Makefile (tests): Add tst-fphex-wide.
2717         * stdio-common/tst-fphex.c: Define a few macros to make the
2718         test reusable.  Use them.
2719         * stdio-common/tst-fphex-wide.c: New file.
2720
2721 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
2722
2723         [BZ #6911]
2724         * manual/macros.texi (gnusystems): New macro.
2725         (nongnusystems): Likewise.
2726         (gnulinuxhurdsystems): Likewise.
2727         (gnuhurdsystems): Likewise..
2728         (gnulinuxsystems): Likewise.
2729         * manual/charset.texi: Use new macros or @theglibc{} to refer to
2730         variants of the GNU system, not "GNU system".
2731         * manual/conf.texi: Likewise.
2732         * manual/errno.texi: Likewise.  Update example of errno macro
2733         expansion.
2734         * manual/filesys.texi: Likewise.
2735         (getumask): Document as specific to GNU/Hurd.
2736         * manual/install.texi: Likewise.  Reword some references to
2737         GNU/Linux.
2738         * manual/intro.texi: Likewise.
2739         * manual/io.texi: Likewise.
2740         (File Name Portability): Detail which constraints are inapplicable
2741         to all GNU systems and which are only inapplicable to GNU/Hurd.
2742         * manual/job.texi: Likewise.
2743         * manual/llio.texi: Likewise.
2744         (O_NOCTTY): Document as present on GNU/Linux.
2745         * manual/maint.texi: Likewise.
2746         * manual/memory.texi: Likewise.
2747         * manual/pattern.texi: Likewise.
2748         * manual/pipe.texi: Likewise.
2749         * manual/process.texi: Likewise.
2750         * manual/resource.texi: Likewise.
2751         (RUSAGE_CHILDREN): Remove statement about specifying a particular
2752         child on GNU/Hurd.
2753         * manual/setjmp.texi: Likewise.
2754         * manual/signal.texi: Likewise.
2755         * manual/startup.texi: Likewise.
2756         * manual/stdio.texi: Likewise.
2757         * manual/terminal.texi: Likewise.
2758         (ONLCR): Document as POSIX.
2759         (OXTABS): Document availability on GNU/Linux as XTABS.
2760         (ONOEOT): Document availability separately from other bits.
2761         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
2762         * manual/time.texi: Likewise.
2763         * manual/users.texi: Likewise.
2764         * INSTALL: Regenerated.
2765         * sysdeps/gnu/errlist.c: Regenerated.
2766
2767         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
2768         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
2769         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
2770         puts.
2771         * configure: Regenerated.
2772
2773 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
2774
2775         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
2776         default includes instead of AC_HEADER_CHECK.
2777         * sysdeps/i386/configure: Regenerated.
2778
2779         [BZ #10716]
2780         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
2781         * math/s_cacoshf.c (__cacoshf): Likewise.
2782         * math/s_cacoshl.c (__cacoshl): Likewise.
2783         * math/s_casinh.c (__casinh): Set signs of result from argument.
2784         * math/s_casinhf.c (__casinhf): Likewise.
2785         * math/s_casinhl.c (__casinhl): Likewise.
2786         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
2787         (casinh_test): Add more tests.
2788         * sysdeps/i386/fpu/libm-test-ulps: Update.
2789         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2790
2791 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
2792
2793         * po/zh_TW.po: Update from translation team.
2794
2795         * login/Makefile (distribute): Remove variable.
2796         * catgets/Makefile: Likewise.
2797         * mach/Makefile: Likewise.
2798         * malloc/Makefile: Likewise.
2799         * misc/Makefile: Likewise.
2800         * iconv/Makefile: Likewise.
2801         * nscd/Makefile: Likewise.
2802         * hurd/Makefile: Likewise.
2803         * manual/Makefile: Likewise.
2804         * locale/Makefile: Likewise.
2805         * intl/Makefile: Likewise.
2806         * conform/Makefile: Likewise.
2807         * nss/Makefile: Likewise.
2808         * time/Makefile: Likewise.
2809         * soft-fp/Makefile: Likewise.
2810         * dirent/Makefile: Likewise.
2811         * gmon/Makefile: Likewise.
2812         * po/Makefile: Likewise.
2813         * rt/Makefile: Likewise.
2814         * socket/Makefile: Likewise.
2815         * math/Makefile: Likewise.
2816         * signal/Makefile: Likewise.
2817         * debug/Makefile: Likewise.
2818         * elf/Makefile: Likewise.
2819         * timezone/Makefile: Likewise.
2820         * stdlib/Makefile: Likewise.
2821         * iconvdata/Makefile: Likewise.
2822         * sunrpc/Makefile: Likewise.
2823         * io/Makefile: Likewise.
2824         * argp/Makefile: Likewise.
2825         * inet/Makefile: Likewise.
2826         * hesiod/Makefile: Likewise.
2827         * grp/Makefile: Likewise.
2828         * csu/Makefile: Likewise.
2829         * wctype/Makefile: Likewise.
2830         * crypt/Makefile: Likewise.
2831         * libio/Makefile: Likewise.
2832         * string/Makefile: Likewise.
2833         * nis/Makefile: Likewise.
2834         * resolv/Makefile: Likewise.
2835         * stdio-common/Makefile: Likewise.
2836         * wcsmbs/Makefile: Likewise.
2837         * dlfcn/Makefile: Likewise.
2838         * posix/Makefile: Likewise.
2839
2840         * timezone/Makefile: Don't install timezone files, just the programs
2841         and scripts.
2842
2843 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
2844
2845         * nss/databases.def: Add missing gshadow entry.
2846
2847         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
2848
2849 2012-03-06  Marek Polacek  <polacek@redhat.com>
2850
2851         [BZ #13726]
2852         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
2853         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
2854         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
2855         * stdio-common/tst-long-dbl-fphex.c: New file.
2856
2857 2012-03-06  David S. Miller  <davem@davemloft.net>
2858
2859         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2860         (set_obp_int): New function.
2861         (get_obp_int): New function.
2862         (__get_clockfreq_via_dev_openprom): Likewise.
2863         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2864         Avoid unused variable warnings on 'val' and use builtin_expect.
2865         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
2866         __builtin_expect.
2867         (INLINE_CLONE_SYSCALL): Likewise.
2868
2869 2012-03-05  David S. Miller  <davem@davemloft.net>
2870
2871         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2872
2873 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
2874
2875         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2876
2877         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
2878         only for |x| >= 40.
2879         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2880
2881 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
2882
2883         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
2884         Replace gettimeofday with __vdso_gettimeofday.
2885
2886         * sysdeps/unix/sysv/linux/x86_64/init-first.c
2887         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
2888         __vdso_clock_gettime and __vdso_getcpu.
2889
2890         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
2891         time with __vdso_time.
2892
2893 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
2894
2895         * manual/lang.texi (size_t): Note types to which size_t may be
2896         equivalent with the GNU C Library, but do not describe when
2897         differences between them are significant.
2898
2899 2012-03-05  Andreas Jaeger  <aj@suse.de>
2900
2901         * sysdeps/i386/fpu/libm-test-ulps: Update.
2902
2903 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
2904
2905         [BZ #3976]
2906         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
2907         (__ieee754_pow): Save and restore rounding mode and use
2908         round-to-nearest for main computations.
2909         * math/libm-test.inc (pow_test_tonearest): New function.
2910         (pow_test_towardzero): Likewise.
2911         (pow_test_downward): Likewise.
2912         (pow_test_upward): Likewise.
2913         (main): Call the new functions.
2914         * sysdeps/i386/fpu/libm-test-ulps: Update.
2915         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2916
2917         [BZ #3976]
2918         * math/libm-test.inc (cosh_test_tonearest): New function.
2919         (cosh_test_towardzero): Likewise.
2920         (cosh_test_downward): Likewise.
2921         (cosh_test_upward): Likewise.
2922         (sinh_test_tonearest): Likewise.
2923         (sinh_test_towardzero): Likewise.
2924         (sinh_test_downward): Likewise.
2925         (sinh_test_upward): Likewise.
2926         (main): Call the new functions.
2927         * sysdeps/i386/fpu/libm-test-ulps: Update.
2928         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2929
2930 2012-03-05  Tom de Vries  <tom@codesourcery.com>
2931
2932         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
2933         default stack guard is set in last bytes.
2934         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
2935
2936 2012-03-05  Kees Cook  <keescook@chromium.org>
2937
2938         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
2939
2940         [BZ #13656]
2941         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
2942         possibly allocate from heap instead of stack.
2943         * stdio-common/bug-vfprintf-nargs.c: New file.
2944         * stdio-common/Makefile (tests): Add nargs overflow test.
2945
2946 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
2947
2948         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2949
2950 2012-03-03  Marek Polacek  <polacek@redhat.com>
2951
2952         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
2953         * math/math_private.h: Likewise.
2954         * stdlib/tst-strtod.c: Likewise.
2955         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2956         * sysdeps/x86_64/bits/atomic.h: Likewise.
2957
2958 2012-03-02  David S. Miller  <davem@davemloft.net>
2959
2960         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
2961         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
2962         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
2963         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
2964         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
2965         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
2966         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
2967         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
2968
2969 2012-03-02  Roland McGrath  <roland@hack.frob.com>
2970
2971         [BZ #13792]
2972         * manual/examples/README: New file, says the example source files
2973         can be used under GPL>=2.
2974         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
2975         line containing just "*/".
2976         * manual/examples/add.c: Add copyright header (GPL>=2).
2977         * manual/examples/argp-ex1.c: Likewise.
2978         * manual/examples/argp-ex2.c: Likewise.
2979         * manual/examples/argp-ex3.c: Likewise.
2980         * manual/examples/argp-ex4.c: Likewise.
2981         * manual/examples/atexit.c: Likewise.
2982         * manual/examples/db.c: Likewise.
2983         * manual/examples/dir.c: Likewise.
2984         * manual/examples/dir2.c: Likewise.
2985         * manual/examples/execinfo.c: Likewise.
2986         * manual/examples/filecli.c: Likewise.
2987         * manual/examples/filesrv.c: Likewise.
2988         * manual/examples/fmtmsgexpl.c: Likewise.
2989         * manual/examples/genpass.c: Likewise.
2990         * manual/examples/inetcli.c: Likewise.
2991         * manual/examples/inetsrv.c: Likewise.
2992         * manual/examples/isockad.c: Likewise.
2993         * manual/examples/longopt.c: Likewise.
2994         * manual/examples/memopen.c: Likewise.
2995         * manual/examples/memstrm.c: Likewise.
2996         * manual/examples/mkfsock.c: Likewise.
2997         * manual/examples/mkisock.c: Likewise.
2998         * manual/examples/mygetpass.c: Likewise.
2999         * manual/examples/pipe.c: Likewise.
3000         * manual/examples/popen.c: Likewise.
3001         * manual/examples/rprintf.c: Likewise.
3002         * manual/examples/search.c: Likewise.
3003         * manual/examples/select.c: Likewise.
3004         * manual/examples/setjmp.c: Likewise.
3005         * manual/examples/sigh1.c: Likewise.
3006         * manual/examples/sigusr.c: Likewise.
3007         * manual/examples/stpcpy.c: Likewise.
3008         * manual/examples/strdupa.c: Likewise.
3009         * manual/examples/strftim.c: Likewise.
3010         * manual/examples/strncat.c: Likewise.
3011         * manual/examples/subopt.c: Likewise.
3012         * manual/examples/swapcontext.c: Likewise.
3013         * manual/examples/termios.c: Likewise.
3014         * manual/examples/testopt.c: Likewise.
3015         * manual/examples/testpass.c: Likewise.
3016         * manual/examples/timeval_subtract.c: Likewise.
3017
3018         [BZ #13792]
3019         * manual/time.texi (Elapsed Time): Move timeval_subtract example
3020         function to ...
3021         * manual/timeval_subtract.c.texi: ... here, new file.
3022
3023 2012-03-02  David S. Miller  <davem@davemloft.net>
3024
3025         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
3026
3027 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
3028
3029         [BZ #3976]
3030         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
3031         (__sin): Save and restore rounding mode and use round-to-nearest
3032         for all computations.
3033         (__cos): Save and restore rounding mode and use round-to-nearest
3034         for all computations.
3035         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
3036         <fenv.h>.
3037         (tan): Save and restore rounding mode and use round-to-nearest for
3038         all computations.
3039         * math/libm-test.inc (cos_test_tonearest): New function.
3040         (cos_test_towardzero): Likewise.
3041         (cos_test_downward): Likewise.
3042         (cos_test_upward): Likewise.
3043         (sin_test_tonearest): Likewise.
3044         (sin_test_towardzero): Likewise.
3045         (sin_test_downward): Likewise.
3046         (sin_test_upward): Likewise.
3047         (tan_test_tonearest): Likewise.
3048         (tan_test_towardzero): Likewise.
3049         (tan_test_downward): Likewise.
3050         (tan_test_upward): Likewise.
3051         (main): Call the new functions.
3052         * sysdeps/i386/fpu/libm-test-ulps: Update.
3053         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3054
3055         [BZ #10135]
3056         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
3057         small n, then large n, before computing and testing k+n.
3058         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
3059         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
3060         Likewise.
3061         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
3062         Likewise.
3063         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
3064         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
3065         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
3066         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
3067         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
3068         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
3069         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
3070         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
3071         * math/libm-test.inc (scalbn_test): Add more tests.
3072         (scalbln_test): Likewise.
3073
3074         * manual/filesys.texi (mode_t): Describe constraints on size and
3075         signedness, not exact equivalence to a particular type.
3076         (ino_t): Likewise.
3077         (ino64_t): Likewise.
3078         (dev_t): Likewise.
3079         (nlink_t): Likewise.
3080         (blkcnt_t): Likewise.
3081         (blkcnt64_t): Likewise.
3082         * manual/llio.texi (off_t): Likewise.
3083
3084         [BZ #3976]
3085         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
3086         (__ieee754_exp): Save and restore rounding mode and use
3087         round-to-nearest for all computations.
3088         * math/libm-test.inc (exp_test_tonearest): New function.
3089         (exp_test_towardzero): Likewise.
3090         (exp_test_downward): Likewise.
3091         (exp_test_upward): Likewise.
3092         (main): Call the new functions.
3093         * sysdeps/i386/fpu/libm-test-ulps: Update.
3094         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3095
3096 2012-03-01  Chris Demetriou  <cgd@google.com>
3097
3098         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
3099         have predictable order.
3100
3101 2012-03-01  David S. Miller  <davem@davemloft.net>
3102
3103         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
3104
3105         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
3106         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
3107         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
3108         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
3109
3110         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
3111         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
3112         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
3113         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
3114         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
3115         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
3116         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
3117         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
3118         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
3119
3120         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3121
3122         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
3123         * sysdeps/sparc/fpu/libm-test-ulps: to here.
3124         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
3125
3126         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
3127         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3128         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3129         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
3130         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
3131         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
3132         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
3133         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3134         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3135         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
3136         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
3137         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3138         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
3139         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
3140         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3141         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3142         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
3143         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
3144         * sysdeps/sparc/elf/configure: Regenerated.
3145
3146 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
3147
3148         * configure.in (AS, LD): Require binutils 2.20 or later.
3149         * configure: Regenerated.
3150         * manual/install.texi (Tools for Compilation): Give binutils 2.20
3151         as required minimum version.
3152         * INSTALL: Regenerated.
3153
3154         [BZ #2541]
3155         [BZ #4108]
3156         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
3157         before squaring exponent.
3158         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
3159         bottom long double and 27 bits of top long double before squaring
3160         exponent.
3161         * math/libm-test.inc (erfc_test): Add more tests.
3162         * sysdeps/i386/fpu/libm-test-ulps: Update.
3163         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3164         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3165
3166 2012-03-01  Kai Tietz  <ktietz@redhat.com>
3167
3168         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
3169         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
3170         containing bit-fields.
3171         * soft-fp/extended.h (_FP_UNION_E): Likewise.
3172         * soft-fp/single.h (_FP_UNION_S): Likewise.
3173         * soft-fp/double.h (_FP_UNION_D): Likewise.
3174
3175 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
3176
3177         [BZ #13786]
3178         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
3179         not include ../strcmp.S.
3180         [USE_AS_STRNCASECMP_L]: Likewise.
3181         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
3182         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
3183         * sysdeps/i386/i686/multiarch/strncase_l-c.c
3184         (__strncasecmp_l_ia32): Define as alias to
3185         __strncasecmp_l_nonascii.
3186
3187         [BZ #5794]
3188         * math/libm-test.inc (expm1_test): Add test for bug 5794.
3189         * sysdeps/i386/fpu/libm-test-ulps: Update.
3190         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3191
3192         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
3193         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3194
3195 2012-02-29  Jeff Law  <law@redhat.com>
3196
3197         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
3198         out of bounds read.
3199
3200 2012-02-29  Marek Polacek  <polacek@redhat.com>
3201
3202         [BZ #13706]
3203         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
3204         * elf/Makefile: Add rules to run tst-unused-dep.out.
3205
3206 2012-02-28  David S. Miller  <davem@davemloft.net>
3207
3208         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
3209         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
3210         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
3211         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
3212         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
3213         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
3214
3215 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
3216
3217         * math/libm-test.inc (llround_test): Move one test from
3218         lround_test.  Use TEST_f_L in moved test.
3219         (lround_test): Move misplaced test to llround_test.  Add testcase
3220         from bug 2561.
3221
3222 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
3223
3224         * sysdeps/x86_64/fpu/e_expf.S: New file.
3225         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
3226
3227 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
3228
3229         [BZ #13637]
3230         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
3231         of remain_len that may cause incomplete multi-byte character and
3232         false match.
3233         * posix/bug-regex33.c: New file.
3234         * posix/Makefile (tests): Add bug-regex33.
3235
3236 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
3237
3238         * manual/macros.texi: New file.
3239         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
3240         * manual/libc.texinfo: Include macros.texi.
3241         * manual/creatute.texi: Likewise.
3242         * manual/install.texi: Likewise.
3243         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
3244         @glibcadj{} in references to the GNU C Library.
3245         * manual/charset.texi: Likewise.
3246         * manual/conf.texi: Likewise.
3247         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
3248         when not using those macros.
3249         * manual/creature.texi: Likewise.
3250         * manual/crypt.texi: Likewise.
3251         * manual/errno.texi: Likewise.
3252         * manual/filesys.texi: Likewise.
3253         * manual/header.texi: Likewise.
3254         * manual/install.texi: Likewise.
3255         * manual/intro.texi: Likewise.
3256         * manual/io.texi: Likewise.
3257         * manual/job.texi: Likewise.
3258         * manual/lang.texi: Likewise.
3259         * manual/libc.texiinfo: Likewise.
3260         * manual/llio.texi: Likewise.
3261         * manual/locale.texi: Likewise.
3262         * manual/maint.texi: Likewise.
3263         * manual/math.texi: Likewise.
3264         * manual/memory.texi: Likewise.
3265         * manual/message.texi: Likewise.
3266         * manual/nss.texi: Likewise.
3267         * manual/pattern.texi: Likewise.
3268         * manual/process.texi: Likewise.
3269         * manual/resource.texi: Likewise.
3270         * manual/search.texi: Likewise.
3271         * manual/setjmp.texi: Likewise.
3272         * manual/signal.texi: Likewise.
3273         * manual/socket.texi: Likewise.
3274         * manual/startup.texi: Likewise.
3275         * manual/stdio.texi: Likewise.
3276         * manual/string.texi: Likewise.
3277         * manual/sysinfo.texi: Likewise.
3278         * manual/syslog.texi: Likewise.
3279         * manual/terminal.texi: Likewise.
3280         * manual/time.texi: Likewise.
3281         * manual/users.texi: Likewise.
3282         * INSTALL: Regenerated.
3283         * NOTES: Regenerated.
3284         * sysdeps/gnu/errlist.c: Regenerated.
3285
3286 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
3287
3288         * include/dirent.h: Include <dirstream.h> before
3289         <dirent/dirent.h>.
3290
3291 2012-02-28  David S. Miller  <davem@davemloft.net>
3292
3293         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
3294         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
3295         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
3296         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
3297
3298 2012-02-27  David S. Miller  <davem@davemloft.net>
3299
3300         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
3301         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
3302         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
3303         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
3304
3305         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
3306         frame pointer instead of stack pointer relative arg slot.
3307         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
3308         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
3309         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
3310
3311 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
3312
3313         [BZ #3992]
3314         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
3315
3316 2012-02-27  David S. Miller  <davem@davemloft.net>
3317
3318         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
3319         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
3320         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
3321         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
3322         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
3323         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
3324         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
3325         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
3326
3327 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
3328
3329         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
3330         later.  Allow versions 5-9.
3331         * configure: Regenerated.
3332         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
3333         required minimum version and 4.6 as recommended version.  Do not
3334         mention bugs in GCC 2.7 and 2.8.
3335         * INSTALL: Regenerated.
3336
3337 2012-02-27  David S. Miller  <davem@davemloft.net>
3338
3339         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
3340         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
3341         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
3342         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
3343         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
3344         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
3345         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
3346         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
3347
3348         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
3349         manipulate bits before adding and subtracting TWO112[sx].
3350         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
3351
3352 2012-02-27  Roland McGrath  <roland@hack.frob.com>
3353
3354         [BZ #13775]
3355         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
3356         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
3357         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
3358         being in POSIX, because they are in 1003.1-2008.
3359
3360         * rt/tst-aio.c: Include <fcntl.h>.
3361         * rt/tst-aio7.c: Likewise.
3362         * rt/tst-aio64.c: Likewise.
3363
3364         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
3365
3366 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
3367
3368         * manual/install.texi (--with-headers): Describe headers as
3369         interface headers, not private headers.
3370         (Specific advice for GNU/Linux systems): Describe use of headers
3371         from "make headers_install", not private headers from older
3372         kernels.
3373         * INSTALL: Regenerated.
3374         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
3375         Change to 2.6.19.
3376         * sysdeps/unix/sysv/linux/configure: Regenerated.
3377
3378         * manual/llio.texi (fclean): Remove documentation.
3379
3380         * manual/Makefile (libc-texi-generated): New variable.  Include
3381         version.texi.
3382         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
3383         $(libc-texi-generated), not duplicated list of files.
3384         (version.texi, stamp-version): New rules.
3385         (realclean): Remove $(libc-texi-generated), not individual files
3386         from that list.  Do not remove dir-add.texinfo.
3387         * manual/libc.texinfo: Comment out uses of edition numbers and
3388         references to printed manual.  Remove last-updated dates.
3389         (EDITION): Comment out.
3390         (ISBN): Likewise.
3391         (VERSION, UPDATED): Remove.
3392         (version.texi): Include.
3393
3394 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
3395
3396         * sysdeps/posix/spawni.c: Include <signal.h>.
3397         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
3398         * sysdeps/pthread/aio_fsync.c: Likewise.
3399
3400 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
3401
3402         * conform/Makefile (tests): Run only when not cross-compiling and
3403         when fast-check is not defined.
3404
3405         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
3406         * conform/data/limits.h-data: Fixes for POSIX2008.
3407         * conform/run-conformtest.sh: Run all tests.
3408         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
3409         headers.
3410         * include/bits/dlfcn.h: Likewise.
3411         * include/langinfo.h: Likewise.
3412         * include/monetary.h: Likewise.
3413         * include/sys/poll.h: Likewise.
3414
3415         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
3416         for __USE_GNU.
3417         * posix/spawn.h: Define __need_sigset_t.
3418         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
3419         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
3420         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
3421         to get sigevent_t only.
3422         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
3423         only for __USE_GNU.
3424         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3425         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
3426         process_vm_writev only for __USE_GNU.
3427         * termios/termios.h: Declare tcgetsid also for POSIX2008.
3428
3429         * conform/Makefile: For now ignore errors from run-conformtest.
3430         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
3431         POSIX to avoid namespace pollution.  Don't prepend headers.
3432         * conform/data/aio.h-data: Fixes for POSIX testing.
3433         * conform/data/fcntl.h-data: Likewise.
3434         * conform/data/glob.h-data: Likewise.
3435         * conform/data/grp.h-data: Likewise.
3436         * conform/data/pthread.h-data: Likewise.
3437         * conform/data/pwd.h-data: Likewise.
3438         * conform/data/signal.h-data: Likewise.
3439         * conform/data/spawn.h-data: Likewise.
3440         * conform/data/stdio.h-data: Likewise.
3441         * conform/data/stdlib.h-data: Likewise.
3442         * conform/data/stropts.h-data: Likewise.
3443         * conform/data/sys/mman.h-data: Likewise.
3444         * conform/data/sys/stat.h-data: Likewise.
3445         * conform/data/sys/types.h-data: Likewise.
3446         * conform/data/sys/wait.h-data: Likewise.
3447         * conform/data/time.h-data: Likewise.
3448         * conform/data/unistd.h-data: Likewise.
3449         * conform/data/utime.h-data: Likewise.
3450
3451         * io/sys/stat.h: fchmod was always in POSIX.
3452         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
3453         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
3454         * rt/aio.h: Define __need_timespec before including <time.h>.
3455         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
3456         struct.  Add forward declaration of pthread_attr_t and use it in
3457         sigevent.
3458         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3459         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3460         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
3461         always remove CLK_TCK definition.
3462
3463 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
3464
3465         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
3466
3467 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
3468
3469         * conform/run-conformtest.sh: New file.
3470         * conform/Makefile: Run run-conformtest for tests.
3471         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
3472         support.
3473
3474         * conform/data/uchar.h-data: New file.
3475         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
3476         * conform/data/arpa/inet.h-data: Likewise.
3477         * conform/data/assert.h-data: Likewise.
3478         * conform/data/complex.h-data: Likewise.
3479         * conform/data/cpio.h-data: Likewise.
3480         * conform/data/ctype.h-data: Likewise.
3481         * conform/data/dirent.h-data: Likewise.
3482         * conform/data/dlfcn.h-data: Likewise.
3483         * conform/data/errno.h-data: Likewise.
3484         * conform/data/fcntl.h-data: Likewise.
3485         * conform/data/float.h-data: Likewise.
3486         * conform/data/fmtmsg.h-data: Likewise.
3487         * conform/data/fnmatch.h-data: Likewise.
3488         * conform/data/ftw.h-data: Likewise.
3489         * conform/data/glob.h-data: Likewise.
3490         * conform/data/grp.h-data: Likewise.
3491         * conform/data/iconv.h-data: Likewise.
3492         * conform/data/inttypes.h-data: Likewise.
3493         * conform/data/langinfo.h-data: Likewise.
3494         * conform/data/libgen.h-data: Likewise.
3495         * conform/data/limits.h-data: Likewise.
3496         * conform/data/locale.h-data: Likewise.
3497         * conform/data/math.h-data: Likewise.
3498         * conform/data/monetary.h-data: Likewise.
3499         * conform/data/mqueue.h-data: Likewise.
3500         * conform/data/ndbm.h-data: Likewise.
3501         * conform/data/net/if.h-data: Likewise.
3502         * conform/data/netdb.h-data: Likewise.
3503         * conform/data/netinet/in.h-data: Likewise.
3504         * conform/data/nl_types.h-data: Likewise.
3505         * conform/data/poll.h-data: Likewise.
3506         * conform/data/pthread.h-data: Likewise.
3507         * conform/data/pwd.h-data: Likewise.
3508         * conform/data/regex.h-data: Likewise.
3509         * conform/data/sched.h-data: Likewise.
3510         * conform/data/search.h-data: Likewise.
3511         * conform/data/semaphore.h-data: Likewise.
3512         * conform/data/setjmp.h-data: Likewise.
3513         * conform/data/signal.h-data: Likewise.
3514         * conform/data/spawn.h-data: Likewise.
3515         * conform/data/stdarg.h-data: Likewise.
3516         * conform/data/stdio.h-data: Likewise.
3517         * conform/data/stdlib.h-data: Likewise.
3518         * conform/data/string.h-data: Likewise.
3519         * conform/data/strings.h-data: Likewise.
3520         * conform/data/stropts.h-data: Likewise.
3521         * conform/data/sys/ipc.h-data: Likewise.
3522         * conform/data/sys/mman.h-data: Likewise.
3523         * conform/data/sys/msg.h-data: Likewise.
3524         * conform/data/sys/resource.h-data: Likewise.
3525         * conform/data/sys/select.h-data: Likewise.
3526         * conform/data/sys/sem.h-data: Likewise.
3527         * conform/data/sys/shm.h-data: Likewise.
3528         * conform/data/sys/socket.h-data: Likewise.
3529         * conform/data/sys/stat.h-data: Likewise.
3530         * conform/data/sys/statvfs.h-data: Likewise.
3531         * conform/data/sys/time.h-data: Likewise.
3532         * conform/data/sys/timeb.h-data: Likewise.
3533         * conform/data/sys/times.h-data: Likewise.
3534         * conform/data/sys/types.h-data: Likewise.
3535         * conform/data/sys/uio.h-data: Likewise.
3536         * conform/data/sys/un.h-data: Likewise.
3537         * conform/data/sys/utsname.h-data: Likewise.
3538         * conform/data/sys/wait.h-data: Likewise.
3539         * conform/data/syslog.h-data: Likewise.
3540         * conform/data/tar.h-data: Likewise.
3541         * conform/data/termios.h-data: Likewise.
3542         * conform/data/utime.h-data: Likewise.
3543         * conform/data/utmpx.h-data: Likewise.
3544         * conform/data/varargs.h-data: Likewise.
3545         * conform/data/wchar.h-data: Likewise.
3546         * conform/data/wctype.h-data: Likewise.
3547         * conform/data/wordexp.h-data: Likewise.
3548
3549         * include/stropts.h: New file.
3550         * include/uchar.h: New file.
3551         * include/aio.h: Changes to allow conformtest.pl to use the headers.
3552         * include/assert.h: Likewise.
3553         * include/ctype.h: Likewise.
3554         * include/dirent.h: Likewise.
3555         * include/dlfcn.h: Likewise.
3556         * include/fcntl.h: Likewise.
3557         * include/fnmatch.h: Likewise.
3558         * include/glob.h: Likewise.
3559         * include/grp.h: Likewise.
3560         * include/libio.h: Likewise.
3561         * include/locale.h: Likewise.
3562         * include/math.h: Likewise.
3563         * include/net/if.h: Likewise.
3564         * include/netdb.h: Likewise.
3565         * include/netinet/in.h: Likewise.
3566         * include/pthread.h: Likewise.
3567         * include/pwd.h: Likewise.
3568         * include/regex.h: Likewise.
3569         * include/sched.h: Likewise.
3570         * include/search.h: Likewise.
3571         * include/setjmp.h: Likewise.
3572         * include/signal.h: Likewise.
3573         * include/stdio.h: Likewise.
3574         * include/stdlib.h: Likewise.
3575         * include/string.h: Likewise.
3576         * include/sys/cdefs.h: Likewise.
3577         * include/sys/mman.h: Likewise.
3578         * include/sys/msg.h: Likewise.
3579         * include/sys/resource.h: Likewise.
3580         * include/sys/select.h: Likewise.
3581         * include/sys/socket.h: Likewise.
3582         * include/sys/stat.h: Likewise.
3583         * include/sys/statvfs.h: Likewise.
3584         * include/sys/time.h: Likewise.
3585         * include/sys/times.h: Likewise.
3586         * include/sys/uio.h: Likewise.
3587         * include/sys/utsname.h: Likewise.
3588         * include/sys/wait.h: Likewise.
3589         * include/termios.h: Likewise.
3590         * include/time.h: Likewise.
3591         * include/ulimit.h: Likewise.
3592         * include/unistd.h: Likewise.
3593         * include/utime.h: Likewise.
3594         * include/wchar.h: Likewise.
3595         * include/wctype.h: Likewise.
3596         * include/wordexp.h: Likewise.
3597
3598         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
3599
3600         * time/time.h: TIME_UTC must be a macro.
3601         Make timespec_get available for ISO C11 only as well.
3602
3603 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
3604
3605         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
3606         Reported by Peng Haitao <penght@cn.fujitsu.com>.
3607
3608 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3609
3610         * configure.in: Use -o not -a in test for unsupported multi-arch.
3611
3612 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3613
3614         * manual/texinfo.tex: Update to version 2012-01-19.16.
3615
3616 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3617
3618         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
3619
3620 2012-02-24  Roland McGrath  <roland@hack.frob.com>
3621
3622         [BZ #13738]
3623         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
3624         * manual/fdl-1.3.texi: New file.
3625         * manual/fdl-1.1.texi: File removed.
3626
3627         [BZ #13738]
3628         * manual/libc.texinfo (FDL_VERSION): New @set.
3629         Use it for mention of FDL in cover text.
3630         (Documentation License): Use it in @include file name.
3631
3632 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3633             Roland McGrath  <roland@hack.frob.com>
3634
3635         [BZ #5461]
3636         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
3637         not LONG_LONG_MAX and LONG_LONG_MIN.
3638         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
3639         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
3640         name.
3641         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
3642
3643 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3644
3645         [BZ #2547]
3646         [BZ #11365]
3647         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
3648         manipulate bits before adding and subtracting TWO23[sx].
3649         * math/libm-test.inc (nearbyint_test): Add more tests.
3650
3651 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3652
3653         [BZ #2548]
3654         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
3655         bits before adding and subtracting TWO23[sx].
3656         * math/libm-test.inc (rint_test): Add more tests.
3657         (rint_test_tonearest): Likewise.
3658         (rint_test_towardzero): Likewise.
3659         (rint_test_downward): Likewise.
3660         (rint_test_upward: Likewise.
3661
3662 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3663
3664         [BZ #10110]
3665         * include/stdc-predef.h: New file.  Extracted from features.h.
3666         * include/features.h: Include stdc-predef.h.
3667         * Makefile (headers): Add stdc-predef.h.
3668         * CONFORMANCE (Compiler limitations): Update.
3669
3670 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3671
3672         * manual/libc.texinfo (VERSION, UPDATED): Revert.
3673
3674 2012-02-21  David S. Miller  <davem@davemloft.net>
3675
3676         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
3677         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
3678
3679 2012-02-20  David S. Miller  <davem@davemloft.net>
3680
3681         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
3682         using a normal save/restore sequence, rather than allocating a
3683         dummy stack frame just to store a frame pointer and restore.
3684         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3685
3686 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3687
3688         * manual/install.texi: Fix stray word in line-wrapped comment.
3689
3690 2012-02-20  David S. Miller  <davem@davemloft.net>
3691
3692         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
3693         both binutils and gcc support GOTDATA.
3694
3695         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
3696         "rd %pc" in the PIC register setup sequences.
3697
3698         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
3699         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
3700         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3701         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
3702         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3703         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
3704         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
3705         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3706         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3707         (SYSCALL_ERROR_HANDLER): Likewise.
3708         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
3709         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3710         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3711         (SYSCALL_ERROR_HANDLER): Likewise.
3712
3713         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
3714         (HAVE_GCC_GOTDATA): New.
3715         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
3716         relocation support in both binutils and gcc.
3717         * sysdeps/sparc/elf/configure: Regenerate.
3718
3719         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
3720         * sysdeps/sparc/sparc32/elf/configure: Delete.
3721         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
3722         * sysdeps/sparc/sparc64/elf/configure: Delete.
3723         * sysdeps/sparc/elf/configure.in: New file.
3724         * sysdeps/sparc/elf/configure: Generate.
3725
3726         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
3727         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
3728         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
3729         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
3730         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
3731
3732 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3733
3734         * manual/install.texi: Do not mention specific glibc version
3735         numbers.
3736         * manual/libc.texinfo (VERSION, UPDATED): Update.
3737         (@copying): Use @copyright{} and range of years.
3738
3739 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3740
3741         [BZ #13695]
3742         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
3743         [crti.S not in sysdirs] (generated): Do not append.
3744         [crti.S not in sysdirs] (omit-deps): Likewise.
3745         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
3746         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
3747         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
3748         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
3749         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
3750         Likewise.
3751         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
3752         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
3753         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
3754         * csu/defs.awk: Remove file.
3755         * sysdeps/generic/initfini.c: Likewise.
3756         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
3757         variable.
3758         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
3759         Likewise.
3760
3761 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3762
3763         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
3764         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
3765         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
3766         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
3767         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3768         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
3769         <bits/epoll.h>.
3770         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
3771         (__EPOLL_PACKED): Define to empty if not defined by
3772         <bits/epoll.h>.
3773         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
3774         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3775         bits/epoll.h.
3776
3777 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3778
3779         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
3780         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
3781         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
3782         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
3783         <bits/timerfd.h>.
3784         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
3785         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3786         bits/timerfd.h.
3787
3788 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3789
3790         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
3791         in C locale.
3792         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3793         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
3794         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
3795         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3796
3797 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
3798
3799         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
3800         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
3801
3802 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
3803
3804         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
3805         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
3806         defined.
3807         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
3808         Likewise.
3809         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
3810         entry for 2.16.
3811
3812 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
3813
3814         * math/w_acos.c: Use non-signaling floating-point comparisons.
3815         * math/w_acosf.c: Likewise.
3816         * math/w_acosh.c: Likewise.
3817         * math/w_acoshf.c: Likewise.
3818         * math/w_acoshl.c: Likewise.
3819         * math/w_acosl.c: Likewise.
3820         * math/w_asin.c: Likewise.
3821         * math/w_asinf.c: Likewise.
3822         * math/w_asinl.c: Likewise.
3823         * math/w_atanh.c: Likewise.
3824         * math/w_atanhf.c: Likewise.
3825         * math/w_atanhl.c: Likewise.
3826         * math/w_exp2.c: Likewise.
3827         * math/w_exp2f.c: Likewise.
3828         * math/w_exp2l.c: Likewise.
3829         * math/w_j0.c: Likewise.
3830         * math/w_j0f.c: Likewise.
3831         * math/w_j0l.c: Likewise.
3832         * math/w_j1.c: Likewise.
3833         * math/w_j1f.c: Likewise.
3834         * math/w_j1l.c: Likewise.
3835         * math/w_jn.c: Likewise.
3836         * math/w_jnf.c: Likewise.
3837         * math/w_log.c: Likewise.
3838         * math/w_log10.c: Likewise.
3839         * math/w_log10f.c: Likewise.
3840         * math/w_log10l.c: Likewise.
3841         * math/w_log2.c: Likewise.
3842         * math/w_log2f.c: Likewise.
3843         * math/w_log2l.c: Likewise.
3844         * math/w_logf.c: Likewise.
3845         * math/w_logl.c: Likewise.
3846         * math/w_sqrt.c: Likewise.
3847         * math/w_sqrtf.c: Likewise.
3848         * math/w_sqrtl.c: Likewise.
3849         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
3850         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
3851         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
3852         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
3853         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
3854
3855 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3856
3857         [BZ #9739]
3858         * manual/string.texi (strnlen): Use correct parameter name in
3859         equivalent expression.
3860
3861 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3862
3863         [BZ #11174]
3864         * manual/users.texi (seteuid): Consistently use neweuid for
3865         argument name.
3866
3867 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3868
3869         [BZ #13704]
3870         * manual/nss.texi (Services in the NSS configuration): Correct
3871         list of services in example configuration file.
3872
3873 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
3874
3875         [BZ #11322]
3876         * manual/arith.texi: Remove statements about negative zero
3877         behaving identically to zero.
3878
3879 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
3880
3881         [BZ #5993]
3882         * manual/install.texi: Do not document upgrading from libc5.
3883
3884 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
3885
3886         [BZ #4596]
3887         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
3888
3889 2012-02-18  David S. Miller  <davem@davemloft.net>
3890
3891         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
3892         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
3893         %o7 across the call.
3894         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
3895         instead.
3896         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
3897         SETUP_PIC_REG_LEAF.
3898         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3899         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
3900         * sysdeps/sparc/crtn.S: Likewise.
3901
3902 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
3903
3904         * aout/Makefile: Remove.
3905
3906 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
3907
3908         [BZ #13058]
3909         * manual/examples/argp-ex1.c (main): Format definition in GNU
3910         style.
3911         * manual/examples/argp-ex2.c (main): Likewise.
3912         * manual/examples/argp-ex3.c (main): Likewise.
3913         * manual/examples/argp-ex4.c (main): Likewise.
3914         * manual/examples/longopt.c (main): Use new-style prototype
3915         definition.
3916         * manual/examples/strncat.c (main): Specify return type and use
3917         (void) for arguments.
3918         * manual/examples/subopt.c (main): Use char **argv argument.
3919
3920 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3921
3922         [BZ #5077]
3923         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
3924         rounding modes.
3925
3926 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
3927
3928         [BZ #6907]
3929         * manual/string.texi (strchr): Change when strchrnul is
3930         recommended.
3931
3932 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
3933
3934         [BZ #174]
3935         * manual/locale.texi (setlocale): Document LOCPATH.
3936
3937 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3938
3939         [BZ #10210]
3940         * manual/process.texi (execle): Move @dots{} before last argument.
3941
3942 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
3943
3944         [BZ #12047]
3945         * manual/charset.texi (Generic Charset Conversion): Fix typo
3946         (LC_TYPE -> LC_CTYPE).
3947
3948 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
3949
3950         [BZ #5805]
3951         * manual/arith.texi (scalbn): Use @var{} on parameter names.
3952         (scalbnf): Likewise.
3953         (scalbnl): Likewise.
3954         (scalbln): Likewise.
3955         (scalblnf): Likewise.
3956         (scalblnl): Likewise.
3957         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
3958         (vwarnx): Likewise.
3959         (verr): Likewise.
3960         (verrx): Likewise.
3961         * manual/filesys.texi (telldir): Use braces around return type.
3962         * manual/llio.texi (mmap): Add space after comma.
3963         (mmap64): Likewise.
3964         * manual/math.texi (jn): Use @var{} on parameter names.
3965         (jnf): Likewise.
3966         (jnl): Likewise.
3967         (yn): Likewise.
3968         (ynf): Likewise.
3969         (ynl): Likewise.
3970         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
3971         line.
3972         * manual/resource.texi (ulimit): Use @dots{} instead of literal
3973         "...".
3974         (sched_get_priority_min): Remove semicolon on @deftypefun line.
3975         (sched_get_priority_max): Likewise.
3976         * manual/signal.texi (sigvec): Add space after comma.
3977         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
3978         names.
3979         (if_indextoname): Likewise.
3980         (if_freenameindex): Likewise.
3981         (sendto): Use ',' instead of '.' in prototype.
3982         * manual/startup.texi (syscall): Use @dots{} instead of literal
3983         "...".
3984         * manual/stdio.texi (__fpending): Separate initial words of
3985         paragraph from @deftypefun line.
3986         * manual/syslog.texi (syslog): Use @dots{} instead of literal
3987         "...".
3988         (vsyslog): Use @var{} on parameter names.
3989         * manual/terminal.texi (stty): Use @var{} on parameter names.
3990         * manual/users.texi (getutmp): Use @var{} on parameter names.
3991         (getutmpx): Likewise.
3992
3993 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3994
3995         [BZ #6884]
3996         * manual/stdio.texi (fopen): Fix typos in description of
3997         ",ccs=STRING".
3998
3999 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
4000
4001         [BZ #4026]
4002         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
4003         get clock_id definition.
4004
4005 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
4006
4007         [BZ #4822]
4008         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
4009         (madvise): Cast every argument to void on its own.
4010
4011 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4012
4013         [BZ #9902]
4014         * manual/startup.texi (Exit Status): Fix typo.
4015
4016 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
4017
4018         [BZ #10140]
4019         * manual/examples/argp-ex1.c: Include <stdlib.h>.
4020         * manual/examples/argp-ex2.c: Likewise.
4021         * manual/examples/argp-ex3.c: Likewise.
4022
4023 2012-02-16  Richard Henderson  <rth@redhat.com>
4024
4025         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
4026         * sysdeps/s390/s390-32/initfini.c: Remove.
4027         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
4028         * sysdeps/s390/s390-64/initfini.c: Remove.
4029
4030 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4031
4032         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
4033         compiler output for sysdeps/generic/initfini.c.
4034         * sysdeps/sh/elf/initfini.c: Remove file.
4035
4036 2012-02-16  David S. Miller  <davem@davemloft.net>
4037
4038         [BZ #11494]
4039         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
4040
4041         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
4042         * sysdeps/sparc/crti.S: New file.
4043         * sysdeps/sparc/crtn.S: New file.
4044         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
4045         * sysdeps/sparc/sparc64/Makefile: Likewise.
4046
4047 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
4048
4049         [BZ #3335]
4050         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
4051
4052 2012-02-15  Roland McGrath  <roland@hack.frob.com>
4053
4054         [BZ #4822]
4055         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
4056
4057         * mach/devstream.c (cookie_io_functions_t): Macro removed.
4058         (write, read, close): Likewise.
4059         Patch by Aurelien Jarno <aurelien@aurel32.net>.
4060
4061 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
4062
4063         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
4064         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
4065         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
4066         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
4067         <bits/signalfd.h>.
4068         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
4069         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4070         bits/signalfd.h.
4071
4072 2012-02-14  Marek Polacek  <polacek@redhat.com>
4073
4074         * sysdeps/x86_64/crti.S: New file.
4075         * sysdeps/x86_64/crtn.S: New file.
4076         * sysdeps/x86_64/elf/initfini.c: Remove file.
4077
4078 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
4079
4080         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
4081         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
4082         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
4083         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
4084         <bits/inotify.h>.
4085         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
4086         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4087         bits/inotify.h.
4088
4089 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
4090
4091         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
4092         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
4093         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
4094         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
4095         <bits/eventfd.h>.
4096         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
4097         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4098         bits/eventfd.h.
4099
4100 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
4101
4102         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
4103         __feraiseexcept instead of feraiseexcept.
4104
4105         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
4106         nanosleep invocations.
4107         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
4108         strings, and add error checking for a nanosleep invocations.
4109
4110 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4111
4112         Replace FSF snail mail address with URLs, as per GNU coding standards.
4113         Most of the snail mail addresses were wrong anyway, and omitting
4114         them makes the source code easier to maintain.  Almost all of the
4115         changes are to license notices and to locale LC_IDENTIFICATION
4116         addresses, except for this one:
4117         * manual/libc.texinfo: In "Published by", give the FSF's URL,
4118         not its snail mail address.
4119
4120 2012-02-09  Richard Henderson  <rth@twiddle.net>
4121
4122         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
4123         of kernel-features.h.
4124
4125         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
4126
4127 2012-02-08  Marek Polacek  <polacek@redhat.com>
4128
4129         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
4130         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
4131         * sysdeps/gnu/_G_config.h: Likewise.
4132         * sysdeps/generic/_G_config.h: Likewise.
4133
4134 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
4135
4136         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
4137         tests.
4138         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4139
4140         * sysdeps/powerpc/powerpc32/crti.S: New file.
4141         * sysdeps/powerpc/powerpc32/crtn.S: New file.
4142         * sysdeps/powerpc/powerpc64/crti.S: New file.
4143         * sysdeps/powerpc/powerpc64/crtn.S: New file.
4144
4145         * Makeconfig (have-initfini): Don't set.
4146         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
4147         * configure.in (nopic_initfini): Don't substitute.
4148         * config.h.in (HAVE_INITFINI): Don't #undef.
4149         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
4150         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
4151
4152 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
4153
4154         Support crti.S and crtn.S provided directly by architectures.
4155         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
4156         [crti.S in sysdirs] (omit-deps): Likewise.
4157         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
4158         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
4159         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
4160         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
4161         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
4162         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
4163         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
4164         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
4165         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
4166         compiler output for sysdeps/generic/initfini.c.
4167         * sysdeps/i386/elf/Makefile: Remove file.
4168         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
4169
4170 2012-02-07  Marek Polacek  <polacek@redhat.com>
4171
4172         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
4173         * sysdeps/gnu/_G_config.h: Likewise.
4174         * sysdeps/mach/hurd/_G_config.h: Likewise.
4175
4176 2012-02-07  Marek Polacek  <polacek@redhat.com>
4177
4178         * math/Makefile (tests): Add tst-CMPLX2.
4179         * math/tst-CMPLX2.c: New file.
4180
4181 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
4182
4183         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
4184
4185         * math/libm-test.inc (jn_test): Add missing L suffix.
4186
4187 2012-02-06  Marek Polacek  <polacek@redhat.com>
4188
4189         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
4190         * sysdeps/i386/fpu/e_powf.S: Likewise.
4191         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4192         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
4193         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4194         * sysdeps/i386/fpu/e_pow.S: Likewise.
4195         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4196         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4197         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4198         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4199         * sysdeps/i386/fpu/e_log2.S: Likewise.
4200         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4201         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4202         * sysdeps/i386/fpu/e_powl.S: Likewise.
4203         * sysdeps/i386/fpu/s_log1p.S: Likewise.
4204         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4205         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4206         * sysdeps/i386/fpu/e_logl.S: Likewise.
4207         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4208         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
4209         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4210         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4211         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4212         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4213         * sysdeps/i386/fpu/e_log.S: Likewise.
4214         * sysdeps/i386/fpu/s_cexp.S: Likewise.
4215         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4216         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
4217         * sysdeps/i386/fpu/e_logf.S: Likewise.
4218         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4219         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4220         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
4221         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4222         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
4223         * sysdeps/i386/fpu/e_log10.S: Likewise.
4224         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4225         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4226         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4227         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4228         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4229         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4230         * sysdeps/i386/asm-syntax.h: Likewise.
4231         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4232         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4233         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4234         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4235         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
4236         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4237         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4238         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4239         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4240         * sysdeps/powerpc/sysdep.h: Likewise.
4241         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
4242         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4243
4244 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
4245
4246         [BZ #411]
4247         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
4248
4249 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
4250
4251         * sysdeps/i386/sysdep.h: Include <features.h>.
4252         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
4253         version.
4254
4255 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
4256
4257         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
4258         Define.
4259         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
4260         LOAD_PIC_REG_STR.
4261
4262 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4263
4264         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
4265         (SETUP_PIC_REG): Use GET_PC_THUNK.
4266         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
4267         macro.
4268
4269 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4270
4271         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
4272         for non-PIC compilation.
4273         (SETUP_PIC_REG): Add .p2align directive.
4274         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
4275         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
4276         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
4277         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
4278         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
4279         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
4280         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
4281         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
4282         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
4283         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
4284         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
4285         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
4286         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
4287         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
4288         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
4289         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
4290         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
4291         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
4292         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
4293         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
4294         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
4295         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
4296         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
4297         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
4298         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
4299         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
4300         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
4301         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
4302         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
4303         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
4304         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
4305         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
4306         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
4307         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
4308         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
4309         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
4310         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
4311         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
4312         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
4313         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
4314         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
4315
4316 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4317
4318         * math/tst-CMPLX.c: Include <stdio.h>.
4319
4320 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
4321
4322         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
4323         float.
4324         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
4325         * sysdeps/sparc/bits/mathdef.h: Likewise.
4326
4327 2012-01-31  Marek Polacek  <polacek@redhat.com>
4328
4329         * libio/libio.h: Don't define _PARAMS.
4330         * locale/programs/config.h: Don't define PARAMS.
4331         * stdlib/strtol_l.c: Likewise.
4332         (__strtol_l): Remove PARAMS from the prototype.
4333
4334 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
4335
4336         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
4337         names.  Just use the correct names.  Remove unnecessary wrapper
4338         functions.
4339         * malloc/arena.c: Likewise.
4340         * malloc/hooks.c: Likewise.
4341
4342         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
4343         ARENA_TEST says not to.  Simplify test for creation of a new arena.
4344         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
4345
4346 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
4347
4348         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
4349         into tail calls.
4350         (update_get_addr): New function.
4351         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
4352         GET_ADDR_MODULE parameter.
4353
4354 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
4355
4356         * crypt/cert.c: Remove __STDC__ conditionals.
4357         * crypt/crypt-entry.c: Likewise.
4358         * crypt/crypt_util.c: Likewise.
4359         * libio/filedoalloc.c: Likewise.
4360         * libio/fileops.c: Likewise.
4361         * libio/genops.c: Likewise.
4362         * libio/iofclose.c: Likewise.
4363         * libio/iofdopen.c: Likewise.
4364         * libio/iofopen.c: Likewise.
4365         * libio/iofopen64.c: Likewise.
4366         * libio/iogetdelim.c: Likewise.
4367         * libio/iopopen.c: Likewise.
4368         * libio/obprintf.c: Likewise.
4369         * libio/oldfileops.c: Likewise.
4370         * libio/oldiofclose.c: Likewise.
4371         * libio/oldiofdopen.c: Likewise.
4372         * libio/oldiofopen.c: Likewise.
4373         * libio/oldiopopen.c: Likewise.
4374         * libio/wfiledoalloc.c: Likewise.
4375         * libio/wgenops.c: Likewise.
4376         * locale/programs/xmalloc.c: Likewise.
4377         * misc/syslog.c: Likewise.
4378         * stdio-common/xbug.c: Likewise.
4379         * string/memchr.c: Likewise.
4380         * string/memcmp.c: Likewise.
4381         * string/memrchr.c: Likewise.
4382         * string/rawmemchr.c: Likewise.
4383         * sysdeps/posix/getcwd.c: Likewise.
4384         * time/strftime_l.c: Likewise.
4385
4386 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
4387
4388         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
4389         * config.make.in (config-cflags-sse2avx): Define.
4390         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
4391         Fix typo.
4392
4393 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
4394
4395         * scripts/config.guess: Update from upstream config git repository.
4396         * scripts/config.sub: Likewise.
4397
4398 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
4399
4400         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
4401         (EM_NUM): Update.
4402         (R_TILEPRO_*, R_TILEGX_*): New macros.
4403
4404         * scripts/firstversions.awk: Fix bug in version range handling.
4405
4406         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
4407
4408         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
4409
4410         * include/sys/epoll.h: New file.
4411         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
4412         libc_hidden_def.
4413
4414 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
4415
4416         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
4417         Avoid unnecessary __WORDSIZE == 64 test.
4418         (fmaxf): Use VEX format if possible.
4419         (fmax): Likewise.
4420         (fminf): Likewise.
4421         (fmin): Likewise.
4422
4423         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
4424         * math/math_private.h: Remove libc_fegetround* and
4425         libc_fesetround*.
4426         * sysdeps/i386/configure.in: Check for -msse2avx.
4427         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
4428         also if SSE2AVX is defined.
4429         Remove libc_fegetround* and libc_fesetround*.
4430         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
4431         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
4432         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
4433         of HAS_YMM_USABLE.
4434         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4435         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4436         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4437         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4438         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4439
4440         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
4441
4442 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4443
4444         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
4445         size is not set.
4446         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
4447
4448 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
4449
4450         [BZ #13618]
4451         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
4452         relocation.
4453         * Makeconfig (libm): Define.
4454         * elf/Makefile: Add rules to build and run tst-relsort1.
4455         * elf/tst-relsort1.c: New file.
4456         * elf/tst-relsort1mod1.c: New file.
4457         * elf/tst-relsort1mod2.c: New file.
4458
4459 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
4460
4461         * math/s_ldexp.c: Remove __STDC__ conditionals.
4462         * math/s_ldexpf.c: Likewise.
4463         * math/s_ldexpl.c: Likewise.
4464         * math/s_nextafter.c: Likewise.
4465         * math/s_nexttowardf.c: Likewise.
4466         * math/s_significand.c: Likewise.
4467         * math/s_significandf.c: Likewise.
4468         * math/s_significandl.c: Likewise.
4469         * math/w_jnl.c: Likewise.
4470         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
4471         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4472         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
4473         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
4474         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
4475         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4476         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
4477         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4478         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4479         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4480         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4481         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4482         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4483         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
4484         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4485         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4486         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4487         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4488         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
4489         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
4490         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
4491         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
4492         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
4493         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4494         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4495         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
4496         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
4497         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
4498         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
4499         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4500         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
4501         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4502         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
4503         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
4504         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4505         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
4506         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
4507         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
4508         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
4509         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
4510         * sysdeps/ieee754/k_standard.c: Likewise.
4511         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4512         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4513         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4514         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4515         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
4516         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4517         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4518         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
4519         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4520         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4521         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4522         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
4523         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4524         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
4525         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
4526         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4527         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4528         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
4529         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
4530         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4531         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4532         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4533         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4534         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4535         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4536         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
4537         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
4538         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
4539         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
4540         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
4541         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
4542         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
4543         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
4544         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
4545         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
4546         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
4547         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
4548         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
4549         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
4550         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
4551         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
4552         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
4553         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
4554         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
4555         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
4556         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
4557         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
4558         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
4559         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
4560         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
4561         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
4562         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
4563         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
4564         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
4565         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
4566         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
4567         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
4568         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
4569         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
4570         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
4571         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
4572         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
4573         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
4574         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
4575         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
4576         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4577         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
4578         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
4579         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
4580         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
4581         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
4582         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
4583         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
4584         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
4585         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
4586         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
4587         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
4588         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
4589         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
4590         * sysdeps/ieee754/s_matherr.c: Likewise.
4591         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
4592         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
4593         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
4594         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
4595
4596 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
4597
4598         * crypt/md5.h: Remove __STDC__ conditionals.
4599         * libio/libioP.h: Likewise.
4600         * locale/programs/config.h: Likewise.
4601         * sysdeps/generic/sysdep.h: Likewise.
4602         * sysdeps/i386/asm-syntax.h: Likewise.
4603         * sysdeps/s390/asm-syntax.h: Likewise.
4604         * sysdeps/unix/sysdep.h: Likewise.
4605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
4606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4607
4608 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
4609
4610         * libio/libio.h: Remove __STDC__ conditionals.
4611         * malloc/obstack.h: Likewise.
4612         * math/complex.h: Likewise.
4613         * math/math.h: Likewise.
4614         * sysdeps/generic/_G_config.h: Likewise.
4615         * sysdeps/gnu/_G_config.h: Likewise.
4616         * sysdeps/mach/hurd/_G_config.h: Likewise.
4617         * sysdeps/powerpc/bits/mathdef.h: Likewise.
4618         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
4619         * sysdeps/sparc/bits/mathdef.h: Likewise.
4620
4621 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
4622
4623         [BZ #13583]
4624         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
4625         Clean up HAS_* macros.
4626         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
4627         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
4628         possible.
4629         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
4630         HAS_AVX.
4631         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4632         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4633         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4634         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4635         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4636
4637 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
4638
4639         * elf/tst-unique3.cc (gets): Remove declaration.
4640         * elf/tst-unique3lib.cc (gets): Likewise.
4641         * elf/tst-unique3lib2.cc (gets): Likewise.
4642         * elf/tst-unique4.cc (gets): Likewise.
4643
4644 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
4645
4646         * include/stdio.h: Add C++ protection.  Add gets declarations and
4647         definitions.
4648         * debug/tst-chk1.c: Don't declare gets here.
4649         * stdio-common/tst-gets.c: Likewise.
4650
4651 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
4652
4653         * posix/glob: Remove directory.
4654
4655 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
4656
4657         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
4658
4659 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
4660
4661         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
4662         of the non-standard EPFNOSUPPORT.
4663
4664 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4665
4666         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
4667         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
4668         ANYWHERE set to 1 only on KERN_NO_SPACE error.
4669
4670 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
4671
4672         * wcsmbs/uchar.h: Test __STDC_VERSION__.
4673
4674 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
4675
4676         * nscd/aicache.c (addhstaiX): Do not cache negative results of
4677         transient errors.
4678         * nscd/grpcache.c (cache_addgr): Likewise.
4679         * nscd/hstcache.c (cache_addhst): Likewise.
4680         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4681         * nscd/pwdcache.c (cache_addpw): Likewise.
4682         * nscd/servicescache.c (cache_addserv): Likewise.
4683
4684 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
4685
4686         * malloc/malloc.c: Various cleanups.
4687         * malloc/hooks.c: Likewise.
4688
4689         * stdlib/Makefile (tests): Add bug-fmtmsg1.
4690         * stdlib/bug-fmtmsg1.c: New file.
4691
4692         * stdlib/fmtmsg.c (init): Add missing unlock.
4693         Patch by Peng Haitao <penght@cn.fujitsu.com>.
4694
4695 2012-01-12  Marek Polacek  <polacek@redhat.com>
4696
4697         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
4698         and _GNU_SOURCE.
4699
4700 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
4701
4702         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
4703         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
4704         macro to ensure uniqueness of label name.
4705         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
4706         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
4707
4708 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
4709
4710         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
4711
4712         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
4713         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
4714         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
4715         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
4716
4717 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
4718
4719         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
4720
4721         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
4722         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
4723         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
4724
4725         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
4726
4727         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
4728         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
4729         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
4730         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
4731
4732         * math/bits/math-finite.h: Add ldexp support.
4733
4734 2012-01-10  Marek Polacek  <polacek@redhat.com>
4735
4736         * locale/programs/localedef.h (show_archive_content): Add noreturn
4737         attribute.
4738
4739 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
4740
4741         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
4742
4743 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4744
4745         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
4746
4747         * io/Makefile (headers): Add bits/poll2.h.
4748
4749 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
4750
4751         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
4752         typo #include statement.
4753
4754 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4755
4756         * include/sys/cdefs.h: Define __attribute_alloc_size.
4757         * catgets/gencat.c: Add alloc_size attribute and apply consistently
4758         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
4759         * elf/pldd.c: Likewise.
4760         * iconv/iconv_charmap.c: Likewise.
4761         * iconv/iconvconfig.c: Likewise.
4762         * iconv/strtab.c: Likewise.
4763         * locale/programs/locale.c: Likewise.
4764         * locale/programs/localedef.h: Likewise.
4765         * locale/programs/simple-hash.c: Likewise.
4766         * nscd/nscd.h: Likewise.
4767         * nss/makedb.c: Likewise.
4768         * sysdeps/generic/ldconfig.h: Likewise.
4769         * locale/programs/localedef.c: Remove xmalloc prototype.
4770         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
4771
4772 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
4773
4774         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
4775         appropriate.
4776
4777 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4778
4779         * math/Makefile (tests): Add tst-CMPLX.
4780         * math/tst-CMPLX.c: New file.
4781
4782         * math/complex.h (CMPLXL): Fix typo.
4783
4784         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
4785         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
4786         GLIBC_2.16.
4787         * debug/tst-chk1.c: Add poll and ppoll tests.
4788         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
4789         * include/sys/poll.h: Add hidden proto for ppoll.
4790         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
4791         * sysdeps/mach/hurd/ppoll.c: Likewise.
4792         * io/ppoll.c: Likewise.
4793         * debug/poll_chk.c: New file.
4794         * debug/ppoll_chk.c: New file.
4795         * include/bits/poll2.h: New file.
4796         * io/bits/poll2.h: New file.
4797
4798         [BZ #1350]
4799         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
4800
4801         * configure.in: static is always set to yes.  Remove.
4802         * config.make.in: Don't set build-static.
4803         * Makeconfig: Remove use of build-static.
4804         * dlfcn/Makefile: Likewise.
4805         * elf/Makefile: Likewise.
4806         * math/Makefile: Likewise.
4807         * misc/Makefile: Likewise.
4808         * nptl/Makefile: Likewise.
4809         * sysdeps/mach/hurd/Makefile: Likewise.
4810
4811         * configure.in: PWD_P is not used anymore.
4812         * config.make.in: Remove PWD_P entry.
4813
4814         * configure.in: Remove last remnants of RANLIB.
4815         No need to check for signed size_t anymore.
4816         Don't set libc_commonpagesize and libc_relro_required here for Alpha
4817         and IA-64.
4818         Remove __builtin_expect test because we require at least gcc 3.4.
4819         * aclocal.m4: Likewise.
4820
4821         * wcsmbs/mbrtoc16.c: Implement using towc function.
4822         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
4823         * wcsmbs/wcsmbsload.c: Likewise.
4824         * iconv/gconv_simple.c: Likewise.
4825         * iconv/gconv_int.h: Likewise.
4826         * iconv/gconv_builtin.h: Likewise.
4827         * iconv/iconv_prog.c: Remove CHAR16 handling.
4828
4829         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
4830
4831         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
4832
4833         * configure.in: Remove --with-elf and --enable-bounded options.
4834         Dont set base_machine for ia64.  More non-ELF conditions removed.
4835         Remove testing and setting of leading underscore information.
4836         * config.make.in (build-bounded): Set to no.
4837         * config.h.in: Remove NO_UNDERSCORES entry.
4838         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
4839         them.
4840         * csu/start.c: Remove !NO_UNDERSCORE code.
4841         * locale/localeinfo.h: Likewise.
4842         * sysdeps/generic/machine-gmon.h: Likewise.
4843         * sysdeps/generic/sysdep.h: Likewise.
4844         * sysdeps/i386/sysdep.h: Likewise.
4845         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
4846         * sysdeps/mach/sysdep.h: Likewise.
4847         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4848         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4849         * sysdeps/sh/sysdep.h: Likewise.
4850         * sysdeps/sparc/sparc32/alloca.S: Likewise.
4851         * sysdeps/unix/i386/sysdep.S: Likewise.
4852         * sysdeps/unix/sparc/start.c: Likewise.
4853         * sysdeps/unix/sparc/sysdep.S: Likewise.
4854         * sysdeps/unix/sparc/sysdep.h: Likewise.
4855         * sysdeps/unix/start.c: Likewise.
4856         * sysdeps/unix/x86_64/sysdep.S: Likewise.
4857         * sysdeps/x86_64/sysdep.h: Likewise.
4858
4859 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
4860
4861         [BZ #13553]
4862         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
4863         for non-gcc.
4864         * argp/argp-fmtstream.h: Use const instead __const.
4865         * argp/argp.h: Likewise.
4866         * assert/assert.h: Likewise.
4867         * bits/fenv.h: Likewise.
4868         * bits/sched.h: Likewise.
4869         * bits/sigset.h: Likewise.
4870         * bits/sigthread.h: Likewise.
4871         * catgets/nl_types.h: Likewise.
4872         * conform/data/pthread.h-data: Likewise.
4873         * crypt/crypt-private.h: Likewise.
4874         * crypt/crypt.h: Likewise.
4875         * crypt/crypt_util.c: Likewise.
4876         * ctype/ctype.h: Likewise.
4877         * debug/execinfo.h: Likewise.
4878         * debug/mbsnrtowcs_chk.c: Likewise.
4879         * debug/mbsrtowcs_chk.c: Likewise.
4880         * debug/wcsnrtombs_chk.c: Likewise.
4881         * debug/wcsrtombs_chk.c: Likewise.
4882         * debug/wcstombs_chk.c: Likewise.
4883         * dirent/dirent.h: Likewise.
4884         * dlfcn/dlfcn.h: Likewise.
4885         * elf/neededtest4.c: Likewise.
4886         * grp/grp.h: Likewise.
4887         * gshadow/gshadow.h: Likewise.
4888         * iconv/gconv.h: Likewise.
4889         * iconv/gconv_int.h: Likewise.
4890         * iconv/gconv_simple.c: Likewise.
4891         * iconv/iconv.h: Likewise.
4892         * iconv/loop.c: Likewise.
4893         * iconv/skeleton.c: Likewise.
4894         * include/aio.h: Likewise.
4895         * include/aliases.h: Likewise.
4896         * include/argz.h: Likewise.
4897         * include/arpa/inet.h: Likewise.
4898         * include/assert.h: Likewise.
4899         * include/dirent.h: Likewise.
4900         * include/dlfcn.h: Likewise.
4901         * include/execinfo.h: Likewise.
4902         * include/fcntl.h: Likewise.
4903         * include/fenv.h: Likewise.
4904         * include/glob.h: Likewise.
4905         * include/grp.h: Likewise.
4906         * include/libintl.h: Likewise.
4907         * include/mntent.h: Likewise.
4908         * include/netdb.h: Likewise.
4909         * include/pwd.h: Likewise.
4910         * include/rpc/netdb.h: Likewise.
4911         * include/sched.h: Likewise.
4912         * include/search.h: Likewise.
4913         * include/shadow.h: Likewise.
4914         * include/signal.h: Likewise.
4915         * include/stdio.h: Likewise.
4916         * include/stdlib.h: Likewise.
4917         * include/string.h: Likewise.
4918         * include/sys/socket.h: Likewise.
4919         * include/sys/stat.h: Likewise.
4920         * include/sys/statfs.h: Likewise.
4921         * include/sys/statvfs.h: Likewise.
4922         * include/sys/syslog.h: Likewise.
4923         * include/sys/time.h: Likewise.
4924         * include/sys/uio.h: Likewise.
4925         * include/time.h: Likewise.
4926         * include/unistd.h: Likewise.
4927         * include/utmp.h: Likewise.
4928         * include/wchar.h: Likewise.
4929         * include/wctype.h: Likewise.
4930         * inet/aliases.h: Likewise.
4931         * inet/arpa/inet.h: Likewise.
4932         * inet/netinet/ether.h: Likewise.
4933         * inet/netinet/in.h: Likewise.
4934         * intl/libintl.h: Likewise.
4935         * io/bits/fcntl2.h: Likewise.
4936         * io/fcntl.h: Likewise.
4937         * io/ftw.h: Likewise.
4938         * io/sys/poll.h: Likewise.
4939         * io/sys/stat.h: Likewise.
4940         * io/sys/statfs.h: Likewise.
4941         * io/sys/statvfs.h: Likewise.
4942         * io/utime.h: Likewise.
4943         * libio/bits/stdio.h: Likewise.
4944         * libio/bits/stdio2.h: Likewise.
4945         * libio/libio.h: Likewise.
4946         * libio/libioP.h: Likewise.
4947         * libio/stdio.h: Likewise.
4948         * locale/lc-ctype.c: Likewise.
4949         * locale/locale.h: Likewise.
4950         * login/utmp.h: Likewise.
4951         * malloc/arena.c: Likewise.
4952         * malloc/malloc.c: Likewise.
4953         * malloc/malloc.h: Likewise.
4954         * malloc/mcheck.c: Likewise.
4955         * malloc/mtrace.c: Likewise.
4956         * math/bits/mathcalls.h: Likewise.
4957         * math/fenv.h: Likewise.
4958         * math/math_private.h: Likewise.
4959         * misc/bits/error.h: Likewise.
4960         * misc/bits/syslog.h: Likewise.
4961         * misc/err.h: Likewise.
4962         * misc/error.h: Likewise.
4963         * misc/fstab.h: Likewise.
4964         * misc/mntent.h: Likewise.
4965         * misc/regexp.h: Likewise.
4966         * misc/search.h: Likewise.
4967         * misc/sgtty.h: Likewise.
4968         * misc/sys/mman.h: Likewise.
4969         * misc/sys/syslog.h: Likewise.
4970         * misc/sys/uio.h: Likewise.
4971         * misc/sys/xattr.h: Likewise.
4972         * misc/ttyent.h: Likewise.
4973         * nis/rpcsvc/ypclnt.h: Likewise.
4974         * nss/nss.h: Likewise.
4975         * posix/bits/unistd.h: Likewise.
4976         * posix/fnmatch.h: Likewise.
4977         * posix/glob.h: Likewise.
4978         * posix/sched.h: Likewise.
4979         * posix/spawn.h: Likewise.
4980         * posix/sys/wait.h: Likewise.
4981         * posix/unistd.h: Likewise.
4982         * posix/wordexp.h: Likewise.
4983         * pwd/pwd.h: Likewise.
4984         * resolv/netdb.h: Likewise.
4985         * resource/sys/resource.h: Likewise.
4986         * rt/aio.h: Likewise.
4987         * rt/bits/mqueue2.h: Likewise.
4988         * rt/mqueue.h: Likewise.
4989         * shadow/shadow.h: Likewise.
4990         * signal/signal.h: Likewise.
4991         * socket/send.c: Likewise.
4992         * socket/sendto.c: Likewise.
4993         * socket/sys/socket.h: Likewise.
4994         * stdio-common/printf.h: Likewise.
4995         * stdlib/bits/stdlib.h: Likewise.
4996         * stdlib/fmtmsg.h: Likewise.
4997         * stdlib/monetary.h: Likewise.
4998         * stdlib/stdlib.h: Likewise.
4999         * stdlib/ucontext.h: Likewise.
5000         * streams/stropts.h: Likewise.
5001         * string/argz.h: Likewise.
5002         * string/bits/string2.h: Likewise.
5003         * string/string.h: Likewise.
5004         * string/strings.h: Likewise.
5005         * sunrpc/rpc/auth.h: Likewise.
5006         * sunrpc/rpc/auth_des.h: Likewise.
5007         * sunrpc/rpc/clnt.h: Likewise.
5008         * sunrpc/rpc/netdb.h: Likewise.
5009         * sunrpc/rpc/pmap_clnt.h: Likewise.
5010         * sunrpc/rpc/xdr.h: Likewise.
5011         * sysdeps/generic/inttypes.h: Likewise.
5012         * sysdeps/generic/net/if.h: Likewise.
5013         * sysdeps/generic/sys/swap.h: Likewise.
5014         * sysdeps/gnu/net/if.h: Likewise.
5015         * sysdeps/gnu/utmpx.h: Likewise.
5016         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
5017         * sysdeps/i386/i486/bits/string.h: Likewise.
5018         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
5019         * sysdeps/s390/bits/string.h: Likewise.
5020         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
5021         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
5022         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
5023         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
5024         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
5025         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
5026         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
5027         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
5028         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
5029         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
5030         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
5031         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
5032         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
5033         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
5034         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5035         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
5036         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
5037         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5038         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
5039         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5040         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
5041         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
5042         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
5043         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5044         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
5045         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
5046         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
5047         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5048         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
5049         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
5050         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
5051         * sysvipc/sys/ipc.h: Likewise.
5052         * sysvipc/sys/msg.h: Likewise.
5053         * sysvipc/sys/sem.h: Likewise.
5054         * sysvipc/sys/shm.h: Likewise.
5055         * termios/termios.h: Likewise.
5056         * time/sys/time.h: Likewise.
5057         * time/time.h: Likewise.
5058         * wcsmbs/bits/wchar2.h: Likewise.
5059         * wcsmbs/uchar.h: Likewise.
5060         * wcsmbs/wchar.h: Likewise.
5061         * wctype/wctype.h: Likewise.
5062
5063         [BZ #13551]
5064         * Makeconfig: Remove all but ELF support including AIX support.
5065         * Makerules: Likewise.
5066         * config.h.in: Likewise.
5067         * config.make.in: Likewise.
5068         * configure: Likewise.
5069         * configure.in: Likewise.
5070         * csu/Makefile: Likewise.
5071         * csu/version.c: Likewise.
5072         * debug/Makefile: Likewise.
5073         * dlfcn/Makefile: Likewise.
5074         * elf/Makefile: Likewise.
5075         * extra-lib.mk: Likewise.
5076         * iconv/Makefile: Likewise.
5077         * include/libc-symbols.h: Likewise.
5078         * include/shlib-compat.h: Likewise.
5079         * resolv/Makefile: Likewise.
5080         * resolv/res_libc.c: Likewise.
5081         * rt/Makefile: Likewise.
5082         * sysdeps/i386/asm-syntax.h: Likewise.
5083         * sysdeps/i386/sysdep.h: Likewise.
5084         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
5085         * sysdeps/mach/sysdep.h: Likewise.
5086         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
5087         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
5088         * sysdeps/s390/asm-syntax.h: Likewise.
5089         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5090         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5091         * sysdeps/sh/sysdep.h: Likewise.
5092         * sysdeps/unix/sparc/sysdep.h: Likewise.
5093         * sysdeps/wordsize-32/divdi3.c: Likewise.
5094         * sysdeps/x86_64/sysdep.h: Likewise.
5095
5096         * argp/Versions: Remove _argp_unlock_xxx.
5097
5098         [BZ #13559]
5099         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
5100         * abilist/libBrokenLocale.abilist: Likewise.
5101         * abilist/libanl.abilist: Likewise.
5102         * abilist/libc.abilist: Likewise.
5103         * abilist/libcrypt.abilist: Likewise.
5104         * abilist/libdl.abilist: Likewise.
5105         * abilist/libm.abilist: Likewise.
5106         * abilist/libnsl.abilist: Likewise.
5107         * abilist/libpthread.abilist: Likewise.
5108         * abilist/libresolv.abilist: Likewise.
5109         * abilist/librt.abilist: Likewise.
5110         * abilist/libthread_db.abilist: Likewise.
5111         * abilist/libutil.abilist: Likewise.
5112         * abilist/libnss_db.abilist: New file.
5113
5114         * scripts/abilist.awk: Add support for indirect functions.
5115
5116         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
5117
5118         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
5119
5120         * shlib-versions: Remove entries for ports architectures.
5121
5122         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
5123         files in ports.
5124         * elf/stackguard-macros.h: Remove support for IA-64.
5125         * elf/tst-auditmod1.c: Likewise.
5126         * sysdeps/generic/ldsodefs.h: Likewise.
5127
5128         * sysdeps/unix/sysv/linux/configure.in: Ports should define
5129         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
5130         configure files.
5131
5132         [BZ #13552]
5133         * configure.in: Remove --enable-omitfp support.
5134         * FAQ.in: Adjust.
5135         * config.make.in: Likewise.
5136         * Makeconfig: Likewise.
5137         * manual/install.texi: Likewise.
5138
5139         In case anyone cares, the IA-64 architecture could move to ports.
5140         * sysdeps/ia64/*: Removed.
5141         * sysdeps/unix/sysv/linux/ia64/*: Removed.
5142         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
5143
5144         [BZ #13555]
5145         * configure.in: Remove entries for unsupported architectures.
5146
5147         [BZ #13533]
5148         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
5149         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
5150         routines.
5151         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
5152         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
5153         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
5154         fall back to using wcrtomb.
5155         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
5156         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
5157         renaming.
5158         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
5159         * wcsmbs/tst-c16c32-1.c: New file.
5160
5161         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
5162         local variable.
5163
5164         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
5165
5166         * elf/tst-unique3.cc: Add explicit declaration of gets.
5167         * elf/tst-unique3lib.cc: Likewise.
5168         * elf/tst-unique3lib2.cc: Likewise.
5169         * elf/tst-unique4.cc: Likewise.
5170
5171         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
5172
5173 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
5174
5175         [BZ #13566]
5176         * assert/assert.h (static_assert): Don't define for C++.
5177         * libio/stdio.h (gets): Do declare for C++ <= C++11.
5178         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
5179
5180 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
5181
5182         * iconv/loop.c (single loop): Fix assertion in storing of
5183         remaining bytes.
5184
5185         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
5186
5187 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
5188
5189         * posix/getconf.c: Update copyright year.
5190         * nss/getent.c: Likewise.
5191         * nss/makedb.c: Likewise.
5192         * iconv/iconvconfig.c: Likewise.
5193         * iconv/iconv_prog.c: Likewise.
5194         * elf/ldconfig.c: Likewise.
5195         * elf/pldd.c: Likewise.
5196         * elf/sotruss.ksh: Likewise.
5197         * catgets/gencat.c: Likewise.
5198         * csu/version.c: Likewise.
5199         * elf/ldd.bash.in: Likewise.
5200         * elf/sprof.c (print_version): Likewise.
5201         * locale/programs/locale.c: Likewise.
5202         * locale/programs/localedef.c: Likewise.
5203         * login/programs/pt_chown.c: Likewise.
5204         * nscd/nscd.c (print_version): Likewise.
5205         * debug/xtrace.sh: Likewise.
5206         * malloc/memusage.sh: Likewise.
5207         * malloc/mtrace.pl: Likewise.
5208         * debug/catchsegv.sh: Likewise.
5209
5210 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
5211
5212         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
5213         pure attribute.
5214
5215 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
5216
5217         [BZ #13533]
5218         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
5219         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
5220         transformations.
5221         * iconv/gconv_int.h: Likewise.
5222         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
5223         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
5224         from libc for GLIBC_2.16.
5225         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
5226         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
5227         * wcsmbs/uchar.h: Really define mbstate_t.
5228         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
5229         * wcsmbs/c16rtomb.c: New file.
5230         * wcsmbs/mbrtoc16.c: New file.
5231         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
5232         for C/POSIX locale.
5233         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
5234         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
5235
5236         * wcsmbs/wchar.h: Add missing __restrict.
5237
5238 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
5239
5240         [BZ #13532]
5241         * time/Makefile (routines): Add timespec_get.
5242         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
5243         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
5244         timespec for ISO C11.
5245         * time/timespec_get.c: New file.
5246         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
5247         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
5248
5249         [BZ #13531]
5250         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
5251         * stdlib/stdlib.h: Declare aligned_alloc.
5252         * Versions.def: Add GLIBC_2.16 for libc.
5253         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
5254
5255         [BZ 13527]
5256         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
5257         ISO C11.
5258
5259         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
5260         code.
5261
5262         [BZ #13528]
5263         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
5264
5265         [BZ #13529]
5266         * assert/assert.h (static_assert): Define.
5267
5268         * version.h: Update for 2.16 development version.
5269
5270         [BZ #13526]
5271         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
5272         _ISOC11_SOURCE.
5273
5274         * version.h (RELEASE): Bump for 2.15 release.
5275         * include/features.h (__GLIBC_MINOR__): Bump to 15.
5276
5277         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
5278         Patch by Marek Polacek <mpolacek@redhat.com>.
5279
5280         * bits/byteswap.h: Protect long long constants with __extension__.
5281         * sysdeps/i386/bits/byteswap.h: Likewise.
5282         * sysdeps/ia64/bits/byteswap.h: Likewise.
5283         * sysdeps/s390/bits/byteswap.h: Likewise.
5284         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5285
5286 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5287
5288         [BZ #13540]
5289         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
5290         destination buffer.
5291         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
5292
5293 2011-12-23  Marek Polacek  <polacek@redhat.com>
5294
5295         * elf/dl-addr.c (determine_info): Add inline keyword.
5296         * elf/tst-auditmod4b.c (check_avx): Likewise.
5297         * elf/tst-auditmod6b.c (check_avx): Likewise.
5298         * elf/tst-auditmod6c.c (check_avx): Likewise.
5299         * elf/tst-auditmod7b.c (check_avx): Likewise.
5300
5301 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
5302
5303         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
5304         !__SSE_MATH__.
5305
5306 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5307
5308         [BZ #13540]
5309         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
5310         processing for last bytes.
5311
5312 2011-08-06  Bruno Haible  <bruno@clisp.org>
5313
5314         [BZ #13061]
5315         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
5316         U+0385, not to U+1FEE.
5317
5318         [BZ #13062]
5319         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
5320         entry for U+00A5 U+0301.
5321
5322 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
5323
5324         [BZ #13166]
5325         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
5326         buffer for the output is too small.
5327
5328         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
5329         optimization.
5330
5331         [BZ #13185]
5332         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
5333         SSE flags if possible.
5334
5335 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5336
5337         [BZ #13540]
5338         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
5339         processing for last bytes.
5340
5341 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
5342
5343         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
5344         (syscall-list-default-options, syscall-list-default-condition)
5345         (syscall-list-includes): Define.
5346         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
5347         list of ABIs and options and #if conditions for each ABI.  Do not
5348         handle common syscalls between ABIs specially.
5349         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
5350         Remove.
5351         (syscall-list-variants, syscall-list-32bit-options)
5352         (syscall-list-32bit-condition, syscall-list-64bit-options)
5353         (syscall-list-64bit-condition): Define.
5354         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
5355         (syscall-list-variants, syscall-list-32bit-options)
5356         (syscall-list-32bit-condition, syscall-list-64bit-options)
5357         (syscall-list-64bit-condition): Define.
5358         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
5359         Remove.
5360         (syscall-list-variants, syscall-list-32bit-options)
5361         (syscall-list-32bit-condition, syscall-list-64bit-options)
5362         (syscall-list-64bit-condition): Define.
5363         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
5364         Remove.
5365         (syscall-list-variants, syscall-list-32bit-options)
5366         (syscall-list-32bit-condition, syscall-list-64bit-options)
5367         (syscall-list-64bit-condition): Define.
5368
5369 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
5370
5371         * locale/iso-639.def: Add brx entry.
5372
5373         [BZ #13328]
5374         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
5375         Proposed by Mariusz_Cukr <marcukr@op.pl>.
5376
5377         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
5378         __feraiseexcept_renamed.
5379
5380 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
5381
5382         [BZ #13538]
5383         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
5384         EPOLLET with unsigned values.
5385         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5386         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
5387
5388         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
5389         to large cancellation.
5390         * math/s_cacoshf.c: Likewise.
5391         * math/s_cacoshl.c: Likewise.
5392
5393 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
5394
5395         [BZ #13305]
5396         [BZ #12786]
5397         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
5398         * math/s_cacoshf.c: Likewise.
5399         * math/s_cacoshl.c: Likewise.
5400
5401 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
5402
5403         [BZ #13439]
5404         * iconv/gconv.h: Define __GCONV_SWAP.
5405         * iconvdata/unicode.c: The swap bit must be stored in __flags.
5406         * iconvdata/utf-16.c: Likewise.
5407         * iconvdata/utf-32.c: Likewise.
5408
5409 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
5410
5411         [BZ #13524]
5412         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
5413         numerator after shifting it by one limb.
5414
5415 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
5416
5417         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
5418         under [__USE_EXTERN_INLINES].
5419
5420 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
5421
5422         [BZ #13446]
5423         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
5424
5425 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5426
5427         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
5428         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
5429         optimized code.
5430         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
5431         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
5432         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
5433         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
5434         for strncasecmp/strncasecmp_l compilation.
5435         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
5436         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
5437
5438 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
5439
5440         [BZ #13484]
5441         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
5442         of __asm__.
5443
5444 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
5445
5446         [BZ #13506]
5447         * time/tzfile.c (__tzfile_read): Check values from file header.
5448
5449 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
5450
5451         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
5452         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
5453         * powerpc/powerpc32/dl-start.S: Likewise.
5454         * powerpc/powerpc32/elf/start.S: Likewise.
5455         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
5456         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
5457         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
5458         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
5459         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
5460         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
5461         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
5462         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
5463         * powerpc/powerpc32/fpu/s_round.S: Likewise.
5464         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
5465         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
5466         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
5467         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
5468         * powerpc/powerpc32/memset.S: Likewise.
5469         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
5470         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5471         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5472         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5473         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5474         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
5475         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
5476         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
5477         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
5478         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
5479         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
5480         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
5481         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
5482
5483 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5484
5485         * math/libm-test.inc: Added more nearbyint tests.
5486         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
5487         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
5488         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
5489         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
5490
5491 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
5492
5493         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
5494         FD_CLOEXEC.
5495
5496 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5497
5498         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
5499         Add wcscpy-ssse3 wcscpy-c.
5500         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
5501         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
5502         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
5503         * sysdeps/x86_64/wcschr.S: New file.
5504         * sysdeps/x86_64/wcsrchr.S: New file.
5505         * string/test-strcmp.c: Remove checking of wcscmp function for
5506         wrong alignments.
5507         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
5508         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
5509         wcsrchr-sse2 wcsrchr-c.
5510         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
5511         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
5512         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
5513         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
5514         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
5515         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
5516         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
5517         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
5518         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
5519         * wcsmbc/wcschr.c (WCSCHR): New macro.
5520
5521 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5522
5523         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
5524         * wcsmbs/test-wcsrchr.c: New file.
5525         * string/test-strrchr.c: Add wcsrchr support.
5526         (WIDE): New macro.
5527         * wcsmbs/test-wcscpy.c: New file.
5528         * string/test-strcpy.c: Add wcscpy support.
5529         (WIDE): New macro.
5530
5531 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
5532
5533         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
5534         the inner loop.
5535
5536 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
5537
5538         [BZ #13472]
5539         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
5540
5541 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
5542
5543         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
5544         Minor optimizations.
5545
5546         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
5547         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
5548         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
5549
5550 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
5551
5552         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
5553         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
5554         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
5555         for gcc to avoid warnings.
5556         * inet/Makefile (tests): Add tst-checks.
5557         * inet/tst-checks.c: New file.
5558
5559         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
5560         warning.
5561
5562         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
5563         __wmemcmp_sse2.
5564
5565         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
5566         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
5567
5568         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
5569
5570 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
5571
5572         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
5573         problem.
5574
5575         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
5576
5577 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
5578
5579         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
5580         conditional on GCC version.
5581         (__arch_compare_and_exchange_val_8_acq)
5582         (__arch_compare_and_exchange_val_16_acq)
5583         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
5584         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
5585         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
5586
5587 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
5588
5589         * sysdeps/sh/backtrace.c: New file.
5590
5591 2011-12-02  Andreas Schwab  <schwab@redhat.com>
5592
5593         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
5594         parenthesis.
5595
5596 2011-12-01  Andreas Schwab  <schwab@redhat.com>
5597
5598         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
5599         falling back to utime.
5600
5601 2011-11-30  Andreas Schwab  <schwab@redhat.com>
5602
5603         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
5604         expectations for float.
5605
5606 2011-11-29  Andreas Schwab  <schwab@redhat.com>
5607
5608         * locale/weight.h (findidx): Add parameter len.
5609         * locale/weightwc.h (findidx): Likewise.
5610         * posix/fnmatch_loop.c (FCT): Adjust caller.
5611         * posix/regcomp.c (build_equiv_class): Likewise.
5612         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
5613         * posix/regexec.c (check_node_accept_bytes): Likewise.
5614         * string/strcoll_l.c (STRCOLL): Likewise.
5615         * string/strxfrm_l.c (STRXFRM): Likewise.
5616
5617 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
5618
5619         * Makefile.in: Remove CVSOPT handling.
5620         * configure.in: Remove use of AC_REVISION.
5621         * iconvdata/Makefile (distribute): No need to filter out CVS.
5622         * scripts/list-sources.sh: Remove CVS, subversion and monotone
5623         handling.
5624
5625 2011-11-16  Andreas Schwab  <schwab@redhat.com>
5626
5627         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
5628         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
5629         [USE_AS_STRNCASECMP_L]: Likewise.
5630         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
5631         NO_TLS_DIRECT_SEG_REFS.
5632         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
5633         Fix argument offsets for non-PIC.
5634         [USE_AS_STRNCASECMP_L]: Likewise.
5635         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
5636         NO_TLS_DIRECT_SEG_REFS.
5637
5638 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
5639
5640         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
5641         O_CLOEXEC.
5642         * locale/loadlocale.c (_nl_load_locale): Likewise.
5643
5644 2011-11-15  Andreas Schwab  <schwab@redhat.com>
5645
5646         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
5647         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
5648         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
5649         (SYSCALL_GETTIME): Set errno on error.
5650
5651         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
5652         count references to noai6ai_cached.
5653
5654 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
5655
5656         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
5657
5658         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
5659         FD_CLOEXEC for /proc/self/maps.
5660
5661         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
5662         FD_CLOEXEC for /proc/meminfo.
5663
5664         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
5665         gai.conf.
5666
5667         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
5668         FD_CLOEXEC for given file.
5669
5670         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
5671
5672         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
5673         FD_CLOEXEC for /etc/hosts.
5674         (_gethtent): Likewise.
5675
5676         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
5677
5678         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
5679         cancellation and set FD_CLOEXEC for /etc/netgroup.
5680
5681         * nss/nss_files/files-key.c (search): Don't allow cancellation when
5682         reading /etc/publickey.
5683
5684         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
5685         allow cancellation when reading /etc/group.
5686
5687         * nss/nss_files/files-alias.c (internal_setent): Don't allow
5688         cancellation.
5689         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
5690
5691         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
5692         when using data file.
5693
5694         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
5695
5696         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
5697         (write_nis_obj): Use "c" and "e" in fopen.
5698
5699         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
5700
5701         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
5702
5703         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
5704
5705         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
5706
5707         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
5708         locale.alias.
5709
5710         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
5711
5712         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
5713
5714         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
5715
5716         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
5717         file parsing and set FD_CLOEXEC.
5718
5719 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
5720
5721         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
5722
5723 2011-11-14  Andreas Schwab  <schwab@redhat.com>
5724
5725         * malloc/arena.c (arena_get2): Don't call reused_arena when
5726         _int_new_arena failed.
5727
5728 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
5729
5730         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
5731         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
5732         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
5733         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
5734         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5735         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
5736         to compile strcasecmp and strncasecmp.
5737         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
5738         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
5739
5740         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
5741
5742 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
5743
5744         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
5745         locale-defines.sym to gen-as-const-headers.
5746         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
5747         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
5748         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
5749         to compile strcasecmp and strncasecmp.
5750         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
5751         strcasecmp_l and strncasecmp_l.
5752         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
5753         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
5754         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
5755         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
5756         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
5757         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
5758         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
5759         * sysdeps/i386/i686/multiarch/strncase.S: New file.
5760         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
5761         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
5762         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
5763
5764 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
5765
5766         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
5767         result of SYSDEP_GETTIME_CPU to retval.
5768         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
5769         parameter list to macro.  Remove trailing semicolon.  Adjust users.
5770
5771         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
5772         variable.
5773
5774         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
5775         mantissa words.
5776         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
5777
5778         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
5779         from unused variable.
5780
5781         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
5782         DWARF definitions.
5783         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
5784         for assembling.
5785
5786         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
5787         over namespaces.
5788
5789         * sunrpc/rpc_prot.c (rejected): Fix case value.
5790
5791         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
5792         unsigned long long int to avoid warnings in shift.
5793
5794         * posix/regex_internal.c (re_string_reconstruct): Actually use result
5795         of use of trans.
5796         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
5797         variable tmp.
5798
5799         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
5800         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
5801         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
5802
5803         * nis/nis_table.c (nis_list): Use variable of correct type for
5804         result of __follow_path call.
5805
5806 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5807
5808         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
5809         of math functions ceil, trunc, floor, round, and sqrt, when
5810         avaliable on the platform.
5811         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
5812         name clash.
5813         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5814         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
5815         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
5816
5817 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
5818
5819         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
5820         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
5821
5822 2011-11-11  Roland McGrath  <roland@hack.frob.com>
5823
5824         * include/unistd.h: Fix __readlink return type.
5825         Reported by Chris Metcalf <cmetcalf@tilera.com>.
5826
5827 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
5828
5829         * stdlib/ucontext.h: Undo last change for makecontext.
5830
5831 2011-11-11  Andreas Schwab  <schwab@redhat.com>
5832
5833         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
5834
5835         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
5836         * setjmp/setjmp.h: Mark functions as non-leaf.
5837         * setjmp/bits/setjmp2.h: Likewise.
5838         * stdlib/ucontext.h: Likewise.
5839
5840 2011-11-10  Andreas Schwab  <schwab@redhat.com>
5841
5842         * malloc/arena.c (_int_new_arena): Don't increment narenas.
5843         (reused_arena): Don't check arena limit.
5844         (arena_get2): Atomically check arena limit.
5845
5846 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
5847
5848         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
5849         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
5850
5851         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
5852         instructions.
5853
5854 2011-11-07  Andreas Schwab  <schwab@redhat.com>
5855
5856         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
5857         handler when locking.
5858
5859         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
5860         Fix size of allocated buffer.
5861
5862 2011-11-04  Andreas Schwab  <schwab@redhat.com>
5863
5864         [BZ #10103]
5865         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
5866         declarations for long double functions.
5867         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
5868
5869         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
5870
5871 2011-11-03  Andreas Schwab  <schwab@redhat.com>
5872
5873         * nscd/nscd.c (main): Don't start AVC thread until credentials are
5874         installed.
5875
5876         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
5877         is disabled.
5878
5879 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5880
5881         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
5882
5883 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
5884
5885         * include/alloca.h (stackinfo_alloca_round): Define.
5886         (extend_alloca): Use it.
5887         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
5888         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
5889         here.
5890
5891         * scripts/check-local-headers.sh: Ignore libaudit.h.
5892
5893         * nscd/Makefile (extra-objs): Make recursively expanded.
5894
5895 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
5896
5897         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
5898         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
5899
5900         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
5901         * posix/tst-rfc3484-2.c: Likewise.
5902         * posix/tst-rfc3484-3.c: Likewise.
5903
5904         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
5905         process_vm_writev.
5906         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
5907         process_vm_writev.
5908         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
5909         process_vm_writev from libc using GLIBC_2.15 version.
5910
5911         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
5912
5913 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
5914
5915         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
5916         stack usage.
5917
5918 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
5919
5920         [BZ #13367]
5921         * nss/getent.c (initgroups_keys): Show error message in case no group
5922         names are given.
5923
5924         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
5925         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
5926         __bump_nl_timestamp.
5927         * nscd/connections (nscd_init): When host database is served open
5928         netlink socket and request notification about configuration changes.
5929         (main_loop_poll): Track netlink file descriptor and bump timestamp
5930         in case data becomes available.
5931         (main_loop_epoll): Likewise.
5932         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
5933         (database_pers_head): Add extra_data fileds.
5934         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
5935         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
5936         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
5937         Adjust caller.
5938         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
5939         in6ai data, call __free_in6ai.
5940         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
5941         Add -DHAVE_NETLINK.
5942         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
5943         interface information.  Reuse previous data if netlink timestamp
5944         is not changed.
5945         (__bump_nl_timestamp): New function.
5946         (__free_in6ai): New function.
5947
5948 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
5949
5950         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
5951         close_not_cancel_no_status here.
5952         (__check_pf): Reorganize code a bit to not call close twice if OOM.
5953
5954 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
5955
5956         [BZ #13276]
5957         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
5958         return value.
5959
5960         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
5961         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
5962         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
5963
5964 2011-07-03  Andreas Jaeger  <aj@suse.de>
5965
5966         [BZ #10709]
5967         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
5968         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
5969         * math/libm-test.inc (sin_test): Add test case.
5970
5971 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
5972
5973         [BZ #13337]
5974         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
5975         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
5976
5977         * elf/chroot_canon.c (chroot_canon): Cleanups.
5978
5979         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
5980
5981         [BZ #13335]
5982         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
5983         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
5984
5985         * string/test-strchr.c: Make usable for strchrnul testing.
5986         * string/test-strchrnul.c: New file.
5987         * string/Makefile (strop-tests): Add strchrnul.
5988
5989         * po/it.po: Update from translation team.
5990         * po/es.po: Likewise.
5991
5992 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
5993
5994         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
5995         the three constants needed as parameters.  Drop the others.
5996         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
5997         __m128i_strloadu_tolower.
5998         Create and initialize variable zero and use it in all the places
5999         where _mm_setzero_si128 was used.
6000
6001         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
6002         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
6003         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
6004         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
6005         anymore.
6006         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
6007         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
6008         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
6009         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
6010         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
6011         __mpranred, __mptan.
6012         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
6013         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
6014         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
6015         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
6016         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
6017         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
6018         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
6019         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
6020         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
6021
6022 2011-10-28  Andreas Schwab  <schwab@redhat.com>
6023
6024         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
6025         redefine if SHARED.
6026         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
6027
6028         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
6029         wide char related routines to wcsmbs subdir.
6030
6031 2011-10-27  Andreas Schwab  <schwab@redhat.com>
6032
6033         [BZ #13344]
6034         * misc/sys/cdefs.h (__THROWNL): Define.
6035         * posix/unistd.h: Use __THREADNL instead of __THREAD
6036         for memory synchronization functions.
6037
6038 2011-10-26  Roland McGrath  <roland@hack.frob.com>
6039
6040         [BZ #13349]
6041         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
6042         doesn't exist.
6043         * manual/stdio.texi (Obstack Streams): Node removed.
6044
6045 2011-10-26  Andreas Schwab  <schwab@redhat.com>
6046
6047         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
6048         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6049         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6050
6051         * math/math_private.h (math_force_eval): Allow non-addressable
6052         arguments.
6053         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
6054
6055 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
6056
6057         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
6058         file is not needed.
6059
6060         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
6061         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
6062         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
6063         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
6064         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
6065         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
6066         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
6067         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
6068         Add AVX variants.
6069         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
6070         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
6071         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
6072         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
6073         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
6074         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
6075         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
6076         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
6077         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
6078         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
6079         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
6080         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
6081         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
6082         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
6083         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
6084         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
6085         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
6086         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
6087         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
6088
6089         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
6090         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
6091
6092         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
6093         place.  Use VEX encoding when compiling for AVX.
6094
6095 2011-10-25  Andreas Schwab  <schwab@redhat.com>
6096
6097         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
6098         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
6099
6100         * string/test-strchr.c (do_test): Don't generate NUL bytes.
6101
6102 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
6103
6104         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
6105         useless if() expression.
6106         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6107         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6108         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
6109         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6110         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
6111         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6112         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6113         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6114         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6115         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6116         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6117         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6118         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
6119         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6120         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
6121         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6122         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
6123         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
6124         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6125
6126         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
6127
6128 2011-10-25  Andreas Schwab  <schwab@redhat.com>
6129
6130         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
6131         condition.
6132         * elf/dl-fini.c (_dl_sort_fini): Likewise.
6133
6134 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
6135
6136         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
6137         .text section.  Avoid duplicate constants.
6138         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
6139         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6140         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6141         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6142         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6143         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6144         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6145         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6146         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
6147         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
6148         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
6149         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
6150         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
6151         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
6152         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
6153         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
6154         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
6155         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
6156         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6157         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6158         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
6159         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
6160         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
6161         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
6162         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
6163         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
6164         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
6165         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
6166         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
6167         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
6168         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
6169         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
6170         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
6171         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
6172         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
6173         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
6174         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
6175         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
6176         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
6177         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
6178         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
6179         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
6180         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
6181         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
6182         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
6183
6184 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
6185
6186         * sysdeps/x86_64/dla.h: Move to ...
6187         * sysdeps/x86_64/fpu/dla.h: ...here.
6188         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
6189         situations.  Use __builtin_fma only for gcc 4.6 and up.
6190
6191         * config.make.in: Add have-mfma4 entry.
6192         * configure.in: Substitute libc_cv_cc_fma4.
6193         * math/Makefile (dbl-only-routines): Add sincostab.
6194         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
6195         Use __sincostab not sincos.
6196         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
6197         name is a macro.
6198         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6199         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6200         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6201         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
6202         using __copysign.
6203         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
6204         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
6205         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
6206         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
6207         and __inv.
6208         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
6209         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
6210         __copysign.
6211         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
6212         define aliases when function name is a macro.
6213         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
6214         sysdeps/ieee754/dbl-64/sincos.tbl.
6215         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
6216         fma4-enabled routines.
6217         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
6218         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
6219         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
6220         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
6221         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
6222         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
6223         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
6224         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
6225         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
6226         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
6227         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
6228         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
6229         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
6230         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
6231         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
6232         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
6233         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
6234         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
6235         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
6236         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
6237         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
6238         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
6239         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
6240         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
6241         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
6242         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
6243         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
6244         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
6245         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
6246         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
6247
6248         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
6249         rename.
6250         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6251         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6252         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6253         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6254         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6255         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6256         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6257         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6258
6259 2011-10-24  Andreas Schwab  <schwab@redhat.com>
6260
6261         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
6262
6263 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6264
6265         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
6266
6267         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
6268         prediction.
6269         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
6270
6271         * string/strnlen.c: Don't define STRNLEN, reverse logic.
6272         Remove unused variable magic_bits.
6273         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
6274
6275         * string/strnlen.c: Define and use STRNLEN macro.
6276         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
6277         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
6278         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
6279         * wcsmbs/wcslen.c: Define and use WCSLEN.
6280         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
6281         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
6282         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
6283         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
6284         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
6285         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
6286         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
6287
6288 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6289
6290         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
6291         strnlen-sse2-no-bsf.
6292         Rename strlen-no-bsf to strlen-sse2-no-bsf.
6293         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
6294         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
6295         Add strnlen support.
6296         (USE_AS_STRNLEN): New macro.
6297         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
6298         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
6299         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
6300         * sysdeps/x86_64/wcslen.S: New file.
6301
6302 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
6303
6304         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
6305         XMM-moves are used for copying on small sizes.
6306
6307 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6308
6309         * wcsmbs/Makefile (strop-tests): Add wcschr.
6310         * wcsmbs/test-wcschr.c: New file.
6311         * string/test-strchr.c: Update.
6312         Add wcschr support.
6313         (WIDE): New macro.
6314
6315 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6316
6317         * wcsmbs/Makefile (strop-tests): Add wcslen.
6318         * wcsmbs/test-wcslen.c: New file.
6319         * string/test-strlen.c: Update.
6320         Add wcslen support.
6321         (WIDE): New macro.
6322
6323 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6324
6325         * po/it.po: Update from translation team.
6326
6327 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6328
6329         * sysdeps/x86_64/wcscmp.S: Update.
6330         Fix wrong comparison semantics.
6331         wcscmp shall use signed comparison not unsigned.
6332         Don't use substraction to avoid overflow bug.
6333         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
6334         * wcsmbc/wcscmp.c: Likewise.
6335         * string/test-strcmp.c: Likewise.
6336         Add new tests to check cases with negative values.
6337
6338 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6339
6340         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
6341         * sysdeps/x86_64/dla.h: ...here.  New file.
6342         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
6343         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6344         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6345         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6346         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6347         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6348         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6349         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6350         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6351
6352 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
6353
6354         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
6355         __ynl_finite aliases.
6356
6357 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
6358
6359         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6360
6361         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
6362         define DLA_FMA.
6363         [DLA_FMA] (EMULV): Use DLA_FMA.
6364         [DLA_FMA] (MUL12): Use EMULV.
6365         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
6366         that are not needed.
6367         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6368         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6369         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6370         * sysdeps/ieee754/dbl-64/e_pow.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-22  Andreas Schwab  <schwab@linux-m68k.org>
6376
6377         * math/s_nan.c: Undef __nan.
6378         * math/s_nanf.c: Undef __nanf.
6379         * math/s_nanl.c: Undef __nanl.
6380         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
6381         "math_private.h".
6382
6383 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
6384
6385         * math/s_catan.c: Add branch predictions.
6386         * math/s_catanf.c: Likewise.
6387         * math/s_catanh.c: Likewise.
6388         * math/s_catanhf.c: Likewise.
6389         * math/s_catanhl.c: Likewise.
6390         * math/s_catanl.c: Likewise.
6391         * math/s_cexp.c: Likewise.
6392         * math/s_cexpf.c: Likewise.
6393         * math/s_cexpl.c: Likewise.
6394         * math/s_clog.c: Likewise.
6395         * math/s_clog10.c: Likewise.
6396         * math/s_clog10f.c: Likewise.
6397         * math/s_clog10l.c: Likewise.
6398         * math/s_clogf.c: Likewise.
6399         * math/s_clogl.c: Likewise.
6400         * math/s_csqrt.c: Likewise.
6401         * math/s_csqrtf.c: Likewise.
6402         * math/s_csqrtl.c: Likewise.
6403         * math/s_ctanf.c: Likewise.
6404         * math/s_ctanh.c: Likewise.
6405         * math/s_ctanhf.c: Likewise.
6406         * math/s_ctanhl.c: Likewise.
6407         * math/s_ctanl.c: Likewise.
6408
6409         * math/math_private.h: Define __nan, __nanf, __nanl.
6410         * math/s_cacosh.c: Include <math_private.h>.
6411         * math/s_cacoshl.c: Likewise.
6412         * math/s_casinh.c: Likewise.
6413         * math/s_casinhf.c: Likewise.
6414         * math/s_casinhl.c: Likewise.
6415         * math/s_ccos.c: Rely entire on ccosh.
6416         * math/s_ccosf.c: Rely entire on ccoshf.
6417         * math/s_ccosl.c: Rely entirely on ccoshl.
6418         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
6419         Remove tests for FE_INVALID.
6420         * math/s_ccoshf.c: Likewise.
6421         * math/s_ccoshl.c: Likewise.
6422         * math/s_csin.c: Likewise.
6423         * math/s_csinf.c: Likewise.
6424         * math/s_csinh.c Likewise.
6425         * math/s_csinhf.c: Likewise.
6426         * math/s_csinhl.c: Likewise.
6427         * math/s_csinl.c: Likewise.
6428         * math/s_ctan.c: Likewise.
6429         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
6430         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
6431         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
6432
6433 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
6434
6435         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
6436         compilation problems.
6437
6438         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
6439         __builtin_expect.
6440
6441 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
6442
6443         * sysdeps/i386/configure.in: Test for -mfma4 option.
6444         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
6445         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
6446         COMMON_CPUID_INDEX_80000001.
6447         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
6448         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
6449         use it if FMA3 is not supported.
6450         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
6451
6452         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
6453         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
6454
6455 2011-10-20  Andreas Schwab  <schwab@redhat.com>
6456
6457         [BZ #12892]
6458         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
6459         it would create a cycle with a link time dependency.
6460
6461 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
6462
6463         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
6464         instruction.
6465         * string/Makefile (strop-tests): Add rawmemchr.
6466         * string/test-rawmemchr.c: New file.
6467
6468         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
6469         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
6470         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
6471         when compiling str{,n}casecmp and when AVX is available.  Hook up
6472         new optimized code in initializers.
6473
6474 2011-10-19  Andreas Schwab  <schwab@redhat.com>
6475
6476         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
6477         __feraiseexcept instead of feraiseexcept.
6478
6479 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
6480
6481         * math/math_private.h: Define defaults for libc_fetestexcept and
6482         libc_feupdateenv.
6483         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
6484         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6485         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6486         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6487         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6488         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6489         libc_fetestexcept and libc_feupdateenv.
6490
6491         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
6492         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
6493         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
6494         * sysdeps/x86_64/fpu/math_private.h: Define special version of
6495         libc_feholdexcept_setround.
6496
6497         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
6498         Add s_nearbyint-c and s_nearbyintf-c.
6499         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
6500         nearbyintf inlines.
6501         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
6502         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
6503         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
6504         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
6505
6506         * math/math_private.h: Define defaults for libc_fegetround,
6507         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
6508         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
6509         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
6510         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
6511         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
6512         standard functions.
6513         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6514         Remove comments and hacks for old compiler versions.
6515         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6516         libc_fegetround, libc_fesetround, libc_feholdexcept, and
6517         libc_feholdexceptl.
6518
6519 2011-10-18  Andreas Schwab  <schwab@redhat.com>
6520
6521         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
6522         (__feraiseexcept_renamed): Add __NTH.
6523         (feraiseexcept): Add __NTH.  Rename local variables to fix
6524         namespace violations.
6525
6526 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
6527
6528         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
6529
6530         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
6531
6532         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
6533         recently added interfaces.
6534         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6535
6536         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
6537         about macro parameter expansion.
6538
6539         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
6540         __NO_MATH_INLINES is defined.  Cleanups.
6541
6542         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
6543         and __floorf is target has SSE4.1.
6544         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
6545         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
6546         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
6547         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
6548
6549         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
6550         name.
6551         (floorf): Likewise.
6552
6553         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
6554
6555 2011-10-17  Andreas Schwab  <schwab@redhat.com>
6556
6557         * misc/sys/cdefs.h: Fix last change.
6558
6559         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
6560         database lookup.
6561
6562 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
6563
6564         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
6565
6566         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
6567         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6568         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6569         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6570         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6571         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6572         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6573         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6574         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6575         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
6576         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
6577         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
6578         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
6579         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
6580         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
6581         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
6582         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
6583         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
6584         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
6585         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
6586         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
6587         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
6588
6589         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
6590         ceil, ceilf, floor, floorf.
6591
6592         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
6593         Perform IRELATIVE relocations last.
6594
6595         * elf/do-rel.h: Add another parameter nrelative, replacing the
6596         local variable with the same name.  Change name of the function
6597         to end in Rel or Rela (uppercase).
6598         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
6599         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
6600         elf_dynamic_do_##reloc function.
6601
6602 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
6603
6604         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
6605         is sufficient, at least on modern CPUs.
6606
6607         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
6608
6609         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
6610         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
6611
6612         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
6613         __expl_finite.
6614         * math/bits/math-finite.h: Add entries for exp.
6615         * math/e_expl.c: Add __*_finite alias.
6616         * sysdeps/i386/fpu/e_exp.S: Likewise.
6617         * sysdeps/i386/fpu/e_expf.S: Likewise.
6618         * sysdeps/i386/fpu/e_expl.c: Likewise.
6619         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6620         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6621         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6622         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6623         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
6624         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
6625         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
6626
6627         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
6628         is sufficient, at least on modern CPUs.
6629
6630         * ctype/ctype-info.c (__ctype_init): Define.
6631         * include/ctype.h (__ctype_init): Declare.
6632         (__ctype_b_loc): The variable is always initialized.
6633         (__ctype_toupper_loc): Likewise.
6634         (__ctype_tolower_loc): Likewise.
6635         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
6636         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
6637
6638 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
6639
6640         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
6641
6642         * configure.in: Also look in $cxxmachine/include for C++ system
6643         headers.
6644
6645 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6646
6647         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
6648         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
6649         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
6650         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
6651         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
6652         (USE_AS_WMEMCMP): New macro.
6653         Fixing indents.
6654         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
6655         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
6656         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
6657         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
6658         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6659         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
6660         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
6661         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
6662         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
6663         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
6664         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
6665         (USE_AS_WMEMCMP): New macro.
6666         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
6667         * sysdeps/string/test-memcmp.c: Update.
6668         Fix simple_wmemcmp.
6669         Add new tests.
6670         * wcsmbs/wmemcmp.c: Update.
6671         (WMEMCMP): New macro.
6672         Fix overflow bug.
6673
6674 2011-10-12  Andreas Jaeger  <aj@suse.de>
6675
6676         [BZ #13268]
6677         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
6678
6679 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
6680
6681         * libio/iofwide.c (do_length): Avoid warning.
6682
6683         * ctype/ctype.h (__isctype_f): Add missing __THROW.
6684
6685 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
6686
6687         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
6688
6689         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
6690         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
6691         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
6692         * sysdeps/i386/i686/fpu/e_log.S: New file.
6693         * sysdeps/i386/i686/fpu/e_logf.S: New file.
6694         * sysdeps/i386/i686/fpu/e_logl.S: New file.
6695
6696         * ctype/ctype.h: Add support for inlined isXXX functions when
6697         compiling C++ code.
6698
6699 2011-10-14  Andreas Schwab  <schwab@redhat.com>
6700
6701         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6702
6703         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
6704
6705 2011-10-13  Roland McGrath  <roland@hack.frob.com>
6706
6707         [BZ #13291]
6708         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
6709
6710 2011-10-13  Andreas Schwab  <schwab@redhat.com>
6711
6712         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
6713         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
6714         feraiseexcept.
6715
6716         * sysdeps/x86_64/memrchr.S: Check for zero size.
6717
6718         * string/stratcliff.c: Add memrchr tests.
6719
6720 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6721
6722         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6723         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
6724         rawmemchr-sse2 rawmemchr-sse2-bsf.
6725         * sysdeps/i386/i686/multiarch/memchr.S: New file.
6726         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
6727         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
6728         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
6729         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
6730         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
6731         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
6732         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
6733         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
6734         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
6735         * string/memrchr.c (MEMRCHR): New macro.
6736
6737 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
6738
6739         Add integration with gcc's -ffinite-math-only and optimize wrapper
6740         functions in libm.
6741         * Versions.def: Define GLIBC_2.15 version for libm.
6742         * math/Makefile (headers): Add bits/math-finite.h.
6743         * math/bits/math-finite.h: New file.
6744         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
6745         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
6746         * math/e_acoshl.c: Add __*_finite alias.
6747         * math/e_acosl.c: Likewise.
6748         * math/e_asinl.c: Likewise.
6749         * math/e_atan2l.c: Likewise.
6750         * math/e_atanhl.c: Likewise.
6751         * math/e_coshl.c: Likewise.
6752         * math/e_exp10.c: Likewise.
6753         * math/e_exp10f.c: Likewise.
6754         * math/e_exp10l.c: Likewise.
6755         * math/e_exp2l.c: Likewise.
6756         * math/e_fmodl.c: Likewise.
6757         * math/e_gammal_r.c: Likewise.
6758         * math/e_hypotl.c: Likewise.
6759         * math/e_j0l.c: Likewise.
6760         * math/e_j1l.c: Likewise.
6761         * math/e_jnl.c: Likewise.
6762         * math/e_lgammal_r.c: Likewise.
6763         * math/e_log10l.c: Likewise.
6764         * math/e_log2l.c: Likewise.
6765         * math/e_logl.c: Likewise.
6766         * math/e_powl.c: Likewise.
6767         * math/e_sinhl.c: Likewise.
6768         * math/e_sqrtl.c: Likewise.
6769         * math/e_scalb.c: Completely rewritten and optimized.
6770         * math/e_scalbf.c: Likewise.
6771         * math/e_scalbl.c: Likewise.
6772         * math/w_acos.c: Likewise.
6773         * math/w_acosf.c: Likewise.
6774         * math/w_acosl.c: Likewise.
6775         * math/w_acosh.c: Likewise.
6776         * math/w_acoshf.c: Likewise.
6777         * math/w_acoshl.c: Likewise.
6778         * math/w_asin.c: Likewise.
6779         * math/w_asinf.c: Likewise.
6780         * math/w_asinl.c: Likewise.
6781         * math/w_atan2.c: Likewise.
6782         * math/w_atan2f.c: Likewise.
6783         * math/w_atan2l.c: Likewise.
6784         * math/w_atanh.c: Likewise.
6785         * math/w_atanhf.c: Likewise.
6786         * math/w_atanhl.c: Likewise.
6787         * math/w_exp10.c: Likewise.
6788         * math/w_exp10f.c: Likewise.
6789         * math/w_exp10l.c: Likewise.
6790         * math/w_fmod.c: Likewise.
6791         * math/w_fmodf.c: Likewise.
6792         * math/w_fmodl.c: Likewise.
6793         * math/w_j0.c: Likewise.
6794         * math/w_j0f.c: Likewise.
6795         * math/w_j0l.c: Likewise.
6796         * math/w_j1.c: Likewise.
6797         * math/w_j1f.c: Likewise.
6798         * math/w_j1l.c: Likewise.
6799         * math/w_jn.c: Likewise.
6800         * math/w_jnf.c: Likewise.
6801         * math/w_log.c: Likewise.
6802         * math/w_logf.c: Likewise.
6803         * math/w_logl.c: Likewise.
6804         * math/w_log10.c: Likewise.
6805         * math/w_log10f.c: Likewise.
6806         * math/w_log10l.c: Likewise.
6807         * math/w_log2.c: Likewise.
6808         * math/w_log2f.c: Likewise.
6809         * math/w_log2l.c: Likewise.
6810         * math/w_pow.c: Likewise.
6811         * math/w_powf.c: Likewise.
6812         * math/w_powl.c: Likewise.
6813         * math/w_remainder.c: Likewise.
6814         * math/w_remainderf.c: Likewise.
6815         * math/w_remainderl.c: Likewise.
6816         * math/w_scalb.c: Likewise.
6817         * math/w_scalbf.c: Likewise.
6818         * math/w_scalbl.c: Likewise.
6819         * math/w_sqrt.c: Likewise.
6820         * math/w_sqrtf.c: Likewise.
6821         * math/w_sqrtl.c: Likewise.
6822         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
6823         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
6824         used.
6825         * math/math_private.h: Declare __kernel_standard_f.
6826         * math/w_cosh.c: Remove cruft and optimize a bit.
6827         * math/w_coshf.c: Likewise.
6828         * math/w_coshl.c: Likewise.
6829         * math/w_exp2.c: Likewise.
6830         * math/w_exp2f.c: Likewise.
6831         * math/w_exp2l.c: Likewise.
6832         * math/w_hypot.c: Likewise.
6833         * math/w_hypotf.c: Likewise.
6834         * math/w_hypotl.c: Likewise.
6835         * math/w_lgamma.c: Likewise.
6836         * math/w_lgamma_r.c: Likewise.
6837         * math/w_lgammaf.c: Likewise.
6838         * math/w_lgammaf_r.c: Likewise.
6839         * math/w_lgammal.c: Likewise.
6840         * math/w_lgammal_r.c: Likewise.
6841         * math/w_sinh.c: Likewise.
6842         * math/w_sinhf.c: Likewise.
6843         * math/w_sinhl.c: Likewise.
6844         * math/w_tgamma.c: Likewise.
6845         * math/w_tgammaf.c: Likewise.
6846         * math/w_tgammal.c: Likewise.
6847         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6848         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6849         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
6850         Minor optimizations.  Pretty printing.  Remove cruft.
6851         * sysdeps/i386/fpu/e_acosf.S: Likewise.
6852         * sysdeps/i386/fpu/e_acosh.S: Likewise.
6853         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
6854         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
6855         * sysdeps/i386/fpu/e_acosl.c: Likewise.
6856         * sysdeps/i386/fpu/e_asin.S: Likewise.
6857         * sysdeps/i386/fpu/e_asinf.S: Likewise.
6858         * sysdeps/i386/fpu/e_atan2.S: Likewise.
6859         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
6860         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
6861         * sysdeps/i386/fpu/e_atanh.S: Likewise.
6862         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
6863         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
6864         * sysdeps/i386/fpu/e_exp10.S: Likewise.
6865         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
6866         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
6867         * sysdeps/i386/fpu/e_exp2.S: Likewise.
6868         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
6869         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
6870         * sysdeps/i386/fpu/e_fmod.S: Likewise.
6871         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
6872         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6873         * sysdeps/i386/fpu/e_hypot.S: Likewise.
6874         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
6875         * sysdeps/i386/fpu/e_log.S: Likewise.
6876         * sysdeps/i386/fpu/e_log10.S: Likewise.
6877         * sysdeps/i386/fpu/e_log10f.S: Likewise.
6878         * sysdeps/i386/fpu/e_log10l.S: Likewise.
6879         * sysdeps/i386/fpu/e_log2.S: Likewise.
6880         * sysdeps/i386/fpu/e_log2f.S: Likewise.
6881         * sysdeps/i386/fpu/e_log2l.S: Likewise.
6882         * sysdeps/i386/fpu/e_logf.S: Likewise.
6883         * sysdeps/i386/fpu/e_logl.S: Likewise.
6884         * sysdeps/i386/fpu/e_pow.S: Likewise.
6885         * sysdeps/i386/fpu/e_powf.S: Likewise.
6886         * sysdeps/i386/fpu/e_powl.S: Likewise.
6887         * sysdeps/i386/fpu/e_remainder.S: Likewise.
6888         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
6889         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
6890         * sysdeps/i386/fpu/e_scalb.S: Likewise.
6891         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
6892         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
6893         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
6894         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
6895         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
6896         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
6897         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6898         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6899         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
6900         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6901         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
6902         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6903         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
6904         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6905         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
6906         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6907         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
6908         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6909         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
6910         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
6911         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6912         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6913         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
6914         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6915         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6916         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
6917         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
6918         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
6919         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
6920         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
6921         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
6922         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6923         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
6924         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6925         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
6926         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6927         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6928         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6929         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6930         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
6931         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
6932         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
6933         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
6934         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
6935         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
6936         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
6937         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
6938         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
6939         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
6940         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
6941         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
6942         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
6943         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
6944         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
6945         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6946         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
6947         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
6948         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6949         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6950         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
6951         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
6952         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
6953         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
6954         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
6955         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
6956         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
6957         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
6958         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
6959         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
6960         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
6961         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
6962         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
6963         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
6964         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6965         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
6966         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
6967         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
6968         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
6969         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
6970         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
6971         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
6972         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
6973         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
6974         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
6975         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
6976         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
6977         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
6978         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6979         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
6980         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
6981         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
6982         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6983         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6984         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
6985         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
6986         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
6987         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
6988         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
6989         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6990         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6991         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
6992         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
6993         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
6994         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
6995         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
6996         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
6997         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
6998         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
6999         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
7000         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
7001         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
7002         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
7003         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7004         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
7005         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
7006         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
7007         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
7008         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
7009         (__isnanf): Likewise.
7010         (__isinf_ns): Likewise.
7011         (__isinf_nsf): Likewise.
7012         (__finite): Likewise.
7013         (__finitef): Likewise.
7014         (__ieee754_sqrt): Define as macro.
7015         (__ieee754_sqrtf): Define as macro.
7016         (__ieee754_sqrtl): Define as macro.
7017         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
7018         inlined copy.
7019         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
7020         __FINITE_MATH_ONLY__ consistent.
7021         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
7022
7023 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
7024
7025         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
7026         of rawmemchr.
7027
7028         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
7029
7030 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
7031
7032         * po/ja.po: Update from translation team.
7033
7034 2011-10-08  Roland McGrath  <roland@hack.frob.com>
7035
7036         * locale/programs/locarchive.c (prepare_address_space): New function.
7037         (create_archive, enlarge_archive, open_archive): Use it.
7038
7039         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
7040         inside [SHARED], where it is used.
7041
7042         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
7043
7044         * nss/getent.c (netgroup_keys): Remove unused variable.
7045         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
7046
7047 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
7048
7049         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
7050         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
7051         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
7052         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
7053         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
7054         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
7055         * math/Makefile (libm-calls): Add s_isinf_ns.
7056         * math/divtc3.c: Use __isinf_nsl instead of isinf.
7057         * math/multc3.c: Likewise.
7058         * math/s_casin.c: Likewise.
7059         * math/s_casinf.c: Likewise.
7060         * math/s_casinl.c: Likewise.
7061         * math/s_ccos.c: Likewise.
7062         * math/s_ccosf.c: Likewise.
7063         * math/s_ccosl.c: Likewise.
7064         * math/s_ctan.c: Likewise.
7065         * math/s_ctanf.c: Likewise.
7066         * math/s_ctanh.c: Likewise.
7067         * math/s_ctanhf.c: Likewise.
7068         * math/s_ctanhl.c: Likewise.
7069         * math/s_ctanl.c: Likewise.
7070         * math/w_fmod.c: Likewise.
7071         * math/w_fmodf.c: Likewise.
7072         * math/w_fmodl.c: Likewise.
7073         * math/w_remainder.c: Likewise.
7074         * math/w_remainderf.c: Likewise.
7075         * math/w_remainderl.c: Likewise.
7076         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
7077         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
7078         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
7079         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
7080         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
7081         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
7082         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
7083         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
7084
7085         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
7086         of the number.
7087         * stdio-common/printf_fphex.c: Likewise.
7088         * stdio-common/printf_size.c: Likewise.
7089
7090         * math/e_exp10.c: Include math_private.h using <...> not "...".
7091         * math/e_exp10f.c: Likewise.
7092         * math/e_exp10l.c: Likewise.
7093         * math/e_exp2l.c: Likewise.
7094         * math/e_j0l.c: Likewise.
7095         * math/e_j1l.c: Likewise.
7096         * math/e_jnl.c: Likewise.
7097         * math/e_lgammal_r.c: Likewise.
7098         * math/e_rem_pio2l.c: Likewise.
7099         * math/e_scalb.c: Likewise.
7100         * math/e_scalbf.c: Likewise.
7101         * math/e_scalbl.c: Likewise.
7102         * math/k_cosl.c: Likewise.
7103         * math/k_sinl.c: Likewise.
7104         * math/k_tanl.c: Likewise.
7105         * math/s_cacoshf.c: Likewise.
7106         * math/s_catan.c: Likewise.
7107         * math/s_catanf.c: Likewise.
7108         * math/s_catanh.c: Likewise.
7109         * math/s_catanhf.c: Likewise.
7110         * math/s_catanhl.c: Likewise.
7111         * math/s_catanl.c: Likewise.
7112         * math/s_ccosh.c: Likewise.
7113         * math/s_ccoshf.c: Likewise.
7114         * math/s_ccoshl.c: Likewise.
7115         * math/s_cexp.c: Likewise.
7116         * math/s_cexpf.c: Likewise.
7117         * math/s_cexpl.c: Likewise.
7118         * math/s_clog.c: Likewise.
7119         * math/s_clog10.c: Likewise.
7120         * math/s_clog10f.c: Likewise.
7121         * math/s_clog10l.c: Likewise.
7122         * math/s_clogf.c: Likewise.
7123         * math/s_clogl.c: Likewise.
7124         * math/s_csin.c: Likewise.
7125         * math/s_csinf.c: Likewise.
7126         * math/s_csinh.c: Likewise.
7127         * math/s_csinhf.c: Likewise.
7128         * math/s_csinhl.c: Likewise.
7129         * math/s_csinl.c: Likewise.
7130         * math/s_csqrt.c: Likewise.
7131         * math/s_csqrtf.c: Likewise.
7132         * math/s_csqrtl.c: Likewise.
7133         * math/s_ctan.c: Likewise.
7134         * math/s_ctanf.c: Likewise.
7135         * math/s_ctanh.c: Likewise.
7136         * math/s_ctanhf.c: Likewise.
7137         * math/s_ctanhl.c: Likewise.
7138         * math/s_ctanl.c: Likewise.
7139         * math/s_ldexp.c: Likewise.
7140         * math/s_ldexpf.c: Likewise.
7141         * math/s_ldexpl.c: Likewise.
7142         * math/s_significand.c: Likewise.
7143         * math/s_significandf.c: Likewise.
7144         * math/s_significandl.c: Likewise.
7145         * math/w_acos.c: Likewise.
7146         * math/w_acosf.c: Likewise.
7147         * math/w_acosh.c: Likewise.
7148         * math/w_acoshf.c: Likewise.
7149         * math/w_acoshl.c: Likewise.
7150         * math/w_acosl.c: Likewise.
7151         * math/w_asin.c: Likewise.
7152         * math/w_asinf.c: Likewise.
7153         * math/w_asinl.c: Likewise.
7154         * math/w_atan2.c: Likewise.
7155         * math/w_atan2f.c: Likewise.
7156         * math/w_atan2l.c: Likewise.
7157         * math/w_atanh.c: Likewise.
7158         * math/w_atanhf.c: Likewise.
7159         * math/w_atanhl.c: Likewise.
7160         * math/w_cosh.c: Likewise.
7161         * math/w_coshf.c: Likewise.
7162         * math/w_coshl.c: Likewise.
7163         * math/w_dremf.c: Likewise.
7164         * math/w_exp10.c: Likewise.
7165         * math/w_exp10f.c: Likewise.
7166         * math/w_exp10l.c: Likewise.
7167         * math/w_exp2.c: Likewise.
7168         * math/w_exp2f.c: Likewise.
7169         * math/w_fmod.c: Likewise.
7170         * math/w_fmodf.c: Likewise.
7171         * math/w_fmodl.c: Likewise.
7172         * math/w_hypot.c: Likewise.
7173         * math/w_hypotf.c: Likewise.
7174         * math/w_hypotl.c: Likewise.
7175         * math/w_j0.c: Likewise.
7176         * math/w_j0f.c: Likewise.
7177         * math/w_j0l.c: Likewise.
7178         * math/w_j1.c: Likewise.
7179         * math/w_j1f.c: Likewise.
7180         * math/w_j1l.c: Likewise.
7181         * math/w_jn.c: Likewise.
7182         * math/w_jnf.c: Likewise.
7183         * math/w_jnl.c: Likewise.
7184         * math/w_lgamma.c: Likewise.
7185         * math/w_lgamma_r.c: Likewise.
7186         * math/w_lgammaf.c: Likewise.
7187         * math/w_lgammaf_r.c: Likewise.
7188         * math/w_lgammal.c: Likewise.
7189         * math/w_lgammal_r.c: Likewise.
7190         * math/w_log.c: Likewise.
7191         * math/w_log10.c: Likewise.
7192         * math/w_log10f.c: Likewise.
7193         * math/w_log10l.c: Likewise.
7194         * math/w_log2.c: Likewise.
7195         * math/w_log2f.c: Likewise.
7196         * math/w_log2l.c: Likewise.
7197         * math/w_logf.c: Likewise.
7198         * math/w_logl.c: Likewise.
7199         * math/w_pow.c: Likewise.
7200         * math/w_powf.c: Likewise.
7201         * math/w_powl.c: Likewise.
7202         * math/w_remainder.c: Likewise.
7203         * math/w_remainderf.c: Likewise.
7204         * math/w_remainderl.c: Likewise.
7205         * math/w_scalb.c: Likewise.
7206         * math/w_scalbf.c: Likewise.
7207         * math/w_scalbl.c: Likewise.
7208         * math/w_sinh.c: Likewise.
7209         * math/w_sinhf.c: Likewise.
7210         * math/w_sinhl.c: Likewise.
7211         * math/w_sqrt.c: Likewise.
7212         * math/w_sqrtf.c: Likewise.
7213         * math/w_sqrtl.c: Likewise.
7214         * math/w_tgamma.c: Likewise.
7215         * math/w_tgammaf.c: Likewise.
7216         * math/w_tgammal.c: Likewise.
7217
7218         * po/ja.po: Update from translation team.
7219
7220 2011-09-29  Andreas Jaeger  <aj@suse.de>
7221
7222         [BZ #13179]
7223         * sunrpc/netname.c (netname2host): Fix logic.
7224
7225         [BZ #6779]
7226         [BZ #6783]
7227         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
7228         correctly.
7229         * math/w_remainder.c (__remainder): Likewise.
7230         * math/w_remainderf.c (__remainderf): Likewise.
7231         * math/libm-test.inc (remainder_test): Add test cases.
7232
7233 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7234
7235         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
7236         sdiv_qrnnd.
7237
7238 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
7239
7240         * string/test-memcmp.c: Avoid unncessary #defines.
7241         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
7242
7243 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7244
7245         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
7246         Use new sse2 version for core i3 - i7 as it's faster
7247         than sse42 version.
7248         (bit_Prefer_PMINUB_for_stringop): New.
7249         * sysdeps/x86_64/rawmemchr.S: Update.
7250         Replace with faster SSE2 version.
7251         * sysdeps/x86_64/memrchr.S: New file.
7252         * sysdeps/x86_64/memchr.S: Update.
7253         Replace with faster SSE2 version.
7254
7255 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
7256
7257         * elf/dl-load.c (lose): Add cast to avoid warning.
7258
7259 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
7260
7261         * po/ca.po: Update from translation team.
7262
7263         * inet/getnetgrent_r.c: Hook up nscd.
7264         * nscd/Makefile (routines): Add nscd_netgroup.
7265         (nscd-modules): Add netgroupcache.
7266         (CFLAGS-netgroupcache.c): Define.
7267         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
7268         (cache_search): Add const to second parameter.
7269         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
7270         INNETGR.
7271         (dbs): Add netgrdb entry.
7272         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
7273         (verify_persistent_db): Handle netgrdb.
7274         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
7275         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
7276         GETFDNETGR.
7277         (netgroup_response_header): Define.
7278         (innetgroup_response_header): Define.
7279         (datahead): Add netgroup_response_header and innetgroup_response_header
7280         elements.
7281         * nscd/nscd.conf: Add entries for netgroup cache.
7282         * nscd/nscd.h (dbtype): Add netgrdb.
7283         (_PATH_NSCD_NETGROUP_DB): Define.
7284         (netgroup_iov_disabled): Declare.
7285         (xmalloc, xcalloc, xrealloc): Move declarations here.
7286         (cache_search): Adjust prototype.
7287         Add netgroup-related prototypes.
7288         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
7289         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
7290         (__nscd_innetgr): Declare.
7291         * nscd/selinux.c (perms): Use access_vector_t as element type and
7292         add netgroup-related initializers.
7293         * nscd/netgroupcache.c: New file.
7294         * nscd/nscd_netgroup.c: New file.
7295         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
7296         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
7297         For four parameters use innetgr.
7298         * nss/nss_files/files-init.c: Add definition and callback for netgr.
7299         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
7300         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
7301         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
7302
7303         * nscd/connections.c (register_traced_file): Don't register file
7304         for disabled databases.
7305
7306 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
7307
7308         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
7309
7310         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
7311         from tree and freeing node.
7312
7313 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
7314
7315         * nss/nsswitch.c (__nss_database_lookup): Handle
7316         nss_parse_service_list out of memory case.
7317
7318 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
7319
7320         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
7321         out of memory case.
7322
7323 2011-10-04  Andreas Schwab  <schwab@redhat.com>
7324
7325         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
7326         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
7327         pass it down.
7328         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
7329         elf_machine_rela, elf_machine_lazy_rel.
7330         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
7331         (ELF_DYNAMIC_DO_REL): Likewise.
7332         (ELF_DYNAMIC_DO_RELA): Likewise.
7333         (ELF_DYNAMIC_RELOCATE): Likewise.
7334         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
7335         to ELF_DYNAMIC_DO_REL.
7336         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
7337         (dl_main): In trace mode always set __RTLD_NOIFUNC.
7338         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
7339         elf_machine_rela.
7340         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
7341         skip_ifunc, don't call ifunc function if non-zero.
7342         (elf_machine_rela): Likewise.
7343         (elf_machine_lazy_rel): Likewise.
7344         (elf_machine_lazy_rela): Likewise.
7345         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
7346         (elf_machine_lazy_rel): Likewise.
7347         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
7348         Likewise.
7349         (elf_machine_lazy_rel): Likewise.
7350         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7351         Likewise.
7352         (elf_machine_lazy_rel): Likewise.
7353         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
7354         (elf_machine_lazy_rel): Likewise.
7355         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
7356         (elf_machine_lazy_rel): Likewise.
7357         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7358         (elf_machine_lazy_rel): Likewise.
7359         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7360         (elf_machine_lazy_rel): Likewise.
7361         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7362         (elf_machine_lazy_rel): Likewise.
7363         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
7364         (elf_machine_lazy_rel): Likewise.
7365
7366 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
7367
7368         * nss/nss_files/files-init.c (_nss_files_init): Use static
7369         initialization for all the *_traced_file variables.
7370
7371 2011-09-28  Andreas Schwab  <schwab@redhat.com>
7372
7373         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7374
7375 2011-09-27  Roland McGrath  <roland@hack.frob.com>
7376
7377         [BZ #13226]
7378         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
7379
7380 2011-09-27  Andreas Schwab  <schwab@redhat.com>
7381
7382         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
7383         Reread the line before reparsing it.
7384
7385 2011-09-26  Andreas Schwab  <schwab@redhat.com>
7386
7387         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
7388
7389 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
7390             Maxim Kuvyrkov  <maxim@codesourcery.com>
7391             Joseph Myers  <joseph@codesourcery.com>
7392
7393         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
7394         if needed for __stack_chk_guard.
7395
7396 2011-09-19  Roland McGrath  <roland@hack.frob.com>
7397
7398         * sysdeps/posix/spawni.c (script_execute): Always define it.
7399         It will be optimized away if unused.
7400         (maybe_script_execute): New function.
7401         (__spawni): Call it.
7402
7403         * Makerules: Don't include tls.make.
7404         (config-tls): Always set to thread.
7405         * tls.make.c: File removed.
7406
7407 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
7408
7409         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
7410         * config.make.in (CPPFLAGS-config): New substituted variable.
7411
7412 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
7413
7414         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
7415
7416         [BZ #13192]
7417         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
7418         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
7419
7420 2011-09-15  Roland McGrath  <roland@hack.frob.com>
7421
7422         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
7423         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
7424         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
7425         (CALL_FAIL): Likewise.
7426         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
7427         (CALL_FAIL): Macro removed.
7428         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
7429
7430 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
7431
7432         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
7433         for __FINITE_MATH_ONLY__ == 1.
7434
7435 2011-09-15  Andreas Schwab  <schwab@redhat.com>
7436
7437         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
7438         __ieee754_sqrt instead of sqrt.
7439         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
7440         __ieee754_sqrtf instead of sqrtf.
7441         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
7442         __floorf instead of floorf.
7443         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
7444         __floorf, __truncf instead of floorf, truncf.
7445
7446 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
7447
7448         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
7449
7450         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
7451         __extern_always_inline.
7452         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
7453         32-bit.
7454
7455 2011-09-14  Andreas Schwab  <schwab@redhat.com>
7456
7457         * elf/rtld.c (dl_main): Also relocate in dependency order when
7458         doing symbol dependency testing.
7459
7460 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
7461
7462         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7463         Always define `refsym'.
7464
7465 2011-09-13  Andreas Schwab  <schwab@redhat.com>
7466
7467         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
7468         (__FD_ELT): Renamed from __FDELT.
7469         * misc/bits/select2.h (__FD_ELT): Likewise.
7470         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
7471         __FD_MASK instead of __FDELT, __FDMASK.
7472         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7473         Likewise.
7474         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7475         Likewise.
7476
7477         * elf/Makefile (gen-ldd): Fix pattern.
7478
7479         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
7480         (init_tls): Likewise.
7481
7482 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
7483
7484         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
7485
7486 2011-09-12  Andreas Schwab  <schwab@redhat.com>
7487
7488         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
7489         `struct cmsghdr *' instead of `void *'.
7490         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
7491         Likewise.
7492
7493 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
7494
7495         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
7496         if non-absolute.
7497         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
7498         ldd_rewrite_script.
7499
7500 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
7501
7502         * configure.in: Remove --with-tls option.
7503         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
7504         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
7505         out in case it is missing.
7506         * sysdeps/ia64/elf/configure.in: Likewise.
7507         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
7508         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
7509         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
7510         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
7511         * sysdeps/sh/elf/configure.in: Likewise.
7512         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
7513         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
7514         * sysdeps/x86_64/elf/configure.in: Likewise.
7515         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
7516         * sysdeps/mach/hurd/tls.h: Likewise.
7517
7518         [BZ #13067]
7519         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
7520
7521         [BZ #13090]
7522         * configure.in: Fix use of AC_INIT.
7523
7524         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
7525
7526 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
7527
7528         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
7529         __set_errno.
7530         * malloc/hooks.c: Likewise.
7531
7532         [BZ #11929]
7533         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
7534         variables statically.
7535         (narenas): Initialize.
7536         (list_lock): Initialize.
7537         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
7538         initializtion of main_arena and list_lock.  Small cleanups.
7539         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
7540         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
7541         Add initializers to main_arena and mp_.
7542         (malloc_state): Remove pagesize member.  Change all users to use
7543         GLRO(dl_pagesize).
7544
7545         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
7546         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
7547         is always initialized.
7548
7549         * malloc/malloc.c: Removed unused configurations and dead code.
7550         * malloc/arena.c: Likewise.
7551         * malloc/hooks.c: Likewise.
7552         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
7553
7554         * include/tls.h: Removed.  USE___THREAD must always be defined.
7555         * bits/libc-tsd.h: Don't handle !USE___THREAD.
7556         * elf/dl-libc.c: Likewise.
7557         * elf/dl-tsd.c: Likewise.
7558         * include/errno.h: Likewise.
7559         * include/netdb.h: Likewise.
7560         * include/resolv.h: Likewise.
7561         * inet/herrno-loc.c: Likewise.
7562         * inet/herrno.c: Likewise.
7563         * malloc/arena.c: Likewise.
7564         * malloc/hooks.c: Likewise.
7565         * malloc/malloc.c: Likewise.
7566         * resolv/res-state.c: Likewise.
7567         * resolv/res_libc.c: Likewise.
7568         * sysdeps/i386/dl-machine.h: Likewise.
7569         * sysdeps/ia64/dl-machine.h: Likewise.
7570         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
7571         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
7572         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7573         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7574         * sysdeps/sh/dl-machine.h: Likewise.
7575         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7576         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7577         * sysdeps/unix/i386/sysdep.S: Likewise.
7578         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7579         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
7580         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
7581         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7582         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
7583         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7584         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
7585         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7586         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7587         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7588         * sysdeps/unix/x86_64/sysdep.S: Likewise.
7589         * sysdeps/x86_64/dl-machine.h: Likewise.
7590         * tls.make.c: Likewise.
7591
7592         * configure.in: Remove --with-__thread option.  Make tests for
7593         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
7594         tls_model attribute fail if no support is available.  Remove
7595         USE_IN_LIBIO.
7596         * Makeconfig: Adjust for dropped configure option.  All features are
7597         now mandatory.
7598         * Makerules: Likewise.
7599         * Versions.def: Likewise.
7600         * argp/argp-fmtstream.c: Likewise.
7601         * argp/argp-fmtstream.h: Likewise.
7602         * argp/argp-help.c: Likewise.
7603         * assert/assert.c: Likewise.
7604         * config.h.in: Likewise.
7605         * config.make.in: Likewise.
7606         * configure: Likewise.
7607         * configure.in: Likewise.
7608         * csu/Versions: Likewise.
7609         * csu/init.c: Likewise.
7610         * elf/tst-audit2.c: Likewise.
7611         * elf/tst-tls10.c: Likewise.
7612         * elf/tst-tls10.h: Likewise.
7613         * elf/tst-tls11.c: Likewise.
7614         * elf/tst-tls12.c: Likewise.
7615         * elf/tst-tls14.c: Likewise.
7616         * elf/tst-tlsmod11.c: Likewise.
7617         * elf/tst-tlsmod12.c: Likewise.
7618         * elf/tst-tlsmod13.c: Likewise.
7619         * elf/tst-tlsmod13a.c: Likewise.
7620         * elf/tst-tlsmod14a.c: Likewise.
7621         * elf/tst-tlsmod15b.c: Likewise.
7622         * elf/tst-tlsmod16a.c: Likewise.
7623         * elf/tst-tlsmod16b.c: Likewise.
7624         * elf/tst-tlsmod7.c: Likewise.
7625         * elf/tst-tlsmod8.c: Likewise.
7626         * elf/tst-tlsmod9.c: Likewise.
7627         * gmon/gmon.c: Likewise.
7628         * grp/fgetgrent_r.c: Likewise.
7629         * grp/putgrent.c: Likewise.
7630         * hurd/fopenport.c: Likewise.
7631         * include/libc-symbols.h: Likewise.
7632         * include/tls.h: Likewise.
7633         * intl/gettextP.h: Likewise.
7634         * intl/loadinfo.h: Likewise.
7635         * locale/global-locale.c: Likewise.
7636         * locale/localeinfo.h: Likewise.
7637         * mach/devstream.c: Likewise.
7638         * malloc/arena.c: Likewise.
7639         * malloc/set-freeres.c: Likewise.
7640         * misc/err.c: Likewise.
7641         * misc/getttyent.c: Likewise.
7642         * misc/mntent_r.c: Likewise.
7643         * posix/getopt.c: Likewise.
7644         * posix/wordexp.c: Likewise.
7645         * pwd/fgetpwent_r.c: Likewise.
7646         * resolv/Versions: Likewise.
7647         * resolv/res_hconf.c: Likewise.
7648         * shadow/fgetspent_r.c: Likewise.
7649         * shadow/putspent.c: Likewise.
7650         * stdio-common/printf_fphex.c: Likewise.
7651         * stdio-common/tmpfile.c: Likewise.
7652         * stdlib/abort.c: Likewise.
7653         * stdlib/fmtmsg.c: Likewise.
7654         * sunrpc/auth_unix.c: Likewise.
7655         * sunrpc/clnt_perr.c: Likewise.
7656         * sunrpc/clnt_tcp.c: Likewise.
7657         * sunrpc/clnt_udp.c: Likewise.
7658         * sunrpc/clnt_unix.c: Likewise.
7659         * sunrpc/openchild.c: Likewise.
7660         * sunrpc/svc_simple.c: Likewise.
7661         * sunrpc/svc_tcp.c: Likewise.
7662         * sunrpc/svc_udp.c: Likewise.
7663         * sunrpc/svc_unix.c: Likewise.
7664         * sunrpc/xdr.c: Likewise.
7665         * sunrpc/xdr_array.c: Likewise.
7666         * sunrpc/xdr_rec.c: Likewise.
7667         * sunrpc/xdr_ref.c: Likewise.
7668         * sunrpc/xdr_stdio.c: Likewise.
7669
7670 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7671
7672         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7673
7674 2011-07-03  Andreas Jaeger  <aj@suse.de>
7675
7676         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
7677         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
7678         regenerate with gen-libm-tests.pl.
7679
7680 2010-05-12  Petr Baudis  <pasky@suse.cz>
7681
7682         [BZ #11589]
7683         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
7684         around j0() zero points by switching to j1().
7685         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7686         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7687         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7688         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7689
7690 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7691
7692         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
7693         instead of 0.
7694         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
7695         instead of 0.                              .
7696         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7697         Patch in part by Pavel Roskin <proski@gnu.org>.
7698
7699         [BZ #13138]
7700         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
7701         realloc.
7702         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
7703         Free memory block if necessary.
7704
7705         [BZ #12847]
7706         * libio/genops.c (INTDEF): For string streams the _lock pointer can
7707         be NULL.  Don't lock in this case.
7708
7709 2011-09-09  Roland McGrath  <roland@hack.frob.com>
7710
7711         * elf/elf.h (ELFOSABI_GNU): New macro.
7712         (ELFOSABI_LINUX): Define to that.
7713
7714 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
7715
7716         * string/strncat.c (strncat): Undef the symbol in case it has been
7717         defined in bits/string.h.
7718
7719 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7720
7721         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
7722
7723         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
7724         link map.
7725
7726 2011-08-17  Andreas Jaeger  <aj@suse.de>
7727
7728         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
7729
7730 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
7731             Ian Lance Taylor  <iant@google.com>
7732
7733         * math/libm-test.inc (lround_test): New testcase.
7734         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
7735
7736 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
7737
7738         * Makefile: Remove support for automatic cvs check-ins.
7739         * Makerules: Likewise.
7740         * config.make.in: Likewise.
7741         * configure.in: Likewise.
7742         * intl/Makefile: Likewise.
7743         * locale/Makefile: Likewise.
7744         * po/Makefile: Likewise.
7745         * posix/Makefile: Likewise.
7746         * sysdeps/gnu/Makefile: Likewise.
7747         * sysdeps/mach/hurd/Makefile: Likewise.
7748         * sysdeps/sparc/sparc32/Makefile: Likewise.
7749
7750         [BZ #13118]
7751         * posix/Makefile (bug-regex32-ENV): Define.
7752         Patch by John Stanley <jpsinthemix@verizon.net>.
7753
7754         * misc/Makefile (headers): Add bits/select2.h.
7755         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
7756         * misc/bits/select2.h: New file.
7757         * include/bits/select2.h: New file.
7758         * debug/Makefile (routines): Add fdelt_chk.
7759         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
7760         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
7761         FD_ISSET.
7762         * debug/fdelt_chk.c: New file.
7763
7764         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
7765         * wcsmbs/test-wmemcmp.c: Likewise.
7766         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
7767         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
7768
7769 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7770
7771         * string/Makefile (strop-tests): Add memcmp.
7772         * string/test-wmemcmp.c: New file.
7773         * string/test-memcmp.c: Add wmemcmp support.
7774
7775 2011-09-08  Roland McGrath  <roland@hack.frob.com>
7776
7777         [BZ #13153]
7778         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
7779         2011-07-19 change.
7780
7781         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
7782         garbage value in a __mach_port_mod_refs call in the cases of the
7783         task-self and thread-self ports.
7784
7785 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7786
7787         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
7788
7789 2011-09-08  Andreas Schwab  <schwab@redhat.com>
7790
7791         * elf/dl-load.c (lose): Check for non-null L.
7792
7793 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
7794
7795         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
7796
7797         * elf/dl-libc.c (dlerror_run): Pass back error code from
7798         dl_catch_error.
7799
7800         [BZ #13123]
7801         * elf/dl-load.c (lose): Free l_origin if it is valid.
7802
7803         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
7804         names.
7805         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
7806         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
7807         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
7808         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
7809         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
7810         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
7811
7812 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7813
7814         * sysdeps/powerpc/fpu/e_hypot.c: New file.
7815         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
7816         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
7817         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
7818         * sysdeps/powerpc/fpu/k_cosf.c: New file.
7819         * sysdeps/powerpc/fpu/k_sinf.c: New file.
7820         * sysdeps/powerpc/fpu/s_cosf.c: New file.
7821         * sysdeps/powerpc/fpu/s_sinf.c: New file.
7822         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
7823         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
7824
7825 2011-08-15  Alan Modra  <amodra@gmail.com>
7826
7827         [BZ #13092]
7828         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
7829         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
7830         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
7831         ppc_mcount to static-only-routines.
7832         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
7833         __mcount_internal.
7834         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
7835         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
7836
7837 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
7838
7839         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
7840         for finite and infinity parameters.
7841
7842 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
7843
7844         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
7845         and add nop instructions for throughput optimization.
7846         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
7847
7848 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
7849
7850         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
7851         aligned copy for power7 with vector-scalar instructions.
7852         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
7853
7854 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
7855
7856         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
7857         AVX check.
7858
7859 2011-09-07  Andreas Schwab  <schwab@redhat.com>
7860
7861         [BZ #13144]
7862         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
7863         last change.
7864
7865 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
7866
7867         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7868         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
7869         syscall wrapper around clock_gettime in __vdso_clock_gettime.
7870         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
7871         clock_gettime.
7872
7873 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
7874
7875         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
7876         Forgot to demangle the pointer.
7877
7878         * sysdeps/i386/sysdep.h: Define atom_text_section.
7879         * sysdeps/x86_64/sysdep.h: Likewise.
7880         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
7881         section with atom_text_section.
7882         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
7883         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
7884         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
7885         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
7886         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
7887
7888         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
7889         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
7890         already be defined.  Change to take two parameters and don't assign
7891         result to variable.  Adjust all users.
7892         Define INTERNAL_GETTIME if not already defined.
7893         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
7894         call.
7895         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
7896         HAVE_CLOCK_GETTIME_VSYSCALL.
7897         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
7898
7899         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
7900         gettimeofday vsyscall, just use time.
7901
7902 2011-09-06  Andreas Schwab  <schwab@redhat.com>
7903
7904         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
7905         <errno.h>.
7906
7907 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
7908
7909         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
7910         syscall on x86-64.
7911         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
7912         syscall.
7913         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
7914         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
7915         syscall if possible.
7916
7917 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7918
7919         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
7920         e_ident.  Don't pass to find_mapsXX.
7921         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
7922
7923 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7924
7925         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7926         strchr-sse2-no-bsf strrchr-sse2-no-bsf
7927         * sysdeps/x86_64/multiarch/strchr.S: Update.
7928         Check bit_slow_BSF bit.
7929         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
7930         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
7931         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
7932
7933 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7934
7935         [BZ #13134]
7936         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
7937         before glibc 2.15.
7938         (tryshell): Define.
7939         (__spawni): Change last parameter to be flag.  Test
7940         SPAWN_XFLAGS_USE_PATH flag to use path or not.
7941         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
7942         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
7943         * posix/spawni.c: Likewise.
7944         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
7945         * posix/spawnp.c: Likewise.  Change normal version to use
7946         SPAWN_XFLAGS_USE_PATH.
7947         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
7948         SPAWN_XFLAGS_TRY_SHELL.
7949
7950         [BZ #13150]
7951         * posix/glob.h: Remove gcc 1.x support.
7952
7953         [BZ #13068]
7954         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
7955
7956 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7957
7958         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7959         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
7960         strrchr-sse2-bsf
7961         * sysdeps/i386/i686/multiarch/strchr.S: New file.
7962         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
7963         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
7964         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
7965         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
7966         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
7967
7968 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7969
7970         * sysdeps/x86_64/wcscmp.S: New file.
7971
7972         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
7973         wcscmp-c wcscmp-sse2
7974         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
7975         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
7976         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
7977         * wcsmbs/wcscmp.c: Allow renaming.
7978
7979 2011-09-05  David S. Miller  <davem@davemloft.net>
7980
7981         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
7982         stack slot, rather than the struct return pointer slot.
7983         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
7984         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
7985         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
7986         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
7987
7988 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7989
7990         * po/ja.po: Update from translation team.
7991
7992         [BZ #13144]
7993         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
7994         kernel in 64-bit binaries.
7995
7996 2011-09-01  David S. Miller  <davem@davemloft.net>
7997
7998         * elf/elf.h (HWCAP_SPARC_*): Move to..
7999         * sysdeps/sparc/sysdep.h: this new file and add new values.
8000         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
8001         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
8002         _DL_HWCAP_COUNT to 24.
8003         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
8004         entries.
8005         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
8006         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
8007         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
8008         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
8009         instead of magic constants.
8010         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8011
8012 2011-08-31  David S. Miller  <davem@davemloft.net>
8013
8014         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
8015         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
8016         Reimplement to do errno handling inline.
8017         (SYSCALL_ERROR_HANDLER): New macro.
8018         (__SYSCALL_STRING): Do not do errno handling in asm.
8019         (__CLONE_SYSCALL_STRING): Delete.
8020         (__INTERNAL_SYSCALL_STRING): Delete.
8021         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
8022         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
8023         (PSEUDO): Reimplement to do errno handling inline.
8024         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
8025         (SYSCALL_ERROR_HANDLER): New macro.
8026         (__SYSCALL_STRING): Do not do errno handling in asm.
8027         (__CLONE_SYSCALL_STRING): Delete.
8028         (__INTERNAL_SYSCALL_STRING): Delete.
8029         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
8030         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
8031         i386.
8032         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
8033         (inline_syscall*): Add 'err' argument.
8034         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
8035         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
8036         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
8037         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
8038
8039         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
8040         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8041
8042 2011-08-30  Andreas Schwab  <schwab@redhat.com>
8043
8044         * elf/rtld.c (dl_main): Relocate objects in dependency order.
8045
8046 2011-08-29  Jiri Olsa <jolsa@redhat.com>
8047
8048         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
8049         directive.
8050
8051 2011-08-24  David S. Miller  <davem@davemloft.net>
8052
8053         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
8054
8055 2011-08-24  Andreas Schwab  <schwab@redhat.com>
8056
8057         * elf/Makefile: Add rules to build and run unload8 test.
8058         * elf/unload8.c: New file.
8059         * elf/unload8mod1.c: New file.
8060         * elf/unload8mod1x.c: New file.
8061         * elf/unload8mod2.c: New file.
8062         * elf/unload8mod3.c: New file.
8063
8064         * elf/dl-close.c (_dl_close_worker): Reset private search list if
8065         it wasn't used.
8066
8067 2011-08-23  David S. Miller  <davem@davemloft.net>
8068
8069         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
8070         subtract stack bias.
8071         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
8072         %sp not %fp in calculations.
8073         (_JMPBUF_UNWINDS_ADJ): Likewise.
8074
8075         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
8076         (aio_suspend): Call it to force an exception region around the
8077         AIO_MISC_WAIT() invocation.
8078
8079 2011-08-23  Andreas Schwab  <schwab@redhat.com>
8080
8081         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
8082         backslash.
8083
8084 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
8085
8086         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
8087         protection macro.
8088         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
8089         and <dl-machine.h>.
8090         (Elf64_FuncDesc): Remove.
8091
8092 2011-08-22  David S. Miller  <davem@davemloft.net>
8093
8094         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
8095         sigaltstack check, add missing cfi directives.
8096         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
8097         missing cfi directives, and sigaltstack handling.
8098
8099 2011-08-16  Andreas Schwab  <schwab@redhat.com>
8100
8101         [BZ #11724]
8102         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
8103         object is seen twice.
8104         * elf/dl-fini.c (_dl_sort_fini): Likewise.
8105
8106         * elf/Makefile (distribute): Add tst-initorder2.c.
8107         (tests): Add tst-initorder2.
8108         (modules-names): Add tst-initorder2a tst-initorder2b
8109         tst-initorder2c tst-initorder2d.  Add rules to build them.
8110         ($(objpfx)tst-initorder2.out): New rule.
8111         * elf/tst-initorder2.c: New file.
8112         * elf/tst-initorder2.exp: New file.
8113
8114 2011-08-22  Andreas Schwab  <schwab@redhat.com>
8115
8116         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
8117
8118         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
8119         dependencies back to end of function.
8120
8121         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
8122         $(elfobjdir)/ld.so.
8123
8124 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
8125
8126         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
8127         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
8128         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
8129         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
8130         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
8131         of __vdso_gettimeofday.
8132         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
8133         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
8134         attribute_hidden.
8135         (_libc_vdso_platform_setup): Remove initialization of
8136         __vdso_gettimeofday and __vdso_time.
8137
8138 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
8139
8140         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
8141         and fgetc_unlocked.
8142         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
8143         getc_unlocked.
8144
8145         * elf/dl-open.c (add_to_global): Report additions to the global scope
8146         for LD_DEBUG=scopes.
8147         (dl_open_worker): Also print scope of newly loaded dependencies.
8148         (_dl_show_scope): Indicate if there is no scope.
8149
8150         [BZ #13114]
8151         * stdio-common/Makefile (tests): Add bug24.
8152         * stdio-common/bug24.c: New file.
8153
8154 2011-08-19  Andreas Jaeger  <aj@suse.de>
8155
8156         [BZ #13114]
8157         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
8158         non-existant file when using close-on-exec mode.
8159
8160 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
8161
8162         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
8163         the very first instruction.
8164
8165         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
8166         the CFI state in the end.
8167         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
8168         inclusion of dl-trampoline.h.
8169         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
8170
8171 2011-08-19  Andreas Schwab  <schwab@redhat.com>
8172
8173         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
8174         expectations for long double.
8175
8176         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
8177         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
8178
8179 2011-08-14  David S. Miller  <davem@davemloft.net>
8180
8181         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
8182         artificual limit depends upon the system page size.
8183
8184 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
8185
8186         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
8187         * resolv/Makefile: Define CFLAGS-libresolv.
8188
8189 2011-08-17  Andreas Schwab  <schwab@redhat.com>
8190
8191         * nss/makedb.c (compute_tables): Make variables used in nested
8192         function static.
8193
8194 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
8195
8196         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
8197         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
8198         if buffer was too small.
8199
8200         * elf/pldd.c (main): Attach to all threads in the process.
8201         Rewrite /proc handling to use *at functions.
8202
8203 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
8204
8205         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
8206         specifies first scope to show.
8207         (dl_open_worker): Update callers.  Move printing scope of new
8208         object to before the relocation.
8209         * elf/rtld.c (dl_main): Update _dl_show_scope call.
8210         * sysdeps/generic/ldsodefs.h: Update declaration.
8211
8212         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
8213         string for the scope number.
8214
8215 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
8216
8217         * nscd/servicescache.c (cache_addserv): Make sure written is always
8218         initialized.
8219
8220 2011-08-14  Roland McGrath  <roland@hack.frob.com>
8221
8222         * sysdeps/i386/i486/bits/atomic.h
8223         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
8224         statement expression, so as to suppress "set but not used" warning.
8225         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
8226
8227         * string/strncat.c (STRNCAT): Use prototype definition.
8228
8229         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
8230         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
8231         -Iprograms here.
8232         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
8233         (localedef-modules): Add localedef.
8234         (locale-modules): Add locale.
8235
8236         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
8237         * elf/rtld.c (dl_main): Invert order of assignment in last change,
8238         to avoid a warning.
8239
8240 2011-08-14  David S. Miller  <davem@davemloft.net>
8241
8242         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
8243         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
8244
8245 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
8246
8247         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
8248         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
8249         * elf/rtld.c (dl_main): Set l_name of vDSO.
8250         Call _dl_show_scope when DL_DEBUG_SCOPES.
8251         (process_dl_debug): Recognize scopes flag and also set it for all.
8252         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
8253         Declare _dl_show_scope.
8254
8255         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
8256         (do_dlopen): Pass caller_dlopen to dl_open.
8257         (__libc_dlopen_mode): Initialize caller_dlopen.
8258
8259         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
8260         of libc.  Make tolower call locale-independent.  Optimize a bit by
8261         using isdigit instead of isalnum.
8262         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
8263
8264 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
8265
8266         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
8267         was a dependency or dynamically loaded.
8268
8269 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
8270
8271         * intl/l10nflist.c: Allow architecture-specific pop function.
8272         * sysdeps/x86_64/l10nflist.c: New file.
8273
8274         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
8275         classification.
8276
8277 2011-08-10  Andreas Schwab  <schwab@redhat.com>
8278
8279         * include/dirent.h: Add libc_hidden_proto for scandirat and
8280         scandirat64.  Don't declare __scandirat64.
8281         * dirent/scandirat.c: Add libc_hidden_def.
8282         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
8283         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
8284
8285 2011-08-10  David S. Miller  <davem@davemloft.net>
8286
8287         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
8288         enum.
8289         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8290         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8291         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8292
8293 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
8294
8295         * Versions.def [libc]: Add GLIBC_2.15.
8296         * dirent/Makefile (routines): Add scandirat and scandirat64.
8297         * dirent/Versions [libc]: Export scandirat and scandirat64 for
8298         GLIBC_2.15.
8299         * dirent/dirent.h: Declare scandirat and scandirat64.
8300         * dirent/scandirat.c: New file.
8301         * dirent/scandirat64.c: New file.
8302         * sysdeps/wordsize-64/scandirat.c: New file.
8303         * sysdeps/wordsize-64/scandirat64.c: New file.
8304         * dirent/opendir.c: Define opendirat.
8305         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
8306         using scandirat.
8307         * dirent/scandir64.c: Adjust for scandir.c change.
8308         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
8309         __scandirat64, and __scandir_cancel_handler.
8310         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
8311         additional parameter and use openat instead of open (outside of ld.so).
8312         Add new __opendir as wrapper around __opendirat.
8313         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
8314         here without requiring old scandirat implementation.
8315
8316 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
8317
8318         * dirent/scandir.c (cancel_handler): Renamed to
8319         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
8320         defined.  Adjust users.
8321         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
8322         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
8323
8324 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
8325
8326         * string/test-string.h (IMPL): Use __STRING to expand name and then
8327         stringify it.
8328
8329         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
8330         of cleanups.
8331
8332 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8333
8334         * string/Makefile: Update.
8335         (strop-tests): Append strncat.
8336         * string/test-wcscmp.c: New file.
8337         New comprehensive test for wcscmp.
8338         * string/test-strcmp.c: Update.
8339         (WIDE): New define.
8340
8341 2011-07-22  Andreas Schwab  <schwab@redhat.com>
8342
8343         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
8344         line.
8345
8346 2011-07-26  Andreas Schwab  <schwab@redhat.com>
8347
8348         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
8349         encoding to ACE if AI_IDN.
8350
8351 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
8352
8353         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
8354         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
8355
8356 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8357
8358         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
8359         Fix overflow bug in strncat.
8360         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
8361
8362         * string/test-strncat.c: Update.
8363         Add new tests for checking overflow bugs.
8364
8365 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8366
8367         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8368         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
8369         * sysdeps/i386/i686/multiarch/strcat.S: New file.
8370         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
8371         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
8372         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
8373         * sysdeps/i386/i686/multiarch/strncat.S: New file.
8374         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
8375         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
8376
8377         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
8378         (USE_AS_STRCAT): Define.
8379         Add strcat and strncat support.
8380         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
8381
8382 2011-07-25  Andreas Schwab  <schwab@redhat.com>
8383
8384         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
8385         __n bigger than INT_MAX+1.
8386         (__strncmp_g): Likewise.
8387
8388 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
8389
8390         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
8391         * libio/stido.h: Likewise.
8392
8393         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
8394         (AF_NFC): Define.
8395         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
8396         (AF_NFC): Define.
8397
8398         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
8399         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8400         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8401         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8402         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8403
8404         [BZ #13021]
8405         * scripts/test-installation.pl: Don't expect libnss_test1 to be
8406         installed.
8407
8408         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
8409         typo.
8410         (_dl_x86_64_save_sse): Likewise.
8411
8412 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
8413
8414         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
8415         OSXSAVE.
8416         (_dl_x86_64_save_sse): Likewise.
8417
8418         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
8419
8420         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
8421
8422 2011-07-21  Andreas Schwab  <schwab@redhat.com>
8423
8424         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
8425         change.
8426         (_dl_x86_64_save_sse): Use correct AVX check.
8427
8428 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8429
8430         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
8431         bug in strncpy/strncat.
8432         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
8433
8434 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
8435
8436         * string/tester.c (test_strcat): Add tests for different alignments
8437         of source and destination.
8438         (test_strncat): Likewise.
8439
8440 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8441
8442         [BZ #12852]
8443         * posix/glob.c (glob): Check passed in values before using them in
8444         expressions to avoid some overflows.
8445         (glob_in_dir): Likewise.
8446
8447         [BZ #13007]
8448         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
8449         check for AVX enablement so that we don't crash with old kernels and
8450         new hardware.
8451         * elf/tst-audit4.c: Add same checks here.
8452         * elf/tst-audit6.c: Likewise.
8453
8454         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
8455
8456 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
8457
8458         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
8459
8460 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8461
8462         * po/cs.po: Update from translation team.
8463         * po/bg.po: Likewise.
8464
8465 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
8466
8467         * misc/sys/cdefs.h: Add support for const attribute.
8468         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
8469         to gnu_dev_{major,minor,makedev} functions.
8470
8471 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
8472
8473         * intl/dcigettext.c (get_output_charset): Add missing bracket.
8474
8475 2011-07-20  Andreas Schwab  <schwab@redhat.com>
8476
8477         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
8478         strlen results.
8479
8480 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8481
8482         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
8483         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
8484         register in order to avoid conflicts with the soft frame pointer
8485         being held in r11 when necessary.
8486         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
8487         (INTERNAL_VSYSCALL_NCS): Likewise.
8488
8489 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
8490
8491         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
8492         * elf/dl-fini.c (_dl_fini): Adjust caller.
8493         * elf/dl-close.c (_dl_close_worker): Likewise.
8494         * sysdeps/generic/ldsodefs.h: Adjust declaration.
8495
8496 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8497
8498         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
8499         "aux_cache->nlibs < 0".
8500
8501         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
8502         in the reload-count case.
8503
8504 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8505
8506         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8507         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
8508         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
8509         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
8510         * sysdeps/x86_64/multiarch/strcat.S: New file.
8511         * sysdeps/x86_64/multiarch/strncat.S: New file.
8512         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
8513         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
8514         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
8515         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
8516         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
8517         (USE_AS_STRCAT): Define.
8518         Add strcat and strncat support.
8519         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
8520         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
8521         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
8522         * string/strncat.c: Update.
8523         (USE_AS_STRNCAT): Define.
8524         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8525         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
8526         and i7.
8527         * sysdeps/x86_64/multiarch/init-arch.h
8528         (bit_Prefer_PMINUB_for_stringop): New.
8529         (index_Prefer_PMINUB_for_stringop): Likewise.
8530         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
8531         bit_Prefer_PMINUB_for_stringop.
8532
8533 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8534
8535         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
8536         buffer64.
8537         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
8538         of casting of buffer.
8539         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
8540         buffer32 and buffer64.
8541         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
8542         writes instead of casting of buffer.
8543         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
8544         buffer32.
8545         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
8546         casting of buffer.
8547
8548 2011-07-19  Andreas Schwab  <schwab@redhat.com>
8549
8550         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
8551
8552 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8553
8554         * nscd/nscd.c (termination_handler): Don't do anything for a database
8555         if it has not yet been initialized.
8556
8557 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8558
8559         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8560
8561 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8562
8563         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8564
8565 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8566
8567         * po/nl.po: Update from translation team.
8568         * po/sv.po: Likewise.
8569
8570 2011-07-16  Roland McGrath  <roland@hack.frob.com>
8571
8572         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
8573         now disallowed by GCC.
8574
8575         * configure.in (use-default-link): Default to yes if a test -shared
8576         link meets our qualifications.
8577         * configure: Regenerated.
8578
8579         * config.make.in (output-format): New variable.
8580         * configure.in: Check for ld --print-output-format support.
8581         * configure: Regenerated.
8582         * Makerules ($(common-objpfx)format.lds)
8583         [$(output-format) != unknown]: Just use $(output-format),
8584         instead of the linker-script munging.
8585
8586 2011-07-14  Roland McGrath  <roland@hack.frob.com>
8587
8588         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
8589         of $(common-objpfx)shlib.lds.
8590         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
8591
8592         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
8593         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
8594
8595         * configure.in (-z relro check): Adjust test code to add a large
8596         writable data section after it.
8597         * configure: Regenerated.
8598
8599 2011-07-11  Roland McGrath  <roland@hack.frob.com>
8600
8601         * configure.in (-z relro check): Fix test code to make the variable
8602         truly const.
8603         * configure: Regenerated.
8604
8605 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
8606
8607         * nscd/nscd.h (struct traced_file): Define.
8608         (struct database_dyn): Remove inotify_descr, reset_res, and filename
8609         elements.  Add traced_files.
8610         (inotify_fd): Declare.
8611         (register_traced_file): Declare.
8612         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
8613         (inotify_fd): Export.
8614         (resolv_conf_descr): Remove.
8615         (nscd_init): Move inotify descriptor creation to main.
8616         Don't register files for notification here.
8617         (register_traced_file): New function.
8618         (invalidate_cache): Don't use reset_res to determine whether to call
8619         res_init, go through the list of registered files.
8620         (main_loop_poll): The inotify descriptors are now stored in the
8621         structures for the traced files.
8622         (main_loop_epoll): Likewise
8623         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
8624         to __nss_disable_nscd.
8625         * nscd/cache.c (prune_cache): There is no single inotify descriptor
8626         for a database anymore.  Check the records for all the registered
8627         files instead.
8628         * nss/Makefile (libnss_files-routines): Add files-init.
8629         (libnss_db-routines): Add db-init.
8630         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
8631         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
8632         * nss/nss_db/db-init.c: New file.
8633         * nss/nss_files/files-init.c: New file.
8634         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
8635         __nss_lookup_function.
8636         (__nss_lookup_function): Call nss_load_library.
8637         (nss_load_all_libraries): New function.
8638         (__nss_disable_nscd): Take parameter with callback function for files
8639         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
8640         used for the cached services.
8641         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
8642         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
8643         options for features to all the files in nscd.
8644
8645         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
8646
8647 2011-07-10  Roland McGrath  <roland@hack.frob.com>
8648
8649         * csu/elf-init.c (__libc_csu_init): Comment typo.
8650
8651 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
8652
8653         * po/pl.po: Update from translation team.
8654         * po/ja.po: Likewise.
8655         * po/ru.po: Likewise.
8656         * po/ko.po: Likewise.
8657         * po/fr.po: Likewise.
8658
8659 2011-07-09  Roland McGrath  <roland@hack.frob.com>
8660
8661         * configure.in (.ctors/.dtors header and trailer check):
8662         Use an empirical test on a built program.
8663         * configure: Regenerated.
8664
8665         * configure.in (-z relro check): Use an empirical test on a built DSO.
8666         Detect, but do not require, on ia64.
8667         * configure: Regenerated.
8668
8669         * configure.in (READELF): Find it with AC_CHECK_TOOL.
8670         Update tests that use readelf to use $READELF instead.
8671         * configure: Regenerated.
8672
8673 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
8674
8675         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
8676         if the result is not used.
8677
8678 2011-07-05  Andreas Jaeger  <aj@suse.de>
8679
8680         [BZ#9696]
8681         * stdlib/tst-strtod.c: Add testcase.
8682
8683 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8684
8685         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
8686         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
8687         The latter has a higher limit.  Take additional parameter to pass to
8688         the new function.
8689         (__pathconf): Pass file to __statfs_link_max.
8690         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
8691         __statfs_link_max.
8692         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
8693         __statfs_link_max.
8694
8695         [BZ #12868]
8696         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
8697         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8698         Handle Lustre.
8699         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
8700         (__statfs_filesize_max): Likewise.
8701         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
8702
8703 2011-07-05  Andreas Jaeger  <aj@suse.de>
8704
8705         * resolv/res_comp.c (dn_skipname): Remove unused variable.
8706
8707 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
8708
8709         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
8710         `status' variable.
8711         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
8712         Likewise.
8713
8714 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
8715
8716         * Makefile (strop-tests): Add strncat.
8717         * string/test-strncat.c: New file.
8718
8719 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
8720
8721         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
8722
8723 2011-06-21  Andreas Jaeger  <aj@suse.de>
8724
8725         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
8726         Copy rule from iconvdata/Makefile.
8727
8728 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
8729
8730         [BZ #12922]
8731         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
8732         but no long options are defined, just return 'W'.
8733
8734 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
8735
8736         [BZ #9696]
8737         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
8738
8739 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
8740
8741         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
8742         netgroups to read.
8743         (innetgr): Likewise.
8744
8745 2011-07-05  Roland McGrath  <roland@hack.frob.com>
8746
8747         * config.make.in (install_root): Default to $(DESTDIR).
8748
8749 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
8750
8751         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
8752
8753 2011-07-02  Roland McGrath  <roland@hack.frob.com>
8754
8755         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
8756
8757         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
8758         containing directory rather than embedding absolute directory names.
8759
8760         * scripts/check-local-headers.sh: Rewritten using awk.
8761         Match by word, not by line.  Print error messages for matches.
8762         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
8763
8764         * Makerules [shlib-lds-flags empty]:
8765         ($(common-objpfx)libc_pic.opts): New target.
8766         ($(common-objpfx)libc_pic.os.clean): New target.
8767         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
8768
8769         * config.make.in (OBJCOPY): New variable.
8770         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
8771         * configure: Regenerated.
8772
8773         * config.make.in (use-default-link): New variable.
8774         * configure.in (use_default_link): Grok --with-default-link to set it.
8775         * configure: Regenerated.
8776         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
8777         (shlib-lds, shlib-lds-flags): Define to empty.
8778
8779         * Makerules (shlib-lds): New variable.
8780         (shlib-lds-flags): New variable.
8781         (build-shlib, build-moduile, build-module-asneeded): Use it.
8782         ($(common-objpfx)libc.so): Use $(shlib-lds).
8783         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
8784         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
8785
8786         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
8787         DT_FLAGS/DT_FLAGS_1 with zero flags.
8788
8789         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
8790         linker script munging.
8791
8792 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
8793
8794         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
8795         as 128-bit value.
8796         * crypt/sha512.c (sha512_process_block): Perform total addition using
8797         128-bit if possible.
8798         (__sha512_finish_ctx): Likewise.
8799         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
8800         as 64-bit value.
8801         * crypt/sha256.c (SWAP64): Define.
8802         (sha256_process_block): Perform total addition using 64-bit if
8803         possible.
8804         (__sha256_finish_ctx): Likewise.
8805
8806 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
8807
8808         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
8809         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8810         * nscd/hstcache.c (cache_addhst): Likewise.
8811         * nscd/grpcache.c (cache_addgr): Likewise.
8812         * nscd/aicache.c (addhstaiX): Likewise
8813         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
8814
8815 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
8816
8817         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
8818         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8819         * nscd/hstcache.c (cache_addhst): Likewise.
8820         * nscd/grpcache.c (cache_addgr): Likewise.
8821         * nscd/aicache.c (addhstaiX): Likewise
8822
8823 2011-07-01  Andreas Schwab  <schwab@redhat.com>
8824
8825         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
8826         domain only when needed.
8827
8828 2011-06-30  Andreas Schwab  <schwab@redhat.com>
8829
8830         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
8831         is always restored.
8832
8833 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
8834
8835         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
8836         are re-adding the entry.
8837         * nscd/servicescache.c (cache_addserv): Likewise.
8838
8839 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
8840
8841         * sysdeps/generic/dl-irel.h: fix protection against multiple
8842         inclusions.
8843         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
8844
8845 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
8846
8847         [BZ #12935]
8848         * malloc/memusage.sh: Fix quoting in message.
8849         * debug/xtrace.sh: Likewise.
8850
8851         * configure.in: Remove support for --experimental-malloc option, make
8852         it the default.
8853         * config.make.in: Likewise.
8854         * malloc/Makefile: Likewise.
8855
8856 2011-06-27  Andreas Schwab  <schwab@redhat.com>
8857
8858         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
8859         two-byte characters.
8860
8861 2011-06-27  Roland McGrath  <roland@hack.frob.com>
8862
8863         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
8864         AC_CACHE_CHECK invocation.
8865         * configure: Regenerated.
8866
8867         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
8868
8869 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
8870
8871         [BZ #12350]
8872         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
8873         bit from old_res_options.
8874
8875         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
8876
8877         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
8878         value type for setfct.
8879
8880 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8881
8882         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
8883         __gettimeofday instead of gettimeofday.
8884
8885 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
8886
8887         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
8888
8889 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8890
8891         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
8892
8893         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
8894         info.
8895
8896 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8897
8898         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8899         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
8900         strcpy-sse2-unaligned strncpy-sse2-unaligned
8901         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
8902         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
8903         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
8904         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
8905         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
8906         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
8907         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
8908         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
8909         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
8910         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
8911         (STRCPY): Support SSE2 and SSSE3 versions.
8912
8913 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
8914
8915         [BZ #12874]
8916         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
8917         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
8918         kernels which artificially limit size of requests.
8919
8920 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8921
8922         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8923         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
8924         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
8925         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
8926         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
8927         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
8928         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
8929         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
8930         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
8931         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
8932         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
8933         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
8934         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
8935         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
8936         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
8937         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8938         Enable unaligned load optimization for Intel Core i3, i5 and i7
8939         processors.
8940         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
8941         Define.
8942         (index_Fast_Unaligned_Load): Define.
8943         (HAS_FAST_UNALIGNED_LOAD): Define.
8944
8945 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
8946
8947         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
8948
8949 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
8950
8951         [BZ #12907]
8952         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
8953         until it is clear that the information is realy needed.
8954         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
8955
8956 2011-06-22  Andreas Schwab  <schwab@redhat.com>
8957
8958         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
8959
8960 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
8961
8962         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
8963         /sys/devices/system/cpu/online if it is usable.
8964
8965         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
8966         reading the information from the /proc filesystem to once a second.
8967
8968 2011-06-21  Andreas Jaeger  <aj@suse.de>
8969
8970         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
8971         NULL after inclusion of kernel headers.
8972
8973 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
8974
8975         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
8976         calls to internal_setent.
8977
8978         [BZ #12885]
8979         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
8980         addresses using gethostbyname4_r ignore IPv4 addresses.
8981
8982         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
8983         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
8984
8985         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
8986
8987 2011-06-20  David S. Miller  <davem@davemloft.net>
8988
8989         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
8990         inclusions.
8991         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
8992
8993         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
8994         (elf_irel): Use it.
8995         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
8996         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
8997         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
8998         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
8999         * sysdeps/x86_64/dl-irel.h: Likewise.
9000
9001         * elf/dl-runtime.c: Use elf_ifunc_invoke.
9002         * elf/dl-sym.c: Likewise.
9003
9004 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
9005
9006         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
9007         need to dereference resplen2.
9008
9009 2011-06-14  Andreas Schwab  <schwab@redhat.com>
9010
9011         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
9012
9013 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
9014
9015         * Makeconfig: Define vardbdir and inst_vardbdir.
9016         * nss/Makefile: Add rules to install db-Makefile.
9017
9018         * nss/nss_db/db-XXX.c: Cleanup.
9019
9020         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
9021         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
9022         GLIBC_PRIVATE.
9023         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
9024         * nss/makedb.c: Implement -g option to specify that value strings
9025         are generated and should not be added to table iterated over for
9026         get*ent calls.
9027         * nss/nss_db/db-initgroups.c: New file.
9028
9029         * nss/getent.c: Add support for initgroups lookups through getgrouplist
9030         interface.
9031
9032         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
9033         (internal_getgrouplist): Adjust to name change.
9034         Update use_initgroups_entry if this is not the first call.
9035         * nss/databases.def: Add initgroups entry.
9036
9037         * nss/makedb.c (compute_tables): Check result of multiple hash table
9038         sizes to minimize maximum chain length.
9039
9040 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
9041
9042         * Versions.def: Add entry for libnss_db.
9043         * shlib-versions: Likewise.
9044         * nss/Makefile: Add rules to build libnss_db.
9045         * nss/Versions: Add libnss_db information.  Organize libnss_files
9046         entries better.
9047         * nss/db-Makefile: Add gshadow support.  Change rules for the new
9048         makedb progra.  Some minor improvements to generate smaller files.
9049         * nss/nss_db/nss_db.h: Move NSS database header data structures to
9050         here from...
9051         * nss/makedb.c: ...here.
9052         Improve database format to be smaller and require less memory at
9053         runtime.
9054         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
9055         db anymore.
9056         * nss/nss_db/db-netgrp.c: Likewise.
9057         * nss/nss_db/db-open.c: Likewise.
9058         * nss/nss_files/flies-XXX.x: Adjust comments.
9059         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
9060         * nss/nss_files/files-grp.c: Likewise.
9061         * nss/nss_files/files-hosts.c: Likewise.
9062         * nss/nss_files/files-network.c: Likewise.
9063         * nss/nss_files/files-proto.c: Likewise.
9064         * nss/nss_files/files-pwd.c: Likewise.
9065         * nss/nss_files/files-rpc.c: Likewise.
9066         * nss/nss_files/files-service.c: Likewise.
9067         * nss/nss_files/files-sgrp.c: Likewise.
9068         * nss/nss_files/files-spwd.c: Likewise.
9069         * nss/nss_db/db-alias.c: Removed.
9070         * nss/nss_db/dummy-db.h: Removed.
9071
9072 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
9073
9074         * nss/makedb.c: Rewritten to not use database library.
9075         * nss/Makefile: Update to build new makedb program.
9076
9077 2011-06-14  Andreas Jaeger  <aj@suse.de>
9078
9079         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
9080         memset declaration.
9081
9082 2011-06-10  Andreas Schwab  <schwab@redhat.com>
9083
9084         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
9085         tmpbuf.
9086
9087 2011-06-10  Roland McGrath  <roland@hack.frob.com>
9088
9089         * Makerules (shlib.lds): Fail if the linker script comes out empty.
9090         * elf/Makefile ($(objpfx)ld.so): Likewise.
9091
9092         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
9093         Don't list ld.so twice in dependencies.
9094
9095         * posix/bug-regex31.c: Include <stdlib.h>.
9096
9097         * nscd/hstcache.c (cache_addhst): Remove unused variable.
9098
9099         * nis/nss_compat/compat-spwd.c
9100         (getspent_next_nss_netgr): Remove unused variable.
9101         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
9102
9103         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
9104         nonmembers" output to use the right array.
9105
9106         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
9107
9108         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
9109
9110         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
9111         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
9112         * catgets/gencat.c (read_input_file): Likewise.
9113         * locale/programs/locarchive.c (enlarge_archive): Likewise.
9114
9115         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
9116         variable definition inside #if's controlling its use.
9117
9118         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
9119
9120         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
9121
9122         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
9123
9124         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
9125         unreachable code.
9126
9127         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
9128
9129         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
9130         * configure: Regenerated.
9131
9132         * Makerules: Revert last change.
9133         * elf/Makefile: Likewise.
9134
9135 2011-06-09  Roland McGrath  <roland@hack.frob.com>
9136
9137         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
9138         * elf/Makefile ($(objpfx)librtld.os): Likewise.
9139         (reloc-link): Likewise.
9140
9141 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
9142
9143         * elf/Makefile: Add rules to build pldd.
9144         * elf/pldd.c: New file.
9145         * elf/pldd-xx.c: New file.
9146
9147 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
9148
9149         * version.h: Update for 2.15 development version.
9150
9151 2011-06-07  David S. Miller  <davem@davemloft.net>
9152
9153         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
9154         ifuncs.
9155         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
9156         elf_machine_lazy_rel): Likewise.
9157         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
9158         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
9159         elf_machine_lazy_rel): Likewise.
9160         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
9161         dl_hwcap via passed in argument.
9162         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
9163         Likewise.
9164
9165 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9166
9167         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
9168
9169 2011-06-06  Roland McGrath  <roland@hack.frob.com>
9170
9171         [BZ #12849]
9172         * manual/fdl-1.1.texi: New file, verbatim from:
9173         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
9174         * manual/lgpl-2.1.texi: New file, verbatim from:
9175         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
9176         * manual/Makefile (licenses): New variable, list those new file names.
9177         (texis): Use it.
9178         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
9179
9180         * manual/fdl.texi: File removed.
9181         * manual/lesser.texi: File removed.
9182         * manual/libc.texinfo (Copying, Documentation License):
9183         Use new @include file names, put @appendix directive before @include.
9184
9185 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
9186
9187         [BZ #12841]
9188         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
9189         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
9190         (mq_open): Add __NTH.
9191
9192 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
9193
9194         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9195         Assume Intel Core i3/i5/i7 processor if AVX is available.
9196
9197 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
9198
9199         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9200         typo.
9201
9202 2011-05-31  Andreas Schwab  <schwab@redhat.com>
9203
9204         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
9205         memory.  Use alloca_account.  Fix memory leak when retrying.
9206
9207 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
9208
9209         * version.h (RELEASE): Bump for 2.14 release.
9210         * include/features.h (__GLIBC_MINOR__): Bump to 14.
9211
9212         * config.make.in (RANLIB): Remove entry.
9213
9214 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
9215
9216         * po/Makefile (po-sed-cmd): Add ksh to extensions.
9217         (libc.pot): Work around missing support for .ksh extension in xgettext.
9218
9219         [BZ #12684]
9220         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
9221         if both request failed.
9222         (send_dg): In case of server errors clear resplen or *resplen2.
9223
9224         [BZ #12454]
9225         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
9226         when there are multiple maps.
9227         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
9228         (_dl_fini): Remove test here.
9229
9230         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
9231
9232 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
9233
9234         [BZ #12350]
9235         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
9236         bit from old_res_options.
9237         (gaih_inet): Likewise.
9238
9239         [BZ #11099]
9240         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
9241         as signed.
9242
9243         * resolv/res_init.c (res_setoptions): Make the code more compact.
9244
9245         [BZ #11558]
9246         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
9247         set RES_USEVC.
9248
9249         [BZ #11634]
9250         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
9251
9252         * malloc/malloc.h: Mark malloc hook variables as deprecated.
9253
9254         [BZ #11781]
9255         * malloc/malloc.h: Declare malloc hook variables as volatile.
9256
9257         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
9258         in last patch.
9259
9260         [BZ #11799]
9261         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
9262         raise in the comment.
9263         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9264         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9265         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
9266
9267 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
9268
9269         [BZ #12811]
9270         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
9271         grow the buffers more if it already has to be sufficient.
9272         (build_wcs_upper_buffer): Likewise.
9273         * posix/regexec.c (check_matching): Likewise.
9274         (clean_state_log_if_needed): Likewise.
9275         (extend_buffers): Don't enlarge buffers beyond size of the input
9276         buffer.
9277         Patches mostly by Emil Wojak <emil@wojak.eu>.
9278         * posix/bug-regex32.c: New file.
9279         * posix/Makefile (tests): Add bug-regex32.
9280
9281         * locale/findlocale.c (_nl_find_locale): Return right away if
9282         _nl_explode_name failed.
9283         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
9284
9285         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
9286
9287         * debug/xtrace.sh: Unify messages.
9288         * malloc/memusage.sh: Likewise.
9289
9290         [BZ #12813]
9291         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
9292         time symbol from vDSO.  Substitute with vsyscall if not available.
9293         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
9294         __vdso_time.
9295
9296         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
9297         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
9298         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
9299         Add sendmmsg and internal_sendmmsg.
9300         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
9301         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
9302         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
9303
9304         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
9305         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
9306         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
9307
9308 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
9309
9310         [BZ #12813]
9311         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
9312         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
9313         available.
9314         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
9315         __vdso_getcpu.
9316
9317         [BZ #12814]
9318         * iconvdata/Makefile (tests): Add bug-iconv9.
9319         * iconvdata/bug-iconv9.c: New file.
9320
9321 2011-05-27  Andreas Schwab  <schwab@redhat.com>
9322
9323         [BZ #12814]
9324         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
9325
9326 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
9327
9328         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
9329         (struct user_regs_struct): Change intcs field back to cs.
9330
9331 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
9332
9333         * po/ja.po: Update from translation team.
9334
9335 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
9336
9337         [BZ #12795]
9338         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
9339         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
9340
9341 2011-05-20  Andreas Schwab  <schwab@redhat.com>
9342
9343         * stdlib/longlong.h: Update from GCC.
9344
9345 2011-05-23  Andreas Schwab  <schwab@redhat.com>
9346
9347         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
9348         parameter name.
9349         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
9350         Add parameter name.
9351         (__sysconf): Pass it down.
9352
9353 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
9354
9355         [BZ #12671]
9356         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
9357         some situations.
9358         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9359         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
9360         add in in __libc_use_alloca calls.  Adjust callers.
9361         (glob): Use malloc in some situations.
9362
9363         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
9364         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
9365         pltexit.
9366
9367 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
9368
9369         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
9370         and CLOCK_BOOTTIME_ALARM.
9371
9372         [BZ #12782]
9373         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
9374         is returned.
9375
9376         * string/_strerror.c (__strerror_r): Print negative errors as signed
9377         numbers.
9378
9379         [BZ #12777]
9380         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
9381         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
9382         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
9383
9384         * configure.in: Fix typo in redirection and correct removal of test
9385         files in two cases.
9386
9387         [BZ #12788]
9388         * locale/setlocale.c (new_composite_name): Fix test to check for
9389         identical name of all categories.
9390
9391         [BZ #12792]
9392         * libio/filedoalloc.c (local_isatty): New function.
9393         (_IO_file_doallocate): Use local_isatty.
9394         * stdio-common/perror.c (perror): In case a new stream is used
9395         forward the stream error.
9396         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
9397         error flag.
9398
9399 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
9400
9401         [BZ #11869]
9402         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
9403         alloca.
9404         * include/alloca.h (extend_alloca_account): Define.
9405
9406         [BZ #11857]
9407         * posix/regex.h: Fix comments with documentation of user-accessible
9408         fields after compilation and describe correct free'ing of pattern
9409         after re_compile_pattern.
9410         Patch by Reuben Thomas <rrt@sc3d.org>.
9411
9412 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
9413
9414         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
9415         and -mno-altivec to prevent the compiler from using Altivec and/or
9416         VSX instructions when the corresponding registers are not available.
9417
9418 2011-05-19  Andreas Schwab  <schwab@redhat.com>
9419
9420         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
9421
9422 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
9423
9424         * libio/freopen.c (freopen): Use __dup2, not dup2.
9425         * libio/freopen64.c (freopen64): Likewise.
9426
9427 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
9428
9429         [BZ #12775]
9430         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
9431         * math/Makefile (tests): Add test-powl.
9432         (CFLAGS-test-powl.c): Define.
9433         * math/test-powl.c: New file.
9434
9435 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
9436
9437         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
9438
9439 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
9440
9441         [BZ #11837]
9442         * iconvdata/gb18030.c: Update to GB18020-2005.
9443
9444 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
9445
9446         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
9447         RE_SYNTAX_POSIX_AWK): Update to match recent development.
9448         Patch by Aharon Robbins <arnold@skeeve.com>.
9449
9450         [BZ #11892]
9451         * stdlib/putenv.c (putenv): Don't always create copy of the variable
9452         on the stack.
9453
9454         [BZ #11895]
9455         * misc/pselect.c (__pselect): Handle timeout value errors hidden
9456         through underflows.
9457
9458         [BZ #12766]
9459         * misc/error.c (error_at_line): Ensure file_name and old_file_name
9460         point to strings before performing equality test for error_one_per_line
9461         mode.
9462
9463         [BZ #11697]
9464         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
9465
9466         [BZ #11820]
9467         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
9468         (struct user_fpregs_struct): Avoid __uint*_t types.
9469
9470         [BZ #6420]
9471         * malloc/mtrace.c (tr_where): Add additional parameter to point to
9472         symbol info.  Use it instead of calling _dl_addr locally.
9473         (lock_and_info): New function.
9474         (tr_freehook): Call lock_and_info and pass symbol info as additional
9475         parameter to tr_where.
9476         (tr_mallochook): Likewise.
9477         (tr_reallochook): Likewise.
9478         (tr_memalignhook): Likewise.
9479
9480         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
9481         used and couldn't be at all thread-safe.
9482
9483 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
9484
9485         * libio/freopen.c (freopen): Don't close old file descriptor
9486         before the new one is opened.  Instead dup the new file descriptor
9487         to the old one after the new stream is created.
9488         * libio/freopen64.c (freopen64): Likewise.
9489         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
9490         * libio/fileops.c (_IO_new_file_close_it): Handle new
9491         _IO_FLAGS2_NOCLOSE flag.
9492         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
9493         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
9494         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
9495         _IO_FLAGS2_NOCLOSE flag.
9496         * include/unistd.h: Add hidden_proto for dup3.
9497         Define __have_dup3.
9498         * io/dup3.c: Define hidden symbol.
9499         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
9500
9501         [BZ #7101]
9502         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
9503         when an incomplete long option is used.
9504         * posix/tst-getopt_long1.c: New file.
9505         * posix/Makefile (tests): Add tst-getopt_long1.
9506
9507         [BZ #10138]
9508         * scripts/config.guess: Update from autoconf-2.68.
9509         * scripts/config.sub: Likewise.
9510
9511         [BZ #10157]
9512         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
9513         tests into ...
9514         (has_cpuclock): ...this.  New function.
9515         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
9516         macro here based on has_cpuclock code.
9517
9518         [BZ #10149]
9519         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9520         First byte (not low byte) is now always NUL.
9521         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
9522
9523         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9524         Use non-cancelable interfaces.
9525
9526         [BZ #9809]
9527         * locale/iso-639.def: Add entry for Sorani.
9528
9529         [BZ #11901]
9530         * include/stdlib.h: Move include protection to the right place.
9531         Define abort_msg_s.  Declare __abort_msg with it.
9532         * stdlib/abort.c (__abort_msg): Adjust type.
9533         * assert/assert.c (__assert_fail_base): New function.  Majority
9534         of code from __assert_fail.  Allocate memory for __abort_msg with
9535         mmap.
9536         (__assert_fail): Now call __assert_fail_base.
9537         * assert/assert-perr.c: Remove bulk of implementation.  Use
9538         __assert_fail_base.
9539         * include/assert.hL Declare __assert_fail_base.
9540         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
9541         mmap.
9542         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
9543
9544 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
9545
9546         [BZ #11952]
9547         [BZ #12453]
9548         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
9549         until all modules are registered in the DTV.
9550         * elf/Makefile: Add rules to build and run tst-tls19.
9551         * elf/tst-tls19.c: New file.
9552         * elf/tst-tls19mod1.c: New file.
9553         * elf/tst-tls19mod2.c: New file.
9554         * elf/tst-tls19mod3.c: New file.
9555         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
9556
9557         [BZ #12083]
9558         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
9559         correctly.
9560
9561         [BZ #12601]
9562         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
9563         two-byte sequence errors.
9564         * iconvdata/Makefile (tests): Add bug-iconv8.
9565         * iconvdata/bug-iconv8.c: New file.
9566
9567         [BZ #12626]
9568         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
9569         buf2 definition.
9570
9571         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
9572
9573         [BZ #12432]
9574         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
9575         (dummy_getcfa): New function.
9576         (init): Get _Unwind_GetCFA address, use dummy if not found.
9577         (backtrace_helper): In recursion check, also check whether CFA changes.
9578         (__backtrace): Completely initialize arg.
9579
9580         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
9581         storing incomplete byte sequence in state object.  Avoid testing for
9582         guaranteed too small input if we know there is enough data available.
9583
9584 2011-05-11  Andreas Schwab  <schwab@redhat.com>
9585
9586         * Makeconfig (+link-pie): Indent.
9587         * Rules (binaries-pie): Define if $(have-fpie) and
9588         $(build-shared).
9589         (binaries-shared): Also filter out $(binaries-pie).
9590         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
9591         * nscd/Makefile (others-pie): Add nscd.
9592         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
9593         ($(objpfx)nscd): Remove command override.
9594         * login/Makefile (others-pie): Add pt_chown.
9595         ($(objpfx)pt_chown): Remove command override.
9596         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
9597         remove command overrides.
9598
9599 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
9600
9601         * libio/tst_putwc.c: Fix error messages.
9602
9603         [BZ #12724]
9604         * libio/fileops.c (_IO_new_file_close_it): Always flush when
9605         currently writing and seek to current position when not.
9606         * libio/Makefile (tests): Add bug-fclose1.
9607         * libio/bug-fclose1.c: New file.
9608
9609 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
9610
9611         [BZ #12511]
9612         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
9613         don't set DF_1_NODELETE here.
9614         (do_lookup_x): When entering new entry test for copy relocation
9615         and if necessary set DF_1_NODELETE flag.
9616         * elf/tst-unique4.cc: New file.
9617         * elf/tst-unique4.h: New file.
9618         * elf/tst-unique4lib.cc: New file.
9619         * elf/Makefile: Add rules to build and run tst-unique4.
9620         Patch by Piotr Bury <pbury@goahead.com>.
9621
9622 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9623
9624         [BZ #12052]
9625         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
9626
9627         [BZ #12625]
9628         * misc/mntent_r.c (addmntent): Flush the stream after the output
9629
9630         [BZ #12393]
9631         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
9632         (is_trusted_path_normalize): Skip initial colon.  Append slash
9633         to empty buffer.  Duplicate is_trusted_path code but allow
9634         constructed patch to be prefix.
9635         (is_dst): Allow $ORIGIN followed by /.
9636         (_dl_dst_substitute): Correct clearing of check_for_trusted.
9637         Correct testing of result of is_trusted_path_normalize
9638         (decompose_rpath): Fix warning.
9639
9640 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
9641
9642         [BZ #11257]
9643         * grp/initgroups.c (internal_getgrouplist): When we found the service
9644         list through the initgroups entry in nsswitch.conf do not always
9645         continue on a successful lookup.  Don't always use the
9646         __nss_group_database value if it is set.
9647         * nss/nsswitch.conf (initgroups): Change action for successful db
9648         lookup to continue for compatibility.
9649
9650 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
9651
9652         [BZ #11532]
9653         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
9654         and CP774 modules.
9655         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
9656         and CP774 modules.
9657         * iconvdata/tst-tables.sh: Likewise.
9658         * iconvdata/cp770.c: New file.
9659         * iconvdata/cp771.c: New file.
9660         * iconvdata/cp772.c: New file.
9661         * iconvdata/cp773.c: New file.
9662         * iconvdata/cp774.c: New file.
9663         * iconvdata/testdata/CP770: New file.
9664         * iconvdata/testdata/CP770..UTF8: New file.
9665         * iconvdata/testdata/CP771: New file.
9666         * iconvdata/testdata/CP771..UTF8: New file.
9667         * iconvdata/testdata/CP772: New file.
9668         * iconvdata/testdata/CP772..UTF8: New file.
9669         * iconvdata/testdata/CP773: New file.
9670         * iconvdata/testdata/CP773..UTF8: New file.
9671         * iconvdata/testdata/CP774: New file.
9672         * iconvdata/testdata/CP774..UTF8: New file.
9673
9674         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
9675         END CHARMAP line.
9676         * iconvdata/gen-8bit-gap.sh: Likewise.
9677         * iconvdata/gen-8bit.sh: Likewise.
9678
9679         * locale/iso-639.def: Add ary entry.
9680
9681         [BZ #11258]
9682         * locale/C-translit.h.in: Add U20A1 transliteration.
9683
9684         [BZ #12178]
9685         * locale/iso-639.def: Add wae entry.
9686         Patch by Kevin Bortis <bortis@translate-wae.ch>.
9687
9688         [BZ #12545]
9689         * locale/programs/localedef.c (construct_output_path): Use ssize_t
9690         for n.
9691
9692         [BZ #12711]
9693         * locale/C-translit.h.in: Add entry for U20B9.
9694         Patch by pravin.d.s@gmail.com.
9695
9696 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
9697
9698         [BZ #12713]
9699         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
9700         ENAMETOOLONG use generic getcwd.
9701         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
9702         in rtld.  Use *stat64.
9703         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
9704         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
9705         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
9706         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
9707         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
9708         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
9709         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
9710         __fstatat64 macros.
9711         * include/dirent.h: Add libc_hidden_proto for rewinddir.
9712         * dirent/rewinddir.c: Add libc_hidden_def.
9713         * sysdeps/mach/hurd/rewinddir.c: Likewise.
9714         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
9715
9716         * include/dirent.h (__alloc_dir): Add flags parameter.
9717         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
9718         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
9719         __alloc_dir.
9720         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
9721         from fdopendir if O_CLOEXEC is already set.
9722
9723 2011-03-15  Alan Modra  <amodra@gmail.com>
9724
9725         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
9726         l_tls_firstbyte_offset non-zero.  Save padding offset in
9727         l_tls_firstbyte_offset for later use.
9728         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
9729         freeing static tls block.
9730
9731 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
9732
9733         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
9734         where #ifdef was intended.  The intent is to prevent ARG_MAX from
9735         being defined by the kernel headers.
9736
9737 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
9738
9739         [BZ #12734]
9740         * resolv/resolv.h: Define RES_NOTLDQUERY.
9741         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
9742         no-tld-query and set RES_NOTLDQUERY.
9743         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
9744         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
9745         modern BIND to search name as TLD unless forbidden.
9746
9747 2011-05-07  Petr Baudis  <pasky@suse.cz>
9748             Ulrich Drepper  <drepper@gmail.com>
9749
9750         [BZ #12393]
9751         * elf/dl-load.c (fillin_rpath): Move trusted path check...
9752         (is_trusted_path): ...to here.
9753         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
9754         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
9755         using is_trusted_path_normalize() in setuid scripts.
9756
9757 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9758
9759         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
9760         __BEGIN/__END_DECLS.
9761
9762 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
9763
9764         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
9765         NSS_STATUS_NOTFOUND if no record was found.
9766
9767 2011-05-05  Andreas Schwab  <schwab@redhat.com>
9768
9769         * sunrpc/Makefile (headers): Add rpc/netdb.h.
9770         (headers-not-in-tirpc): Remove rpc/netdb.h
9771         * resolv/netdb.h: Revert last change.
9772
9773 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
9774
9775         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
9776         circular dependency between libgcc.a and libc.a.
9777
9778 2011-05-05  Andreas Schwab  <schwab@redhat.com>
9779
9780         * resolv/netdb.h: Don't include <rpc/netdb.h>.
9781         * nis/Makefile: Don't install rpcsvc/*.
9782         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
9783         instead of <rpc/types.h>.
9784         (MAXHOSTNAMELEN): Define.
9785
9786 2011-05-03  Andreas Schwab  <schwab@redhat.com>
9787
9788         * elf/ldconfig.c (add_dir): Don't crash on empty path.
9789
9790 2011-04-28  Maciej Babinski  <mbabinski@google.com>
9791
9792         [BZ #12714]
9793         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
9794         gethostbyname4_r when IPv6 results are possible.
9795
9796 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
9797
9798         [BZ #12723]
9799         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
9800         _PC_PIPE_BUF handling.
9801
9802 2011-04-30  Bruno Haible  <bruno@clisp.org>
9803
9804         [BZ #12717]
9805         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
9806         * resolv/netdb.h (getnameinfo): Change type of flags parameter
9807         to 'int'.
9808         * inet/getnameinfo.c (getnameinfo): Likewise.
9809
9810 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
9811
9812         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
9813         to groups setting in database lookup.
9814         * nss/nsswitch.conf: Add initgroups entry.
9815
9816 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
9817
9818         [BZ #12685]
9819         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
9820         mode string.
9821         Patch by Eric Blake <eblake@redhat.com>.
9822
9823 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
9824
9825         * sunrpc/Makefile (need-export-routines): Add svc_run.
9826         (routines): Remove svc_run.
9827         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
9828         * sunrpc/clnt_perr.c (clnt_perrno): Export.
9829         * sunrpc/svc_run.c (svc_run): Likewise.
9830         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9831
9832 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
9833
9834         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
9835         problem in reallocation in last patch.
9836
9837 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
9838
9839         * sunrpc/Makefile: Move inclusion of Rules.
9840
9841 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
9842
9843         * nss/nss_files/files-initgroups.c: New file.
9844         * nss/Makefile (libnss_files-routines): Add files-initgroups.
9845         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
9846         _nss_files_initgroups_dyn.
9847
9848 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
9849
9850         * elf/elf.h (R_ARM_IRELATIVE): Define.
9851
9852 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
9853
9854         * po/ru.po: Update from translation team.
9855
9856 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
9857
9858         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
9859         dependencies.
9860
9861 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
9862
9863         [BZ #12653]
9864         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
9865         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
9866         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
9867         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
9868         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
9869
9870 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
9871
9872         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
9873         differing bytes.
9874         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
9875         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
9876         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
9877
9878 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
9879
9880         [BZ #12420]
9881         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
9882         storing it.
9883         * stdlib/bug-getcontext.c: New file.
9884         * stdlib/Makefile: Add rules to build and run bug-getcontext.
9885
9886 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9887
9888         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
9889         instructions into .machine "z9-109".
9890         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
9891         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
9892
9893 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9894
9895         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
9896         between environment variables and auxiliary vector.
9897
9898 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
9899
9900         * Makefile: Add rules to build linkobj/libc.so.
9901         * include/libc-symbols.h: Define libc_hidden_nolink.
9902         * include/rpc/auth.h: Mark functions which are to be hidden.
9903         * include/rpc/auth_des.h: Likewise.
9904         * include/rpc/auth_unix.h: Likewise.
9905         * include/rpc/clnt.h: Likewise.
9906         * include/rpc/des_crypt.h: Likewise.
9907         * include/rpc/key_prot.h: Likewise.
9908         * include/rpc/pmap_clnt.h: Likewise.
9909         * include/rpc/pmap_prot.h: Likewise.
9910         * include/rpc/pmap_rmt.h: Likewise.
9911         * include/rpc/rpc_msg.h: Likewise.
9912         * include/rpc/svc.h: Likewise.
9913         * include/rpc/svc_auth.h: Likewise.
9914         * include/rpc/xdr.h: Likewise.
9915         * nis/Makefile: Link all DSOs against linkobj/libc.so.
9916         * nss/Makefile: Likewise.
9917         * sunrpc/Makefile: Don't install headers.  Build library with normal
9918         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
9919         * sunrpc/auth_des.c: Hide exported symbols by default, export some
9920         for the compat linking library.  Remove use of INTDEF/INTUSE.
9921         * sunrpc/auth_none.c: Likewise.
9922         * sunrpc/auth_unix.c: Likewise.
9923         * sunrpc/authdes_prot.c: Likewise.
9924         * sunrpc/authuxprot.c: Likewise.
9925         * sunrpc/clnt_gen.c: Likewise.
9926         * sunrpc/clnt_perr.c: Likewise.
9927         * sunrpc/clnt_raw.c: Likewise.
9928         * sunrpc/clnt_simp.c: Likewise.
9929         * sunrpc/clnt_tcp.c: Likewise.
9930         * sunrpc/clnt_udp.c: Likewise.
9931         * sunrpc/clnt_unix.c: Likewise.
9932         * sunrpc/des_crypt.c: Likewise.
9933         * sunrpc/des_soft.c: Likewise.
9934         * sunrpc/get_myaddr.c: Likewise.
9935         * sunrpc/key_call.c: Likewise.
9936         * sunrpc/key_prot.c: Likewise.
9937         * sunrpc/netname.c: Likewise.
9938         * sunrpc/pm_getmaps.c: Likewise.
9939         * sunrpc/pm_getport.c: Likewise.
9940         * sunrpc/pmap_clnt.c: Likewise.
9941         * sunrpc/pmap_prot.c: Likewise.
9942         * sunrpc/pmap_prot2.c: Likewise.
9943         * sunrpc/pmap_rmt.c: Likewise.
9944         * sunrpc/publickey.c: Likewise.
9945         * sunrpc/rpc_cmsg.c: Likewise.
9946         * sunrpc/rpc_common.c: Likewise.
9947         * sunrpc/rpc_dtable.c: Likewise.
9948         * sunrpc/rpc_prot.c: Likewise.
9949         * sunrpc/rpc_thread.c: Likewise.
9950         * sunrpc/rtime.c: Likewise.
9951         * sunrpc/svc.c: Likewise.
9952         * sunrpc/svc_auth.c: Likewise.
9953         * sunrpc/svc_authux.c: Likewise.
9954         * sunrpc/svc_raw.c: Likewise.
9955         * sunrpc/svc_run.c: Likewise.
9956         * sunrpc/svc_simple.c: Likewise.
9957         * sunrpc/svc_tcp.c: Likewise.
9958         * sunrpc/svc_udp.c: Likewise.
9959         * sunrpc/svc_unix.c: Likewise.
9960         * sunrpc/svcauth_des.c: Likewise.
9961         * sunrpc/xcrypt.c: Likewise.
9962         * sunrpc/xdr.c: Likewise.
9963         * sunrpc/xdr_array.c: Likewise.
9964         * sunrpc/xdr_float.c: Likewise.
9965         * sunrpc/xdr_intXX_t.c: Likewise.
9966         * sunrpc/xdr_mem.c: Likewise.
9967         * sunrpc/xdr_rec.c: Likewise.
9968         * sunrpc/xdr_ref.c: Likewise.
9969         * sunrpc/xdr_sizeof.c: Likewise.
9970         * sunrpc/xdr_stdio.c: Likewise.
9971
9972 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
9973
9974         [BZ #12650]
9975         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
9976         * sysdeps/ia64/dl-tls.h: Likewise.
9977         * sysdeps/powerpc/dl-tls.h: Likewise.
9978         * sysdeps/s390/dl-tls.h: Likewise.
9979         * sysdeps/sh/dl-tls.h: Likewise.
9980         * sysdeps/sparc/dl-tls.h: Likewise.
9981         * sysdeps/x86_64/dl-tls.h: Likewise.
9982         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
9983
9984 2011-03-14  Andreas Schwab  <schwab@redhat.com>
9985
9986         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
9987         rpath element also skip the following colon.
9988         (expand_dynamic_string_token): Add is_path parameter and pass
9989         down to DL_DST_REQUIRED and _dl_dst_substitute.
9990         (decompose_rpath): Call expand_dynamic_string_token with
9991         non-zero is_path.  Ignore empty rpaths.
9992         (_dl_map_object_from_fd): Call expand_dynamic_string_token
9993         with zero is_path.
9994
9995 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
9996
9997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
9998         Make cancelable.
9999
10000 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
10001
10002         [BZ #12655]
10003         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
10004         Patch by Filipe David Manana <fdmanana@apache.org>.
10005
10006 2011-04-07  Andreas Schwab  <schwab@redhat.com>
10007
10008         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
10009         Maintain aligned stack.
10010         (CHECK_RSP): Remove unused macro.
10011
10012 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
10013
10014         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
10015         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
10016
10017 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
10018
10019         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
10020
10021         * include/features.h: Mention __USE_XOPEN2K8 in comment.
10022
10023 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
10024
10025         [BZ #12518]
10026         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
10027         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
10028         * sysdeps/x86_64/memmove.c: New file.
10029         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
10030         (memcpy): Renamed to ...
10031         (__new_memcpy): This.
10032         (memcpy): Provide GLIBC_2_14 memcpy.
10033         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
10034         (memcpy): Provide GLIBC_2_2_5 memcpy.
10035
10036 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
10037
10038         [BZ #12631]
10039         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
10040
10041 2011-03-30  Andreas Schwab  <schwab@redhat.com>
10042
10043         * misc/syncfs.c: New file.
10044         * misc/Makefile (routines): Add syncfs.
10045         * posix/unistd.h: Declare syncfs.
10046         * sysdeps/unix/syscalls.list: Add syncfs.
10047
10048 2011-04-01  Andreas Schwab  <schwab@redhat.com>
10049
10050         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
10051         open_by_handle_at.
10052         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10053         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10054         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10055         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10056         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10057         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
10058         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10059
10060 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
10061
10062         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
10063         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10064         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10065         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10066         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10067         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10068         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10069
10070         * io/Makefile: Compile fallocate.c, fallocate64.c, and
10071         sync_file_range.c with -fexceptions.
10072         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
10073         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
10074         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
10075         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
10076         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
10077         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
10078         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
10079         sync_file_range as cancellation point
10080         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
10081         now a wrapper around __call_sync_file_range with cancellation handling.
10082         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
10083         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
10084         function name to __call_sync_file_range.
10085         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
10086         Add call_sync_file_range.
10087
10088 2011-04-01  Andreas Schwab  <schwab@redhat.com>
10089
10090         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10091         bits/timex.h.
10092
10093 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
10094
10095         * iconv/iconv.h: Fix typo in comment.
10096         * io/fcntl.h: Likewise.
10097         * libio/stdio.h: Likewise.
10098         * posix/spawn.h: Likewise.
10099         * posix/unistd.h: Likewise.
10100         * stdlib/stdlib.h: Likewise.
10101         * time/time.h: Likewise.
10102         * wcsmbs/wchar.h: Likewise.
10103
10104         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
10105         open_by_handle): Add.
10106         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
10107         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
10108         Augment a few comments.
10109         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10110         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10111         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10112         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10113         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10114         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
10115         open_by_handle.
10116
10117         * io/fcntl.h (AT_EMPTY_PATH): Define.
10118
10119 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
10120
10121         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
10122         * sysdeps/unix/sysv/linux/bits/time.h: New file.
10123         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
10124         to...
10125         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
10126         * Versions.def: Add GLIBC_2.14.
10127         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
10128         Export.
10129
10130 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
10131
10132         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
10133         round counter.
10134         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
10135
10136 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10137
10138         [BZ #12597]
10139         * string/test-strncmp.c (do_page_test): New function.
10140         (check2): Likewise.
10141         (test_main): Call check2.
10142         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
10143
10144 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
10145
10146         [BZ #12587]
10147         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
10148         Handle cache information in CPU leaf 4.
10149         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
10150
10151 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
10152
10153         [BZ #12583]
10154         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
10155         character representation.
10156         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
10157
10158 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
10159
10160         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
10161         END(__isnan) to END(__isnanf) to match function entry point/label
10162         EALIGN(__isnanf,...).
10163
10164 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10165
10166         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
10167
10168 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
10169
10170         [BZ #12510]
10171         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
10172         copy from the symbol referenced in the relocation to initialize the
10173         used variable.
10174         Patch by Piotr Bury <pbury@goahead.com>.
10175         * elf/Makefile: Add rules to build and tst-unique3.
10176         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
10177         * elf/tst-unique3.cc: New file.
10178         * elf/tst-unique3.h: New file.
10179         * elf/tst-unique3lib.cc: New file.
10180         * elf/tst-unique3lib2.cc: New file.
10181
10182         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
10183
10184 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
10185
10186         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
10187         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
10188         to _start.
10189
10190 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
10191
10192         * elf/dl-load.c (_dl_map_object): If we are looking for the first
10193         to-be-loaded object along a path to loader is ld.so.
10194
10195 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
10196             Ulrich Drepper  <drepper@gmail.com>
10197
10198         * sysdeps/x86_64/memset.S: After aligning destination, code
10199         branches to different locations depending on the value of
10200         misalignment, when multiarch is enabled. Fix this.
10201
10202 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
10203
10204         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
10205         Set _x86_64_preferred_memory_instruction for AMD processsors.
10206         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10207         Set bit_Prefer_SSE_for_memop for AMD processors.
10208
10209 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
10210
10211         * libio/fmemopen.c (fmemopen): Optimize a bit.
10212
10213 2011-03-03  Andreas Schwab  <schwab@redhat.com>
10214
10215         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
10216
10217 2011-03-03  Roland McGrath  <roland@redhat.com>
10218
10219         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
10220
10221 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
10222
10223         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
10224         __bzero_ultra1 instead of __memset_ultra1.
10225
10226 2011-02-23  Andreas Schwab  <schwab@redhat.com>
10227             Ulrich Drepper  <drepper@gmail.com>
10228
10229         [BZ #12509]
10230         * include/link.h (struct link_map): Add l_orig_initfini.
10231         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
10232         returning unsuccessfully.
10233         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
10234         close of a file loaded at startup, restore the original l_initfini
10235         list.
10236         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
10237         list, store the pointer.
10238         * elf/Makefile ($(objpfx)noload-mem): New rule.
10239         (noload-ENV): Define.
10240         (tests): Add $(objpfx)noload-mem.
10241         * elf/noload.c: Include <memcheck.h>.
10242         (main): Call mtrace.  Close all opened handles.
10243
10244 2011-02-17  Andreas Schwab  <schwab@redhat.com>
10245
10246         [BZ #12454]
10247         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
10248         dependencies are missing.
10249
10250 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10251
10252         Fix __if_freereq crash: Unlike the generic version which uses free,
10253         Hurd needs munmap.
10254         * sysdeps/mach/hurd/ifreq.h: New file.
10255
10256 2011-01-27  Petr Baudis  <pasky@suse.cz>
10257             Ulrich Drepper  <drepper@gmail.com>
10258
10259         [BZ 12445]#
10260         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
10261         to extend_alloca().
10262         * stdio-common/bug23.c: New file.
10263         * stdio-common/Makefile (tests): Add bug23.
10264
10265 2010-09-28  Andreas Schwab  <schwab@redhat.com>
10266             Ulrich Drepper  <drepper@gmail.com>
10267
10268         [BZ #12489]
10269         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
10270         before performing relro protection.  At old place add assertion
10271         to make sure nothing changed.
10272
10273 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
10274             Glauber de Oliveira Costa  <glommer@gmail.com>
10275
10276         * elf/elf.h: Add new ARM TLS relocs.
10277
10278 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
10279
10280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10281         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
10282         cast from r3.
10283         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
10284         'tests' variable.
10285         * sysdeps/wordsize-64/tst-writev.c: New file.
10286
10287 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
10288
10289         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
10290         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
10291         insns in _dl_start to prevent a TOC reference before relocs are
10292         resolved.
10293
10294 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
10295
10296         [BZ #12469]
10297         * Makeconfig: Remove RANLIB definition.
10298         * Makerules: Don't use RANLIB.
10299         * aclocal.m4: Remove ranlib test.
10300         * configure.in: No need to check for ranlib.
10301         * elf/rtld-Rules: Don't use RANLIB.
10302
10303 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10304
10305         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
10306         protection macro.
10307         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
10308         inclusion protection macro.
10309
10310         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
10311         SIGRTMIN and SIGRTMAX and print information in that case only when
10312         SIGRTMIN is defined.
10313
10314 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10315
10316         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
10317         arginfo fn returning -1.
10318
10319         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
10320         and thousands string is zero terminated.
10321
10322 2011-02-03  Andreas Schwab  <schwab@redhat.com>
10323
10324         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
10325         sysdeps/unix/sysv/linux/bits/socket.h.
10326
10327 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10328
10329         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
10330         (__CPU_COUNT): Remove old macros.
10331         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
10332         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
10333         (__CPU_ALLOC, __CPU_FREE): Add macros.
10334         (__sched_cpualloc, __sched_cpufree): Add declarations.
10335
10336 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
10337
10338         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
10339         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
10340         * nscd/aicache.c (addhstaiX): Return timeout of added value.
10341         (readdhstai): Return value of addhstaiX call.
10342         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
10343         (addgrbyX): Return value returned by cache_addgr.
10344         (readdgrbyname): Return value returned by addgrbyX.
10345         (readdgrbygid): Likewise.
10346         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
10347         (addpwbyX): Return value returned by cache_addpw.
10348         (readdpwbyname): Return value returned by addhstbyX.
10349         (readdpwbyuid): Likewise.
10350         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
10351         (addservbyX): Return value returned by cache_addserv.
10352         (readdservbyname): Return value returned by addservbyX:
10353         (readdservbyport): Likewise.
10354         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
10355         (addhstbyX): Return value returned by cache_addhst.
10356         (readdhstbyname): Return value returned by addhstbyX.
10357         (readdhstbyaddr): Likewise.
10358         (readdhstbynamev6): Likewise.
10359         (readdhstbyaddrv6): Likewise.
10360         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
10361         (readdinitgroups): Return value returned by addinitgroupsX.
10362         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
10363         (prune_cache): Keep track of timeout value of re-added entries.
10364         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
10365         * nscd/nscd.h: Adjust prototypes of readd* functions.
10366
10367 2011-02-04  Roland McGrath  <roland@redhat.com>
10368
10369         * nis/nis_server.c (nis_servstate): Use the right name for 0.
10370         (nis_stats): Likewise.
10371         * nis/nis_modify.c (nis_modify): Likewise.
10372         * nis/nis_remove.c (nis_remove): Likewise.
10373         * nis/nis_add.c (nis_add): Likewise.
10374
10375         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
10376
10377         * posix/fnmatch_loop.c: Add some consts.
10378
10379         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
10380
10381 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
10382
10383         [BZ #12460]
10384         * config.make.in (config-cflags-novzeroupper): Define.
10385         * configure.in: Substitute libc_cv_cc_novzeroupper.
10386         * elf/Makefile (AVX-CFLAGS): Define.
10387         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
10388         (CFLAGS-tst-auditmod4a.c): Likewise.
10389         (CFLAGS-tst-auditmod4b.c): Likewise.
10390         (CFLAGS-tst-auditmod6b.c): Likewise.
10391         (CFLAGS-tst-auditmod6c.c): Likewise.
10392         (CFLAGS-tst-auditmod7b.c): Likewise.
10393         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
10394
10395 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
10396
10397         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
10398         function to the callback.
10399         Patch partly by Jiri Olsa <jolsa@redhat.com>.
10400
10401 2011-02-02  Andreas Schwab  <schwab@redhat.com>
10402
10403         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
10404         of errno.
10405
10406 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
10407
10408         [BZ #11724]
10409         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
10410         of constructors.
10411         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
10412         of destructors.
10413         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
10414
10415         [BZ #11724]
10416         * elf/Makefile: Add rules to build and run new test.
10417         * elf/tst-initorder.c: New file.
10418         * elf/tst-initorder.exp: New file.
10419         * elf/tst-initordera1.c: New file.
10420         * elf/tst-initordera2.c: New file.
10421         * elf/tst-initordera3.c: New file.
10422         * elf/tst-initordera4.c: New file.
10423         * elf/tst-initorderb1.c: New file.
10424         * elf/tst-initorderb2.c: New file.
10425         * elf/tst-order-a1.c: New file.
10426         * elf/tst-order-a2.c: New file.
10427         * elf/tst-order-a3.c: New file.
10428         * elf/tst-order-a4.c: New file.
10429         * elf/tst-order-b1.c: New file.
10430         * elf/tst-order-b2.c: New file.
10431         * elf/tst-order-main.c: New file.
10432         New test case by George Gensure <werkt0@gmail.com>.
10433
10434 2010-10-01  Andreas Schwab  <schwab@redhat.com>
10435
10436         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
10437         decoding ACE if AI_CANONIDN.
10438
10439 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
10440
10441         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
10442
10443 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
10444
10445         * version.h (RELEASE): Bump for 2.13 release.
10446         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
10447
10448         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
10449
10450         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
10451         MADV_NOHUGEPAGE.
10452         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
10453         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
10454         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10455         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10456         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10457         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
10458
10459         * posix/getconf.c: Update copyright year.
10460         * catgets/gencat.c: Likewise.
10461         * csu/version.c: Likewise.
10462         * debug/catchsegv.sh: Likewise.
10463         * debug/xtrace.sh: Likewise.
10464         * elf/ldconfig.c: Likewise.
10465         * elf/ldd.bash.in: Likewise.
10466         * elf/sprof.c (print_version): Likewise.
10467         * iconv/iconv_prog.c: Likewise.
10468         * iconv/iconvconfig.c: Likewise.
10469         * locale/programs/locale.c: Likewise.
10470         * locale/programs/localedef.c: Likewise.
10471         * malloc/memusage.sh: Likewise.
10472         * malloc/mtrace.pl: Likewise.
10473         * nscd/nscd.c (print_version): Likewise.
10474         * nss/getent.c: Likewise.
10475
10476         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
10477         PF_CAIF, and PF_ALG.
10478         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10479
10480 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
10481
10482         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
10483         (modules-names): Use them.
10484         (ifunc-test-modules, ifunc-pie-tests): Define.
10485         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
10486         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
10487         (test-extras): Likewise.
10488         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
10489         $(compile-command.c).
10490         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
10491         (all-built-dso): Define.
10492         (check-textrel.out, check-execstack.out): Depend on it.
10493
10494         * configure.in: Don't override --enable-multi-arch.
10495
10496 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
10497
10498         [BZ #6812]
10499         * nscd/hstcache.c (tryagain): Define.
10500         (cache_addhst): Return tryagain not notfound for temporary errors.
10501         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
10502         failed.
10503
10504 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
10505
10506         [BZ #10563]
10507         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
10508         to make the syscall.
10509         * sysdeps/unix/sysv/linux/setgroups.c: New file.
10510
10511         [BZ #12378]
10512         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
10513         and fall back to matching as normal character if the string ends before
10514         the matching ']' is found.  This is what POSIX requires.
10515         * posix/testfnm.c: Adjust test result.
10516         * posix/globtest.sh: Adjust test result.  Add new test.
10517         * posix/tst-fnmatch.input: Likewise.
10518         * posix/tst-fnmatch2.c: Add new test.
10519
10520 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
10521
10522         * elf/Makefile (check-execstack): Revert last change.  Depend on
10523         check-execstack.h.
10524         (check-execstack.h): New target.
10525         (generated): Add check-execstack.h.
10526         * elf/check-execstack.c: Include "check-execstack.h".
10527         (main): Revert last change.
10528         (handle_file): Return zero if GNU_STACK is absent and
10529         DEFAULT_STACK_PERMS doesn't include PF_X.
10530
10531 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
10532
10533         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
10534         in child fails because the descriptor is already closed.
10535         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
10536         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
10537         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10538
10539         [BZ #12397]
10540         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
10541         syscall.
10542
10543         [BZ #10484]
10544         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
10545         temporary buffer used to handle multi lookups locally.
10546         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
10547
10548 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10549
10550         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
10551         loader is ld.so.
10552
10553 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
10554
10555         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
10556         alignment for SSE2.
10557
10558 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10559
10560         [BZ #12394]
10561         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
10562         characters.  When rounding increased number of integer digits recompute
10563         number of groups.
10564         * stdio-common/tst-grouping.c: New file.
10565         * stdio-common/Makefile: Add rules to build and run tst-grouping.
10566
10567 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
10568
10569         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
10570         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
10571
10572         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
10573         void.
10574         * bits/select.h: Likewise.
10575
10576 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
10577
10578         * po/ja.po: Update from translation team.
10579
10580 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
10581
10582         [BZ #11155]
10583         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
10584         implementation just like for lxstat, fxstatat, et al.
10585
10586 2010-12-27  Jim Meyering  <meyering@redhat.com>
10587
10588         [BZ #12348]
10589         * posix/regexec.c (build_trtable): Return failure indication upon
10590         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
10591
10592 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
10593
10594         [BZ #12201]
10595         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
10596         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
10597         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
10598         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
10599
10600         [BZ #12207]
10601         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
10602
10603         [BZ #12204]
10604         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
10605         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
10606
10607 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
10608
10609         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
10610         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
10611         script has SORT_BY_INIT_PRIORITY.
10612         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
10613         NO_CTORS_DTORS_SECTIONS is defined.
10614         * elf/soinit.c: Likewise.
10615         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
10616         NO_CTORS_DTORS_SECTIONS is defined.
10617         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
10618         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
10619         * sysdeps/sh/init-first.c: Likewise.
10620         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10621
10622 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
10623
10624         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
10625         always use the slow path.
10626
10627 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
10628
10629         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
10630         similar rule which adds the sysdep directories to the header search in
10631         order to pick up the correct platform stackinfo.h.
10632         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
10633         perform test if it is, otherwise return successfully without testing.
10634         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
10635         DEFAULT_STACK_PERMS define in stackinfo.h.
10636         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
10637         defined in stackinfo.h.
10638         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
10639         DEFAULT_STACK_PERMS defined in stackinfo.h.
10640         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
10641         * sysdeps/ia64/stackinfo.h: Likewise.
10642         * sysdeps/s390/stackinfo.h: Likewise.
10643         * sysdeps/sh/stackinfo.h: Likewise.
10644         * sysdeps/sparc/stackinfo.h: Likewise.
10645         * sysdeps/x86_64/stackinfo.h: Likewise.
10646         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
10647         PF_X for powerpc64.  Retain PF_X for powerpc32.
10648
10649 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
10650
10651         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
10652         accurately.
10653         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
10654         GETDENTS_64BIT_ALIGNED.
10655
10656 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
10657
10658         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
10659
10660 2010-12-10  Andreas Schwab  <schwab@redhat.com>
10661
10662         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
10663         _GNU_SOURCE.
10664
10665         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
10666         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
10667         Remove __restrict.
10668         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
10669         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
10670
10671 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
10672
10673         [BZ #11655]
10674         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
10675         are initialized.
10676
10677 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
10678
10679         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
10680
10681 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
10682
10683         * po/it.po: Update from translation team.
10684
10685 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
10686
10687         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
10688         unused codes.
10689
10690 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
10691
10692         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
10693
10694 2010-11-24  Andreas Schwab  <schwab@redhat.com>
10695
10696         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
10697         specially.
10698         (gaih_getanswer_slice): Likewise.
10699
10700 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
10701
10702         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
10703
10704 2010-05-31  Petr Baudis  <pasky@suse.cz>
10705
10706         [BZ #11149]
10707         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
10708         silently even in the chroot mode.
10709
10710 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
10711
10712         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
10713         last patch a bit.  Pretty printing
10714
10715 2010-05-31  Petr Baudis <pasky@suse.cz>
10716
10717         [BZ #10085]
10718         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
10719         initialization of skip_initgroups_dyn.
10720
10721 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
10722
10723         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
10724         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
10725
10726 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
10727
10728         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
10729
10730 2010-11-11  Andreas Schwab  <schwab@redhat.com>
10731
10732         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
10733         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
10734         (tst-fnmatch-ENV): Set MALLOC_TRACE.
10735         ($(objpfx)tst-fnmatch-mem): New rule.
10736         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
10737         * posix/tst-fnmatch.c (main): Call mtrace.
10738
10739 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
10740
10741         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10742         Support Intel processor model 6 and model 0x2c.
10743
10744 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
10745
10746         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
10747           signed comparison.
10748
10749 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
10750
10751         [BZ #12205]
10752         * string/test-strncasecmp.c (check_result): New function.
10753         (do_one_test): Use it.
10754         (check1): New function.
10755         (test_main): Use it.
10756         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
10757         Support strcasecmp and strncasecmp.
10758
10759 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
10760
10761         [BZ #12194]
10762         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
10763         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10764
10765 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
10766
10767         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
10768         IFUNC support.
10769         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10770         memset-x86-64.
10771         * sysdeps/x86_64/multiarch/bzero.S: New file.
10772         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
10773         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
10774         * sysdeps/x86_64/multiarch/memset.S: New file.
10775         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
10776         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10777         Set bit_Prefer_SSE_for_memop for Intel processors.
10778         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
10779         Define.
10780         (index_Prefer_SSE_for_memop): Define.
10781         (HAS_PREFER_SSE_FOR_MEMOP): Define.
10782
10783 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
10784
10785         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
10786         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
10787
10788 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
10789
10790         [BZ #12191]
10791         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
10792         (__x86_64_raw_data_cache_size_half): Likewise.
10793         (__x86_64_raw_shared_cache_size): Likewise.
10794         (__x86_64_raw_shared_cache_size_half): Likewise.
10795
10796         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
10797         (__x86_64_raw_data_cache_size_half): Likewise.
10798         (__x86_64_raw_shared_cache_size): Likewise.
10799         (__x86_64_raw_shared_cache_size_half): Likewise.
10800         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
10801         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
10802         and __x86_64_raw_shared_cache_size_half.  Round
10803         __x86_64_data_cache_size_half, __x86_64_data_cache_size
10804         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
10805         to multiple of 256 bytes.
10806
10807 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
10808
10809         [BZ #12167]
10810         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
10811         of inacessible symlinks.  Verify result of symlink before returning it.
10812         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
10813         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
10814
10815 2010-10-28  Erich Ritz  <erichritz@gmail.com>
10816
10817         * math/math.h (isinf): Fix typo in comment.
10818
10819 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
10820
10821         * po/da.po: Update from translation team.
10822
10823 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
10824
10825         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
10826         is added to the list.
10827
10828 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10829             Ulrich Drepper  <drepper@gmail.com>
10830
10831         * elf/dl-object.c (_dl_new_object): Don't append the new object to
10832         the global list here.  Move code to...
10833         (_dl_add_to_namespace_list): ...here.  New function.
10834         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
10835         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
10836         * elf/dl-load.c (lose): Don't remove the element from the list.
10837         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
10838         (_dl_map_object): Likewise.
10839
10840 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
10841
10842         [BZ #12159]
10843         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
10844         into all bytes of SSE register.
10845         Patch by Richard Li <richardpku@gmail.com>.
10846
10847 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
10848
10849         [BZ #12140]
10850         * malloc/malloc.c (_int_free): Fill correct number of bytes when
10851         perturbing.
10852
10853 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
10854
10855         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
10856         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
10857         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
10858         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
10859         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
10860         submachine.
10861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
10862
10863 2010-10-22  Andreas Schwab  <schwab@redhat.com>
10864
10865         * include/dlfcn.h (__RTLD_SECURE): Define.
10866         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
10867         mode & __RTLD_SECURE instead.
10868         (open_path): Rename preloaded parameter to secure.
10869         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
10870         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
10871         * elf/dl-deps.c (openaux): Likewise.
10872         * elf/rtld.c (struct map_args): Remove is_preloaded.
10873         (map_doit): Don't use it.
10874         (dl_main): Likewise.
10875         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
10876         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
10877
10878 2010-09-09  Andreas Schwab  <schwab@redhat.com>
10879
10880         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
10881         (sysd-rules-targets): Remove duplicates.
10882         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
10883         rtld-%.$o dependency.
10884
10885 2010-10-18  Andreas Schwab  <schwab@redhat.com>
10886
10887         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
10888         _dl_map_object do it.
10889
10890 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
10891
10892         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
10893         fast fma builtins, define the macros in the C99 standard.
10894         (FP_FAST_FMAF): Likewise.
10895         (FP_FAST_FMAL): Likewise.
10896         * sysdeps/x86_64/bits/mathdef.h: Likewise.
10897
10898         * bits/mathdef.h: Update copyright year.
10899         * sysdeps/powerpc/bits/mathdef.h: Likewise.
10900
10901 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
10902
10903         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
10904         builtins, define the macros in the C99 standard.
10905         (FP_FAST_FMAF): Likewise.
10906         (FP_FAST_FMAL): Likewise.
10907         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
10908         multiply/add.
10909         (FP_FAST_FMAF): Likewise.
10910
10911 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
10912
10913         [BZ #3268]
10914         * math/libm-test.inc (fma_test): Some new testcases.
10915         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
10916         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
10917         y and infinite z.  Do multiplication by C already in long double.
10918         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
10919         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
10920         y and infinite z.  Do bitwise or of inexact bit into u.d.
10921         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
10922         * sysdeps/i386/fpu/s_fmaf.S: Removed.
10923         * sysdeps/i386/fpu/s_fma.S: Removed.
10924         * sysdeps/i386/fpu/s_fmal.S: Removed.
10925
10926 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
10927
10928         [BZ #3268]
10929         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
10930         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
10931         computation is not scheduled after fetestexcept.  Fix value
10932         of minimum denormal long double.
10933
10934 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
10935
10936         [BZ #3268]
10937         * math/libm-test.inc (fma_test): Add some more tests.
10938         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
10939         correctly.
10940
10941 2010-10-15  Andreas Schwab  <schwab@redhat.com>
10942
10943         * scripts/data/localplt-s390-linux-gnu.data: New file.
10944         * scripts/data/localplt-s390x-linux-gnu.data: New file.
10945
10946 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
10947
10948         [BZ #3268]
10949         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
10950         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
10951         instead of dbl-64.
10952         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
10953         inlines.
10954         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
10955         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
10956         if one of x and y is very large and the other is subnormal.
10957         * sysdeps/s390/fpu/s_fmaf.c: New file.
10958         * sysdeps/s390/fpu/s_fma.c: New file.
10959         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
10960         * sysdeps/powerpc/fpu/s_fma.S: New file.
10961         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
10962         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
10963         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
10964
10965 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
10966
10967         [BZ #3268]
10968         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
10969         fma tests.
10970         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
10971         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
10972         * sysdeps/i386/i686/multiarch/s_fma.c: Include
10973         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
10974         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
10975         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
10976         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
10977
10978 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
10979
10980         [BZ #12078]
10981         * posix/regcomp.c (parse_branch): One more memory leak plugged.
10982         * posix/bug-regex31.input: Add test case.
10983
10984 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
10985
10986         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
10987         * posix/bug-regex31.input: New file.
10988
10989         [BZ #12078]
10990         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
10991         (parse_sub_exp): Fix last change, use postorder.
10992
10993         * posix/bug-regex31.c: New file.
10994         * posix/Makefile: Add rules to build and run bug-regex31.
10995
10996         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
10997
10998         [BZ #12078]
10999         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
11000
11001         [BZ #12108]
11002         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
11003         to have entries in sys_siglist.
11004
11005         [BZ #12093]
11006         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
11007         be NULL.
11008
11009 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
11010
11011         [BZ #3268]
11012         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
11013         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
11014         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
11015         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
11016         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
11017         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
11018         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
11019         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
11020         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
11021         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
11022         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
11023         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
11024         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
11025         * math/ftestexcept.c (fetestexcept): Likewise.
11026         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
11027         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
11028         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
11029         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
11030         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
11031         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
11032         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
11033
11034 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
11035
11036         [BZ #12107]
11037         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
11038         newline.
11039
11040 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
11041
11042         * string/bug-strstr1.c: New file.
11043         * string/Makefile: Add rules to build and run bug-strstr1.
11044
11045 2010-10-05  Eric Blake  <eblake@redhat.com>
11046
11047         [BZ #12092]
11048         * string/str-two-way.h (two_way_long_needle): Always clear memory
11049         when skipping input due to the shift table.
11050
11051 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
11052
11053         [BZ #12005]
11054         * malloc/mcheck.c: Handle large requests.
11055
11056         [BZ #12077]
11057         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
11058         for strncmp and strncasecmp.
11059         * string/stratcliff.c: Add tests for strcmp and strncmp.
11060         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
11061
11062 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11063
11064         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
11065         __set_fpscr.
11066
11067 2010-09-30  Andreas Jaeger  <aj@suse.de>
11068
11069         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
11070         (CGROUP_SUPER_MAGIC): Define.
11071         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11072         Handle btrfs and cgroup file systems.
11073         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
11074         Likewise.
11075
11076 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
11077
11078         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
11079         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
11080
11081 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11082
11083         [BZ #12067]
11084         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
11085         trying to locate the ELF header.
11086
11087 2010-09-27  Andreas Schwab  <schwab@redhat.com>
11088
11089         [BZ #11611]
11090         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
11091         Mask out sign-bit copies when constructing f_fsid.
11092
11093 2010-09-24  Petr Baudis <pasky@suse.cz>
11094
11095         * debug/stack_chk_fail_local.c: Add missing licence exception.
11096         * debug/warning-nop.c: Likewise.
11097
11098 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
11099
11100         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
11101         implementing getdents64 using getdents syscall, set d_type if
11102         __ASSUME_GETDENTS32_D_TYPE.
11103
11104 2010-09-16  Andreas Schwab  <schwab@redhat.com>
11105
11106         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
11107         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
11108
11109 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
11110
11111         [BZ #12037]
11112         * posix/unistd.h: Undo change of feature selection for ftruncate from
11113         2010-01-11.
11114
11115 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
11116
11117         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
11118         detection.
11119
11120 2010-09-20  Andreas Schwab  <schwab@redhat.com>
11121
11122         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
11123         fanotify_mark.
11124         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
11125
11126 2010-09-14  Andreas Schwab  <schwab@redhat.com>
11127
11128         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
11129         variables after CHECK_SP call.
11130         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
11131
11132 2010-09-13  Andreas Schwab  <schwab@redhat.com>
11133             Ulrich Drepper  <drepper@redhat.com>
11134
11135         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
11136         re-relocationg ld.so.
11137         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
11138         _dl_init_paths call.
11139         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
11140         here anymore.
11141
11142 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
11143
11144         * resolv/res_init.c (__res_vinit): Count the default server we added.
11145
11146 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
11147             Ulrich Drepper  <drepper@redhat.com>
11148
11149         [BZ #11968]
11150         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
11151         (____longjmp_chk): Use %ebx for saving value across system call.
11152         Add unwind info.
11153
11154 2010-09-06  Andreas Schwab  <schwab@redhat.com>
11155
11156         * manual/Makefile: Don't mix pattern rules with normal rules.
11157
11158 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
11159
11160         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
11161         operation.
11162         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
11163         * libio/iofopncook.c (_IO_cookie_init): Likewise.
11164         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
11165         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
11166         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
11167         Likewise.
11168
11169 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
11170
11171         [BZ #11979]
11172         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
11173         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
11174
11175 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
11176
11177         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
11178         * sysdeps/x86_64/addmul_1.S: Likewise.
11179         * sysdeps/x86_64/lshift.S: Likewise.
11180         * sysdeps/x86_64/mul_1.S: Likewise.
11181         * sysdeps/x86_64/rshift.S: Likewise.
11182         * sysdeps/x86_64/sub_n.S: Likewise.
11183         * sysdeps/x86_64/submul_1.S: Likewise.
11184
11185 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11186
11187         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
11188         Define __sched_param instead of SCHED_* and sched_param when
11189         <bits/sched.h> is included with __need_schedparam defined.
11190         * bits/sched.h [__need_schedparam]
11191         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
11192         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
11193         (__defined_schedparam): Define to 1.
11194         (__sched_param): New structure, identical to sched_param.
11195         (__need_schedparam): Undefine.
11196
11197 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
11198
11199         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
11200         (epoll_create1): Declare.
11201
11202         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
11203
11204 2010-08-31  Andreas Schwab  <schwab@redhat.com>
11205
11206         [BZ #7066]
11207         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
11208         shifting retval into place.
11209
11210 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
11211
11212         * nis/rpcsvc/nis.h: Update copyright notice.
11213         * nis/rpcsvc/nis.x: Likewise.
11214         * nis/rpcsvc/nis_callback.h: Likewise.
11215         * nis/rpcsvc/nis_callback.x: Likewise.
11216         * nis/rpcsvc/nis_object.x: Likewise.
11217         * nis/rpcsvc/nis_tags.h: Likewise.
11218         * nis/rpcsvc/yp.h: Likewise.
11219         * nis/rpcsvc/yp.x: Likewise.
11220         * nis/rpcsvc/ypupd.h: Likewise.
11221         * nis/yp_xdr.c: Likewise.
11222         * nis/ypupdate_xdr.c: Likewise.
11223
11224         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
11225         mainly the body of pmap_getport.  Add parameters to specify timeouts.
11226         (pmap_getport): Use __libc_rpc_getport.
11227         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
11228         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
11229         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
11230
11231 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
11232
11233         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
11234         fanotify_mark.
11235
11236 2010-08-27  Roland McGrath  <roland@redhat.com>
11237
11238         * sysdeps/i386/i686/multiarch/Makefile
11239         (CFLAGS-varshift.c): New variable.
11240
11241 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
11242
11243         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
11244         * sysdeps/i386/i686/multiarch/varshift.c: New file.
11245
11246         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
11247
11248         * sysdeps/x86_64/strlen.S: Minimal code improvement.
11249
11250 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
11251
11252         * sysdeps/x86_64/strlen.S: Unroll the loop.
11253         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11254         strlen-sse2 strlen-sse2-bsf.
11255         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
11256         __strlen_no_bsf if bit_Slow_BSF is set.
11257         (__strlen_sse42): Removed.
11258         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
11259         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
11260
11261 2010-08-25  Roland McGrath  <roland@redhat.com>
11262
11263         * sysdeps/x86_64/multiarch/varshift.S: File removed.
11264         * sysdeps/x86_64/multiarch/varshift.c: New file.
11265         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
11266         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
11267         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
11268         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
11269
11270 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
11271
11272         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11273         strlen-sse2 strlen-sse2-bsf.
11274         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
11275         __strlen_sse2_bsf if bit_Slow_BSF is unset.
11276         (__strlen_sse2): Removed.
11277         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
11278         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
11279         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
11280         bit_Slow_BSF for Atom.
11281         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
11282         (index_Slow_BSF): Define.
11283         (HAS_SLOW_BSF): Define.
11284
11285 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
11286
11287         [BZ #10851]
11288         * resolv/res_init.c (__res_vinit): When no server address at all
11289         is given default to loopback.
11290
11291 2010-08-24  Roland McGrath  <roland@redhat.com>
11292
11293         * configure.in: Remove config-name.h generation.
11294         * configure: Regenerated.
11295         * config-name.in: File removed.
11296         * scripts/config-uname.sh: New file.
11297         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
11298         ($(objdir)config-name.h): New target.
11299
11300         * sunrpc/rpc_parse.h: Avoid nested comment.
11301
11302 2010-08-24  Richard Henderson  <rth@redhat.com>
11303             Ulrich Drepper  <drepper@redhat.com>
11304             H.J. Lu  <hongjiu.lu@intel.com>
11305
11306         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
11307         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
11308         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
11309         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
11310         _mm_alignr_epi8 with _mm_loadu_si128.
11311         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
11312         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
11313         (__m128i_shift_right): Removed.
11314         * sysdeps/i386/i686/multiarch/varshift.h: New file.
11315         * sysdeps/i386/i686/multiarch/varshift.S: New file.
11316         * sysdeps/x86_64/multiarch/varshift.h: New file.
11317         * sysdeps/x86_64/multiarch/varshift.S: New file.
11318
11319 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
11320
11321         * configure.in: Move assembler checks to before sysdep dir checking.
11322
11323 2010-08-20  Petr Baudis  <pasky@suse.cz>
11324
11325         * LICENSES: Sync the sunrpc license.
11326
11327 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
11328
11329         * sunrpc/auth_des.c: Update copyright notice once again.
11330         * sunrpc/auth_none.c: Likewise.
11331         * sunrpc/auth_unix.c: Likewise.
11332         * sunrpc/authdes_prot.c: Likewise.
11333         * sunrpc/authuxprot.c: Likewise.
11334         * sunrpc/bindrsvprt.c: Likewise.
11335         * sunrpc/clnt_gen.c: Likewise.
11336         * sunrpc/clnt_perr.c: Likewise.
11337         * sunrpc/clnt_raw.c: Likewise.
11338         * sunrpc/clnt_simp.c: Likewise.
11339         * sunrpc/clnt_tcp.c: Likewise.
11340         * sunrpc/clnt_udp.c: Likewise.
11341         * sunrpc/clnt_unix.c: Likewise.
11342         * sunrpc/des_crypt.c: Likewise.
11343         * sunrpc/des_soft.c: Likewise.
11344         * sunrpc/get_myaddr.c: Likewise.
11345         * sunrpc/getrpcport.c: Likewise.
11346         * sunrpc/key_call.c: Likewise.
11347         * sunrpc/key_prot.c: Likewise.
11348         * sunrpc/openchild.c: Likewise.
11349         * sunrpc/pm_getmaps.c: Likewise.
11350         * sunrpc/pm_getport.c: Likewise.
11351         * sunrpc/pmap_clnt.c: Likewise.
11352         * sunrpc/pmap_prot.c: Likewise.
11353         * sunrpc/pmap_prot2.c: Likewise.
11354         * sunrpc/pmap_rmt.c: Likewise.
11355         * sunrpc/rpc/auth.h: Likewise.
11356         * sunrpc/rpc/auth_unix.h: Likewise.
11357         * sunrpc/rpc/clnt.h: Likewise.
11358         * sunrpc/rpc/des_crypt.h: Likewise.
11359         * sunrpc/rpc/key_prot.h: Likewise.
11360         * sunrpc/rpc/netdb.h: Likewise.
11361         * sunrpc/rpc/pmap_clnt.h: Likewise.
11362         * sunrpc/rpc/pmap_prot.h: Likewise.
11363         * sunrpc/rpc/pmap_rmt.h: Likewise.
11364         * sunrpc/rpc/rpc.h: Likewise.
11365         * sunrpc/rpc/rpc_des.h: Likewise.
11366         * sunrpc/rpc/rpc_msg.h: Likewise.
11367         * sunrpc/rpc/svc.h: Likewise.
11368         * sunrpc/rpc/svc_auth.h: Likewise.
11369         * sunrpc/rpc/types.h: Likewise.
11370         * sunrpc/rpc/xdr.h: Likewise.
11371         * sunrpc/rpc_clntout.c: Likewise.
11372         * sunrpc/rpc_cmsg.c: Likewise.
11373         * sunrpc/rpc_common.c: Likewise.
11374         * sunrpc/rpc_cout.c: Likewise.
11375         * sunrpc/rpc_dtable.c: Likewise.
11376         * sunrpc/rpc_hout.c: Likewise.
11377         * sunrpc/rpc_main.c: Likewise.
11378         * sunrpc/rpc_parse.c: Likewise.
11379         * sunrpc/rpc_parse.h: Likewise.
11380         * sunrpc/rpc_prot.c: Likewise.
11381         * sunrpc/rpc_sample.c: Likewise.
11382         * sunrpc/rpc_scan.c: Likewise.
11383         * sunrpc/rpc_scan.h: Likewise.
11384         * sunrpc/rpc_svcout.c: Likewise.
11385         * sunrpc/rpc_tblout.c: Likewise.
11386         * sunrpc/rpc_util.c: Likewise.
11387         * sunrpc/rpc_util.h: Likewise.
11388         * sunrpc/rpcinfo.c: Likewise.
11389         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
11390         * sunrpc/rpcsvc/key_prot.x: Likewise.
11391         * sunrpc/rpcsvc/klm_prot.x: Likewise.
11392         * sunrpc/rpcsvc/mount.x: Likewise.
11393         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
11394         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
11395         * sunrpc/rpcsvc/rex.x: Likewise.
11396         * sunrpc/rpcsvc/rstat.x: Likewise.
11397         * sunrpc/rpcsvc/rusers.x: Likewise.
11398         * sunrpc/rpcsvc/sm_inter.x: Likewise.
11399         * sunrpc/rpcsvc/spray.x: Likewise.
11400         * sunrpc/rpcsvc/yppasswd.x: Likewise.
11401         * sunrpc/rtime.c: Likewise.
11402         * sunrpc/svc.c: Likewise.
11403         * sunrpc/svc_auth.c: Likewise.
11404         * sunrpc/svc_authux.c: Likewise.
11405         * sunrpc/svc_raw.c: Likewise.
11406         * sunrpc/svc_run.c: Likewise.
11407         * sunrpc/svc_simple.c: Likewise.
11408         * sunrpc/svc_tcp.c: Likewise.
11409         * sunrpc/svc_udp.c: Likewise.
11410         * sunrpc/svc_unix.c: Likewise.
11411         * sunrpc/svcauth_des.c: Likewise.
11412         * sunrpc/xcrypt.c: Likewise.
11413         * sunrpc/xdr.c: Likewise.
11414         * sunrpc/xdr_array.c: Likewise.
11415         * sunrpc/xdr_float.c: Likewise.
11416         * sunrpc/xdr_mem.c: Likewise.
11417         * sunrpc/xdr_rec.c: Likewise.
11418         * sunrpc/xdr_ref.c: Likewise.
11419         * sunrpc/xdr_sizeof.c: Likewise.
11420         * sunrpc/xdr_stdio.c: Likewise.
11421
11422         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
11423         handling.
11424
11425 2010-08-19  Andreas Schwab  <schwab@redhat.com>
11426
11427         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
11428
11429 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
11430
11431         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
11432         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
11433         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
11434         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
11435         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
11436         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
11437         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
11438         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
11439         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
11440         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
11441         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
11442         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
11443         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
11444         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
11445
11446 2010-07-26  Anton Blanchard  <anton@samba.org>
11447
11448         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
11449         * malloc/arena.c (heap_trim): Likewise.
11450
11451 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
11452
11453         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
11454         here.  Not...
11455         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
11456         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
11457
11458 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
11459
11460         * sysdeps/i386/elf/Makefile: New file.
11461
11462 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11463
11464         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
11465         from fanotify_init.
11466         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
11467         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11468
11469 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
11470
11471         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
11472         of strncasecmp_l.
11473         * sysdeps/multiarch/strcmp.S: Likewise.
11474
11475 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
11476
11477         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11478         strncase_l-nonascii.
11479         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11480         Add strncase_l-ssse3.
11481         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
11482         * sysdeps/x86_64/strcmp.S: Likewise.
11483         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
11484         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
11485         * sysdeps/x86_64/strncase.S: New file.
11486         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
11487         * sysdeps/x86_64/strncase_l.S: New file.
11488         * string/Makefile (strop-tests): Add strncasecmp.
11489         * string/test-strncasecmp.c: New file.
11490
11491         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
11492         warning.
11493
11494         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
11495         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
11496
11497 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11498
11499         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
11500
11501 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
11502
11503         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
11504         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
11505         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
11506
11507 2010-05-01  Alan Modra  <amodra@gmail.com>
11508
11509         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
11510         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
11511         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
11512         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
11513         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
11514         tidying.  Don't tail-call __sigjmp_save for static lib.
11515         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
11516         save location.
11517         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
11518         (CALL_MCOUNT): Add eh info, and nop after bl.
11519         (TAIL_CALL_SYSCALL_ERROR): New macro.
11520         (PSEUDO_RET): Use it.
11521         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
11522         Correct save location of integer regs and cr.
11523         (_dl_profile_resolve): Correct cr save location.  Delete nops
11524         after bl when SHARED.  Reduce cfi size a little by better
11525         placement of cfi directives.
11526         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
11527         make a stack frame.  Instead use parm save area as a temp.
11528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
11529         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
11530         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11531         Don't make a stack frame for parent, use parm save area.
11532         Increase child stack frame to 112 bytes.  Don't save unused reg,
11533         and adjust reg usage.  Set up cfi on error recovery and
11534         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
11535         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11536         (__makecontext): Add dummy nop after jump to exit.
11537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
11538         Use correct parm save area and cr save, reduce stack frame.
11539         Correct cfi for possible PSEUDO_RET frame setup.
11540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
11541         Branch to local label emitted by PSEUDO_RET rather than
11542         __syscall_error.
11543
11544 2010-08-12  Andreas Schwab  <schwab@redhat.com>
11545
11546         [BZ #11904]
11547         * locale/programs/locale.c (print_assignment): New function.
11548         (show_locale_vars): Use it.
11549
11550 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
11551
11552         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
11553         field.
11554         (struct statfs64): Likewise.
11555         (_STATFS_F_FLAGS): Define.
11556         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
11557         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11558         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
11559         (ST_VALID): Define locally.
11560         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
11561         __statvfs_getflags, use the provided value.
11562         * sysdeps/unix/sysv/linux/kernel-features.h: Define
11563         __ASSUME_STATFS_F_FLAGS.
11564
11565         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
11566
11567         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
11568         Add sys/fanotify.h.
11569         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
11570         fanotify_mask for GLIBC_2.13.
11571         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
11572         fanotify_init and fanotify_mark.
11573         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11574         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
11575
11576         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
11577         Add prlimit.
11578         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
11579         prlimit64 for GLIBC_2.13.
11580         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
11581         prlimit64.
11582         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
11583         syscall.
11584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11585         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
11586         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
11587         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
11588         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
11589         add prlimit alias.
11590         * sysdeps/unix/sysv/linux/prlimit.c: New file.
11591
11592         [BZ #11903]
11593         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
11594         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
11595
11596         * nss/Makefile: Add rules to build and run tst-nss-test1.
11597         * shlib-versions: Add entry for libnss_test1.
11598         * nss/nss_test1.c: New file.
11599         * nss/tst-nss-test1.c: New file.
11600
11601         * nss/nsswitch.c (__nss_database_custom): Define new variable.
11602         (__nss_configure_lookup): Set appropriate entry in
11603         __nss_configure_lookup to true.
11604         * nss/nsswitch.h: Define enum with indeces of databases in
11605         databases and __nss_database_custom arrays.  Declare
11606         __nss_database_custom.
11607         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
11608         to avoid using nscd when custom rules are installed.
11609         * nss/getXXbyYY_r.c: Likewise.
11610         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
11611
11612         * nss/nss_files/files-parse.c: Whitespace fixes.
11613
11614 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
11615
11616         [BZ #11883]
11617         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
11618         * posix/fnmatch_loop.c: Likewise.
11619
11620 2010-07-17  Andi Kleen  <ak@linux.intel.com>
11621
11622         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
11623         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
11624         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
11625         * Versions.def [GLIBC_2.13]: Add.
11626
11627 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
11628
11629         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11630         Also fail if tpwd after pwuid call is NULL.
11631
11632 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11633
11634         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
11635         when converting to ms.
11636
11637 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11638
11639         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
11640         EOPNOTSUPP errors with ENOTTY.
11641         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
11642         EOPNOTSUPP errors with ENOTTY.
11643
11644 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
11645
11646         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11647         Add strcasecmp_l-ssse3.
11648         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
11649         strcasecmp.
11650         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
11651         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
11652         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
11653
11654 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
11655
11656         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
11657
11658         * string/Makefile (strop-tests): Add strcasecmp.
11659         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11660         strcasecmp_l-nonascii.
11661         (gen-as-const-headers): Add locale-defines.sym.
11662         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
11663         * sysdeps/x86_64/strcasecmp.S: New file.
11664         * sysdeps/x86_64/strcasecmp_l.S: New file.
11665         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
11666         * sysdeps/x86_64/locale-defines.sym: New file.
11667         * string/test-strcasecmp.c: New file.
11668
11669         * string/test-strcasestr.c: Test both ends of the range of characters.
11670         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
11671
11672 2010-07-29  Roland McGrath  <roland@redhat.com>
11673
11674         [BZ #11856]
11675         * manual/locale.texi (Yes-or-No Questions): Fix example code.
11676
11677 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
11678
11679         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
11680         for ld.so.
11681
11682 2010-07-27  Andreas Schwab  <schwab@redhat.com>
11683
11684         * manual/memory.texi (Malloc Tunable Parameters): Document
11685         M_PERTURB.
11686
11687 2010-07-26  Roland McGrath  <roland@redhat.com>
11688
11689         [BZ #11840]
11690         * configure.in (-fgnu89-inline check): Set and substitute
11691         gnu89_inline, not libc_cv_gnu89_inline.
11692         * configure: Regenerated.
11693         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
11694
11695 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
11696
11697         * string/test-strnlen.c: New file.
11698         * string/Makefile (strop-tests): Add strnlen.
11699         * string/tester.c (test_strnlen): Add a few more test cases.
11700         * string/tst-strlen.c: Better error reporting.
11701
11702         * sysdeps/x86_64/strnlen.S: New file.
11703
11704 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
11705
11706         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
11707         lower-latency instructions.
11708
11709 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
11710
11711         * string/test-strcasestr.c: New file.
11712         * string/test-strstr.c: New file.
11713         * string/Makefile (strop-tests): Add strstr and strcasestr.
11714         * string/str-two-way.h: Don't undefine MAX.
11715         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
11716
11717 2010-07-21  Andreas Schwab  <schwab@redhat.com>
11718
11719         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11720         strcasestr-nonascii.
11721         (CFLAGS-strcasestr-nonascii.c): Define.
11722         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
11723         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
11724         Remove unused attribute.
11725
11726 2010-07-20  Roland McGrath  <roland@redhat.com>
11727
11728         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
11729         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
11730         ld.so.cache was broken.  With it, there is no way to disable dsocaps
11731         like LD_HWCAP_MASK can disable hwcaps.
11732
11733 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
11734
11735         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
11736
11737 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
11738
11739         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
11740         call in strcasestr.
11741         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
11742         __strcasestr_sse42_nonascii.
11743         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
11744         strcasestr-nonascii.c.
11745         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
11746
11747 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
11748
11749         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
11750         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
11751         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
11752         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
11753
11754 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
11755
11756         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
11757         fcntl.
11758
11759 2010-07-06  Andreas Schwab  <schwab@redhat.com>
11760
11761         [BZ #11577]
11762         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
11763         dl_signal_cerror.
11764
11765 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
11766
11767         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
11768         _PC_PIPE_BUF using F_GETPIPE_SZ.
11769
11770 2010-07-05  Roland McGrath  <roland@redhat.com>
11771
11772         * manual/arith.texi (Rounding Functions): Fix rint description
11773         implicit in round description.
11774
11775 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
11776
11777         * elf/Makefile: Fix linking for a few tests to make recent linker
11778         happy.
11779
11780 2010-06-30  Andreas Schwab  <schwab@redhat.com>
11781
11782         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
11783         $(common-objpfx)libc_nonshared.a.
11784
11785 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
11786
11787         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
11788         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
11789         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
11790         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
11791         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
11792         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
11793         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
11794         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
11795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
11796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
11797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
11798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
11799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
11800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
11801         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
11802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
11803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
11804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
11805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
11806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
11807         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
11808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
11809         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
11810         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
11811         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
11812         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
11813         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
11814         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
11815         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
11816         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
11817         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
11818         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
11819         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
11820         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
11821         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
11822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
11823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
11824         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
11825         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
11826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
11827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
11828         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
11829         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
11830         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
11831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
11832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
11833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
11834         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
11835
11836 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
11837
11838         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
11839         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
11840         * string/memmove.c (memmove): Renamed to ...
11841         (MEMMOVE): ...this.  Default to memmove.
11842         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
11843         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
11844         (END_CHK): Define.
11845         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11846         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
11847         mempcpy-ssse3-back memmove-ssse3-back.
11848         * sysdeps/x86_64/multiarch/bcopy.S: New file .
11849         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
11850         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
11851         * sysdeps/x86_64/multiarch/memcpy.S: New file.
11852         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
11853         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
11854         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
11855         * sysdeps/x86_64/multiarch/memmove.c: New file.
11856         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
11857         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
11858         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
11859         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
11860         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
11861         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
11862         Define.
11863         (index_Fast_Copy_Backward): Define.
11864         (HAS_ARCH_FEATURE): Define.
11865         (HAS_FAST_REP_STRING): Define.
11866         (HAS_FAST_COPY_BACKWARD): Define.
11867
11868 2010-06-21  Andreas Schwab  <schwab@redhat.com>
11869
11870         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11871         Restore proper fallback handling.
11872
11873 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
11874
11875         [BZ #11701]
11876         * posix/group_member.c (__group_member): Correct checking loop.
11877
11878         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
11879         OOM in getpwuid_r correctly.  Return error number when the caller
11880         should return, otherwise -1.
11881         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
11882         call returning > 0 value.
11883         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
11884
11885 2010-06-07  Andreas Schwab  <schwab@redhat.com>
11886
11887         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
11888         libc_nonshared.a from targets in modules-names.
11889
11890 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
11891
11892         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
11893         requires it.
11894
11895 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
11896
11897         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
11898         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
11899         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
11900         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
11901
11902 2010-06-02  Andreas Schwab  <schwab@redhat.com>
11903
11904         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
11905
11906 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
11907
11908         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
11909         and F_GETPIPE_SZ.
11910         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11911         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11912         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11913         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11914         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11915         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
11916
11917 2010-06-14  Roland McGrath  <roland@redhat.com>
11918
11919         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
11920
11921 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
11922
11923         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
11924         __REDIRECT followed by __THROW.
11925         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
11926         * posix/getopt.h (getopt): Likewise.
11927
11928 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
11929
11930         * hurd/lookup-at.c (__file_name_lookup_at): Accept
11931         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
11932         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
11933         in AT_FLAGS.
11934         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
11935         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
11936
11937 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
11938
11939         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
11940
11941 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
11942
11943         [BZ #11640]
11944         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11945         Properly check family and model.
11946
11947 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
11948
11949         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
11950
11951 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
11952
11953         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
11954
11955 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
11956
11957         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
11958         symbol reference.
11959
11960 2010-05-19  Andreas Schwab  <schwab@redhat.com>
11961
11962         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
11963         symbol reference.
11964
11965 2010-05-21  Andreas Schwab  <schwab@redhat.com>
11966
11967         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
11968         and internal_recvmmsg.
11969         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
11970         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
11971         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
11972         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
11973
11974         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
11975         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
11976         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
11977
11978 2010-05-20  Andreas Schwab  <schwab@redhat.com>
11979
11980         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
11981
11982 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
11983
11984         POWER7 optimizations.
11985         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
11986         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
11987
11988 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
11989
11990         * version.h: Update for 2.13 development version.
11991
11992 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
11993
11994         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
11995         exceptions.  Return 0.
11996
11997 2010-05-07  Roland McGrath  <roland@redhat.com>
11998
11999         * elf/ldconfig.c (main): Add a const.
12000
12001 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
12002
12003         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
12004         (args_options): Add no-idn option.
12005         (ahosts_keys_int): Add idn_flags to ai_flags.
12006         (parse_option): Handle 'i' option to clear idn_flags.
12007
12008         * malloc/malloc.c (_int_free): Possible race in the most recently
12009         added check.  Only act on the data if no current modification
12010         happened.
12011
12012 See ChangeLog.17 for earlier changes.