Fix ctan, ctanh overflow for ldbl-128ibm (bug 11521).
[platform/upstream/glibc.git] / ChangeLog
1 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2
3         [BZ #11521]
4         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
5         overflow or cancellation in calculating denominator.
6         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
8         down expression to avoid unexpected rounding in newer GCCs.
9         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
10
11 2012-04-26  David S. Miller  <davem@davemloft.net>
12
13         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
14         long-double compat symbols.
15         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
16         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
17         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
18         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
19         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
20         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
21         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
22         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
23         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
24         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
25         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
26         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
27         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
28
29 2012-04-25  David S. Miller  <davem@davemloft.net>
30
31         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
32         HWCAP_* values only after the memory barriers have been defined.
33         (atomic_full_barrier): Define.
34         (atomic_read_barrier): Define.
35         (atomic_write_barrier): Define.
36
37 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
38
39         * shlib-versions: Add libgcc_s version information.
40         * sysdeps/generic/libgcc_s.h: Remove.
41         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
42         libgcc_s.h.
43         * sysdeps/gnu/unwind-resume.c: Likewise.
44         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
45
46 2012-04-25  David S. Miller  <davem@davemloft.net>
47
48         * sysdeps/unix/sparc/brk.S: Delete.
49         * sysdeps/unix/sparc/dl-brk.S: Delete.
50         * sysdeps/unix/sparc/pipe.S: Delete.
51         * sysdeps/unix/sparc/sysdep.S: Delete.
52         * sysdeps/unix/sparc/sysdep.h: Delete.
53         * sysdeps/unix/sparc/vfork.S: Delete.
54         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
55         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
56         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
57         ret_ERRVAL, r0, r1, MOVE): Define.
58         (JUMPTARGET): Remove.
59         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
60         sysdeps/unix/sparc/sysdep.h
61         (ENTRY, END): Remove.
62         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
63
64 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
65
66         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
67         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
68         -DIS_IN_build.
69
70         * timezone/README: Update upstream location and email address for
71         tzcode and tzdata.
72         * timezone/zdump.c: Update from tzcode 2012b.
73         * timezone/zic.c: Likewise.
74
75         * configure.in (libc_cv_as_needed): Remove test.
76         * configure: Regenerated.
77         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
78         conditional definition.
79         [$(have-as-needed) != yes] (no-as-needed): Likewise.
80         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
81         * config.make.in (have-as-needed): Remove variable.
82
83 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
84             Paul Pluzhnikov  <ppluzhnikov@google.com>
85
86         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
87         strings correctly.
88
89 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
90
91         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
92         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
93         * sysdeps/sh/strlen.S: Likewise.
94
95 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
96
97         * sysdeps/unix/fork.S: Remove file.
98         * sysdeps/unix/i386/fork.S: Likewise.
99         * sysdeps/unix/sparc/fork.S: Likewise.
100
101         * sysdeps/unix/system.c: Remove file.
102         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
103
104         * sysdeps/unix/getegid.S: Remove file.
105         * sysdeps/unix/geteuid.S: Likewise.
106
107 2012-04-24  Roland McGrath  <roland@hack.frob.com>
108
109         * scripts/check-localplt.awk: New file.
110         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
111         of diff.
112         * scripts/data/localplt-generic.data: Add a comment.
113
114         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
115         NODE when __dir_mkfile failed.
116         * sysdeps/mach/hurd/symlinkat.c: Likewise.
117         Reported by Ludovic Courtès <ludo@gnu.org>.
118
119 2012-04-24  Andreas Jaeger  <aj@suse.de>
120
121         * Makerules (common-clean): Also remove gen-as-const-headers
122         files.
123
124 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
125
126         * Makerules (native-compile): Do not change working directory for
127         build.  Use $(OUTPUT_OPTION) in command.
128         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
129
130 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
131
132         [BZ #13886]
133         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
134         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
135         * math/libm-test.inc (floor_test): Add more tests.
136         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
137
138 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
139
140         * sysdeps/unix/getdents.c: Remove file.
141         * sysdeps/unix/sysv/getdents.c: Likewise.
142         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
143
144         * sysdeps/unix/syscalls.list (madvise): Add syscall from
145         sysdeps/unix/mman/syscalls.list.
146         (mmap): Likewise.
147         (mprotect): Likewise.
148         (msync): Likewise.
149         (munmap): Likewise.
150         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
151         * sysdeps/unix/mman/syscalls.list: Remove.
152         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
153
154         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
155         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
156         * configure: Regenerated.
157         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
158         $(libgcc_s_suffix).
159         * config.make.in (libgcc_s_suffix): Remove variable.
160
161 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
162
163         * sysdeps/unix/sysv/gethostname.c: Move to ...
164         * sysdeps/posix/gethostname.c: ... here.
165
166         * sysdeps/unix/execve.S: Remove file.
167
168         * sysdeps/unix/_exit.S: Remove file.
169
170 2012-04-23  Andreas Jaeger  <aj@suse.de>
171
172         [BZ #13739]
173         * manual/Makefile: Remove make dist support, there's no
174         need for a stand-alone documentation tar ball.
175         (TEXI2DVI): Define always, it's not in Makeconfig.
176         (dist): Removed.
177         (tar-it): Removed.
178         (edition): Removed.
179         (glibc-doc-$(edition).tar): Removed
180         (%.Z): Removed.
181         (%.gz): Removed.
182         (%.uu): Removed.
183         (ETAGS): Remove, it's in Makeconfig.
184         (move-if-change): Remove, it's in Makeconfig.
185
186 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
187
188         [BZ #13970]
189         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
190         (strtod, strtof, strtold, strtol, strtoul, strtoq)
191         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
192         (strtod_l, strtof_l, strtold_l): Remove __wur.
193         It is not necessarily an error to ignore strtol's return value.
194         One can reliably look at the stored endptr to decide whether
195         the number had valid syntax.
196
197 2012-04-21  Andreas Jaeger  <aj@suse.de>
198
199         [BZ #13739]
200         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
201
202 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
203
204         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
205         * sysdeps/unix/sysv/Versions: Remove file.
206
207 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
208
209         [BZ #13927]
210         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
211
212 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
213
214         [BZ #7064]
215         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
216         version from __vm86.
217
218 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
219
220         * sysdeps/unix/common/lxstat.c: Remove file.
221         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
222
223         * sysdeps/unix/sysv/Makefile: Remove file.
224
225         * sysdeps/unix/sysv/direct.h: Remove file.
226
227         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
228         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
229         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
230         * sysdeps/unix/sysv/bits/signum.h: Likewise.
231         * sysdeps/unix/sysv/bits/stat.h: Likewise.
232         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
233         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
234
235         * sysdeps/unix/sysv/setrlimit.c: Remove file.
236
237         * sysdeps/unix/xmknod.c: Remove file.
238         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
239
240         * sysdeps/unix/sysv/settimeofday.c: Remove file.
241
242         * sysdeps/unix/sysv/i386/time.S: Remove file.
243
244         * sysdeps/unix/fxstat.c: Remove file.
245         * sysdeps/unix/xstat.c: Likewise.
246         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
247
248         * sysdeps/unix/sysv/sigaction.c: Remove file.
249
250         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
251         (sysdep_headers): Remove variable.
252         [termio.h not in sysdep_headers] (generated): Likewise.
253         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
254         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
255         * sysdeps/unix/sysv/tcdrain.c: Likewise.
256         * sysdeps/unix/sysv/tcflow.c: Likewise.
257         * sysdeps/unix/sysv/tcflush.c: Likewise.
258         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
259         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
260         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
261         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
262         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
263
264         * sysdeps/unix/siglist.c: Remove file.
265
266         * sysdeps/unix/getppid.S: Remove file.
267
268         * sysdeps/unix/mkdir.c: Remove file.
269         * sysdeps/unix/rmdir.c: Likewise.
270
271 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
272
273         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
274         ERR_MAX value.
275         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
276         errlist-compat value.
277
278 2012-04-18  David S. Miller  <davem@davemloft.net>
279
280         * sysdeps/generic/memcopy.h (reg_char): Delete.
281         * debug/strcat_chk.c: Use char, not reg_char.
282         * debug/strcpy_chk.c: Likewise.
283         * debug/strncat_chk.c: Likewise.
284         * debug/strncpy_chk.c: Likewise.
285         * string/memchr.c: Likewise.
286         * string/memrchr.c: Likewise.
287         * string/rawmemchr.c: Likewise.
288         * string/strcat.c: Likewise.
289         * string/strchr.c: Likewise.
290         * string/strchrnul.c: Likewise.
291         * string/strcmp.c: Likewise.
292         * string/strcpy.c: Likewise.
293         * string/strncat.c: Likewise.
294         * string/strncmp.c: Likewise.
295         * string/strncpy.c: Likewise.
296
297 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
298
299         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
300         __builtin_memcopy is called when src and dest ranges are known to not
301         overlap.
302
303 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
304
305         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
306         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
307         fwd_align_merge macro call.
308         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
309         bwd_align_merge macro call.
310         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
311
312 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
313
314         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
315         bwd_align_merge macros.
316         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
317         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
318         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
319
320 2012-04-18  David S. Miller  <davem@davemloft.net>
321
322         * sysdeps/sparc/sparc64/memcopy.h: Delete.
323
324 2012-04-18  Andreas Jaeger  <aj@suse.de>
325
326         [BZ# 6794]
327         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
328         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
329         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
330
331         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
332         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
333         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
334
335         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
336         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
337         Adjust for changed ldbl-128 files.
338
339         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
340         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
341         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
342
343 2012-04-17  David S. Miller  <davem@davemloft.net>
344
345         * sysdeps/sparc/sparc32/memcopy.h: Delete.
346
347 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
348
349         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
350         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
351         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
352         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
353         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
354         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
355
356 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
357
358         [BZ #6794]
359         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
360         * math/libm-test.inc: Add ilogb errno and exception tests.
361         * math/w_ilogb.c: New file: ilogb wrapper.
362         * math/w_ilogbf.c: New file: ilogbf wrapper.
363         * math/w_ilogbl.c: New file: ilogbl wrapper.
364         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
365         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
366         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
367         exception being thrown with 0.0 as argument.
368         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
369         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
370         exception being thrown with 0.0 as argument.
371         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
372         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
373         exception being thrown with 0.0 as argument.
374         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
375         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
376         exception being thrown with 0.0 as argument.
377         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
378         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
379         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
380         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
381         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
382         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
383         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
384         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
385         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
386
387 2012-04-17  Petr Baudis  <pasky@ucw.cz>
388
389         * include/sys/uio.h: Change __vector to __iovec to avoid clash
390         with altivec.
391
392 2012-04-16  Marek Polacek  <polacek@redhat.com>
393
394         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
395
396 2012-04-16  Marek Polacek  <polacek@redhat.com>
397
398         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
399         operands of fdivp instruction.
400
401 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
402
403         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
404         * elf/tst-auditmod3b.c: Likewise.
405         * elf/tst-auditmod4b.c: Likewise.
406         * elf/tst-auditmod5b.c: Likewise.
407         * elf/tst-auditmod6b.c: Likewise.
408         * elf/tst-auditmod6c.c: Likewise.
409         * elf/tst-auditmod7b.c: Likewise.
410         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
411         * sysdeps/x86_64/preconfigure.in: Likewise.
412         * sysdeps/x86_64/preconfigure: Regenerated.
413
414 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
415
416         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
417         __ILP32__.
418
419 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
420
421         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
422         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
423
424 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
425
426         [BZ #13973]
427         * locale/iso-639.def: Fix gl language name. Spotted by
428         Yaron Shahrabani.
429
430 2012-04-12  Roland McGrath  <roland@hack.frob.com>
431
432         [BZ #2074]
433         * libio/libio.h (__io_write_fn): Update comment.
434
435 2012-04-12  Petr Baudis  <pasky@ucw.cz>
436
437         [BZ #2074]
438         * stdio.texi (Hook Functions): The user provided writer function
439         is not allowed to return -1.
440
441 2012-04-11  David S. Miller  <davem@davemloft.net>
442
443         * sysdeps/sparc/fpu/libm-test-ulps: Update.
444
445 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
446
447         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
448         Add a leading slash to rtkaio.
449
450 2012-04-11  Jim Meyering  <meyering@redhat.com>
451
452         [BZ #11959]
453         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
454         It is not necessarily an error to ignore fwrite's return
455         value.  One can reliably use ferror to test for errors after
456         the fact.
457
458 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
459
460         * bits/types.h (__snseconds_t): New type.
461         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
462
463         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
464         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
465         (__SNSECONDS_T_TYPE): Likewise.
466         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
467         (__SNSECONDS_T_TYPE): Likewise.
468         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
469         (__SNSECONDS_T_TYPE): Likewise.
470
471 2012-04-10  Andreas Jaeger  <aj@suse.de>
472
473         [BZ #2636]
474         * manual/time.texi (Processor Time): Return type of times is
475         elapsed real time since an arbitrary point in the past.
476         (CPU Time): Move CLK_TCK from here...
477         (Processor Time): ...to here.  Correct description.
478         * manual/conf.texi (Constants for Sysconf): Correct description of
479         _SC_CLK_TCK.
480
481 2012-04-10  David S. Miller  <davem@davemloft.net>
482
483         [BZ #13967]
484         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
485         where the is a gap between DT_REL(A) and DT_JMPREL.
486
487 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
488
489         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
490         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
491         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
492
493 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
494
495         * elf/dl-support.c (_dl_inhibit_cache): New variable.
496         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
497         (dl_main): Handle --inhibit-cache.
498         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
499         _dl_inhibit_cache.
500         * elf/dl-load.c (_dl_map_object): Use it.
501         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
502
503 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
504
505         [BZ #13872]
506         * sysdeps/i386/fpu/e_powl.S (p78): New object.
507         (__ieee754_powl): Saturate large exponents rather than testing for
508         overflow of y*log2(x).
509         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
510         * math/libm-test.inc (pow_test): Do not permit spurious overflow
511         exceptions.
512
513         [BZ #11521]
514         * math/s_ctan.c: Include <float.h>.
515         (__ctan): Avoid internal overflow or cancellation in calculating
516         denominator.
517         * math/s_ctanf.c: Likewise.
518         * math/s_ctanl.c: Likewise.
519         * math/s_ctanh.c: Likewise.
520         * math/s_ctanhf.c: Likewise.
521         * math/s_ctanhl.c: Likewise.
522         * math/libm-test.inc (ctan_test): Add more tests.
523         (ctanh_test): Likewise.
524         * sysdeps/i386/fpu/libm-test-ulps: Update.
525         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
526
527 2012-04-09  Andreas Jaeger  <aj@suse.de>
528
529         [BZ #6894]
530         * manual/filesys.texi (Directory Entries): Mention that d_namlen
531         is an optional BSD extension.
532
533         [BZ #10254]
534         * manual/stdio.texi (Opening Streams): Document additional fopen
535         parameters.
536
537 2012-04-09  Roland McGrath  <roland@hack.frob.com>
538
539         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
540         %eax without telling the compiler.
541
542 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
543
544         [BZ # 13963]
545         * manual/install.texi: Use sourceware.org.
546
547 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
548
549         [BZ #13873]
550         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
551         (__ieee754_pow): Generate overflow and underflow using huge*huge
552         and tiny*tiny rather than just returning constant infinity or zero
553         for large exponents.
554         * math/libm-test.inc (pow_test): Require overflow exceptions for
555         applicable cases of large exponents.
556
557         [BZ #706]
558         * sysdeps/i386/fpu/e_pow.S (p10): New object.
559         (__ieee754_pow): Use iterative multiplication algorithm only for
560         integer exponents with absolute value below 1024.  Check for odd
561         integer exponents when using algorithm for real exponents.
562         * math/libm-test.inc (pow_test): Add more tests.
563         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
564
565 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
566
567         [BZ #13705]
568         * math/libm-test.inc (exp_test): Do not allow overflow exception
569         on underflow test.
570
571 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
572
573         [BZ #13705]
574         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
575         instead of __kernel_standard_f.
576
577 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
578
579         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
580         * sysdeps/x86_64/memset_chk.S: Likewise.
581
582 2012-04-08  Andreas Jaeger  <aj@suse.de>
583
584         [BZ #10153]
585         * manual/startup.texi (Environment Access): Describe return value
586         for putenv and setenv.
587
588         [BZ #6895]
589         * manual/filesys.texi (Directory Entries): Add description for
590         DT_LNK.
591
592         [BZ #6890]
593         * manual/filesys.texi (Directory Entries): Clarify that it's file
594         system not operating system in the description of DT_UNKNOWN.
595
596         [BZ #6578]
597         * manual/syslog.texi (closelog): Fix reference, it's openlog.
598
599 2012-04-08  Stephen Compall  <s11@member.fsf.org>
600
601         [BZ #6649]
602         * manual/llio.texi (Opening and Closing Files): Add cross
603         reference to explain mode argument.
604
605 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
606
607         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
608         * sysdeps/x86_64/memset_chk.S: Likewise.
609
610 2012-04-07  David S. Miller  <davem@davemloft.net>
611
612         * elf/elf.h (R_SPARC_WDISP10): Define.
613         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
614         R_SPARC_SIZE32.
615         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
616         R_SPARC_SIZE64 and R_SPARC_H34.
617
618 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
619
620         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
621         conditions and remove no longer applicable assertion.
622
623 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
624
625         * bits/byteswap.h: Include <features.h>.
626         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
627         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
628
629 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
630
631         * bits/byteswap.h (__bswap_16): Removed.
632         Include <bits/byteswap-16.h> to get __bswap_16.
633         * sysdeps/i386/bits/byteswap.h: Likewise.
634         * sysdeps/s390/bits/byteswap.h: Likewise.
635         * sysdeps/x86_64/bits/byteswap.h: Likewise.
636         * bits/byteswap-16.h: New file.
637         * sysdeps/i386/bits/byteswap-16.h: Likewise.
638         * sysdeps/s390/bits/byteswap-16.h: Likewise.
639         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
640         * string/Makefile (headers): Add bits/byteswap-16.h.
641
642 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
643
644         [BZ #13895]
645         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
646         extra indirection.
647         * nss/Makefile (tests-static, tests): Add tst-nss-static.
648         * nss/tst-nss-static.c: New.
649
650 2012-04-06  Robert Millan  <rmh@gnu.org>
651
652         [BZ #6486]
653         * manual/llio.texi (File Position Primitive): lseek
654         refers to WHENCE when it really means OFFSET.
655
656 2012-04-06  Andreas Jaeger  <aj@suse.de>
657
658         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
659         strncmp declarations.
660
661         * abilist/libc.abilist: Add __poll and __ppoll.
662
663 2012-04-05  David S. Miller  <davem@davemloft.net>
664
665         * scripts/check-local-headers.sh: Accept a host triplet in the
666         path matched by the exclude regexp.
667
668         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
669         definition.
670         * sysdeps/powerpc/powerpc32/dl-machine.h
671         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
672         * sysdeps/s390/s390-32/dl-machine.h
673         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
674         * sysdeps/sparc/sparc32/dl-machine.h
675         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
676         * sysdeps/sparc/sparc64/dl-machine.h
677         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
678
679         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
680         lazy binding.
681         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
682         undefined symbol errors.
683
684         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
685         DT_NEEDED entries.
686
687 2012-04-05  Michael Matz  <matz@suse.de>
688
689         [BZ #13592]
690         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
691
692 2012-04-05  Andreas Jaeger  <aj@suse.de>
693
694         [BZ #13908]
695         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
696         comment.
697
698 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
699
700         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
701         which ROUND is no valid rounding mode.
702
703 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
704
705         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
706         read again.
707         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
708
709 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
710
711         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
712         an exception using FPU order intentionally.
713
714 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
715
716         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
717         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
718         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
719         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
720
721 2012-04-05  Simon Josefsson  <simon@josefsson.org>
722
723         [BZ #12340]
724         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
725         EINVAL when BUFLEN is too smal.
726
727 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
728
729         [BZ #13553]
730         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
731         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
732
733 2012-04-03  Andreas Jaeger  <aj@suse.de>
734
735         [BZ #13938]
736         * manual/setjmp.texi (System V contexts): Fix sentence.
737
738         [BZ #13926]
739         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
740         New macro for this case.
741         [!__GNUC__] (__bswap_64): New inline function for this case.
742         * sysdeps/x86_64/bits/byteswap.h: Likewise.
743         * bits/byteswap.h: Likewise.
744         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
745         ull, guard with __GLIBC_HAVE_LONG_LONG.
746
747         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
748         __GLIBC_HAVE_LONG_LONG.
749
750         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
751         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
752
753 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
754
755         [BZ #13691]
756         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
757         inptr and inend, rather than using last_ch.
758
759 2012-04-02  David S. Miller  <davem@davemloft.net>
760
761         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
762         * stdio-common/printf-parse.h (read_int): Change return type to
763         'int', return -1 on INT_MAX overflow.
764         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
765         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
766         overflows INT_MAX.  Check for overflow of in-format-string precision
767         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
768         SIZE_MAX not INT_MAX for integer overflow test.
769         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
770         skip the construct in the format string but do not record anything.
771         * stdio-common/bug22.c: Adjust to test both width/prevision
772         INT_MAX overflow as well as total length INT_MAX overflow.  Check
773         explicitly for proper errno values.
774
775 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
776
777         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
778         CHAR_MAX.
779         * string/test-strcmp.c [! WIDE]: Likewise.
780         * time/tst-mktime2.c: Likewise for INT_MAX.
781         * string/test-string.h: #include <sys/param.h> for MIN.
782
783         * csu/init-first.c (__libc_init_first): Call __ctype_init.
784         * sysdeps/i386/init-first.c (init): Likewise.
785         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
786         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
787         * sysdeps/sh/init-first.c (init): Likewise.
788
789 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
790
791         * po/ru.po: Update from translation team.
792         * po/vi.po: Likewise.
793
794 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
795
796         * resolv/nss_dns/dns-host.c: Merge copyright years.
797
798 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
799
800         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
801         Optimize memcpy with prefetch if
802         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
803         src, dst pointers have unequal 16 byte alignments.
804
805 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
806
807         [BZ #13928]
808         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
809         from a CNAME entry and return the minimum ttl for the query.
810         (gaih_getanswer_slice): Likewise.
811
812 2012-03-30  Jeff Law  <law@redhat.com>
813
814         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
815         due to long keys.
816         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
817         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
818
819         * resolv/nss_dns/dns-host.c: Update copyright year.
820
821 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
822
823         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
824         requests to save a system call.  Fix check that all bytes are sent.
825
826         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
827         comments for sendmmsg.
828
829 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
830
831         [BZ #13691]
832         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
833         with only 1 character between 0x0041 and 0x01b0.
834         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
835         * wcsmbs/tst-mbsnrtowcs.c: New file.
836
837 2012-03-29  David S. Miller  <davem@davemloft.net>
838
839         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
840         small copies by hand.
841
842 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
843
844         [BZ #13761]
845         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
846         _nss_compat_initgroups_dyn): Fall back to malloc/free
847         for large group memberships.
848
849 2012-03-28  David S. Miller  <davem@davemloft.net>
850
851         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
852         that branches into memcpy.
853         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
854         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
855         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
856         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
857         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
858         bits.
859         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
860         implementation too.
861         * sysdeps/sparc/mempcpy.S: New file.
862
863         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
864         the IFUNC routine in the libc case.
865         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
866
867         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
868         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
869         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
870         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
871         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
872         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
873         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
874         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
875
876         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
877         loop to 256 bytes instead of 64 bytes and fix test signedness.
878
879         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
880         * sysdeps/sparc/sparc32/Makefile: rather than here...
881         * sysdeps/sparc/sparc64/Makefile: and here.
882
883 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
884
885         * malloc/mallocbug.c: Avoid warnings about unused variables.
886
887 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
888
889         [BZ #13760]
890         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
891         in the right place. Discard and retry query if response is
892         larger than input buffer size.
893
894 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
895
896         [BZ #369]
897         [BZ #2678]
898         [BZ #3866]
899         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
900         x for large integer exponent.
901         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
902         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
903         sign of result as needed afterwards.
904         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
905         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
906         result for underflowing pow the same as for overflow.
907         (__kernel_standard_l): Handle powl overflow and underflow here
908         rather than calling __kernel_standard.
909         * math/libm-test.inc (pow_test): Add more tests.
910
911         [BZ #3868]
912         [BZ #13879]
913         [BZ #13910]
914         [BZ #13911]
915         [BZ #13912]
916         [BZ #13913]
917         [BZ #13915]
918         [BZ #13916]
919         [BZ #13917]
920         [BZ #13918]
921         [BZ #13919]
922         [BZ #13920]
923         [BZ #13921]
924         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
925         * sysdeps/ieee754/k_standard.c: Include <float.h>.
926         (__kernel_standard_l): New function.
927         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
928         __kernel_standard.
929         * math/w_acosl.c (__acosl): Likewise.
930         * math/w_asinl.c (__asinl): Likewise.
931         * math/w_atan2l.c (__atan2l): Likewise.
932         * math/w_atanhl.c (__atanhl): Likewise.
933         * math/w_coshl.c (__coshl): Likewise.
934         * math/w_exp10l.c (__exp10l): Likewise.
935         * math/w_exp2l.c (__exp2l): Likewise.
936         * math/w_fmodl.c (__fmodl): Likewise.
937         * math/w_hypotl.c (__hypotl): Likewise.
938         * math/w_j0l.c (__j0l, __y0l): Likewise.
939         * math/w_j1l.c (__j1l, __y1l): Likewise.
940         * math/w_jnl.c (__jnl, __ynl): Likewise.
941         * math/w_lgammal.c (__lgammal): Likewise.
942         * math/w_log10l.c (__log10l): Likewise.
943         * math/w_log2l.c (__log2l): Likewise.
944         * math/w_logl.c (__logl): Likewise.
945         * math/w_powl.c (__powl): Likewise.
946         * math/w_remainderl.c (__remainderl): Likewise.
947         * math/w_scalbl.c (sysv_scalbl): Likewise.
948         * math/w_sinhl.c (__sinhl): Likewise.
949         * math/w_sqrtl.c (__sqrtl): Likewise.
950         * math/w_tgammal.c (__tgammal): Likewise.
951         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
952         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
953         * math/libm-test.inc (acos_test): Add more tests.
954         (acosh_test): Likewise.
955         (asin_test): Likewise.
956         (atanh_test): Likewise.
957         (exp_test): Likewise.
958         (exp10_test): Likewise.
959         (exp2_test): Likewise.
960         (expm1_test): Likewise.
961         (lgamma_test): Likewise.
962         (log_test): Likewise.
963         (log10_test): Likewise.
964         (log1p_test): Likewise.
965         (log2_test): Likewise.
966         (pow_test): Do not allow some spurious overflow exceptions.
967         (sqrt_test): Add more tests.
968         (tgamma_test): Likewise.
969         (y0_test): Likewise.
970         (y1_test): Likewise.
971         (yn_test): Likewise.
972
973 2012-03-27  Anton Blanchard  <anton@samba.org>
974
975         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
976         MAP_HUGETLB.
977         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
978         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
979         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
980
981 2012-03-27  David S. Miller  <davem@davemloft.net>
982
983         * conform/Makefile: Run run-conformtest.sh using $(BASH).
984
985         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
986         have-as-vis3 check.
987
988 2012-03-27  Andreas Jaeger  <aj@suse.de>
989
990         * sysdeps/x86_64/elf/configure.in: Moved to ...
991         * sysdeps/x86_64/configure.in: ... here.
992         * sysdeps/x86_64/elf/start.S: Moved to ...
993         * sysdeps/x86_64/start.S: ... here.
994         * sysdeps/x86_64/elf/configure: Delete.
995
996         * sysdeps/x86_64/configure.in: Merge contents from
997         sysdeps/i386/configure.in (without i686 check).
998
999         * sysdeps/i386/elf/Versions: Merge into ...
1000         * sysdeps/i386/Versions: ... this.
1001         * sysdeps/i386/elf/Versions: Delete file.
1002         * sysdeps/i386/elf/start.S: Moved to ...
1003         * sysdeps/i386/start.S: ...here.
1004         * sysdeps/i386/elf/configure.in: Merge into...
1005         * sysdeps/i386/configure.in: ...here.
1006         * sysdeps/i386/elf/configure.in: Delete file.
1007         * sysdeps/i386/elf/configure: Delete file.
1008
1009         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
1010         * debug/backtracesyms.c: ... here.
1011         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
1012         * debug/backtracesymsfd.c: ... here.
1013         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
1014         * sysdeps/generic/ifunc-sel.h: ... here.
1015
1016         * sysdeps/unix/i386/start.c: Delete file.
1017         * sysdeps/unix/sparc/start.c: Delete file.
1018         * sysdeps/unix/start.c: Delete file.
1019
1020         * sysdeps/sh/elf/configure.in: Moved to ...
1021         * sysdeps/sh/configure.in: ... here.
1022         * sysdeps/sh/elf/start.S: Moved to ...
1023         * sysdeps/sh/start.S: ... here.
1024         * sysdeps/sh/elf/configure: Delete file.
1025
1026         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
1027         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
1028         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
1029         * sysdeps/powerpc/powerpc64/entry.h: ... here.
1030         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
1031         * sysdeps/powerpc/powerpc64/start.S: here.
1032         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
1033         * sysdeps/powerpc/powerpc64/Makefile: ... this.
1034         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
1035         * sysdeps/powerpc/powerpc64/configure.in: ... this.
1036         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
1037
1038         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
1039         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
1040         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
1041         * sysdeps/powerpc/powerpc32/start.S: ... here.
1042         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
1043         * sysdeps/powerpc/powerpc32/configure.in: ... this.
1044         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
1045
1046         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
1047         * sysdeps/powerpc/ifunc-sel.h: ... here.
1048         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
1049         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
1050
1051         * sysdeps/sparc/elf/configure.in: Moved to ...
1052         * sysdeps/sparc/configure.in: ... here.
1053         * sysdeps/sparc/elf/configure: Delete file.
1054         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
1055         * sysdeps/sparc/sparc32/start.S: ... here.
1056         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
1057         * sysdeps/sparc/sparc64/start.S: ... here.
1058         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
1059         * sysdeps/sparc/sparc32/Makefile: ... this.
1060         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
1061         * sysdeps/sparc/sparc64/Makefile: ... this.
1062
1063         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
1064         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
1065         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
1066         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
1067         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
1068         * sysdeps/s390/s390-32/setjmp.S: ... here.
1069         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
1070         * sysdeps/s390/s390-32/configure.in: ... here.
1071         * sysdeps/s390/s390-32/elf/configure: Delete file.
1072         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
1073         * sysdeps/s390/s390-32/start.S: ... here.
1074
1075         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
1076         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
1077         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
1078         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
1079         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
1080         * sysdeps/s390/s390-64/setjmp.S: ... here.
1081         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
1082         * sysdeps/s390/s390-64/configure.in: ... here
1083         * sysdeps/s390/s390-64/elf/configure: Delete file.
1084         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
1085         * sysdeps/s390/s390-64/start.S: ... here.
1086         * sysdeps/s390/s390-64/elf/configure: Delete.
1087
1088         * configure.in: Remove support for elf directories in sysdeps.
1089
1090         * configure: Regenerated.
1091         * sysdeps/i386/configure: Regenerated.
1092         * sysdeps/powerpc/powerpc32/configure: Regenerated.
1093         * sysdeps/powerpc/powerpc64/configure: Regenerated.
1094         * sysdeps/s390/s390-32/configure: Regenerated.
1095         * sysdeps/s390/s390-64/configure: Regenerated.
1096         * sysdeps/sh/configure: Regenerated.
1097         * sysdeps/sparc/configure: Regenerated.
1098         * sysdeps/x86_64/configure: Regenerated.
1099
1100 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
1101
1102         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1103
1104         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
1105         denormal result into account.
1106
1107 2012-03-25  Roland McGrath  <roland@hack.frob.com>
1108
1109         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
1110         Reported by Allan McRae <allan@archlinux.org>.
1111
1112 2012-03-23  Jeff Law  <law@redhat.com>
1113
1114         * nss/getnssent.c (__nss_getent): Fix typo.
1115
1116 2012-03-23  David S. Miller  <davem@davemloft.net>
1117
1118         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1119
1120 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
1121
1122         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
1123         to pad to uint64_t for each field.
1124         (dl_tls_index): Replace unsigned long with uint64_t.
1125
1126 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
1127         Paul Pluzhnikov  <ppluzhnikov@google.com>
1128
1129         [BZ #6528]
1130         * grp/Makefile (otherlibs): Don't set it.
1131         * inet/Makefile (otherlibs): Likewise.
1132         * login/Makefile (otherlibs): Likewise.
1133         * nscd/Makefile (otherlibs): Likewise.
1134         * posix/Makefile (otherlibs): Likewise.
1135         * pwd/Makefile (otherlibs): Likewise.
1136         * rt/Makefile (otherlibs): Likewise.
1137         * sunrpc/Makefile (otherlibs): Likewise.
1138         * nss/Makefile (otherlibs): Likewise.
1139         Add libnss_files to routines and static-only-routines.
1140         ($(objpfx)getent): Remove rule.
1141         * resolv/Makefile: Add libnss_dns and libresolv to routines and
1142         static-only-routines.
1143
1144 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
1145
1146         [BZ #13892]
1147         * math/s_cexp.c: Include <float.h>.
1148         (__cexp): Handle exp result overflowing not necessarily
1149         overflowing both real and imaginary parts of result.
1150         * math/s_cexpf.c: Likewise.
1151         * math/s_cexpl.c: Likewise.
1152         * math/libm-test.inc (cexp_test): Add more tests.
1153         * sysdeps/i386/fpu/libm-test-ulps: Update.
1154         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1155
1156 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1157
1158         * include/link.h (ELFW): New macro.
1159         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
1160         Replace ELF64_R_TYPE with ELFW(R_TYPE).
1161
1162 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1163
1164         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
1165         with uint64_t.
1166
1167 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1168
1169         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
1170         declaration.
1171         (struct La_x32_retval): Likewise.
1172
1173 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
1174
1175         * sysdeps/x86_64/preconfigure.in: New file.
1176         * sysdeps/x86_64/preconfigure: New generated file.
1177
1178 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
1179
1180         [BZ #13824]
1181         * math/e_exp2l.c: Include <float.h>.
1182         (__ieee754_exp2l): Handle overflow and underflow cases
1183         separately.  Only pass fractional part of argument to
1184         __ieee754_expl.
1185         * math/libm-test.inc (exp2_test): Add more tests.
1186
1187         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
1188         negating x to take absolute value.
1189         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
1190         Likewise.
1191         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
1192         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
1193         Likewise.
1194         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
1195         computing low part if x was negated.
1196         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
1197
1198 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1199
1200         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
1201         la_x32_gnu_pltexit.
1202         (pltexit): Cast int_retval to ptrdiff_t.
1203         * elf/tst-auditmod3b.c: Likewise.
1204         * elf/tst-auditmod4b.c: Likewise.
1205         * elf/tst-auditmod5b.c: Likewise.
1206         * elf/tst-auditmod6b.c: Likewise.
1207         * elf/tst-auditmod6c.c: Likewise.
1208         * elf/tst-auditmod7b.c: Likewise.
1209
1210         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
1211         and x32_gnu_pltexit.
1212
1213         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
1214         __ELF_NATIVE_CLASS.
1215         (La_x32_regs): New macro.
1216         (La_x32_retval): Likewise.
1217         (la_x32_gnu_pltenter): New function prototype.
1218         (la_x32_gnu_pltexit): Likewise.
1219
1220 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
1221
1222         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
1223         exponent.
1224
1225         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1226
1227         * configure.in (libc_cv_cc_nofma): Check for option to disable
1228         generation of FMA instructions.
1229         * configure: Regenerate.
1230         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
1231         * sysdeps/ieee754/dbl-64/Makefile: New file.
1232         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
1233         Remove brandred-fma4.
1234         (CFLAGS-brandred-fma4.c): Remove.
1235         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
1236         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
1237         define.
1238         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
1239         define.
1240
1241 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1242
1243         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
1244         LLONG_MAX != LONG_MAX.
1245         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1246         (_fitoa_word): Likewise.
1247         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
1248         LLONG_MAX != LONG_MAX.
1249         * stdio-common/_itowa.h: Include <_itoa.h>.
1250         (_itowa_word): Use _ITOA_WORD_TYPE on value.
1251         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
1252         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
1253         only if not defined.
1254         (_ITOA_WORD_TYPE): Likewise.
1255         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1256         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
1257
1258 2012-03-21  David S. Miller  <davem@davemloft.net>
1259
1260         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1261
1262 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
1263
1264         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
1265         of x86_64 when setting libc_cv_slibdir, libdir and
1266         libc_cv_localedir.
1267         * sysdeps/unix/sysv/linux/configure: Regenerated.
1268
1269 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1270
1271         * manual/lang.texi (Old Varargs): Remove section.
1272         (How Variadic): Update menu.
1273         (va_start): Do not mention varargs.h.
1274
1275 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1276             Joseph Myers  <joseph@codesourcery.com>
1277
1278         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
1279         link test.
1280         * configure: Regenerated.
1281
1282 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
1283
1284         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
1285         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
1286         conformtest.pl
1287
1288 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1289
1290         * NOTES: Remove.
1291         * Makefile (files-for-dist): Remove NOTES.
1292         (NOTES): Remove rule.
1293         * README: Don't refer to NOTES.
1294         * manual/creature.texi: Don't include macros.texi.
1295         * manual/intro.texi (creature.texi): Remove comment referring to
1296         NOTES.
1297
1298         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
1299         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
1300         * configure: Regenerated.
1301         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
1302         LIBC_TRY_CC_OPTION.
1303         (libc_cv_as_i686): Likewise.
1304         (libc_cv_cc_avx): Likewise.
1305         (libc_cv_cc_sse2avx): Likewise.
1306         (libc_cv_cc_fma4): Likewise.
1307         (libc_cv_cc_novzeroupper): Likewise.
1308         * sysdeps/i386/configure: Regenerated.
1309
1310         [BZ #13883]
1311         * sysdeps/i386/fpu/s_cexp.S: Remove.
1312         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
1313         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
1314         * math/libm-test.inc (cexp_test): Add more tests.
1315         * sysdeps/i386/fpu/libm-test-ulps: Update.
1316         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1317
1318 2012-03-21  Allan McRae  <allan@archlinux.org>
1319
1320         * timezone/Makefile: Do not install iso3166.tab and zone.tab
1321
1322 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
1323
1324         [BZ #13871]
1325         * math/w_exp2.c: Do not include <float.h>.
1326         (o_threshold, u_threshold): Remove.
1327         (__exp2): Calculate result before checking finiteness and calling
1328         __kernel_standard.
1329         * math/w_exp2f.c: Likewise.
1330         * math/w_exp2l.c: Likewise.
1331         * math/libm-test.inc (exp2_test): Require overflow exception for
1332         1e6 input.
1333
1334         [BZ #3866]
1335         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
1336         range of signed 64-bit integers before using fistpll.  Remove
1337         checks for whether integers fit in mantissa bits.
1338         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
1339         the range of signed 32-bit integers before using fistpl.  Remove
1340         checks for whether integers fit in mantissa bits.
1341         * sysdeps/i386/fpu/e_powl.S (p64): New object.
1342         (__ieee754_powl): Test for y outside the range of signed 64-bit
1343         integers before using fistpll.  Reduce 64-bit values to 63-bit
1344         ones as needed.
1345         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
1346         divide-by-zero is raised for zero to large negative powers.
1347         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
1348         (__ieee754_powl): Test for y outside the range of signed 64-bit
1349         integers before using fistpll.  Reduce 64-bit values to 63-bit
1350         ones as needed.
1351         * math/libm-test.inc (pow_test): Add more tests.
1352
1353 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1354
1355         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
1356         <stdio-common/_itoa.h>.
1357         * debug/segfault.c: Likewise.
1358         * elf/dl-cache.c: Likewise.
1359         * elf/dl-minimal.c: Likewise.
1360         * elf/dl-misc.c: Likewise.
1361         * elf/dl-sysdep.c: Likewise.
1362         * elf/dl-version.c: Likewise.
1363         * elf/rtld.c: Likewise.
1364         * hurd/hurdsock.c: Likewise.
1365         * hurd/lookup-retry.c: Likewise.
1366         * malloc/malloc.c: Likewise.
1367         * malloc/mtrace.c: Likewise.
1368         * nscd/nscd_getgr_r.c: Likewise.
1369         * nscd/nscd_getpw_r.c: Likewise.
1370         * nscd/nscd_getserv_r.c: Likewise.
1371         * posix/getopt_init.c: Likewise.
1372         * posix/wordexp.c: Likewise.
1373         * stdio-common/_itoa.c: Likewise.
1374         * stdio-common/printf_fphex.c: Likewise.
1375         * stdio-common/vfprintf.c: Likewise.
1376         * string/_strerror.c: Likewise.
1377         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
1378         * sysdeps/i386/i686/hp-timing.h: Likewise.
1379         * sysdeps/mach/_strerror.c: Likewise.
1380         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
1381         * sysdeps/mach/hurd/sethostid.c: Likewise.
1382         * sysdeps/mach/hurd/xmknodat.c: Likewise.
1383         * sysdeps/mach/xpg-strerror.c: Likewise.
1384         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
1385         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
1386         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
1387         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
1388         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
1389         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
1390         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
1391         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
1392         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
1393         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
1394         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
1395         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
1396         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
1397         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
1398         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
1399         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
1400         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
1401         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
1402         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1403         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1404         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
1405
1406         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
1407
1408         * stdio-common/_itoa.h: Moved to ...
1409         * sysdeps/generic/_itoa.h: Here.
1410
1411         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
1412
1413         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
1414         instead of "_itoa.h" and "_itowa.h".
1415         * stdio-common/vfprintf.: Likewise.
1416
1417 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1418
1419         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
1420         <bits/wordsize.h>.
1421         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
1422         (__signbit): Likwise.
1423         (llrintf): Likwise.
1424         (llrint): Likwise.
1425
1426 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
1427
1428         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
1429         __WORDSIZE != 64.
1430
1431 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
1432
1433         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
1434         OVERFLOW_EXCEPTION_OK.
1435         * math/libm-test.inc ("Philosophy"): Update comment about
1436         exception testing.
1437         (OVERFLOW_EXCEPTION): Define.
1438         (OVERFLOW_EXCEPTION_OK): Likewise.
1439         (INVALID_EXCEPTION_OK): Renumber.
1440         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
1441         (IGNORE_ZERO_INF_SIGN): Likewise.
1442         (test_exceptions): Handle FE_OVERFLOW.
1443         (exp10_test): Expect overflow exceptions.
1444         (exp2_test): Likewise.
1445         (expm1_test): Likewise.
1446         (nextafter_test): Likewise.
1447         (pow_test): Likewise.
1448         (scalbn_test): Likewise.
1449         (scalbln_test): Likewise.
1450
1451 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1452
1453         * sysdeps/x86_64/bits/atomic.h
1454         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
1455         64bit integer.
1456         (atomic_exchange_acq): Likewise.
1457         (__arch_exchange_and_add_body): Likewise.
1458         (__arch_add_body): Likewise.
1459         (atomic_add_negative): Likewise.
1460         (atomic_add_zero): Likewise.
1461
1462 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1463
1464         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
1465         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
1466
1467 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1468
1469         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
1470         Check __x86_64__ instead of __WORDSIZE.
1471
1472 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1473
1474         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
1475
1476 2012-03-19  David S. Miller  <davem@davemloft.net>
1477
1478         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1479
1480         * sysdeps/sparc/fpu/fenv_private.h: New file.
1481         * sysdeps/sparc/fpu/math_private.h: Use it.
1482         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
1483         Remove.
1484         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
1485         (libc_feholdexcept_setroundl): Remove.
1486         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
1487         Remove.
1488         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
1489         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
1490
1491 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1492
1493         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
1494         int64_t instead of long int.
1495         (INSERT_WORDS64): Likwise.
1496
1497 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
1498
1499         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
1500         _Unwind_GetCFA return to _Unwind_Ptr first.
1501
1502 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
1503
1504         [BZ #13629]
1505         * math/s_clog.c: Include <float.h>.
1506         (__clog): Scale large or subnormal inputs.
1507         * math/s_clogf.c: Likewise.
1508         * math/s_clogl.c: Likewise.
1509         * math/s_clog10.c: Include <float.h>.
1510         (M_LOG10_2): Define.
1511         (__clog10): Scale large or subnormal inputs.
1512         * math/s_clog10f.c: Likewise.
1513         * math/s_clog10l.c: Likewise.
1514         * math/libm-test.inc (clog_test): Add more tests.
1515         (clog10_test): Likewise.
1516         * sysdeps/i386/fpu/libm-test-ulps: Update.
1517         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1518
1519         [BZ #11451]
1520         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
1521         x and y.
1522         * math/libm-test.inc (atan2_test): Add another test.
1523
1524         * Makerules (common-objdir-compile): Remove.
1525         * sysdeps/unix/Makefile (config-generated): Do not add
1526         $(unix-generated) to variable.
1527         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
1528         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
1529         Remove rule.
1530         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
1531         Likewise.
1532         [generic bits/local_lim.h] (before-compile): Do not append to
1533         variable.
1534         [generic bits/local_lim.h] (common-generated): Likewise.
1535         [generic sys/param.h] (before-compile): Do not append to variable.
1536         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
1537         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
1538         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
1539         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
1540         include.
1541         [generic sys/param.h] (sys/param.h-includes): Remove variable.
1542         [generic sys/param.h] (sys/param.h-includes): Remove rule.
1543         [generic sys/param.h] ($(addprefix
1544         $(common-objpfx),$(sys/param.h-includes))): Likewise.
1545         [generic sys/param.h] (common-generated): Do not append to
1546         variable.
1547         [generic sys/param.h] (sysdep_headers): Likewise.
1548         [generic bits/errno.h] (before-compile): Do not append to
1549         variable.
1550         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
1551         rule.
1552         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
1553         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
1554         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
1555         [generic bits/errno.h] (common-generated): Do not append to
1556         variable.
1557         [generic bits/ioctls.h] (before-compile): Do not append to
1558         variable.
1559         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
1560         rule.
1561         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
1562         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
1563         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
1564         rule.
1565         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
1566         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
1567         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
1568         [generic bits/ioctls.h] (common-generated): Do not append to
1569         variable.
1570         [generic sys/syscall.h] (syscall.h): Remove variable.
1571         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
1572         rule.
1573         [generic sys/syscall.h] (before-compile): Do not append to
1574         variable.
1575         [generic sys/syscall.h] (common-generated): Likewise.
1576         * sysdeps/unix/errnos-tmpl.c: Remove file.
1577         * sysdeps/unix/errnos.awk: Likewise.
1578         * sysdeps/unix/ioctls-tmpl.c: Likewise.
1579         * sysdeps/unix/ioctls.awk: Likewise.
1580         * sysdeps/unix/mk-local_lim.c: Likewise.
1581         * sysdeps/unix/snarf-ioctls: Likewise.
1582
1583 2012-03-19  Richard Henderson  <rth@twiddle.net>
1584
1585         * sysdeps/i386/fpu/fenv_private.h: New file.
1586         * sysdeps/i386/fpu/math_private.h: Use it.
1587         (math_opt_barrier, math_force_eval): Remove.
1588         (libc_feholdexcept_setround_53bit): Remove.
1589         (libc_feupdateenv_53bit): Remove.
1590         * sysdeps/x86_64/fpu/math_private.h: Likewise.
1591         (math_opt_barrier, math_force_eval): Remove.
1592         (libc_feholdexcept): Remove.
1593         (libc_feholdexcept_setround): Remove.
1594         (libc_fetestexcept, libc_fesetenv): Remove.
1595         (libc_feupdateenv_test): Remove.
1596         (libc_feupdateenv, libc_feholdsetround): Remove.
1597         (libc_feresetround): Remove.
1598
1599         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
1600         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
1601
1602         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
1603         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
1604         (libc_feupdateenv_testl): New.
1605         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
1606         (libc_feupdateenv_testf): New.
1607         (libc_feupdateenv): Use libc_feupdateenv_test.
1608         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
1609         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
1610
1611         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
1612         (libc_feholdsetroundf, libc_feholdsetroundl): New.
1613         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
1614         (libc_feresetround_noex): New.
1615         (libc_feresetround_noexf): New.
1616         (libc_feresetround_noexl): New.
1617         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
1618         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
1619         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
1620         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
1621         SET_RESTORE_ROUND.
1622         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
1623         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
1624         (__cos): Likewise.
1625         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
1626         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
1627         SET_RESTORE_ROUND_NOEX.
1628         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
1629         SET_RESTORE_ROUND_NOEXF.
1630         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
1631         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
1632         (libc_feholdsetroundf): New.
1633         (libc_feresetround, libc_feresetroundf): New.
1634
1635         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
1636         (libc_feholdexcept_setround_53bit): Convert from macro to function.
1637         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
1638
1639         * sysdeps/generic/math_private.h: Include <fenv.h>.
1640         (default_libc_feholdexcept): New.
1641         (default_libc_feholdexcept_setround): New.
1642         (default_libc_fesetenv, default_libc_feupdateenv): New.
1643         (libc_feholdexcept): Only define if undefined.
1644         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
1645         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
1646         (libc_feholdexcept_setroundl): Likewise.
1647         (libc_feholdexcept_setround_53bit): Likewise.
1648         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
1649         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
1650         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
1651         (libc_feupdateenv_53bit): Likewise.
1652         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
1653         (libc_feholdexcept): Convert from macro to inline function.
1654         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
1655         (libc_fesetenv, libc_feupdateenv): Likewise.
1656
1657         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
1658         not previously defined.
1659         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
1660         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
1661         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
1662         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
1663         * sysdeps/ieee754/flt-32/math_private.h: New file.
1664         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
1665         math_private.h below SET_FLOAT_WORD.
1666         (__isnan, __isinf_ns, __finite): Remove.
1667         (__isnanf, __isinf_nsf, __finitef): Remove.
1668
1669 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
1670
1671         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1672
1673 2012-03-17  David S. Miller  <davem@davemloft.net>
1674
1675         [BZ #6471]
1676         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
1677         for 2.16.
1678
1679 2012-03-16  David S. Miller  <davem@davemloft.net>
1680
1681         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
1682         warnings.
1683
1684         [BZ #6471]
1685         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
1686         properly.
1687         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
1688         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
1689         sysdep_routines when subdir is sysvipc.
1690         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
1691         __getshmlba helper.
1692
1693         * sysdeps/sparc/fpu/libm-test/ulps: Update.
1694
1695 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1696
1697         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
1698         [__LP64__].
1699
1700 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1701
1702         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
1703         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
1704         (__lround): Renamed to ...
1705         (__llround): This.  Replace long int with long long int.
1706         Define lround functions as aliases of llround functions.
1707         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
1708
1709 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1710
1711         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
1712         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
1713         adresses to uintptr_t.  Replace "long int" and "unsigned long
1714         int" with "greg_t" on va_arg.
1715
1716 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1717
1718         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
1719         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
1720
1721         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
1722         Move e_machine check before EI_CLASS check.  Handle x32
1723         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
1724         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
1725         SKIP_EM_IA_64 and include
1726         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
1727
1728         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
1729         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
1730         (add_system_dir): New macro.
1731
1732         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
1733         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
1734
1735 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
1736
1737         [BZ #2551]
1738         [BZ #2552]
1739         [BZ #2553]
1740         [BZ #2554]
1741         [BZ #2562]
1742         [BZ #2563]
1743         [BZ #2565]
1744         [BZ #2566]
1745         [BZ #2576]
1746         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
1747         (y0): Likewise.
1748         * math/w_j0f.c (j0f): Likewise.
1749         (y0f): Likewise.
1750         * math/w_j0l.c (__j0l): Likewise.
1751         (__y0l): Likewise.
1752         * math/w_j1.c (j1): Likewise.
1753         (y1): Likewise.
1754         * math/w_j1f.c (j1f): Likewise.
1755         (y1f): Likewise.
1756         * math/w_j1l.c (__j1l): Likewise.
1757         (__y1l): Likewise.
1758         * math/w_jn.c (jn): Likewise.
1759         (yn): Likewise.
1760         * math/w_jnf.c (jnf): Likewise.
1761         (ynf): Likewise.
1762         * math/w_jnl.c (__jnl): Likewise.
1763         (__ynl): Likewise.
1764         * math/libm-test.inc (j0_test): Add more tests.
1765         (j1_test): Likewise.
1766         (jn_test): Likewise.  Add trailing semicolon to existing test.
1767         (y0_test): Likewise.
1768         (y1_test): Likewise.
1769         * sysdeps/i386/fpu/libm-test-ulps: Update.
1770         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1771
1772         [BZ #13851]
1773         [BZ #13854]
1774         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
1775         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
1776         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
1777         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
1778         (__tanl): Set errno for infinite argument.
1779         * sysdeps/i386/fpu/mptan.c: Remove.
1780         * sysdeps/i386/fpu/s_tan.S: Likewise.
1781         * sysdeps/i386/fpu/s_tanl.S: Likewise.
1782         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
1783         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
1784         * math/libm-test.inc (tan_test): Add more tests and enable more
1785         tests for double and long double.
1786         * sysdeps/i386/fpu/libm-test-ulps: Update.
1787         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1788
1789 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
1790
1791         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
1792         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
1793
1794 2012-03-16  Roland McGrath  <roland@hack.frob.com>
1795
1796         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
1797         * configure.in: Use it for both main tree and add-ons.
1798         * configure: Regenerated.
1799
1800 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
1801
1802         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
1803
1804 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
1805
1806         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
1807         in comment.
1808
1809         [BZ #13851]
1810         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
1811         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
1812         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
1813         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
1814         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
1815         infinite argument.
1816         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
1817         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
1818         != 0 for prec == 2.
1819         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
1820         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
1821         * sysdeps/i386/fpu/s_cosl.S: Likewise.
1822         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
1823         * sysdeps/i386/fpu/s_sinl.S: Likewise.
1824         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
1825         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
1826         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
1827         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
1828         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
1829         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
1830         * math/libm-test.inc (cos_test): Add more tests and enable more
1831         tests for long double.
1832         (sin_test): Likewise.
1833         (sincos_test): Likewise.
1834         * sysdeps/i386/fpu/libm-test-ulps: Update.
1835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1836
1837 2012-03-16  David S. Miller  <davem@davemloft.net>
1838
1839         * sysdeps/sparc/fpu/math_private.h: New file.
1840
1841 2012-03-15  David S. Miller  <davem@davemloft.net>
1842
1843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
1844         file.
1845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
1846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
1847         file.
1848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
1849         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
1850         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
1851         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
1852         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
1853         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
1854         sysdep routines.
1855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
1856
1857         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
1858         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
1859
1860         * sysdeps/sparc/sparc-ifunc.h: New file.
1861         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
1862         sparc-ifunc.h
1863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
1864         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
1865         Likewise.
1866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
1867         Likewise.
1868         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
1869         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
1870         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
1871         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
1872         Likewise.
1873         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
1874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
1875         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
1876         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
1877         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
1878         Likewise.
1879         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
1880         Likewise.
1881         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
1882         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
1883         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
1884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
1885         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
1886         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
1887         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
1888         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
1889         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
1890         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
1891         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
1892         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
1893         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
1894         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
1895         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
1896         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
1897         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
1898         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
1899         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
1900         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
1901         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
1902         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
1903         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
1904         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
1905
1906 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
1907
1908         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
1909         scaling.
1910         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1911
1912 2012-03-15  Andreas Jaeger  <aj@suse.de>
1913
1914         [BZ #13852]
1915         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
1916         ieee754/flt-32 implementation for sin, cos and sincos.
1917         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
1918         * sysdeps/i386/fpu/s_cosf.S: Likewise.
1919         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
1920         * sysdeps/i386/fpu/s_sinf.S: Likewise.
1921         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
1922         ieee754/flt-32 implementation for tan.
1923
1924         * math/libm-test.inc (cos_test): Enable some large input tests for
1925         float as well
1926         (sin_test): Likewise.
1927         (sincos_test): Likewise.
1928         (tan_test): Add tests for large input.
1929
1930         * sysdeps/i386/fpu/libm-test-ulps: Update.
1931
1932 2012-03-15  Andreas Jaeger  <aj@suse.de>
1933
1934         [BZ #13658]
1935         * math/libm-test.inc (cos_test): Add more test cases.
1936         (sin_test): Likewise.
1937         (sincos_test): Likewise.
1938
1939 2012-03-15  Andreas Jaeger  <aj@suse.de>
1940
1941         [BZ #13837]
1942         * math/libm-test.inc (cos_test): Add a test case for large input
1943         value.
1944         (sin_test): Likewise.
1945         (sincos_test): Likewise.
1946
1947 2012-03-15  Andreas Jaeger  <aj@suse.de>,
1948         Joseph Myers  <joseph@codesourcery.com>
1949
1950         [BZ #13658]
1951         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
1952         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
1953         * sysdeps/i386/fpu/branred.c: Likewise.
1954         * sysdeps/i386/fpu/dosincos.c: Likewise.
1955         * sysdeps/i386/fpu/mpa.c: Likewise.
1956         * sysdeps/i386/fpu/s_cos.S: Likewise.
1957         * sysdeps/i386/fpu/s_sin.S: Likewise.
1958         * sysdeps/i386/fpu/s_sincos.S: Likewise.
1959         * sysdeps/i386/fpu/sincos32.c: Likewise.
1960
1961         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
1962         Define.
1963         (libc_feupdateenv_53bit): Define.
1964         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
1965         Define.
1966         (libc_feupdateenv_53bit): Define.
1967
1968         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
1969         53 bit (without extend i386 double precision).
1970
1971         * math/libm-test.inc (sincos_test): Add tests for large input.
1972         (sin): Likewise.
1973         (cos): Likewise.
1974
1975         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
1976
1977 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
1978
1979         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1980
1981 2012-03-15  David S. Miller  <davem@davemloft.net>
1982
1983         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
1984         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
1985         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
1986         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
1987         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
1988         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
1989         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
1990         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
1991         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
1992         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
1993         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
1994         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
1995         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
1996         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
1997         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
1998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
1999         file.
2000         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
2001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
2002         file.
2003         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
2004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
2005         file.
2006         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
2007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
2008         file.
2009         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
2010         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
2011         fmin/fmax sysdep routines.
2012         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
2013
2014 2012-03-14  David S. Miller  <davem@davemloft.net>
2015
2016         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
2017         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
2018         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
2019         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
2020         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
2021         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
2022         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
2023         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
2024         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
2025         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
2026         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
2027         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
2028         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
2029         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
2030         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
2031         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
2032         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
2033         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
2034         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
2035         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
2036         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
2037         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
2038         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
2039         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
2040         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
2041         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
2042         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
2043         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
2044         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
2045         routines.
2046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
2047         file.
2048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
2049         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
2050         file.
2051         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
2052         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
2053         file.
2054         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
2055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
2056         file.
2057         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
2058         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
2059         file.
2060         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
2061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
2062         file.
2063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
2064         file.
2065         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
2066         file.
2067         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
2068         file.
2069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
2070         New file.
2071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
2072         file.
2073         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
2074         file.
2075         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
2076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
2077         file.
2078         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
2079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
2080         file.
2081         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
2082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
2083         file.
2084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
2085         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
2086         VIS3 routines.
2087
2088         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
2089         New file.
2090
2091         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2092
2093         * sysdeps/sparc/configure.in: New file.
2094         * sysdeps/sparc/configure: Generate.
2095         * configure.in (libc_cv_sparc_as_vis3): Substitute.
2096         * configure: Regenerate.
2097         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
2098         * config.make.in (have-as-vis3): New.
2099         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
2100         available use -Av9d instead of -Av9a.
2101         * sysdeps/sparc/sparc64/Makefile: Likewise.
2102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
2103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
2104         New file.
2105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
2106         file.
2107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
2108         New file.
2109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
2110         file.
2111         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
2112         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
2113         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
2114         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
2115         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
2116
2117         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
2118         fzeros/fnegs to load 0x80000000 into a float register instead of
2119         using the stack.
2120         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
2121
2122 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
2123
2124         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2125         bits/syscall.h.
2126         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
2127         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
2128         ($(inst_includedir)/bits/syscall.h): Remove rule.
2129         ($(objpfx)bits/syscall.d): Include instead of
2130         $(objpfx)syscall-list.d.
2131         (generated): Change syscall-list.h and syscall-list.d to
2132         bits/syscall.h and bits/syscall.d.
2133
2134 2012-03-14  Roland McGrath  <roland@hack.frob.com>
2135
2136         [BZ #13846]
2137         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
2138
2139 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
2140
2141         [BZ #13841]
2142         * math/s_csqrt.c: Include <float.h>.
2143         (__csqrt): Scale large or subnormal inputs.
2144         * math/s_csqrtf.c: Likewise.
2145         * math/s_csqrtl.c: Likewise.
2146         * math/libm-test.inc (csqrt_test): Add more tests.
2147         * sysdeps/i386/fpu/libm-test-ulps: Update.
2148         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2149
2150         [BZ #13840]
2151         * math/libm-test.inc (hypot_test): Add more tests.
2152
2153 2012-03-13  David S. Miller  <davem@davemloft.net>
2154
2155         [BZ #13840]
2156         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
2157         double-precision for the calculation instead of scaling.
2158
2159 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
2160
2161         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
2162         manipulate bits before adding and subtracting TWO52[sx].
2163         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
2164         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
2165         Likewise.
2166         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
2167
2168 2012-03-13  David S. Miller  <davem@davemloft.net>
2169
2170         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
2171         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
2172         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
2173         rtld-global-offsets.h
2174         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
2175
2176         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
2177         large parameters.
2178
2179         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
2180
2181         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
2182         'err' in the ifdef scope in which it is actually used.
2183
2184         * nss/nss_db/db-init.c: Include string.h
2185
2186 2012-03-12  David S. Miller  <davem@davemloft.net>
2187
2188         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
2189         masking out of the most significant byte of random value used.
2190         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
2191         Fix coding style in previous change.
2192
2193         * sysdeps/unix/sysv/linux/kernel-features.h
2194         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
2195         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
2196         expression.
2197         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
2198         later.
2199
2200 2012-03-11  David S. Miller  <davem@davemloft.net>
2201
2202         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
2203         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
2204         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
2205         for 'resultvar' otherwise things get truncated on 64-bit.
2206
2207         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
2208         Fix masking out of the most significant byte of random value used.
2209
2210         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2211
2212 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
2213
2214         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2215
2216 2012-03-09  David S. Miller  <davem@davemloft.net>
2217
2218         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
2219         variables with appropriate CPP guards.
2220         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
2221         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
2222         on resulting framesize and the management of the outregs buffer for pltexit.
2223         Preserve floating point return values across _dl_call_pltexit call.
2224         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
2225         framesize and the management of the outregs buffer for pltexit.
2226         Preserve floating point return values across _dl_call_pltexit
2227         call.
2228         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
2229         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
2230         (print_exit): Fix format string for return register value.
2231
2232 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
2233
2234         * sunrpc/Makefile (others): Add rpcgen.
2235         ($(objpfx)rpcgen): Remove special build rule and dependency on
2236         libc.
2237         * sunrpc/rpcgen.c: New file.
2238
2239 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
2240
2241         [BZ #13673]
2242         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
2243         * stdio-common/bug-vfprintf-nargs.c: Likewise.
2244         * sysdeps/i386/crti.S: Likewise.
2245         * sysdeps/i386/crtn.S: Likewise.
2246         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
2247         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
2248         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
2249         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
2250         * sysdeps/sh/crti.S: Likewise.
2251         * sysdeps/sh/crtn.S: Likewise.
2252         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
2253
2254         [BZ #13673]
2255         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
2256         with URL.
2257         * locale/programs/locfile-kw.gperf: Likewise.
2258         * locale/programs/charmap-kw.h: Regenerated.
2259         * locale/programs/locfile-kw.h: Likewise.
2260
2261         [BZ #13673]
2262         * intl/plural.y: Replace FSF snail mail address with URL.
2263         * intl/plural.c: Regenerated.
2264
2265 2012-03-09  Richard Henderson  <rth@twiddle.net>
2266
2267         * include/math_private.h: Remove file.
2268         * math/math_private.h: Move file ...
2269         * sysdeps/generic/math_private.h: ... here.
2270
2271         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
2272         * sysdeps/powerpc/fpu/math_private.h: Likewise.
2273         * sysdeps/x86_64/fpu/math_private.h: Likewise.
2274
2275         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
2276         and <math_private.h>.
2277         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
2278         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
2279         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
2280         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
2281         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
2282         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
2283         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
2284         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
2285         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
2286         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
2287         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
2288         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
2289         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
2290         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
2291         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
2292         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
2293         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
2294         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
2295         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
2296         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
2297         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
2298         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
2299         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
2300         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
2301         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
2302         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
2303         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
2304         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
2305         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
2306         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2307         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
2308         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
2309         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
2310         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
2311         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
2312         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
2313         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
2314         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
2315         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
2316         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
2317         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
2318         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
2319         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
2320         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
2321         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
2322         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
2323         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
2324         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
2325         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
2326         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
2327         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
2328         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
2329         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
2330         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
2331         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
2332         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
2333         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
2334         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
2335         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
2336         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
2337         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
2338         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
2339         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
2340         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
2341         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
2342         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
2343         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
2344         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
2345         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
2346         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
2347         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
2348         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
2349         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
2350         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
2351         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
2352         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
2353         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
2354         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
2355         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
2356         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
2357         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
2358         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
2359         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
2360         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
2361         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
2362         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
2363         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
2364         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
2365         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
2366         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
2367         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
2368         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
2369         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
2370         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
2371         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
2372         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
2373         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
2374         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
2375         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
2376         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
2377         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
2378         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
2379         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
2380         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
2381         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
2382         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
2383         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
2384         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
2385         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
2386         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
2387         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
2388         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
2389         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
2390         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
2391         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
2392         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
2393         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
2394         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
2395         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
2396         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
2397         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
2398         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
2399         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
2400         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
2401         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
2402         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
2403         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
2404         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
2405         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
2406         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
2407         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
2408         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
2409         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
2410         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
2411         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
2412         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
2413         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
2414         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
2415         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
2416         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
2417         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
2418         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
2419         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
2420         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
2421         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
2422         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
2423         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
2424         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
2425         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
2426         * sysdeps/ieee754/k_standard.c: Likewise.
2427         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
2428         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
2429         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
2430         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
2431         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
2432         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
2433         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
2434         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
2435         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
2436         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
2437         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
2438         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
2439         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
2440         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
2441         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
2442         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
2443         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
2444         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
2445         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
2446         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
2447         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
2448         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
2449         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2450         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
2451         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2452         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
2453         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
2454         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
2455         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
2456         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2457         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2458         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
2459         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
2460         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
2461         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
2462         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
2463         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
2464         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
2465         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
2466         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
2467         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
2468         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
2469         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2470         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
2471         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
2472         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
2473         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
2474         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
2475         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
2476         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
2477         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
2478         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
2479         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
2480         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
2481         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
2482         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
2483         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
2484         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
2485         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
2486         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
2487         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
2488         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
2489         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
2490         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
2491         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
2492         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
2493         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
2494         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
2495         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
2496         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
2497         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
2498         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
2499         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
2500         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
2501         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
2502         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
2503         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
2504         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
2505         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2506         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
2507         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
2508         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
2509         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
2510         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
2511         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
2512         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
2513         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
2514         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
2515         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2516         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
2517         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
2518         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
2519         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
2520         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
2521         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
2522         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
2523         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
2524         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
2525         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
2526         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
2527         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
2528         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
2529         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
2530         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
2531         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
2532         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
2533         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
2534         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
2535         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
2536         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
2537         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
2538         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
2539         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
2540         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
2541         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
2542         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
2543         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
2544         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
2545         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
2546         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
2547         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
2548         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
2549         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
2550         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
2551         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
2552         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
2553         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
2554         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
2555         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
2556         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2557         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
2558         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
2559         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
2560         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
2561         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
2562         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
2563         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
2564         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
2565         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
2566         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
2567         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
2568         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
2569         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
2570         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
2571         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
2572         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
2573         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
2574         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
2575         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
2576         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
2577         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
2578         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
2579         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
2580         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
2581         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
2582         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
2583         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
2584         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
2585         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
2586         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
2587         * sysdeps/ieee754/s_lib_version.c: Likewise.
2588         * sysdeps/ieee754/s_matherr.c: Likewise.
2589         * sysdeps/ieee754/s_signgam.c: Likewise.
2590         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
2591         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
2592         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
2593         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
2594         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
2595         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2596         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
2597         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
2598         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
2599         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
2600         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
2601         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
2602         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
2603         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
2604         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
2605         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
2606         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
2607         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
2608         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
2609         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
2610         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
2611
2612 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
2613
2614         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
2615         * sunrpc/rpc_main.c: Likewise.
2616         * sunrpc/rpc_svcout.c: Likewise.
2617
2618 2012-03-09  David S. Miller  <davem@davemloft.net>
2619
2620         * include/math_private.h: New file.
2621
2622 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
2623
2624         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
2625         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
2626         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
2627         from <bits/socket_type.h>.
2628         (enum __socket_type): Don't define here.
2629         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
2630         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2631         bits/socket_type.h.
2632
2633         [BZ #13566]
2634         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
2635         checking __USE_GNU.
2636
2637         * Makerules ($(inst_includedir)/%.h): New rule.
2638         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
2639         (install-others): Remove variable setting.
2640         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
2641
2642 2012-03-08  Richard Henderson  <rth@twiddle.net>
2643
2644         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
2645         from macro to inline function; merge with the
2646         !__LIBC_INTERNAL_MATH_INLINES version.
2647         (__ieee754_sqrtf): Likewise.
2648
2649         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
2650         to inline function.
2651         (__rintf, __floor, __floorf): Likewise.
2652
2653         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
2654         macro to inline function.
2655         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
2656
2657         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
2658         not <math/math_private.h>.
2659
2660 2012-03-08  David S. Miller  <davem@davemloft.net>
2661
2662         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
2663         copyright year.
2664         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
2665
2666 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
2667
2668         * resolv/gai_misc.c (handle_requests): Fix struct timespec
2669         normalization.
2670         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
2671         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
2672
2673 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
2674
2675         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
2676         be defined individually, they must be defined as a block.  Define
2677         S for printing a string instead of hidint the different by using a
2678         macro for adding the 'l'.
2679         * stdio-common/tst-fphex-wide.c: Adjust.
2680
2681 2012-03-07  Marek Polacek  <polacek@redhat.com>
2682
2683         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
2684
2685 2012-03-08  Marek Polacek  <polacek@redhat.com>
2686
2687         [BZ #13806]
2688         * stdio-common/Makefile (tests): Add tst-fphex-wide.
2689         * stdio-common/tst-fphex.c: Define a few macros to make the
2690         test reusable.  Use them.
2691         * stdio-common/tst-fphex-wide.c: New file.
2692
2693 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
2694
2695         [BZ #6911]
2696         * manual/macros.texi (gnusystems): New macro.
2697         (nongnusystems): Likewise.
2698         (gnulinuxhurdsystems): Likewise.
2699         (gnuhurdsystems): Likewise..
2700         (gnulinuxsystems): Likewise.
2701         * manual/charset.texi: Use new macros or @theglibc{} to refer to
2702         variants of the GNU system, not "GNU system".
2703         * manual/conf.texi: Likewise.
2704         * manual/errno.texi: Likewise.  Update example of errno macro
2705         expansion.
2706         * manual/filesys.texi: Likewise.
2707         (getumask): Document as specific to GNU/Hurd.
2708         * manual/install.texi: Likewise.  Reword some references to
2709         GNU/Linux.
2710         * manual/intro.texi: Likewise.
2711         * manual/io.texi: Likewise.
2712         (File Name Portability): Detail which constraints are inapplicable
2713         to all GNU systems and which are only inapplicable to GNU/Hurd.
2714         * manual/job.texi: Likewise.
2715         * manual/llio.texi: Likewise.
2716         (O_NOCTTY): Document as present on GNU/Linux.
2717         * manual/maint.texi: Likewise.
2718         * manual/memory.texi: Likewise.
2719         * manual/pattern.texi: Likewise.
2720         * manual/pipe.texi: Likewise.
2721         * manual/process.texi: Likewise.
2722         * manual/resource.texi: Likewise.
2723         (RUSAGE_CHILDREN): Remove statement about specifying a particular
2724         child on GNU/Hurd.
2725         * manual/setjmp.texi: Likewise.
2726         * manual/signal.texi: Likewise.
2727         * manual/startup.texi: Likewise.
2728         * manual/stdio.texi: Likewise.
2729         * manual/terminal.texi: Likewise.
2730         (ONLCR): Document as POSIX.
2731         (OXTABS): Document availability on GNU/Linux as XTABS.
2732         (ONOEOT): Document availability separately from other bits.
2733         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
2734         * manual/time.texi: Likewise.
2735         * manual/users.texi: Likewise.
2736         * INSTALL: Regenerated.
2737         * sysdeps/gnu/errlist.c: Regenerated.
2738
2739         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
2740         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
2741         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
2742         puts.
2743         * configure: Regenerated.
2744
2745 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
2746
2747         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
2748         default includes instead of AC_HEADER_CHECK.
2749         * sysdeps/i386/configure: Regenerated.
2750
2751         [BZ #10716]
2752         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
2753         * math/s_cacoshf.c (__cacoshf): Likewise.
2754         * math/s_cacoshl.c (__cacoshl): Likewise.
2755         * math/s_casinh.c (__casinh): Set signs of result from argument.
2756         * math/s_casinhf.c (__casinhf): Likewise.
2757         * math/s_casinhl.c (__casinhl): Likewise.
2758         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
2759         (casinh_test): Add more tests.
2760         * sysdeps/i386/fpu/libm-test-ulps: Update.
2761         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2762
2763 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
2764
2765         * po/zh_TW.po: Update from translation team.
2766
2767         * login/Makefile (distribute): Remove variable.
2768         * catgets/Makefile: Likewise.
2769         * mach/Makefile: Likewise.
2770         * malloc/Makefile: Likewise.
2771         * misc/Makefile: Likewise.
2772         * iconv/Makefile: Likewise.
2773         * nscd/Makefile: Likewise.
2774         * hurd/Makefile: Likewise.
2775         * manual/Makefile: Likewise.
2776         * locale/Makefile: Likewise.
2777         * intl/Makefile: Likewise.
2778         * conform/Makefile: Likewise.
2779         * nss/Makefile: Likewise.
2780         * time/Makefile: Likewise.
2781         * soft-fp/Makefile: Likewise.
2782         * dirent/Makefile: Likewise.
2783         * gmon/Makefile: Likewise.
2784         * po/Makefile: Likewise.
2785         * rt/Makefile: Likewise.
2786         * socket/Makefile: Likewise.
2787         * math/Makefile: Likewise.
2788         * signal/Makefile: Likewise.
2789         * debug/Makefile: Likewise.
2790         * elf/Makefile: Likewise.
2791         * timezone/Makefile: Likewise.
2792         * stdlib/Makefile: Likewise.
2793         * iconvdata/Makefile: Likewise.
2794         * sunrpc/Makefile: Likewise.
2795         * io/Makefile: Likewise.
2796         * argp/Makefile: Likewise.
2797         * inet/Makefile: Likewise.
2798         * hesiod/Makefile: Likewise.
2799         * grp/Makefile: Likewise.
2800         * csu/Makefile: Likewise.
2801         * wctype/Makefile: Likewise.
2802         * crypt/Makefile: Likewise.
2803         * libio/Makefile: Likewise.
2804         * string/Makefile: Likewise.
2805         * nis/Makefile: Likewise.
2806         * resolv/Makefile: Likewise.
2807         * stdio-common/Makefile: Likewise.
2808         * wcsmbs/Makefile: Likewise.
2809         * dlfcn/Makefile: Likewise.
2810         * posix/Makefile: Likewise.
2811
2812         * timezone/Makefile: Don't install timezone files, just the programs
2813         and scripts.
2814
2815 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
2816
2817         * nss/databases.def: Add missing gshadow entry.
2818
2819         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
2820
2821 2012-03-06  Marek Polacek  <polacek@redhat.com>
2822
2823         [BZ #13726]
2824         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
2825         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
2826         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
2827         * stdio-common/tst-long-dbl-fphex.c: New file.
2828
2829 2012-03-06  David S. Miller  <davem@davemloft.net>
2830
2831         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
2832         (set_obp_int): New function.
2833         (get_obp_int): New function.
2834         (__get_clockfreq_via_dev_openprom): Likewise.
2835         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
2836         Avoid unused variable warnings on 'val' and use builtin_expect.
2837         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
2838         __builtin_expect.
2839         (INLINE_CLONE_SYSCALL): Likewise.
2840
2841 2012-03-05  David S. Miller  <davem@davemloft.net>
2842
2843         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2844
2845 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
2846
2847         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2848
2849         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
2850         only for |x| >= 40.
2851         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
2852
2853 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
2854
2855         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
2856         Replace gettimeofday with __vdso_gettimeofday.
2857
2858         * sysdeps/unix/sysv/linux/x86_64/init-first.c
2859         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
2860         __vdso_clock_gettime and __vdso_getcpu.
2861
2862         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
2863         time with __vdso_time.
2864
2865 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
2866
2867         * manual/lang.texi (size_t): Note types to which size_t may be
2868         equivalent with the GNU C Library, but do not describe when
2869         differences between them are significant.
2870
2871 2012-03-05  Andreas Jaeger  <aj@suse.de>
2872
2873         * sysdeps/i386/fpu/libm-test-ulps: Update.
2874
2875 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
2876
2877         [BZ #3976]
2878         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
2879         (__ieee754_pow): Save and restore rounding mode and use
2880         round-to-nearest for main computations.
2881         * math/libm-test.inc (pow_test_tonearest): New function.
2882         (pow_test_towardzero): Likewise.
2883         (pow_test_downward): Likewise.
2884         (pow_test_upward): Likewise.
2885         (main): Call the new functions.
2886         * sysdeps/i386/fpu/libm-test-ulps: Update.
2887         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2888
2889         [BZ #3976]
2890         * math/libm-test.inc (cosh_test_tonearest): New function.
2891         (cosh_test_towardzero): Likewise.
2892         (cosh_test_downward): Likewise.
2893         (cosh_test_upward): Likewise.
2894         (sinh_test_tonearest): Likewise.
2895         (sinh_test_towardzero): Likewise.
2896         (sinh_test_downward): Likewise.
2897         (sinh_test_upward): Likewise.
2898         (main): Call the new functions.
2899         * sysdeps/i386/fpu/libm-test-ulps: Update.
2900         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2901
2902 2012-03-05  Tom de Vries  <tom@codesourcery.com>
2903
2904         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
2905         default stack guard is set in last bytes.
2906         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
2907
2908 2012-03-05  Kees Cook  <keescook@chromium.org>
2909
2910         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
2911
2912         [BZ #13656]
2913         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
2914         possibly allocate from heap instead of stack.
2915         * stdio-common/bug-vfprintf-nargs.c: New file.
2916         * stdio-common/Makefile (tests): Add nargs overflow test.
2917
2918 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
2919
2920         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2921
2922 2012-03-03  Marek Polacek  <polacek@redhat.com>
2923
2924         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
2925         * math/math_private.h: Likewise.
2926         * stdlib/tst-strtod.c: Likewise.
2927         * sysdeps/i386/i486/bits/atomic.h: Likewise.
2928         * sysdeps/x86_64/bits/atomic.h: Likewise.
2929
2930 2012-03-02  David S. Miller  <davem@davemloft.net>
2931
2932         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
2933         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
2934         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
2935         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
2936         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
2937         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
2938         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
2939         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
2940
2941 2012-03-02  Roland McGrath  <roland@hack.frob.com>
2942
2943         [BZ #13792]
2944         * manual/examples/README: New file, says the example source files
2945         can be used under GPL>=2.
2946         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
2947         line containing just "*/".
2948         * manual/examples/add.c: Add copyright header (GPL>=2).
2949         * manual/examples/argp-ex1.c: Likewise.
2950         * manual/examples/argp-ex2.c: Likewise.
2951         * manual/examples/argp-ex3.c: Likewise.
2952         * manual/examples/argp-ex4.c: Likewise.
2953         * manual/examples/atexit.c: Likewise.
2954         * manual/examples/db.c: Likewise.
2955         * manual/examples/dir.c: Likewise.
2956         * manual/examples/dir2.c: Likewise.
2957         * manual/examples/execinfo.c: Likewise.
2958         * manual/examples/filecli.c: Likewise.
2959         * manual/examples/filesrv.c: Likewise.
2960         * manual/examples/fmtmsgexpl.c: Likewise.
2961         * manual/examples/genpass.c: Likewise.
2962         * manual/examples/inetcli.c: Likewise.
2963         * manual/examples/inetsrv.c: Likewise.
2964         * manual/examples/isockad.c: Likewise.
2965         * manual/examples/longopt.c: Likewise.
2966         * manual/examples/memopen.c: Likewise.
2967         * manual/examples/memstrm.c: Likewise.
2968         * manual/examples/mkfsock.c: Likewise.
2969         * manual/examples/mkisock.c: Likewise.
2970         * manual/examples/mygetpass.c: Likewise.
2971         * manual/examples/pipe.c: Likewise.
2972         * manual/examples/popen.c: Likewise.
2973         * manual/examples/rprintf.c: Likewise.
2974         * manual/examples/search.c: Likewise.
2975         * manual/examples/select.c: Likewise.
2976         * manual/examples/setjmp.c: Likewise.
2977         * manual/examples/sigh1.c: Likewise.
2978         * manual/examples/sigusr.c: Likewise.
2979         * manual/examples/stpcpy.c: Likewise.
2980         * manual/examples/strdupa.c: Likewise.
2981         * manual/examples/strftim.c: Likewise.
2982         * manual/examples/strncat.c: Likewise.
2983         * manual/examples/subopt.c: Likewise.
2984         * manual/examples/swapcontext.c: Likewise.
2985         * manual/examples/termios.c: Likewise.
2986         * manual/examples/testopt.c: Likewise.
2987         * manual/examples/testpass.c: Likewise.
2988         * manual/examples/timeval_subtract.c: Likewise.
2989
2990         [BZ #13792]
2991         * manual/time.texi (Elapsed Time): Move timeval_subtract example
2992         function to ...
2993         * manual/timeval_subtract.c.texi: ... here, new file.
2994
2995 2012-03-02  David S. Miller  <davem@davemloft.net>
2996
2997         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
2998
2999 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
3000
3001         [BZ #3976]
3002         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
3003         (__sin): Save and restore rounding mode and use round-to-nearest
3004         for all computations.
3005         (__cos): Save and restore rounding mode and use round-to-nearest
3006         for all computations.
3007         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
3008         <fenv.h>.
3009         (tan): Save and restore rounding mode and use round-to-nearest for
3010         all computations.
3011         * math/libm-test.inc (cos_test_tonearest): New function.
3012         (cos_test_towardzero): Likewise.
3013         (cos_test_downward): Likewise.
3014         (cos_test_upward): Likewise.
3015         (sin_test_tonearest): Likewise.
3016         (sin_test_towardzero): Likewise.
3017         (sin_test_downward): Likewise.
3018         (sin_test_upward): Likewise.
3019         (tan_test_tonearest): Likewise.
3020         (tan_test_towardzero): Likewise.
3021         (tan_test_downward): Likewise.
3022         (tan_test_upward): Likewise.
3023         (main): Call the new functions.
3024         * sysdeps/i386/fpu/libm-test-ulps: Update.
3025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3026
3027         [BZ #10135]
3028         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
3029         small n, then large n, before computing and testing k+n.
3030         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
3031         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
3032         Likewise.
3033         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
3034         Likewise.
3035         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
3036         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
3037         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
3038         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
3039         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
3040         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
3041         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
3042         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
3043         * math/libm-test.inc (scalbn_test): Add more tests.
3044         (scalbln_test): Likewise.
3045
3046         * manual/filesys.texi (mode_t): Describe constraints on size and
3047         signedness, not exact equivalence to a particular type.
3048         (ino_t): Likewise.
3049         (ino64_t): Likewise.
3050         (dev_t): Likewise.
3051         (nlink_t): Likewise.
3052         (blkcnt_t): Likewise.
3053         (blkcnt64_t): Likewise.
3054         * manual/llio.texi (off_t): Likewise.
3055
3056         [BZ #3976]
3057         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
3058         (__ieee754_exp): Save and restore rounding mode and use
3059         round-to-nearest for all computations.
3060         * math/libm-test.inc (exp_test_tonearest): New function.
3061         (exp_test_towardzero): Likewise.
3062         (exp_test_downward): Likewise.
3063         (exp_test_upward): Likewise.
3064         (main): Call the new functions.
3065         * sysdeps/i386/fpu/libm-test-ulps: Update.
3066         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3067
3068 2012-03-01  Chris Demetriou  <cgd@google.com>
3069
3070         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
3071         have predictable order.
3072
3073 2012-03-01  David S. Miller  <davem@davemloft.net>
3074
3075         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
3076
3077         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
3078         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
3079         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
3080         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
3081
3082         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
3083         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
3084         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
3085         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
3086         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
3087         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
3088         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
3089         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
3090         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
3091
3092         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3093
3094         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
3095         * sysdeps/sparc/fpu/libm-test-ulps: to here.
3096         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
3097
3098         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
3099         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
3100         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3101         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
3102         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
3103         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
3104         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
3105         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
3106         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3107         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
3108         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
3109         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3110         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
3111         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
3112         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3113         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3114         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
3115         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
3116         * sysdeps/sparc/elf/configure: Regenerated.
3117
3118 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
3119
3120         * configure.in (AS, LD): Require binutils 2.20 or later.
3121         * configure: Regenerated.
3122         * manual/install.texi (Tools for Compilation): Give binutils 2.20
3123         as required minimum version.
3124         * INSTALL: Regenerated.
3125
3126         [BZ #2541]
3127         [BZ #4108]
3128         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
3129         before squaring exponent.
3130         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
3131         bottom long double and 27 bits of top long double before squaring
3132         exponent.
3133         * math/libm-test.inc (erfc_test): Add more tests.
3134         * sysdeps/i386/fpu/libm-test-ulps: Update.
3135         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3136         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3137
3138 2012-03-01  Kai Tietz  <ktietz@redhat.com>
3139
3140         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
3141         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
3142         containing bit-fields.
3143         * soft-fp/extended.h (_FP_UNION_E): Likewise.
3144         * soft-fp/single.h (_FP_UNION_S): Likewise.
3145         * soft-fp/double.h (_FP_UNION_D): Likewise.
3146
3147 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
3148
3149         [BZ #13786]
3150         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
3151         not include ../strcmp.S.
3152         [USE_AS_STRNCASECMP_L]: Likewise.
3153         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
3154         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
3155         * sysdeps/i386/i686/multiarch/strncase_l-c.c
3156         (__strncasecmp_l_ia32): Define as alias to
3157         __strncasecmp_l_nonascii.
3158
3159         [BZ #5794]
3160         * math/libm-test.inc (expm1_test): Add test for bug 5794.
3161         * sysdeps/i386/fpu/libm-test-ulps: Update.
3162         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3163
3164         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
3165         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3166
3167 2012-02-29  Jeff Law  <law@redhat.com>
3168
3169         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
3170         out of bounds read.
3171
3172 2012-02-29  Marek Polacek  <polacek@redhat.com>
3173
3174         [BZ #13706]
3175         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
3176         * elf/Makefile: Add rules to run tst-unused-dep.out.
3177
3178 2012-02-28  David S. Miller  <davem@davemloft.net>
3179
3180         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
3181         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
3182         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
3183         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
3184         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
3185         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
3186
3187 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
3188
3189         * math/libm-test.inc (llround_test): Move one test from
3190         lround_test.  Use TEST_f_L in moved test.
3191         (lround_test): Move misplaced test to llround_test.  Add testcase
3192         from bug 2561.
3193
3194 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
3195
3196         * sysdeps/x86_64/fpu/e_expf.S: New file.
3197         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
3198
3199 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
3200
3201         [BZ #13637]
3202         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
3203         of remain_len that may cause incomplete multi-byte character and
3204         false match.
3205         * posix/bug-regex33.c: New file.
3206         * posix/Makefile (tests): Add bug-regex33.
3207
3208 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
3209
3210         * manual/macros.texi: New file.
3211         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
3212         * manual/libc.texinfo: Include macros.texi.
3213         * manual/creatute.texi: Likewise.
3214         * manual/install.texi: Likewise.
3215         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
3216         @glibcadj{} in references to the GNU C Library.
3217         * manual/charset.texi: Likewise.
3218         * manual/conf.texi: Likewise.
3219         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
3220         when not using those macros.
3221         * manual/creature.texi: Likewise.
3222         * manual/crypt.texi: Likewise.
3223         * manual/errno.texi: Likewise.
3224         * manual/filesys.texi: Likewise.
3225         * manual/header.texi: Likewise.
3226         * manual/install.texi: Likewise.
3227         * manual/intro.texi: Likewise.
3228         * manual/io.texi: Likewise.
3229         * manual/job.texi: Likewise.
3230         * manual/lang.texi: Likewise.
3231         * manual/libc.texiinfo: Likewise.
3232         * manual/llio.texi: Likewise.
3233         * manual/locale.texi: Likewise.
3234         * manual/maint.texi: Likewise.
3235         * manual/math.texi: Likewise.
3236         * manual/memory.texi: Likewise.
3237         * manual/message.texi: Likewise.
3238         * manual/nss.texi: Likewise.
3239         * manual/pattern.texi: Likewise.
3240         * manual/process.texi: Likewise.
3241         * manual/resource.texi: Likewise.
3242         * manual/search.texi: Likewise.
3243         * manual/setjmp.texi: Likewise.
3244         * manual/signal.texi: Likewise.
3245         * manual/socket.texi: Likewise.
3246         * manual/startup.texi: Likewise.
3247         * manual/stdio.texi: Likewise.
3248         * manual/string.texi: Likewise.
3249         * manual/sysinfo.texi: Likewise.
3250         * manual/syslog.texi: Likewise.
3251         * manual/terminal.texi: Likewise.
3252         * manual/time.texi: Likewise.
3253         * manual/users.texi: Likewise.
3254         * INSTALL: Regenerated.
3255         * NOTES: Regenerated.
3256         * sysdeps/gnu/errlist.c: Regenerated.
3257
3258 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
3259
3260         * include/dirent.h: Include <dirstream.h> before
3261         <dirent/dirent.h>.
3262
3263 2012-02-28  David S. Miller  <davem@davemloft.net>
3264
3265         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
3266         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
3267         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
3268         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
3269
3270 2012-02-27  David S. Miller  <davem@davemloft.net>
3271
3272         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
3273         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
3274         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
3275         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
3276
3277         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
3278         frame pointer instead of stack pointer relative arg slot.
3279         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
3280         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
3281         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
3282
3283 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
3284
3285         [BZ #3992]
3286         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
3287
3288 2012-02-27  David S. Miller  <davem@davemloft.net>
3289
3290         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
3291         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
3292         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
3293         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
3294         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
3295         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
3296         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
3297         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
3298
3299 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
3300
3301         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
3302         later.  Allow versions 5-9.
3303         * configure: Regenerated.
3304         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
3305         required minimum version and 4.6 as recommended version.  Do not
3306         mention bugs in GCC 2.7 and 2.8.
3307         * INSTALL: Regenerated.
3308
3309 2012-02-27  David S. Miller  <davem@davemloft.net>
3310
3311         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
3312         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
3313         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
3314         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
3315         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
3316         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
3317         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
3318         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
3319
3320         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
3321         manipulate bits before adding and subtracting TWO112[sx].
3322         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
3323
3324 2012-02-27  Roland McGrath  <roland@hack.frob.com>
3325
3326         [BZ #13775]
3327         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
3328         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
3329         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
3330         being in POSIX, because they are in 1003.1-2008.
3331
3332         * rt/tst-aio.c: Include <fcntl.h>.
3333         * rt/tst-aio7.c: Likewise.
3334         * rt/tst-aio64.c: Likewise.
3335
3336         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
3337
3338 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
3339
3340         * manual/install.texi (--with-headers): Describe headers as
3341         interface headers, not private headers.
3342         (Specific advice for GNU/Linux systems): Describe use of headers
3343         from "make headers_install", not private headers from older
3344         kernels.
3345         * INSTALL: Regenerated.
3346         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
3347         Change to 2.6.19.
3348         * sysdeps/unix/sysv/linux/configure: Regenerated.
3349
3350         * manual/llio.texi (fclean): Remove documentation.
3351
3352         * manual/Makefile (libc-texi-generated): New variable.  Include
3353         version.texi.
3354         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
3355         $(libc-texi-generated), not duplicated list of files.
3356         (version.texi, stamp-version): New rules.
3357         (realclean): Remove $(libc-texi-generated), not individual files
3358         from that list.  Do not remove dir-add.texinfo.
3359         * manual/libc.texinfo: Comment out uses of edition numbers and
3360         references to printed manual.  Remove last-updated dates.
3361         (EDITION): Comment out.
3362         (ISBN): Likewise.
3363         (VERSION, UPDATED): Remove.
3364         (version.texi): Include.
3365
3366 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
3367
3368         * sysdeps/posix/spawni.c: Include <signal.h>.
3369         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
3370         * sysdeps/pthread/aio_fsync.c: Likewise.
3371
3372 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
3373
3374         * conform/Makefile (tests): Run only when not cross-compiling and
3375         when fast-check is not defined.
3376
3377         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
3378         * conform/data/limits.h-data: Fixes for POSIX2008.
3379         * conform/run-conformtest.sh: Run all tests.
3380         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
3381         headers.
3382         * include/bits/dlfcn.h: Likewise.
3383         * include/langinfo.h: Likewise.
3384         * include/monetary.h: Likewise.
3385         * include/sys/poll.h: Likewise.
3386
3387         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
3388         for __USE_GNU.
3389         * posix/spawn.h: Define __need_sigset_t.
3390         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
3391         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
3392         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
3393         to get sigevent_t only.
3394         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
3395         only for __USE_GNU.
3396         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
3397         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
3398         process_vm_writev only for __USE_GNU.
3399         * termios/termios.h: Declare tcgetsid also for POSIX2008.
3400
3401         * conform/Makefile: For now ignore errors from run-conformtest.
3402         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
3403         POSIX to avoid namespace pollution.  Don't prepend headers.
3404         * conform/data/aio.h-data: Fixes for POSIX testing.
3405         * conform/data/fcntl.h-data: Likewise.
3406         * conform/data/glob.h-data: Likewise.
3407         * conform/data/grp.h-data: Likewise.
3408         * conform/data/pthread.h-data: Likewise.
3409         * conform/data/pwd.h-data: Likewise.
3410         * conform/data/signal.h-data: Likewise.
3411         * conform/data/spawn.h-data: Likewise.
3412         * conform/data/stdio.h-data: Likewise.
3413         * conform/data/stdlib.h-data: Likewise.
3414         * conform/data/stropts.h-data: Likewise.
3415         * conform/data/sys/mman.h-data: Likewise.
3416         * conform/data/sys/stat.h-data: Likewise.
3417         * conform/data/sys/types.h-data: Likewise.
3418         * conform/data/sys/wait.h-data: Likewise.
3419         * conform/data/time.h-data: Likewise.
3420         * conform/data/unistd.h-data: Likewise.
3421         * conform/data/utime.h-data: Likewise.
3422
3423         * io/sys/stat.h: fchmod was always in POSIX.
3424         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
3425         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
3426         * rt/aio.h: Define __need_timespec before including <time.h>.
3427         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
3428         struct.  Add forward declaration of pthread_attr_t and use it in
3429         sigevent.
3430         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
3431         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3432         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
3433         always remove CLK_TCK definition.
3434
3435 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
3436
3437         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
3438
3439 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
3440
3441         * conform/run-conformtest.sh: New file.
3442         * conform/Makefile: Run run-conformtest for tests.
3443         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
3444         support.
3445
3446         * conform/data/uchar.h-data: New file.
3447         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
3448         * conform/data/arpa/inet.h-data: Likewise.
3449         * conform/data/assert.h-data: Likewise.
3450         * conform/data/complex.h-data: Likewise.
3451         * conform/data/cpio.h-data: Likewise.
3452         * conform/data/ctype.h-data: Likewise.
3453         * conform/data/dirent.h-data: Likewise.
3454         * conform/data/dlfcn.h-data: Likewise.
3455         * conform/data/errno.h-data: Likewise.
3456         * conform/data/fcntl.h-data: Likewise.
3457         * conform/data/float.h-data: Likewise.
3458         * conform/data/fmtmsg.h-data: Likewise.
3459         * conform/data/fnmatch.h-data: Likewise.
3460         * conform/data/ftw.h-data: Likewise.
3461         * conform/data/glob.h-data: Likewise.
3462         * conform/data/grp.h-data: Likewise.
3463         * conform/data/iconv.h-data: Likewise.
3464         * conform/data/inttypes.h-data: Likewise.
3465         * conform/data/langinfo.h-data: Likewise.
3466         * conform/data/libgen.h-data: Likewise.
3467         * conform/data/limits.h-data: Likewise.
3468         * conform/data/locale.h-data: Likewise.
3469         * conform/data/math.h-data: Likewise.
3470         * conform/data/monetary.h-data: Likewise.
3471         * conform/data/mqueue.h-data: Likewise.
3472         * conform/data/ndbm.h-data: Likewise.
3473         * conform/data/net/if.h-data: Likewise.
3474         * conform/data/netdb.h-data: Likewise.
3475         * conform/data/netinet/in.h-data: Likewise.
3476         * conform/data/nl_types.h-data: Likewise.
3477         * conform/data/poll.h-data: Likewise.
3478         * conform/data/pthread.h-data: Likewise.
3479         * conform/data/pwd.h-data: Likewise.
3480         * conform/data/regex.h-data: Likewise.
3481         * conform/data/sched.h-data: Likewise.
3482         * conform/data/search.h-data: Likewise.
3483         * conform/data/semaphore.h-data: Likewise.
3484         * conform/data/setjmp.h-data: Likewise.
3485         * conform/data/signal.h-data: Likewise.
3486         * conform/data/spawn.h-data: Likewise.
3487         * conform/data/stdarg.h-data: Likewise.
3488         * conform/data/stdio.h-data: Likewise.
3489         * conform/data/stdlib.h-data: Likewise.
3490         * conform/data/string.h-data: Likewise.
3491         * conform/data/strings.h-data: Likewise.
3492         * conform/data/stropts.h-data: Likewise.
3493         * conform/data/sys/ipc.h-data: Likewise.
3494         * conform/data/sys/mman.h-data: Likewise.
3495         * conform/data/sys/msg.h-data: Likewise.
3496         * conform/data/sys/resource.h-data: Likewise.
3497         * conform/data/sys/select.h-data: Likewise.
3498         * conform/data/sys/sem.h-data: Likewise.
3499         * conform/data/sys/shm.h-data: Likewise.
3500         * conform/data/sys/socket.h-data: Likewise.
3501         * conform/data/sys/stat.h-data: Likewise.
3502         * conform/data/sys/statvfs.h-data: Likewise.
3503         * conform/data/sys/time.h-data: Likewise.
3504         * conform/data/sys/timeb.h-data: Likewise.
3505         * conform/data/sys/times.h-data: Likewise.
3506         * conform/data/sys/types.h-data: Likewise.
3507         * conform/data/sys/uio.h-data: Likewise.
3508         * conform/data/sys/un.h-data: Likewise.
3509         * conform/data/sys/utsname.h-data: Likewise.
3510         * conform/data/sys/wait.h-data: Likewise.
3511         * conform/data/syslog.h-data: Likewise.
3512         * conform/data/tar.h-data: Likewise.
3513         * conform/data/termios.h-data: Likewise.
3514         * conform/data/utime.h-data: Likewise.
3515         * conform/data/utmpx.h-data: Likewise.
3516         * conform/data/varargs.h-data: Likewise.
3517         * conform/data/wchar.h-data: Likewise.
3518         * conform/data/wctype.h-data: Likewise.
3519         * conform/data/wordexp.h-data: Likewise.
3520
3521         * include/stropts.h: New file.
3522         * include/uchar.h: New file.
3523         * include/aio.h: Changes to allow conformtest.pl to use the headers.
3524         * include/assert.h: Likewise.
3525         * include/ctype.h: Likewise.
3526         * include/dirent.h: Likewise.
3527         * include/dlfcn.h: Likewise.
3528         * include/fcntl.h: Likewise.
3529         * include/fnmatch.h: Likewise.
3530         * include/glob.h: Likewise.
3531         * include/grp.h: Likewise.
3532         * include/libio.h: Likewise.
3533         * include/locale.h: Likewise.
3534         * include/math.h: Likewise.
3535         * include/net/if.h: Likewise.
3536         * include/netdb.h: Likewise.
3537         * include/netinet/in.h: Likewise.
3538         * include/pthread.h: Likewise.
3539         * include/pwd.h: Likewise.
3540         * include/regex.h: Likewise.
3541         * include/sched.h: Likewise.
3542         * include/search.h: Likewise.
3543         * include/setjmp.h: Likewise.
3544         * include/signal.h: Likewise.
3545         * include/stdio.h: Likewise.
3546         * include/stdlib.h: Likewise.
3547         * include/string.h: Likewise.
3548         * include/sys/cdefs.h: Likewise.
3549         * include/sys/mman.h: Likewise.
3550         * include/sys/msg.h: Likewise.
3551         * include/sys/resource.h: Likewise.
3552         * include/sys/select.h: Likewise.
3553         * include/sys/socket.h: Likewise.
3554         * include/sys/stat.h: Likewise.
3555         * include/sys/statvfs.h: Likewise.
3556         * include/sys/time.h: Likewise.
3557         * include/sys/times.h: Likewise.
3558         * include/sys/uio.h: Likewise.
3559         * include/sys/utsname.h: Likewise.
3560         * include/sys/wait.h: Likewise.
3561         * include/termios.h: Likewise.
3562         * include/time.h: Likewise.
3563         * include/ulimit.h: Likewise.
3564         * include/unistd.h: Likewise.
3565         * include/utime.h: Likewise.
3566         * include/wchar.h: Likewise.
3567         * include/wctype.h: Likewise.
3568         * include/wordexp.h: Likewise.
3569
3570         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
3571
3572         * time/time.h: TIME_UTC must be a macro.
3573         Make timespec_get available for ISO C11 only as well.
3574
3575 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
3576
3577         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
3578         Reported by Peng Haitao <penght@cn.fujitsu.com>.
3579
3580 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3581
3582         * configure.in: Use -o not -a in test for unsupported multi-arch.
3583
3584 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3585
3586         * manual/texinfo.tex: Update to version 2012-01-19.16.
3587
3588 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
3589
3590         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
3591
3592 2012-02-24  Roland McGrath  <roland@hack.frob.com>
3593
3594         [BZ #13738]
3595         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
3596         * manual/fdl-1.3.texi: New file.
3597         * manual/fdl-1.1.texi: File removed.
3598
3599         [BZ #13738]
3600         * manual/libc.texinfo (FDL_VERSION): New @set.
3601         Use it for mention of FDL in cover text.
3602         (Documentation License): Use it in @include file name.
3603
3604 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3605             Roland McGrath  <roland@hack.frob.com>
3606
3607         [BZ #5461]
3608         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
3609         not LONG_LONG_MAX and LONG_LONG_MIN.
3610         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
3611         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
3612         name.
3613         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
3614
3615 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3616
3617         [BZ #2547]
3618         [BZ #11365]
3619         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
3620         manipulate bits before adding and subtracting TWO23[sx].
3621         * math/libm-test.inc (nearbyint_test): Add more tests.
3622
3623 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3624
3625         [BZ #2548]
3626         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
3627         bits before adding and subtracting TWO23[sx].
3628         * math/libm-test.inc (rint_test): Add more tests.
3629         (rint_test_tonearest): Likewise.
3630         (rint_test_towardzero): Likewise.
3631         (rint_test_downward): Likewise.
3632         (rint_test_upward: Likewise.
3633
3634 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3635
3636         [BZ #10110]
3637         * include/stdc-predef.h: New file.  Extracted from features.h.
3638         * include/features.h: Include stdc-predef.h.
3639         * Makefile (headers): Add stdc-predef.h.
3640         * CONFORMANCE (Compiler limitations): Update.
3641
3642 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
3643
3644         * manual/libc.texinfo (VERSION, UPDATED): Revert.
3645
3646 2012-02-21  David S. Miller  <davem@davemloft.net>
3647
3648         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
3649         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
3650
3651 2012-02-20  David S. Miller  <davem@davemloft.net>
3652
3653         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
3654         using a normal save/restore sequence, rather than allocating a
3655         dummy stack frame just to store a frame pointer and restore.
3656         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3657
3658 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3659
3660         * manual/install.texi: Fix stray word in line-wrapped comment.
3661
3662 2012-02-20  David S. Miller  <davem@davemloft.net>
3663
3664         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
3665         both binutils and gcc support GOTDATA.
3666
3667         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
3668         "rd %pc" in the PIC register setup sequences.
3669
3670         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
3671         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
3672         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
3673         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
3674         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
3675         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
3676         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
3677         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
3678         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
3679         (SYSCALL_ERROR_HANDLER): Likewise.
3680         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
3681         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
3682         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
3683         (SYSCALL_ERROR_HANDLER): Likewise.
3684
3685         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
3686         (HAVE_GCC_GOTDATA): New.
3687         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
3688         relocation support in both binutils and gcc.
3689         * sysdeps/sparc/elf/configure: Regenerate.
3690
3691         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
3692         * sysdeps/sparc/sparc32/elf/configure: Delete.
3693         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
3694         * sysdeps/sparc/sparc64/elf/configure: Delete.
3695         * sysdeps/sparc/elf/configure.in: New file.
3696         * sysdeps/sparc/elf/configure: Generate.
3697
3698         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
3699         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
3700         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
3701         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
3702         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
3703
3704 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3705
3706         * manual/install.texi: Do not mention specific glibc version
3707         numbers.
3708         * manual/libc.texinfo (VERSION, UPDATED): Update.
3709         (@copying): Use @copyright{} and range of years.
3710
3711 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
3712
3713         [BZ #13695]
3714         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
3715         [crti.S not in sysdirs] (generated): Do not append.
3716         [crti.S not in sysdirs] (omit-deps): Likewise.
3717         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
3718         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
3719         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
3720         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
3721         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
3722         Likewise.
3723         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
3724         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
3725         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
3726         * csu/defs.awk: Remove file.
3727         * sysdeps/generic/initfini.c: Likewise.
3728         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
3729         variable.
3730         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
3731         Likewise.
3732
3733 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3734
3735         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
3736         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
3737         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
3738         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
3739         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
3740         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
3741         <bits/epoll.h>.
3742         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
3743         (__EPOLL_PACKED): Define to empty if not defined by
3744         <bits/epoll.h>.
3745         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
3746         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3747         bits/epoll.h.
3748
3749 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3750
3751         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
3752         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
3753         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
3754         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
3755         <bits/timerfd.h>.
3756         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
3757         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3758         bits/timerfd.h.
3759
3760 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
3761
3762         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
3763         in C locale.
3764         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3765         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
3766         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
3767         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3768
3769 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
3770
3771         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
3772         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
3773
3774 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
3775
3776         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
3777         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
3778         defined.
3779         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
3780         Likewise.
3781         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
3782         entry for 2.16.
3783
3784 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
3785
3786         * math/w_acos.c: Use non-signaling floating-point comparisons.
3787         * math/w_acosf.c: Likewise.
3788         * math/w_acosh.c: Likewise.
3789         * math/w_acoshf.c: Likewise.
3790         * math/w_acoshl.c: Likewise.
3791         * math/w_acosl.c: Likewise.
3792         * math/w_asin.c: Likewise.
3793         * math/w_asinf.c: Likewise.
3794         * math/w_asinl.c: Likewise.
3795         * math/w_atanh.c: Likewise.
3796         * math/w_atanhf.c: Likewise.
3797         * math/w_atanhl.c: Likewise.
3798         * math/w_exp2.c: Likewise.
3799         * math/w_exp2f.c: Likewise.
3800         * math/w_exp2l.c: Likewise.
3801         * math/w_j0.c: Likewise.
3802         * math/w_j0f.c: Likewise.
3803         * math/w_j0l.c: Likewise.
3804         * math/w_j1.c: Likewise.
3805         * math/w_j1f.c: Likewise.
3806         * math/w_j1l.c: Likewise.
3807         * math/w_jn.c: Likewise.
3808         * math/w_jnf.c: Likewise.
3809         * math/w_log.c: Likewise.
3810         * math/w_log10.c: Likewise.
3811         * math/w_log10f.c: Likewise.
3812         * math/w_log10l.c: Likewise.
3813         * math/w_log2.c: Likewise.
3814         * math/w_log2f.c: Likewise.
3815         * math/w_log2l.c: Likewise.
3816         * math/w_logf.c: Likewise.
3817         * math/w_logl.c: Likewise.
3818         * math/w_sqrt.c: Likewise.
3819         * math/w_sqrtf.c: Likewise.
3820         * math/w_sqrtl.c: Likewise.
3821         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
3822         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
3823         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
3824         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
3825         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
3826
3827 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3828
3829         [BZ #9739]
3830         * manual/string.texi (strnlen): Use correct parameter name in
3831         equivalent expression.
3832
3833 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3834
3835         [BZ #11174]
3836         * manual/users.texi (seteuid): Consistently use neweuid for
3837         argument name.
3838
3839 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
3840
3841         [BZ #13704]
3842         * manual/nss.texi (Services in the NSS configuration): Correct
3843         list of services in example configuration file.
3844
3845 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
3846
3847         [BZ #11322]
3848         * manual/arith.texi: Remove statements about negative zero
3849         behaving identically to zero.
3850
3851 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
3852
3853         [BZ #5993]
3854         * manual/install.texi: Do not document upgrading from libc5.
3855
3856 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
3857
3858         [BZ #4596]
3859         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
3860
3861 2012-02-18  David S. Miller  <davem@davemloft.net>
3862
3863         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
3864         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
3865         %o7 across the call.
3866         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
3867         instead.
3868         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
3869         SETUP_PIC_REG_LEAF.
3870         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3871         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
3872         * sysdeps/sparc/crtn.S: Likewise.
3873
3874 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
3875
3876         * aout/Makefile: Remove.
3877
3878 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
3879
3880         [BZ #13058]
3881         * manual/examples/argp-ex1.c (main): Format definition in GNU
3882         style.
3883         * manual/examples/argp-ex2.c (main): Likewise.
3884         * manual/examples/argp-ex3.c (main): Likewise.
3885         * manual/examples/argp-ex4.c (main): Likewise.
3886         * manual/examples/longopt.c (main): Use new-style prototype
3887         definition.
3888         * manual/examples/strncat.c (main): Specify return type and use
3889         (void) for arguments.
3890         * manual/examples/subopt.c (main): Use char **argv argument.
3891
3892 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3893
3894         [BZ #5077]
3895         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
3896         rounding modes.
3897
3898 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
3899
3900         [BZ #6907]
3901         * manual/string.texi (strchr): Change when strchrnul is
3902         recommended.
3903
3904 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
3905
3906         [BZ #174]
3907         * manual/locale.texi (setlocale): Document LOCPATH.
3908
3909 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3910
3911         [BZ #10210]
3912         * manual/process.texi (execle): Move @dots{} before last argument.
3913
3914 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
3915
3916         [BZ #12047]
3917         * manual/charset.texi (Generic Charset Conversion): Fix typo
3918         (LC_TYPE -> LC_CTYPE).
3919
3920 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
3921
3922         [BZ #5805]
3923         * manual/arith.texi (scalbn): Use @var{} on parameter names.
3924         (scalbnf): Likewise.
3925         (scalbnl): Likewise.
3926         (scalbln): Likewise.
3927         (scalblnf): Likewise.
3928         (scalblnl): Likewise.
3929         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
3930         (vwarnx): Likewise.
3931         (verr): Likewise.
3932         (verrx): Likewise.
3933         * manual/filesys.texi (telldir): Use braces around return type.
3934         * manual/llio.texi (mmap): Add space after comma.
3935         (mmap64): Likewise.
3936         * manual/math.texi (jn): Use @var{} on parameter names.
3937         (jnf): Likewise.
3938         (jnl): Likewise.
3939         (yn): Likewise.
3940         (ynf): Likewise.
3941         (ynl): Likewise.
3942         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
3943         line.
3944         * manual/resource.texi (ulimit): Use @dots{} instead of literal
3945         "...".
3946         (sched_get_priority_min): Remove semicolon on @deftypefun line.
3947         (sched_get_priority_max): Likewise.
3948         * manual/signal.texi (sigvec): Add space after comma.
3949         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
3950         names.
3951         (if_indextoname): Likewise.
3952         (if_freenameindex): Likewise.
3953         (sendto): Use ',' instead of '.' in prototype.
3954         * manual/startup.texi (syscall): Use @dots{} instead of literal
3955         "...".
3956         * manual/stdio.texi (__fpending): Separate initial words of
3957         paragraph from @deftypefun line.
3958         * manual/syslog.texi (syslog): Use @dots{} instead of literal
3959         "...".
3960         (vsyslog): Use @var{} on parameter names.
3961         * manual/terminal.texi (stty): Use @var{} on parameter names.
3962         * manual/users.texi (getutmp): Use @var{} on parameter names.
3963         (getutmpx): Likewise.
3964
3965 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3966
3967         [BZ #6884]
3968         * manual/stdio.texi (fopen): Fix typos in description of
3969         ",ccs=STRING".
3970
3971 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
3972
3973         [BZ #4026]
3974         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
3975         get clock_id definition.
3976
3977 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
3978
3979         [BZ #4822]
3980         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
3981         (madvise): Cast every argument to void on its own.
3982
3983 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3984
3985         [BZ #9902]
3986         * manual/startup.texi (Exit Status): Fix typo.
3987
3988 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
3989
3990         [BZ #10140]
3991         * manual/examples/argp-ex1.c: Include <stdlib.h>.
3992         * manual/examples/argp-ex2.c: Likewise.
3993         * manual/examples/argp-ex3.c: Likewise.
3994
3995 2012-02-16  Richard Henderson  <rth@redhat.com>
3996
3997         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
3998         * sysdeps/s390/s390-32/initfini.c: Remove.
3999         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
4000         * sysdeps/s390/s390-64/initfini.c: Remove.
4001
4002 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
4003
4004         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
4005         compiler output for sysdeps/generic/initfini.c.
4006         * sysdeps/sh/elf/initfini.c: Remove file.
4007
4008 2012-02-16  David S. Miller  <davem@davemloft.net>
4009
4010         [BZ #11494]
4011         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
4012
4013         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
4014         * sysdeps/sparc/crti.S: New file.
4015         * sysdeps/sparc/crtn.S: New file.
4016         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
4017         * sysdeps/sparc/sparc64/Makefile: Likewise.
4018
4019 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
4020
4021         [BZ #3335]
4022         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
4023
4024 2012-02-15  Roland McGrath  <roland@hack.frob.com>
4025
4026         [BZ #4822]
4027         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
4028
4029         * mach/devstream.c (cookie_io_functions_t): Macro removed.
4030         (write, read, close): Likewise.
4031         Patch by Aurelien Jarno <aurelien@aurel32.net>.
4032
4033 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
4034
4035         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
4036         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
4037         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
4038         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
4039         <bits/signalfd.h>.
4040         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
4041         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4042         bits/signalfd.h.
4043
4044 2012-02-14  Marek Polacek  <polacek@redhat.com>
4045
4046         * sysdeps/x86_64/crti.S: New file.
4047         * sysdeps/x86_64/crtn.S: New file.
4048         * sysdeps/x86_64/elf/initfini.c: Remove file.
4049
4050 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
4051
4052         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
4053         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
4054         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
4055         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
4056         <bits/inotify.h>.
4057         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
4058         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4059         bits/inotify.h.
4060
4061 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
4062
4063         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
4064         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
4065         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
4066         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
4067         <bits/eventfd.h>.
4068         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
4069         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
4070         bits/eventfd.h.
4071
4072 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
4073
4074         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
4075         __feraiseexcept instead of feraiseexcept.
4076
4077         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
4078         nanosleep invocations.
4079         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
4080         strings, and add error checking for a nanosleep invocations.
4081
4082 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
4083
4084         Replace FSF snail mail address with URLs, as per GNU coding standards.
4085         Most of the snail mail addresses were wrong anyway, and omitting
4086         them makes the source code easier to maintain.  Almost all of the
4087         changes are to license notices and to locale LC_IDENTIFICATION
4088         addresses, except for this one:
4089         * manual/libc.texinfo: In "Published by", give the FSF's URL,
4090         not its snail mail address.
4091
4092 2012-02-09  Richard Henderson  <rth@twiddle.net>
4093
4094         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
4095         of kernel-features.h.
4096
4097         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
4098
4099 2012-02-08  Marek Polacek  <polacek@redhat.com>
4100
4101         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
4102         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
4103         * sysdeps/gnu/_G_config.h: Likewise.
4104         * sysdeps/generic/_G_config.h: Likewise.
4105
4106 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
4107
4108         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
4109         tests.
4110         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4111
4112         * sysdeps/powerpc/powerpc32/crti.S: New file.
4113         * sysdeps/powerpc/powerpc32/crtn.S: New file.
4114         * sysdeps/powerpc/powerpc64/crti.S: New file.
4115         * sysdeps/powerpc/powerpc64/crtn.S: New file.
4116
4117         * Makeconfig (have-initfini): Don't set.
4118         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
4119         * configure.in (nopic_initfini): Don't substitute.
4120         * config.h.in (HAVE_INITFINI): Don't #undef.
4121         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
4122         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
4123
4124 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
4125
4126         Support crti.S and crtn.S provided directly by architectures.
4127         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
4128         [crti.S in sysdirs] (omit-deps): Likewise.
4129         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
4130         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
4131         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
4132         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
4133         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
4134         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
4135         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
4136         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
4137         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
4138         compiler output for sysdeps/generic/initfini.c.
4139         * sysdeps/i386/elf/Makefile: Remove file.
4140         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
4141
4142 2012-02-07  Marek Polacek  <polacek@redhat.com>
4143
4144         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
4145         * sysdeps/gnu/_G_config.h: Likewise.
4146         * sysdeps/mach/hurd/_G_config.h: Likewise.
4147
4148 2012-02-07  Marek Polacek  <polacek@redhat.com>
4149
4150         * math/Makefile (tests): Add tst-CMPLX2.
4151         * math/tst-CMPLX2.c: New file.
4152
4153 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
4154
4155         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
4156
4157         * math/libm-test.inc (jn_test): Add missing L suffix.
4158
4159 2012-02-06  Marek Polacek  <polacek@redhat.com>
4160
4161         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
4162         * sysdeps/i386/fpu/e_powf.S: Likewise.
4163         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
4164         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
4165         * sysdeps/i386/fpu/e_acosh.S: Likewise.
4166         * sysdeps/i386/fpu/e_pow.S: Likewise.
4167         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
4168         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
4169         * sysdeps/i386/fpu/s_expm1.S: Likewise.
4170         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
4171         * sysdeps/i386/fpu/e_log2.S: Likewise.
4172         * sysdeps/i386/fpu/e_log2l.S: Likewise.
4173         * sysdeps/i386/fpu/e_scalb.S: Likewise.
4174         * sysdeps/i386/fpu/e_powl.S: Likewise.
4175         * sysdeps/i386/fpu/s_log1p.S: Likewise.
4176         * sysdeps/i386/fpu/e_log10f.S: Likewise.
4177         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
4178         * sysdeps/i386/fpu/e_logl.S: Likewise.
4179         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
4180         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
4181         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
4182         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
4183         * sysdeps/i386/fpu/e_log2f.S: Likewise.
4184         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
4185         * sysdeps/i386/fpu/e_log.S: Likewise.
4186         * sysdeps/i386/fpu/s_cexp.S: Likewise.
4187         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
4188         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
4189         * sysdeps/i386/fpu/e_logf.S: Likewise.
4190         * sysdeps/i386/fpu/e_log10l.S: Likewise.
4191         * sysdeps/i386/fpu/e_atanh.S: Likewise.
4192         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
4193         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
4194         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
4195         * sysdeps/i386/fpu/e_log10.S: Likewise.
4196         * sysdeps/i386/fpu/s_frexp.S: Likewise.
4197         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
4198         * sysdeps/i386/fpu/s_asinh.S: Likewise.
4199         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
4200         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
4201         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
4202         * sysdeps/i386/asm-syntax.h: Likewise.
4203         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
4204         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4205         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
4206         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
4207         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
4208         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
4209         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
4210         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
4211         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
4212         * sysdeps/powerpc/sysdep.h: Likewise.
4213         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
4214         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
4215
4216 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
4217
4218         [BZ #411]
4219         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
4220
4221 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
4222
4223         * sysdeps/i386/sysdep.h: Include <features.h>.
4224         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
4225         version.
4226
4227 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
4228
4229         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
4230         Define.
4231         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
4232         LOAD_PIC_REG_STR.
4233
4234 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4235
4236         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
4237         (SETUP_PIC_REG): Use GET_PC_THUNK.
4238         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
4239         macro.
4240
4241 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4242
4243         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
4244         for non-PIC compilation.
4245         (SETUP_PIC_REG): Add .p2align directive.
4246         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
4247         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
4248         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
4249         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
4250         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
4251         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
4252         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
4253         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
4254         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
4255         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
4256         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
4257         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
4258         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
4259         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
4260         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
4261         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
4262         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
4263         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
4264         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
4265         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
4266         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
4267         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
4268         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
4269         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
4270         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
4271         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
4272         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
4273         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
4274         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
4275         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
4276         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
4277         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
4278         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
4279         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
4280         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
4281         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
4282         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
4283         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
4284         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
4285         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
4286         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
4287
4288 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
4289
4290         * math/tst-CMPLX.c: Include <stdio.h>.
4291
4292 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
4293
4294         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
4295         float.
4296         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
4297         * sysdeps/sparc/bits/mathdef.h: Likewise.
4298
4299 2012-01-31  Marek Polacek  <polacek@redhat.com>
4300
4301         * libio/libio.h: Don't define _PARAMS.
4302         * locale/programs/config.h: Don't define PARAMS.
4303         * stdlib/strtol_l.c: Likewise.
4304         (__strtol_l): Remove PARAMS from the prototype.
4305
4306 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
4307
4308         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
4309         names.  Just use the correct names.  Remove unnecessary wrapper
4310         functions.
4311         * malloc/arena.c: Likewise.
4312         * malloc/hooks.c: Likewise.
4313
4314         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
4315         ARENA_TEST says not to.  Simplify test for creation of a new arena.
4316         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
4317
4318 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
4319
4320         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
4321         into tail calls.
4322         (update_get_addr): New function.
4323         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
4324         GET_ADDR_MODULE parameter.
4325
4326 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
4327
4328         * crypt/cert.c: Remove __STDC__ conditionals.
4329         * crypt/crypt-entry.c: Likewise.
4330         * crypt/crypt_util.c: Likewise.
4331         * libio/filedoalloc.c: Likewise.
4332         * libio/fileops.c: Likewise.
4333         * libio/genops.c: Likewise.
4334         * libio/iofclose.c: Likewise.
4335         * libio/iofdopen.c: Likewise.
4336         * libio/iofopen.c: Likewise.
4337         * libio/iofopen64.c: Likewise.
4338         * libio/iogetdelim.c: Likewise.
4339         * libio/iopopen.c: Likewise.
4340         * libio/obprintf.c: Likewise.
4341         * libio/oldfileops.c: Likewise.
4342         * libio/oldiofclose.c: Likewise.
4343         * libio/oldiofdopen.c: Likewise.
4344         * libio/oldiofopen.c: Likewise.
4345         * libio/oldiopopen.c: Likewise.
4346         * libio/wfiledoalloc.c: Likewise.
4347         * libio/wgenops.c: Likewise.
4348         * locale/programs/xmalloc.c: Likewise.
4349         * misc/syslog.c: Likewise.
4350         * stdio-common/xbug.c: Likewise.
4351         * string/memchr.c: Likewise.
4352         * string/memcmp.c: Likewise.
4353         * string/memrchr.c: Likewise.
4354         * string/rawmemchr.c: Likewise.
4355         * sysdeps/posix/getcwd.c: Likewise.
4356         * time/strftime_l.c: Likewise.
4357
4358 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
4359
4360         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
4361         * config.make.in (config-cflags-sse2avx): Define.
4362         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
4363         Fix typo.
4364
4365 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
4366
4367         * scripts/config.guess: Update from upstream config git repository.
4368         * scripts/config.sub: Likewise.
4369
4370 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
4371
4372         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
4373         (EM_NUM): Update.
4374         (R_TILEPRO_*, R_TILEGX_*): New macros.
4375
4376         * scripts/firstversions.awk: Fix bug in version range handling.
4377
4378         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
4379
4380         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
4381
4382         * include/sys/epoll.h: New file.
4383         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
4384         libc_hidden_def.
4385
4386 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
4387
4388         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
4389         Avoid unnecessary __WORDSIZE == 64 test.
4390         (fmaxf): Use VEX format if possible.
4391         (fmax): Likewise.
4392         (fminf): Likewise.
4393         (fmin): Likewise.
4394
4395         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
4396         * math/math_private.h: Remove libc_fegetround* and
4397         libc_fesetround*.
4398         * sysdeps/i386/configure.in: Check for -msse2avx.
4399         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
4400         also if SSE2AVX is defined.
4401         Remove libc_fegetround* and libc_fesetround*.
4402         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
4403         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
4404         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
4405         of HAS_YMM_USABLE.
4406         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4407         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4408         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4409         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4410         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4411
4412         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
4413
4414 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4415
4416         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
4417         size is not set.
4418         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
4419
4420 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
4421
4422         [BZ #13618]
4423         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
4424         relocation.
4425         * Makeconfig (libm): Define.
4426         * elf/Makefile: Add rules to build and run tst-relsort1.
4427         * elf/tst-relsort1.c: New file.
4428         * elf/tst-relsort1mod1.c: New file.
4429         * elf/tst-relsort1mod2.c: New file.
4430
4431 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
4432
4433         * math/s_ldexp.c: Remove __STDC__ conditionals.
4434         * math/s_ldexpf.c: Likewise.
4435         * math/s_ldexpl.c: Likewise.
4436         * math/s_nextafter.c: Likewise.
4437         * math/s_nexttowardf.c: Likewise.
4438         * math/s_significand.c: Likewise.
4439         * math/s_significandf.c: Likewise.
4440         * math/s_significandl.c: Likewise.
4441         * math/w_jnl.c: Likewise.
4442         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
4443         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
4444         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
4445         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
4446         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
4447         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4448         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
4449         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
4450         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
4451         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
4452         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
4453         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
4454         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
4455         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
4456         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
4457         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
4458         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
4459         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
4460         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
4461         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
4462         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
4463         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
4464         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
4465         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4466         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4467         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
4468         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
4469         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
4470         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
4471         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4472         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
4473         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
4474         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
4475         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
4476         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
4477         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
4478         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
4479         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
4480         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
4481         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
4482         * sysdeps/ieee754/k_standard.c: Likewise.
4483         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
4484         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4485         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
4486         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
4487         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
4488         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
4489         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4490         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
4491         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
4492         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
4493         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
4494         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
4495         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
4496         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
4497         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
4498         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
4499         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
4500         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
4501         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
4502         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
4503         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4504         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4505         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
4506         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
4507         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4508         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
4509         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
4510         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
4511         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
4512         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
4513         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
4514         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
4515         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
4516         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
4517         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
4518         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
4519         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
4520         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
4521         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
4522         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
4523         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
4524         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
4525         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
4526         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
4527         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
4528         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
4529         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
4530         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
4531         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
4532         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
4533         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
4534         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
4535         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
4536         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
4537         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
4538         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
4539         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
4540         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
4541         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
4542         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
4543         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
4544         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
4545         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
4546         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
4547         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
4548         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
4549         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
4550         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
4551         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
4552         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
4553         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
4554         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
4555         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
4556         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
4557         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
4558         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
4559         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
4560         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
4561         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
4562         * sysdeps/ieee754/s_matherr.c: Likewise.
4563         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
4564         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
4565         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
4566         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
4567
4568 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
4569
4570         * crypt/md5.h: Remove __STDC__ conditionals.
4571         * libio/libioP.h: Likewise.
4572         * locale/programs/config.h: Likewise.
4573         * sysdeps/generic/sysdep.h: Likewise.
4574         * sysdeps/i386/asm-syntax.h: Likewise.
4575         * sysdeps/s390/asm-syntax.h: Likewise.
4576         * sysdeps/unix/sysdep.h: Likewise.
4577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
4578         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4579
4580 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
4581
4582         * libio/libio.h: Remove __STDC__ conditionals.
4583         * malloc/obstack.h: Likewise.
4584         * math/complex.h: Likewise.
4585         * math/math.h: Likewise.
4586         * sysdeps/generic/_G_config.h: Likewise.
4587         * sysdeps/gnu/_G_config.h: Likewise.
4588         * sysdeps/mach/hurd/_G_config.h: Likewise.
4589         * sysdeps/powerpc/bits/mathdef.h: Likewise.
4590         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
4591         * sysdeps/sparc/bits/mathdef.h: Likewise.
4592
4593 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
4594
4595         [BZ #13583]
4596         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
4597         Clean up HAS_* macros.
4598         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
4599         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
4600         possible.
4601         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
4602         HAS_AVX.
4603         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
4604         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
4605         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
4606         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
4607         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
4608
4609 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
4610
4611         * elf/tst-unique3.cc (gets): Remove declaration.
4612         * elf/tst-unique3lib.cc (gets): Likewise.
4613         * elf/tst-unique3lib2.cc (gets): Likewise.
4614         * elf/tst-unique4.cc (gets): Likewise.
4615
4616 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
4617
4618         * include/stdio.h: Add C++ protection.  Add gets declarations and
4619         definitions.
4620         * debug/tst-chk1.c: Don't declare gets here.
4621         * stdio-common/tst-gets.c: Likewise.
4622
4623 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
4624
4625         * posix/glob: Remove directory.
4626
4627 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
4628
4629         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
4630
4631 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
4632
4633         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
4634         of the non-standard EPFNOSUPPORT.
4635
4636 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4637
4638         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
4639         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
4640         ANYWHERE set to 1 only on KERN_NO_SPACE error.
4641
4642 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
4643
4644         * wcsmbs/uchar.h: Test __STDC_VERSION__.
4645
4646 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
4647
4648         * nscd/aicache.c (addhstaiX): Do not cache negative results of
4649         transient errors.
4650         * nscd/grpcache.c (cache_addgr): Likewise.
4651         * nscd/hstcache.c (cache_addhst): Likewise.
4652         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4653         * nscd/pwdcache.c (cache_addpw): Likewise.
4654         * nscd/servicescache.c (cache_addserv): Likewise.
4655
4656 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
4657
4658         * malloc/malloc.c: Various cleanups.
4659         * malloc/hooks.c: Likewise.
4660
4661         * stdlib/Makefile (tests): Add bug-fmtmsg1.
4662         * stdlib/bug-fmtmsg1.c: New file.
4663
4664         * stdlib/fmtmsg.c (init): Add missing unlock.
4665         Patch by Peng Haitao <penght@cn.fujitsu.com>.
4666
4667 2012-01-12  Marek Polacek  <polacek@redhat.com>
4668
4669         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
4670         and _GNU_SOURCE.
4671
4672 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
4673
4674         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
4675         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
4676         macro to ensure uniqueness of label name.
4677         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
4678         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
4679
4680 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
4681
4682         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
4683
4684         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
4685         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
4686         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
4687         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
4688
4689 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
4690
4691         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
4692
4693         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
4694         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
4695         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
4696
4697         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
4698
4699         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
4700         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
4701         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
4702         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
4703
4704         * math/bits/math-finite.h: Add ldexp support.
4705
4706 2012-01-10  Marek Polacek  <polacek@redhat.com>
4707
4708         * locale/programs/localedef.h (show_archive_content): Add noreturn
4709         attribute.
4710
4711 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
4712
4713         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
4714
4715 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4716
4717         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
4718
4719         * io/Makefile (headers): Add bits/poll2.h.
4720
4721 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
4722
4723         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
4724         typo #include statement.
4725
4726 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4727
4728         * include/sys/cdefs.h: Define __attribute_alloc_size.
4729         * catgets/gencat.c: Add alloc_size attribute and apply consistently
4730         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
4731         * elf/pldd.c: Likewise.
4732         * iconv/iconv_charmap.c: Likewise.
4733         * iconv/iconvconfig.c: Likewise.
4734         * iconv/strtab.c: Likewise.
4735         * locale/programs/locale.c: Likewise.
4736         * locale/programs/localedef.h: Likewise.
4737         * locale/programs/simple-hash.c: Likewise.
4738         * nscd/nscd.h: Likewise.
4739         * nss/makedb.c: Likewise.
4740         * sysdeps/generic/ldconfig.h: Likewise.
4741         * locale/programs/localedef.c: Remove xmalloc prototype.
4742         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
4743
4744 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
4745
4746         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
4747         appropriate.
4748
4749 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
4750
4751         * math/Makefile (tests): Add tst-CMPLX.
4752         * math/tst-CMPLX.c: New file.
4753
4754         * math/complex.h (CMPLXL): Fix typo.
4755
4756         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
4757         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
4758         GLIBC_2.16.
4759         * debug/tst-chk1.c: Add poll and ppoll tests.
4760         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
4761         * include/sys/poll.h: Add hidden proto for ppoll.
4762         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
4763         * sysdeps/mach/hurd/ppoll.c: Likewise.
4764         * io/ppoll.c: Likewise.
4765         * debug/poll_chk.c: New file.
4766         * debug/ppoll_chk.c: New file.
4767         * include/bits/poll2.h: New file.
4768         * io/bits/poll2.h: New file.
4769
4770         [BZ #1350]
4771         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
4772
4773         * configure.in: static is always set to yes.  Remove.
4774         * config.make.in: Don't set build-static.
4775         * Makeconfig: Remove use of build-static.
4776         * dlfcn/Makefile: Likewise.
4777         * elf/Makefile: Likewise.
4778         * math/Makefile: Likewise.
4779         * misc/Makefile: Likewise.
4780         * nptl/Makefile: Likewise.
4781         * sysdeps/mach/hurd/Makefile: Likewise.
4782
4783         * configure.in: PWD_P is not used anymore.
4784         * config.make.in: Remove PWD_P entry.
4785
4786         * configure.in: Remove last remnants of RANLIB.
4787         No need to check for signed size_t anymore.
4788         Don't set libc_commonpagesize and libc_relro_required here for Alpha
4789         and IA-64.
4790         Remove __builtin_expect test because we require at least gcc 3.4.
4791         * aclocal.m4: Likewise.
4792
4793         * wcsmbs/mbrtoc16.c: Implement using towc function.
4794         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
4795         * wcsmbs/wcsmbsload.c: Likewise.
4796         * iconv/gconv_simple.c: Likewise.
4797         * iconv/gconv_int.h: Likewise.
4798         * iconv/gconv_builtin.h: Likewise.
4799         * iconv/iconv_prog.c: Remove CHAR16 handling.
4800
4801         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
4802
4803         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
4804
4805         * configure.in: Remove --with-elf and --enable-bounded options.
4806         Dont set base_machine for ia64.  More non-ELF conditions removed.
4807         Remove testing and setting of leading underscore information.
4808         * config.make.in (build-bounded): Set to no.
4809         * config.h.in: Remove NO_UNDERSCORES entry.
4810         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
4811         them.
4812         * csu/start.c: Remove !NO_UNDERSCORE code.
4813         * locale/localeinfo.h: Likewise.
4814         * sysdeps/generic/machine-gmon.h: Likewise.
4815         * sysdeps/generic/sysdep.h: Likewise.
4816         * sysdeps/i386/sysdep.h: Likewise.
4817         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
4818         * sysdeps/mach/sysdep.h: Likewise.
4819         * sysdeps/s390/s390-32/sysdep.h: Likewise.
4820         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4821         * sysdeps/sh/sysdep.h: Likewise.
4822         * sysdeps/sparc/sparc32/alloca.S: Likewise.
4823         * sysdeps/unix/i386/sysdep.S: Likewise.
4824         * sysdeps/unix/sparc/start.c: Likewise.
4825         * sysdeps/unix/sparc/sysdep.S: Likewise.
4826         * sysdeps/unix/sparc/sysdep.h: Likewise.
4827         * sysdeps/unix/start.c: Likewise.
4828         * sysdeps/unix/x86_64/sysdep.S: Likewise.
4829         * sysdeps/x86_64/sysdep.h: Likewise.
4830
4831 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
4832
4833         [BZ #13553]
4834         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
4835         for non-gcc.
4836         * argp/argp-fmtstream.h: Use const instead __const.
4837         * argp/argp.h: Likewise.
4838         * assert/assert.h: Likewise.
4839         * bits/fenv.h: Likewise.
4840         * bits/sched.h: Likewise.
4841         * bits/sigset.h: Likewise.
4842         * bits/sigthread.h: Likewise.
4843         * catgets/nl_types.h: Likewise.
4844         * conform/data/pthread.h-data: Likewise.
4845         * crypt/crypt-private.h: Likewise.
4846         * crypt/crypt.h: Likewise.
4847         * crypt/crypt_util.c: Likewise.
4848         * ctype/ctype.h: Likewise.
4849         * debug/execinfo.h: Likewise.
4850         * debug/mbsnrtowcs_chk.c: Likewise.
4851         * debug/mbsrtowcs_chk.c: Likewise.
4852         * debug/wcsnrtombs_chk.c: Likewise.
4853         * debug/wcsrtombs_chk.c: Likewise.
4854         * debug/wcstombs_chk.c: Likewise.
4855         * dirent/dirent.h: Likewise.
4856         * dlfcn/dlfcn.h: Likewise.
4857         * elf/neededtest4.c: Likewise.
4858         * grp/grp.h: Likewise.
4859         * gshadow/gshadow.h: Likewise.
4860         * iconv/gconv.h: Likewise.
4861         * iconv/gconv_int.h: Likewise.
4862         * iconv/gconv_simple.c: Likewise.
4863         * iconv/iconv.h: Likewise.
4864         * iconv/loop.c: Likewise.
4865         * iconv/skeleton.c: Likewise.
4866         * include/aio.h: Likewise.
4867         * include/aliases.h: Likewise.
4868         * include/argz.h: Likewise.
4869         * include/arpa/inet.h: Likewise.
4870         * include/assert.h: Likewise.
4871         * include/dirent.h: Likewise.
4872         * include/dlfcn.h: Likewise.
4873         * include/execinfo.h: Likewise.
4874         * include/fcntl.h: Likewise.
4875         * include/fenv.h: Likewise.
4876         * include/glob.h: Likewise.
4877         * include/grp.h: Likewise.
4878         * include/libintl.h: Likewise.
4879         * include/mntent.h: Likewise.
4880         * include/netdb.h: Likewise.
4881         * include/pwd.h: Likewise.
4882         * include/rpc/netdb.h: Likewise.
4883         * include/sched.h: Likewise.
4884         * include/search.h: Likewise.
4885         * include/shadow.h: Likewise.
4886         * include/signal.h: Likewise.
4887         * include/stdio.h: Likewise.
4888         * include/stdlib.h: Likewise.
4889         * include/string.h: Likewise.
4890         * include/sys/socket.h: Likewise.
4891         * include/sys/stat.h: Likewise.
4892         * include/sys/statfs.h: Likewise.
4893         * include/sys/statvfs.h: Likewise.
4894         * include/sys/syslog.h: Likewise.
4895         * include/sys/time.h: Likewise.
4896         * include/sys/uio.h: Likewise.
4897         * include/time.h: Likewise.
4898         * include/unistd.h: Likewise.
4899         * include/utmp.h: Likewise.
4900         * include/wchar.h: Likewise.
4901         * include/wctype.h: Likewise.
4902         * inet/aliases.h: Likewise.
4903         * inet/arpa/inet.h: Likewise.
4904         * inet/netinet/ether.h: Likewise.
4905         * inet/netinet/in.h: Likewise.
4906         * intl/libintl.h: Likewise.
4907         * io/bits/fcntl2.h: Likewise.
4908         * io/fcntl.h: Likewise.
4909         * io/ftw.h: Likewise.
4910         * io/sys/poll.h: Likewise.
4911         * io/sys/stat.h: Likewise.
4912         * io/sys/statfs.h: Likewise.
4913         * io/sys/statvfs.h: Likewise.
4914         * io/utime.h: Likewise.
4915         * libio/bits/stdio.h: Likewise.
4916         * libio/bits/stdio2.h: Likewise.
4917         * libio/libio.h: Likewise.
4918         * libio/libioP.h: Likewise.
4919         * libio/stdio.h: Likewise.
4920         * locale/lc-ctype.c: Likewise.
4921         * locale/locale.h: Likewise.
4922         * login/utmp.h: Likewise.
4923         * malloc/arena.c: Likewise.
4924         * malloc/malloc.c: Likewise.
4925         * malloc/malloc.h: Likewise.
4926         * malloc/mcheck.c: Likewise.
4927         * malloc/mtrace.c: Likewise.
4928         * math/bits/mathcalls.h: Likewise.
4929         * math/fenv.h: Likewise.
4930         * math/math_private.h: Likewise.
4931         * misc/bits/error.h: Likewise.
4932         * misc/bits/syslog.h: Likewise.
4933         * misc/err.h: Likewise.
4934         * misc/error.h: Likewise.
4935         * misc/fstab.h: Likewise.
4936         * misc/mntent.h: Likewise.
4937         * misc/regexp.h: Likewise.
4938         * misc/search.h: Likewise.
4939         * misc/sgtty.h: Likewise.
4940         * misc/sys/mman.h: Likewise.
4941         * misc/sys/syslog.h: Likewise.
4942         * misc/sys/uio.h: Likewise.
4943         * misc/sys/xattr.h: Likewise.
4944         * misc/ttyent.h: Likewise.
4945         * nis/rpcsvc/ypclnt.h: Likewise.
4946         * nss/nss.h: Likewise.
4947         * posix/bits/unistd.h: Likewise.
4948         * posix/fnmatch.h: Likewise.
4949         * posix/glob.h: Likewise.
4950         * posix/sched.h: Likewise.
4951         * posix/spawn.h: Likewise.
4952         * posix/sys/wait.h: Likewise.
4953         * posix/unistd.h: Likewise.
4954         * posix/wordexp.h: Likewise.
4955         * pwd/pwd.h: Likewise.
4956         * resolv/netdb.h: Likewise.
4957         * resource/sys/resource.h: Likewise.
4958         * rt/aio.h: Likewise.
4959         * rt/bits/mqueue2.h: Likewise.
4960         * rt/mqueue.h: Likewise.
4961         * shadow/shadow.h: Likewise.
4962         * signal/signal.h: Likewise.
4963         * socket/send.c: Likewise.
4964         * socket/sendto.c: Likewise.
4965         * socket/sys/socket.h: Likewise.
4966         * stdio-common/printf.h: Likewise.
4967         * stdlib/bits/stdlib.h: Likewise.
4968         * stdlib/fmtmsg.h: Likewise.
4969         * stdlib/monetary.h: Likewise.
4970         * stdlib/stdlib.h: Likewise.
4971         * stdlib/ucontext.h: Likewise.
4972         * streams/stropts.h: Likewise.
4973         * string/argz.h: Likewise.
4974         * string/bits/string2.h: Likewise.
4975         * string/string.h: Likewise.
4976         * string/strings.h: Likewise.
4977         * sunrpc/rpc/auth.h: Likewise.
4978         * sunrpc/rpc/auth_des.h: Likewise.
4979         * sunrpc/rpc/clnt.h: Likewise.
4980         * sunrpc/rpc/netdb.h: Likewise.
4981         * sunrpc/rpc/pmap_clnt.h: Likewise.
4982         * sunrpc/rpc/xdr.h: Likewise.
4983         * sysdeps/generic/inttypes.h: Likewise.
4984         * sysdeps/generic/net/if.h: Likewise.
4985         * sysdeps/generic/sys/swap.h: Likewise.
4986         * sysdeps/gnu/net/if.h: Likewise.
4987         * sysdeps/gnu/utmpx.h: Likewise.
4988         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
4989         * sysdeps/i386/i486/bits/string.h: Likewise.
4990         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
4991         * sysdeps/s390/bits/string.h: Likewise.
4992         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
4993         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
4994         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
4995         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
4996         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
4997         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
4998         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
4999         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
5000         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
5001         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
5002         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
5003         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
5004         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
5005         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
5006         * sysdeps/unix/sysv/linux/readv.c: Likewise.
5007         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
5008         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
5009         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
5010         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
5011         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5012         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
5013         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
5014         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
5015         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
5016         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
5017         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
5018         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
5019         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5020         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
5021         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
5022         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
5023         * sysvipc/sys/ipc.h: Likewise.
5024         * sysvipc/sys/msg.h: Likewise.
5025         * sysvipc/sys/sem.h: Likewise.
5026         * sysvipc/sys/shm.h: Likewise.
5027         * termios/termios.h: Likewise.
5028         * time/sys/time.h: Likewise.
5029         * time/time.h: Likewise.
5030         * wcsmbs/bits/wchar2.h: Likewise.
5031         * wcsmbs/uchar.h: Likewise.
5032         * wcsmbs/wchar.h: Likewise.
5033         * wctype/wctype.h: Likewise.
5034
5035         [BZ #13551]
5036         * Makeconfig: Remove all but ELF support including AIX support.
5037         * Makerules: Likewise.
5038         * config.h.in: Likewise.
5039         * config.make.in: Likewise.
5040         * configure: Likewise.
5041         * configure.in: Likewise.
5042         * csu/Makefile: Likewise.
5043         * csu/version.c: Likewise.
5044         * debug/Makefile: Likewise.
5045         * dlfcn/Makefile: Likewise.
5046         * elf/Makefile: Likewise.
5047         * extra-lib.mk: Likewise.
5048         * iconv/Makefile: Likewise.
5049         * include/libc-symbols.h: Likewise.
5050         * include/shlib-compat.h: Likewise.
5051         * resolv/Makefile: Likewise.
5052         * resolv/res_libc.c: Likewise.
5053         * rt/Makefile: Likewise.
5054         * sysdeps/i386/asm-syntax.h: Likewise.
5055         * sysdeps/i386/sysdep.h: Likewise.
5056         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
5057         * sysdeps/mach/sysdep.h: Likewise.
5058         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
5059         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
5060         * sysdeps/s390/asm-syntax.h: Likewise.
5061         * sysdeps/s390/s390-32/sysdep.h: Likewise.
5062         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5063         * sysdeps/sh/sysdep.h: Likewise.
5064         * sysdeps/unix/sparc/sysdep.h: Likewise.
5065         * sysdeps/wordsize-32/divdi3.c: Likewise.
5066         * sysdeps/x86_64/sysdep.h: Likewise.
5067
5068         * argp/Versions: Remove _argp_unlock_xxx.
5069
5070         [BZ #13559]
5071         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
5072         * abilist/libBrokenLocale.abilist: Likewise.
5073         * abilist/libanl.abilist: Likewise.
5074         * abilist/libc.abilist: Likewise.
5075         * abilist/libcrypt.abilist: Likewise.
5076         * abilist/libdl.abilist: Likewise.
5077         * abilist/libm.abilist: Likewise.
5078         * abilist/libnsl.abilist: Likewise.
5079         * abilist/libpthread.abilist: Likewise.
5080         * abilist/libresolv.abilist: Likewise.
5081         * abilist/librt.abilist: Likewise.
5082         * abilist/libthread_db.abilist: Likewise.
5083         * abilist/libutil.abilist: Likewise.
5084         * abilist/libnss_db.abilist: New file.
5085
5086         * scripts/abilist.awk: Add support for indirect functions.
5087
5088         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
5089
5090         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
5091
5092         * shlib-versions: Remove entries for ports architectures.
5093
5094         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
5095         files in ports.
5096         * elf/stackguard-macros.h: Remove support for IA-64.
5097         * elf/tst-auditmod1.c: Likewise.
5098         * sysdeps/generic/ldsodefs.h: Likewise.
5099
5100         * sysdeps/unix/sysv/linux/configure.in: Ports should define
5101         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
5102         configure files.
5103
5104         [BZ #13552]
5105         * configure.in: Remove --enable-omitfp support.
5106         * FAQ.in: Adjust.
5107         * config.make.in: Likewise.
5108         * Makeconfig: Likewise.
5109         * manual/install.texi: Likewise.
5110
5111         In case anyone cares, the IA-64 architecture could move to ports.
5112         * sysdeps/ia64/*: Removed.
5113         * sysdeps/unix/sysv/linux/ia64/*: Removed.
5114         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
5115
5116         [BZ #13555]
5117         * configure.in: Remove entries for unsupported architectures.
5118
5119         [BZ #13533]
5120         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
5121         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
5122         routines.
5123         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
5124         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
5125         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
5126         fall back to using wcrtomb.
5127         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
5128         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
5129         renaming.
5130         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
5131         * wcsmbs/tst-c16c32-1.c: New file.
5132
5133         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
5134         local variable.
5135
5136         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
5137
5138         * elf/tst-unique3.cc: Add explicit declaration of gets.
5139         * elf/tst-unique3lib.cc: Likewise.
5140         * elf/tst-unique3lib2.cc: Likewise.
5141         * elf/tst-unique4.cc: Likewise.
5142
5143         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
5144
5145 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
5146
5147         [BZ #13566]
5148         * assert/assert.h (static_assert): Don't define for C++.
5149         * libio/stdio.h (gets): Do declare for C++ <= C++11.
5150         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
5151
5152 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
5153
5154         * iconv/loop.c (single loop): Fix assertion in storing of
5155         remaining bytes.
5156
5157         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
5158
5159 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
5160
5161         * posix/getconf.c: Update copyright year.
5162         * nss/getent.c: Likewise.
5163         * nss/makedb.c: Likewise.
5164         * iconv/iconvconfig.c: Likewise.
5165         * iconv/iconv_prog.c: Likewise.
5166         * elf/ldconfig.c: Likewise.
5167         * elf/pldd.c: Likewise.
5168         * elf/sotruss.ksh: Likewise.
5169         * catgets/gencat.c: Likewise.
5170         * csu/version.c: Likewise.
5171         * elf/ldd.bash.in: Likewise.
5172         * elf/sprof.c (print_version): Likewise.
5173         * locale/programs/locale.c: Likewise.
5174         * locale/programs/localedef.c: Likewise.
5175         * login/programs/pt_chown.c: Likewise.
5176         * nscd/nscd.c (print_version): Likewise.
5177         * debug/xtrace.sh: Likewise.
5178         * malloc/memusage.sh: Likewise.
5179         * malloc/mtrace.pl: Likewise.
5180         * debug/catchsegv.sh: Likewise.
5181
5182 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
5183
5184         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
5185         pure attribute.
5186
5187 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
5188
5189         [BZ #13533]
5190         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
5191         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
5192         transformations.
5193         * iconv/gconv_int.h: Likewise.
5194         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
5195         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
5196         from libc for GLIBC_2.16.
5197         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
5198         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
5199         * wcsmbs/uchar.h: Really define mbstate_t.
5200         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
5201         * wcsmbs/c16rtomb.c: New file.
5202         * wcsmbs/mbrtoc16.c: New file.
5203         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
5204         for C/POSIX locale.
5205         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
5206         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
5207
5208         * wcsmbs/wchar.h: Add missing __restrict.
5209
5210 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
5211
5212         [BZ #13532]
5213         * time/Makefile (routines): Add timespec_get.
5214         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
5215         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
5216         timespec for ISO C11.
5217         * time/timespec_get.c: New file.
5218         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
5219         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
5220
5221         [BZ #13531]
5222         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
5223         * stdlib/stdlib.h: Declare aligned_alloc.
5224         * Versions.def: Add GLIBC_2.16 for libc.
5225         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
5226
5227         [BZ 13527]
5228         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
5229         ISO C11.
5230
5231         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
5232         code.
5233
5234         [BZ #13528]
5235         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
5236
5237         [BZ #13529]
5238         * assert/assert.h (static_assert): Define.
5239
5240         * version.h: Update for 2.16 development version.
5241
5242         [BZ #13526]
5243         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
5244         _ISOC11_SOURCE.
5245
5246         * version.h (RELEASE): Bump for 2.15 release.
5247         * include/features.h (__GLIBC_MINOR__): Bump to 15.
5248
5249         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
5250         Patch by Marek Polacek <mpolacek@redhat.com>.
5251
5252         * bits/byteswap.h: Protect long long constants with __extension__.
5253         * sysdeps/i386/bits/byteswap.h: Likewise.
5254         * sysdeps/ia64/bits/byteswap.h: Likewise.
5255         * sysdeps/s390/bits/byteswap.h: Likewise.
5256         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5257
5258 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5259
5260         [BZ #13540]
5261         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
5262         destination buffer.
5263         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
5264
5265 2011-12-23  Marek Polacek  <polacek@redhat.com>
5266
5267         * elf/dl-addr.c (determine_info): Add inline keyword.
5268         * elf/tst-auditmod4b.c (check_avx): Likewise.
5269         * elf/tst-auditmod6b.c (check_avx): Likewise.
5270         * elf/tst-auditmod6c.c (check_avx): Likewise.
5271         * elf/tst-auditmod7b.c (check_avx): Likewise.
5272
5273 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
5274
5275         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
5276         !__SSE_MATH__.
5277
5278 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5279
5280         [BZ #13540]
5281         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
5282         processing for last bytes.
5283
5284 2011-08-06  Bruno Haible  <bruno@clisp.org>
5285
5286         [BZ #13061]
5287         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
5288         U+0385, not to U+1FEE.
5289
5290         [BZ #13062]
5291         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
5292         entry for U+00A5 U+0301.
5293
5294 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
5295
5296         [BZ #13166]
5297         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
5298         buffer for the output is too small.
5299
5300         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
5301         optimization.
5302
5303         [BZ #13185]
5304         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
5305         SSE flags if possible.
5306
5307 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5308
5309         [BZ #13540]
5310         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
5311         processing for last bytes.
5312
5313 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
5314
5315         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
5316         (syscall-list-default-options, syscall-list-default-condition)
5317         (syscall-list-includes): Define.
5318         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
5319         list of ABIs and options and #if conditions for each ABI.  Do not
5320         handle common syscalls between ABIs specially.
5321         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
5322         Remove.
5323         (syscall-list-variants, syscall-list-32bit-options)
5324         (syscall-list-32bit-condition, syscall-list-64bit-options)
5325         (syscall-list-64bit-condition): Define.
5326         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
5327         (syscall-list-variants, syscall-list-32bit-options)
5328         (syscall-list-32bit-condition, syscall-list-64bit-options)
5329         (syscall-list-64bit-condition): Define.
5330         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
5331         Remove.
5332         (syscall-list-variants, syscall-list-32bit-options)
5333         (syscall-list-32bit-condition, syscall-list-64bit-options)
5334         (syscall-list-64bit-condition): Define.
5335         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
5336         Remove.
5337         (syscall-list-variants, syscall-list-32bit-options)
5338         (syscall-list-32bit-condition, syscall-list-64bit-options)
5339         (syscall-list-64bit-condition): Define.
5340
5341 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
5342
5343         * locale/iso-639.def: Add brx entry.
5344
5345         [BZ #13328]
5346         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
5347         Proposed by Mariusz_Cukr <marcukr@op.pl>.
5348
5349         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
5350         __feraiseexcept_renamed.
5351
5352 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
5353
5354         [BZ #13538]
5355         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
5356         EPOLLET with unsigned values.
5357         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
5358         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
5359
5360         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
5361         to large cancellation.
5362         * math/s_cacoshf.c: Likewise.
5363         * math/s_cacoshl.c: Likewise.
5364
5365 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
5366
5367         [BZ #13305]
5368         [BZ #12786]
5369         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
5370         * math/s_cacoshf.c: Likewise.
5371         * math/s_cacoshl.c: Likewise.
5372
5373 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
5374
5375         [BZ #13439]
5376         * iconv/gconv.h: Define __GCONV_SWAP.
5377         * iconvdata/unicode.c: The swap bit must be stored in __flags.
5378         * iconvdata/utf-16.c: Likewise.
5379         * iconvdata/utf-32.c: Likewise.
5380
5381 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
5382
5383         [BZ #13524]
5384         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
5385         numerator after shifting it by one limb.
5386
5387 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
5388
5389         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
5390         under [__USE_EXTERN_INLINES].
5391
5392 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
5393
5394         [BZ #13446]
5395         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
5396
5397 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5398
5399         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
5400         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
5401         optimized code.
5402         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
5403         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
5404         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
5405         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
5406         for strncasecmp/strncasecmp_l compilation.
5407         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
5408         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
5409
5410 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
5411
5412         [BZ #13484]
5413         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
5414         of __asm__.
5415
5416 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
5417
5418         [BZ #13506]
5419         * time/tzfile.c (__tzfile_read): Check values from file header.
5420
5421 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
5422
5423         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
5424         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
5425         * powerpc/powerpc32/dl-start.S: Likewise.
5426         * powerpc/powerpc32/elf/start.S: Likewise.
5427         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
5428         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
5429         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
5430         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
5431         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
5432         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
5433         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
5434         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
5435         * powerpc/powerpc32/fpu/s_round.S: Likewise.
5436         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
5437         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
5438         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
5439         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
5440         * powerpc/powerpc32/memset.S: Likewise.
5441         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
5442         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
5443         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
5444         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
5445         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
5446         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
5447         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
5448         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
5449         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
5450         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
5451         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
5452         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
5453         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
5454
5455 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5456
5457         * math/libm-test.inc: Added more nearbyint tests.
5458         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
5459         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
5460         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
5461         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
5462
5463 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
5464
5465         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
5466         FD_CLOEXEC.
5467
5468 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5469
5470         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
5471         Add wcscpy-ssse3 wcscpy-c.
5472         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
5473         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
5474         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
5475         * sysdeps/x86_64/wcschr.S: New file.
5476         * sysdeps/x86_64/wcsrchr.S: New file.
5477         * string/test-strcmp.c: Remove checking of wcscmp function for
5478         wrong alignments.
5479         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
5480         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
5481         wcsrchr-sse2 wcsrchr-c.
5482         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
5483         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
5484         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
5485         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
5486         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
5487         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
5488         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
5489         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
5490         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
5491         * wcsmbc/wcschr.c (WCSCHR): New macro.
5492
5493 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5494
5495         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
5496         * wcsmbs/test-wcsrchr.c: New file.
5497         * string/test-strrchr.c: Add wcsrchr support.
5498         (WIDE): New macro.
5499         * wcsmbs/test-wcscpy.c: New file.
5500         * string/test-strcpy.c: Add wcscpy support.
5501         (WIDE): New macro.
5502
5503 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
5504
5505         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
5506         the inner loop.
5507
5508 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
5509
5510         [BZ #13472]
5511         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
5512
5513 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
5514
5515         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
5516         Minor optimizations.
5517
5518         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
5519         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
5520         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
5521
5522 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
5523
5524         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
5525         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
5526         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
5527         for gcc to avoid warnings.
5528         * inet/Makefile (tests): Add tst-checks.
5529         * inet/tst-checks.c: New file.
5530
5531         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
5532         warning.
5533
5534         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
5535         __wmemcmp_sse2.
5536
5537         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
5538         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
5539
5540         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
5541
5542 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
5543
5544         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
5545         problem.
5546
5547         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
5548
5549 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
5550
5551         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
5552         conditional on GCC version.
5553         (__arch_compare_and_exchange_val_8_acq)
5554         (__arch_compare_and_exchange_val_16_acq)
5555         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
5556         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
5557         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
5558
5559 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
5560
5561         * sysdeps/sh/backtrace.c: New file.
5562
5563 2011-12-02  Andreas Schwab  <schwab@redhat.com>
5564
5565         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
5566         parenthesis.
5567
5568 2011-12-01  Andreas Schwab  <schwab@redhat.com>
5569
5570         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
5571         falling back to utime.
5572
5573 2011-11-30  Andreas Schwab  <schwab@redhat.com>
5574
5575         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
5576         expectations for float.
5577
5578 2011-11-29  Andreas Schwab  <schwab@redhat.com>
5579
5580         * locale/weight.h (findidx): Add parameter len.
5581         * locale/weightwc.h (findidx): Likewise.
5582         * posix/fnmatch_loop.c (FCT): Adjust caller.
5583         * posix/regcomp.c (build_equiv_class): Likewise.
5584         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
5585         * posix/regexec.c (check_node_accept_bytes): Likewise.
5586         * string/strcoll_l.c (STRCOLL): Likewise.
5587         * string/strxfrm_l.c (STRXFRM): Likewise.
5588
5589 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
5590
5591         * Makefile.in: Remove CVSOPT handling.
5592         * configure.in: Remove use of AC_REVISION.
5593         * iconvdata/Makefile (distribute): No need to filter out CVS.
5594         * scripts/list-sources.sh: Remove CVS, subversion and monotone
5595         handling.
5596
5597 2011-11-16  Andreas Schwab  <schwab@redhat.com>
5598
5599         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
5600         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
5601         [USE_AS_STRNCASECMP_L]: Likewise.
5602         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
5603         NO_TLS_DIRECT_SEG_REFS.
5604         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
5605         Fix argument offsets for non-PIC.
5606         [USE_AS_STRNCASECMP_L]: Likewise.
5607         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
5608         NO_TLS_DIRECT_SEG_REFS.
5609
5610 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
5611
5612         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
5613         O_CLOEXEC.
5614         * locale/loadlocale.c (_nl_load_locale): Likewise.
5615
5616 2011-11-15  Andreas Schwab  <schwab@redhat.com>
5617
5618         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
5619         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
5620         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
5621         (SYSCALL_GETTIME): Set errno on error.
5622
5623         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
5624         count references to noai6ai_cached.
5625
5626 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
5627
5628         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
5629
5630         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
5631         FD_CLOEXEC for /proc/self/maps.
5632
5633         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
5634         FD_CLOEXEC for /proc/meminfo.
5635
5636         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
5637         gai.conf.
5638
5639         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
5640         FD_CLOEXEC for given file.
5641
5642         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
5643
5644         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
5645         FD_CLOEXEC for /etc/hosts.
5646         (_gethtent): Likewise.
5647
5648         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
5649
5650         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
5651         cancellation and set FD_CLOEXEC for /etc/netgroup.
5652
5653         * nss/nss_files/files-key.c (search): Don't allow cancellation when
5654         reading /etc/publickey.
5655
5656         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
5657         allow cancellation when reading /etc/group.
5658
5659         * nss/nss_files/files-alias.c (internal_setent): Don't allow
5660         cancellation.
5661         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
5662
5663         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
5664         when using data file.
5665
5666         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
5667
5668         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
5669         (write_nis_obj): Use "c" and "e" in fopen.
5670
5671         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
5672
5673         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
5674
5675         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
5676
5677         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
5678
5679         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
5680         locale.alias.
5681
5682         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
5683
5684         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
5685
5686         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
5687
5688         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
5689         file parsing and set FD_CLOEXEC.
5690
5691 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
5692
5693         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
5694
5695 2011-11-14  Andreas Schwab  <schwab@redhat.com>
5696
5697         * malloc/arena.c (arena_get2): Don't call reused_arena when
5698         _int_new_arena failed.
5699
5700 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
5701
5702         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
5703         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
5704         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
5705         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
5706         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
5707         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
5708         to compile strcasecmp and strncasecmp.
5709         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
5710         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
5711
5712         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
5713
5714 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
5715
5716         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
5717         locale-defines.sym to gen-as-const-headers.
5718         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
5719         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
5720         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
5721         to compile strcasecmp and strncasecmp.
5722         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
5723         strcasecmp_l and strncasecmp_l.
5724         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
5725         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
5726         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
5727         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
5728         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
5729         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
5730         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
5731         * sysdeps/i386/i686/multiarch/strncase.S: New file.
5732         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
5733         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
5734         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
5735
5736 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
5737
5738         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
5739         result of SYSDEP_GETTIME_CPU to retval.
5740         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
5741         parameter list to macro.  Remove trailing semicolon.  Adjust users.
5742
5743         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
5744         variable.
5745
5746         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
5747         mantissa words.
5748         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
5749
5750         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
5751         from unused variable.
5752
5753         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
5754         DWARF definitions.
5755         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
5756         for assembling.
5757
5758         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
5759         over namespaces.
5760
5761         * sunrpc/rpc_prot.c (rejected): Fix case value.
5762
5763         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
5764         unsigned long long int to avoid warnings in shift.
5765
5766         * posix/regex_internal.c (re_string_reconstruct): Actually use result
5767         of use of trans.
5768         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
5769         variable tmp.
5770
5771         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
5772         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
5773         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
5774
5775         * nis/nis_table.c (nis_list): Use variable of correct type for
5776         result of __follow_path call.
5777
5778 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5779
5780         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
5781         of math functions ceil, trunc, floor, round, and sqrt, when
5782         avaliable on the platform.
5783         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
5784         name clash.
5785         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
5786         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
5787         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
5788
5789 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
5790
5791         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
5792         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
5793
5794 2011-11-11  Roland McGrath  <roland@hack.frob.com>
5795
5796         * include/unistd.h: Fix __readlink return type.
5797         Reported by Chris Metcalf <cmetcalf@tilera.com>.
5798
5799 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
5800
5801         * stdlib/ucontext.h: Undo last change for makecontext.
5802
5803 2011-11-11  Andreas Schwab  <schwab@redhat.com>
5804
5805         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
5806
5807         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
5808         * setjmp/setjmp.h: Mark functions as non-leaf.
5809         * setjmp/bits/setjmp2.h: Likewise.
5810         * stdlib/ucontext.h: Likewise.
5811
5812 2011-11-10  Andreas Schwab  <schwab@redhat.com>
5813
5814         * malloc/arena.c (_int_new_arena): Don't increment narenas.
5815         (reused_arena): Don't check arena limit.
5816         (arena_get2): Atomically check arena limit.
5817
5818 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
5819
5820         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
5821         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
5822
5823         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
5824         instructions.
5825
5826 2011-11-07  Andreas Schwab  <schwab@redhat.com>
5827
5828         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
5829         handler when locking.
5830
5831         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
5832         Fix size of allocated buffer.
5833
5834 2011-11-04  Andreas Schwab  <schwab@redhat.com>
5835
5836         [BZ #10103]
5837         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
5838         declarations for long double functions.
5839         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
5840
5841         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
5842
5843 2011-11-03  Andreas Schwab  <schwab@redhat.com>
5844
5845         * nscd/nscd.c (main): Don't start AVC thread until credentials are
5846         installed.
5847
5848         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
5849         is disabled.
5850
5851 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5852
5853         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
5854
5855 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
5856
5857         * include/alloca.h (stackinfo_alloca_round): Define.
5858         (extend_alloca): Use it.
5859         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
5860         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
5861         here.
5862
5863         * scripts/check-local-headers.sh: Ignore libaudit.h.
5864
5865         * nscd/Makefile (extra-objs): Make recursively expanded.
5866
5867 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
5868
5869         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
5870         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
5871
5872         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
5873         * posix/tst-rfc3484-2.c: Likewise.
5874         * posix/tst-rfc3484-3.c: Likewise.
5875
5876         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
5877         process_vm_writev.
5878         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
5879         process_vm_writev.
5880         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
5881         process_vm_writev from libc using GLIBC_2.15 version.
5882
5883         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
5884
5885 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
5886
5887         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
5888         stack usage.
5889
5890 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
5891
5892         [BZ #13367]
5893         * nss/getent.c (initgroups_keys): Show error message in case no group
5894         names are given.
5895
5896         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
5897         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
5898         __bump_nl_timestamp.
5899         * nscd/connections (nscd_init): When host database is served open
5900         netlink socket and request notification about configuration changes.
5901         (main_loop_poll): Track netlink file descriptor and bump timestamp
5902         in case data becomes available.
5903         (main_loop_epoll): Likewise.
5904         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
5905         (database_pers_head): Add extra_data fileds.
5906         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
5907         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
5908         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
5909         Adjust caller.
5910         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
5911         in6ai data, call __free_in6ai.
5912         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
5913         Add -DHAVE_NETLINK.
5914         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
5915         interface information.  Reuse previous data if netlink timestamp
5916         is not changed.
5917         (__bump_nl_timestamp): New function.
5918         (__free_in6ai): New function.
5919
5920 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
5921
5922         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
5923         close_not_cancel_no_status here.
5924         (__check_pf): Reorganize code a bit to not call close twice if OOM.
5925
5926 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
5927
5928         [BZ #13276]
5929         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
5930         return value.
5931
5932         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
5933         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
5934         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
5935
5936 2011-07-03  Andreas Jaeger  <aj@suse.de>
5937
5938         [BZ #10709]
5939         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
5940         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
5941         * math/libm-test.inc (sin_test): Add test case.
5942
5943 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
5944
5945         [BZ #13337]
5946         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
5947         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
5948
5949         * elf/chroot_canon.c (chroot_canon): Cleanups.
5950
5951         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
5952
5953         [BZ #13335]
5954         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
5955         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
5956
5957         * string/test-strchr.c: Make usable for strchrnul testing.
5958         * string/test-strchrnul.c: New file.
5959         * string/Makefile (strop-tests): Add strchrnul.
5960
5961         * po/it.po: Update from translation team.
5962         * po/es.po: Likewise.
5963
5964 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
5965
5966         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
5967         the three constants needed as parameters.  Drop the others.
5968         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
5969         __m128i_strloadu_tolower.
5970         Create and initialize variable zero and use it in all the places
5971         where _mm_setzero_si128 was used.
5972
5973         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
5974         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
5975         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
5976         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
5977         anymore.
5978         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
5979         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
5980         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
5981         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
5982         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
5983         __mpranred, __mptan.
5984         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
5985         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
5986         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
5987         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
5988         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
5989         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
5990         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
5991         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
5992         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
5993
5994 2011-10-28  Andreas Schwab  <schwab@redhat.com>
5995
5996         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
5997         redefine if SHARED.
5998         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
5999
6000         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
6001         wide char related routines to wcsmbs subdir.
6002
6003 2011-10-27  Andreas Schwab  <schwab@redhat.com>
6004
6005         [BZ #13344]
6006         * misc/sys/cdefs.h (__THROWNL): Define.
6007         * posix/unistd.h: Use __THREADNL instead of __THREAD
6008         for memory synchronization functions.
6009
6010 2011-10-26  Roland McGrath  <roland@hack.frob.com>
6011
6012         [BZ #13349]
6013         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
6014         doesn't exist.
6015         * manual/stdio.texi (Obstack Streams): Node removed.
6016
6017 2011-10-26  Andreas Schwab  <schwab@redhat.com>
6018
6019         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
6020         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6021         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6022
6023         * math/math_private.h (math_force_eval): Allow non-addressable
6024         arguments.
6025         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
6026
6027 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
6028
6029         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
6030         file is not needed.
6031
6032         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
6033         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
6034         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
6035         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
6036         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
6037         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
6038         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
6039         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
6040         Add AVX variants.
6041         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
6042         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
6043         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
6044         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
6045         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
6046         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
6047         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
6048         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
6049         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
6050         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
6051         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
6052         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
6053         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
6054         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
6055         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
6056         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
6057         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
6058         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
6059         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
6060
6061         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
6062         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
6063
6064         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
6065         place.  Use VEX encoding when compiling for AVX.
6066
6067 2011-10-25  Andreas Schwab  <schwab@redhat.com>
6068
6069         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
6070         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
6071
6072         * string/test-strchr.c (do_test): Don't generate NUL bytes.
6073
6074 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
6075
6076         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
6077         useless if() expression.
6078         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6079         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6080         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
6081         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6082         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
6083         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6084         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6085         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6086         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6087         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6088         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6089         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6090         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
6091         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6092         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
6093         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6094         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
6095         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
6096         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6097
6098         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
6099
6100 2011-10-25  Andreas Schwab  <schwab@redhat.com>
6101
6102         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
6103         condition.
6104         * elf/dl-fini.c (_dl_sort_fini): Likewise.
6105
6106 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
6107
6108         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
6109         .text section.  Avoid duplicate constants.
6110         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
6111         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6112         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6113         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6114         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6115         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6116         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6117         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6118         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
6119         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
6120         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
6121         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
6122         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
6123         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
6124         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
6125         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
6126         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
6127         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
6128         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6129         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6130         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
6131         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
6132         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
6133         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
6134         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
6135         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
6136         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
6137         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
6138         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
6139         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
6140         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
6141         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
6142         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
6143         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
6144         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
6145         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
6146         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
6147         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
6148         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
6149         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
6150         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
6151         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
6152         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
6153         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
6154         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
6155
6156 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
6157
6158         * sysdeps/x86_64/dla.h: Move to ...
6159         * sysdeps/x86_64/fpu/dla.h: ...here.
6160         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
6161         situations.  Use __builtin_fma only for gcc 4.6 and up.
6162
6163         * config.make.in: Add have-mfma4 entry.
6164         * configure.in: Substitute libc_cv_cc_fma4.
6165         * math/Makefile (dbl-only-routines): Add sincostab.
6166         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
6167         Use __sincostab not sincos.
6168         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
6169         name is a macro.
6170         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6171         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6172         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6173         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
6174         using __copysign.
6175         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
6176         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
6177         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
6178         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
6179         and __inv.
6180         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
6181         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
6182         __copysign.
6183         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
6184         define aliases when function name is a macro.
6185         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
6186         sysdeps/ieee754/dbl-64/sincos.tbl.
6187         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
6188         fma4-enabled routines.
6189         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
6190         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
6191         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
6192         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
6193         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
6194         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
6195         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
6196         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
6197         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
6198         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
6199         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
6200         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
6201         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
6202         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
6203         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
6204         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
6205         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
6206         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
6207         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
6208         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
6209         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
6210         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
6211         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
6212         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
6213         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
6214         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
6215         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
6216         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
6217         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
6218         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
6219
6220         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
6221         rename.
6222         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6223         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6224         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6225         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6226         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6227         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6228         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6229         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6230
6231 2011-10-24  Andreas Schwab  <schwab@redhat.com>
6232
6233         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
6234
6235 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6236
6237         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
6238
6239         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
6240         prediction.
6241         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
6242
6243         * string/strnlen.c: Don't define STRNLEN, reverse logic.
6244         Remove unused variable magic_bits.
6245         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
6246
6247         * string/strnlen.c: Define and use STRNLEN macro.
6248         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
6249         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
6250         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
6251         * wcsmbs/wcslen.c: Define and use WCSLEN.
6252         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
6253         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
6254         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
6255         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
6256         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
6257         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
6258         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
6259
6260 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6261
6262         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
6263         strnlen-sse2-no-bsf.
6264         Rename strlen-no-bsf to strlen-sse2-no-bsf.
6265         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
6266         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
6267         Add strnlen support.
6268         (USE_AS_STRNLEN): New macro.
6269         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
6270         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
6271         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
6272         * sysdeps/x86_64/wcslen.S: New file.
6273
6274 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
6275
6276         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
6277         XMM-moves are used for copying on small sizes.
6278
6279 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6280
6281         * wcsmbs/Makefile (strop-tests): Add wcschr.
6282         * wcsmbs/test-wcschr.c: New file.
6283         * string/test-strchr.c: Update.
6284         Add wcschr support.
6285         (WIDE): New macro.
6286
6287 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6288
6289         * wcsmbs/Makefile (strop-tests): Add wcslen.
6290         * wcsmbs/test-wcslen.c: New file.
6291         * string/test-strlen.c: Update.
6292         Add wcslen support.
6293         (WIDE): New macro.
6294
6295 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6296
6297         * po/it.po: Update from translation team.
6298
6299 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6300
6301         * sysdeps/x86_64/wcscmp.S: Update.
6302         Fix wrong comparison semantics.
6303         wcscmp shall use signed comparison not unsigned.
6304         Don't use substraction to avoid overflow bug.
6305         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
6306         * wcsmbc/wcscmp.c: Likewise.
6307         * string/test-strcmp.c: Likewise.
6308         Add new tests to check cases with negative values.
6309
6310 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
6311
6312         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
6313         * sysdeps/x86_64/dla.h: ...here.  New file.
6314         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
6315         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6316         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6317         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6318         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6319         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6320         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6321         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6322         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6323
6324 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
6325
6326         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
6327         __ynl_finite aliases.
6328
6329 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
6330
6331         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6332
6333         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
6334         define DLA_FMA.
6335         [DLA_FMA] (EMULV): Use DLA_FMA.
6336         [DLA_FMA] (MUL12): Use EMULV.
6337         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
6338         that are not needed.
6339         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6340         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6341         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6342         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6343         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6344         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6345         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6346
6347 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
6348
6349         * math/s_nan.c: Undef __nan.
6350         * math/s_nanf.c: Undef __nanf.
6351         * math/s_nanl.c: Undef __nanl.
6352         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
6353         "math_private.h".
6354
6355 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
6356
6357         * math/s_catan.c: Add branch predictions.
6358         * math/s_catanf.c: Likewise.
6359         * math/s_catanh.c: Likewise.
6360         * math/s_catanhf.c: Likewise.
6361         * math/s_catanhl.c: Likewise.
6362         * math/s_catanl.c: Likewise.
6363         * math/s_cexp.c: Likewise.
6364         * math/s_cexpf.c: Likewise.
6365         * math/s_cexpl.c: Likewise.
6366         * math/s_clog.c: Likewise.
6367         * math/s_clog10.c: Likewise.
6368         * math/s_clog10f.c: Likewise.
6369         * math/s_clog10l.c: Likewise.
6370         * math/s_clogf.c: Likewise.
6371         * math/s_clogl.c: Likewise.
6372         * math/s_csqrt.c: Likewise.
6373         * math/s_csqrtf.c: Likewise.
6374         * math/s_csqrtl.c: Likewise.
6375         * math/s_ctanf.c: Likewise.
6376         * math/s_ctanh.c: Likewise.
6377         * math/s_ctanhf.c: Likewise.
6378         * math/s_ctanhl.c: Likewise.
6379         * math/s_ctanl.c: Likewise.
6380
6381         * math/math_private.h: Define __nan, __nanf, __nanl.
6382         * math/s_cacosh.c: Include <math_private.h>.
6383         * math/s_cacoshl.c: Likewise.
6384         * math/s_casinh.c: Likewise.
6385         * math/s_casinhf.c: Likewise.
6386         * math/s_casinhl.c: Likewise.
6387         * math/s_ccos.c: Rely entire on ccosh.
6388         * math/s_ccosf.c: Rely entire on ccoshf.
6389         * math/s_ccosl.c: Rely entirely on ccoshl.
6390         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
6391         Remove tests for FE_INVALID.
6392         * math/s_ccoshf.c: Likewise.
6393         * math/s_ccoshl.c: Likewise.
6394         * math/s_csin.c: Likewise.
6395         * math/s_csinf.c: Likewise.
6396         * math/s_csinh.c Likewise.
6397         * math/s_csinhf.c: Likewise.
6398         * math/s_csinhl.c: Likewise.
6399         * math/s_csinl.c: Likewise.
6400         * math/s_ctan.c: Likewise.
6401         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
6402         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
6403         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
6404
6405 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
6406
6407         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
6408         compilation problems.
6409
6410         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
6411         __builtin_expect.
6412
6413 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
6414
6415         * sysdeps/i386/configure.in: Test for -mfma4 option.
6416         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
6417         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
6418         COMMON_CPUID_INDEX_80000001.
6419         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
6420         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
6421         use it if FMA3 is not supported.
6422         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
6423
6424         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
6425         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
6426
6427 2011-10-20  Andreas Schwab  <schwab@redhat.com>
6428
6429         [BZ #12892]
6430         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
6431         it would create a cycle with a link time dependency.
6432
6433 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
6434
6435         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
6436         instruction.
6437         * string/Makefile (strop-tests): Add rawmemchr.
6438         * string/test-rawmemchr.c: New file.
6439
6440         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
6441         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
6442         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
6443         when compiling str{,n}casecmp and when AVX is available.  Hook up
6444         new optimized code in initializers.
6445
6446 2011-10-19  Andreas Schwab  <schwab@redhat.com>
6447
6448         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
6449         __feraiseexcept instead of feraiseexcept.
6450
6451 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
6452
6453         * math/math_private.h: Define defaults for libc_fetestexcept and
6454         libc_feupdateenv.
6455         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
6456         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
6457         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6458         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6459         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6460         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6461         libc_fetestexcept and libc_feupdateenv.
6462
6463         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
6464         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
6465         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
6466         * sysdeps/x86_64/fpu/math_private.h: Define special version of
6467         libc_feholdexcept_setround.
6468
6469         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
6470         Add s_nearbyint-c and s_nearbyintf-c.
6471         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
6472         nearbyintf inlines.
6473         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
6474         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
6475         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
6476         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
6477
6478         * math/math_private.h: Define defaults for libc_fegetround,
6479         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
6480         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
6481         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
6482         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
6483         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
6484         standard functions.
6485         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6486         Remove comments and hacks for old compiler versions.
6487         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
6488         libc_fegetround, libc_fesetround, libc_feholdexcept, and
6489         libc_feholdexceptl.
6490
6491 2011-10-18  Andreas Schwab  <schwab@redhat.com>
6492
6493         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
6494         (__feraiseexcept_renamed): Add __NTH.
6495         (feraiseexcept): Add __NTH.  Rename local variables to fix
6496         namespace violations.
6497
6498 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
6499
6500         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
6501
6502         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
6503
6504         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
6505         recently added interfaces.
6506         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
6507
6508         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
6509         about macro parameter expansion.
6510
6511         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
6512         __NO_MATH_INLINES is defined.  Cleanups.
6513
6514         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
6515         and __floorf is target has SSE4.1.
6516         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
6517         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
6518         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
6519         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
6520
6521         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
6522         name.
6523         (floorf): Likewise.
6524
6525         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
6526
6527 2011-10-17  Andreas Schwab  <schwab@redhat.com>
6528
6529         * misc/sys/cdefs.h: Fix last change.
6530
6531         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
6532         database lookup.
6533
6534 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
6535
6536         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
6537
6538         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
6539         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6540         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6541         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6542         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6543         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6544         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6545         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6546         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6547         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
6548         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
6549         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
6550         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
6551         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
6552         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
6553         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
6554         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
6555         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
6556         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
6557         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
6558         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
6559         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
6560
6561         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
6562         ceil, ceilf, floor, floorf.
6563
6564         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
6565         Perform IRELATIVE relocations last.
6566
6567         * elf/do-rel.h: Add another parameter nrelative, replacing the
6568         local variable with the same name.  Change name of the function
6569         to end in Rel or Rela (uppercase).
6570         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
6571         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
6572         elf_dynamic_do_##reloc function.
6573
6574 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
6575
6576         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
6577         is sufficient, at least on modern CPUs.
6578
6579         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
6580
6581         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
6582         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
6583
6584         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
6585         __expl_finite.
6586         * math/bits/math-finite.h: Add entries for exp.
6587         * math/e_expl.c: Add __*_finite alias.
6588         * sysdeps/i386/fpu/e_exp.S: Likewise.
6589         * sysdeps/i386/fpu/e_expf.S: Likewise.
6590         * sysdeps/i386/fpu/e_expl.c: Likewise.
6591         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6592         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
6593         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
6594         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
6595         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
6596         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
6597         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
6598
6599         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
6600         is sufficient, at least on modern CPUs.
6601
6602         * ctype/ctype-info.c (__ctype_init): Define.
6603         * include/ctype.h (__ctype_init): Declare.
6604         (__ctype_b_loc): The variable is always initialized.
6605         (__ctype_toupper_loc): Likewise.
6606         (__ctype_tolower_loc): Likewise.
6607         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
6608         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
6609
6610 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
6611
6612         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
6613
6614         * configure.in: Also look in $cxxmachine/include for C++ system
6615         headers.
6616
6617 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6618
6619         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
6620         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
6621         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
6622         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
6623         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
6624         (USE_AS_WMEMCMP): New macro.
6625         Fixing indents.
6626         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
6627         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
6628         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
6629         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
6630         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6631         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
6632         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
6633         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
6634         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
6635         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
6636         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
6637         (USE_AS_WMEMCMP): New macro.
6638         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
6639         * sysdeps/string/test-memcmp.c: Update.
6640         Fix simple_wmemcmp.
6641         Add new tests.
6642         * wcsmbs/wmemcmp.c: Update.
6643         (WMEMCMP): New macro.
6644         Fix overflow bug.
6645
6646 2011-10-12  Andreas Jaeger  <aj@suse.de>
6647
6648         [BZ #13268]
6649         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
6650
6651 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
6652
6653         * libio/iofwide.c (do_length): Avoid warning.
6654
6655         * ctype/ctype.h (__isctype_f): Add missing __THROW.
6656
6657 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
6658
6659         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
6660
6661         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
6662         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
6663         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
6664         * sysdeps/i386/i686/fpu/e_log.S: New file.
6665         * sysdeps/i386/i686/fpu/e_logf.S: New file.
6666         * sysdeps/i386/i686/fpu/e_logl.S: New file.
6667
6668         * ctype/ctype.h: Add support for inlined isXXX functions when
6669         compiling C++ code.
6670
6671 2011-10-14  Andreas Schwab  <schwab@redhat.com>
6672
6673         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
6674
6675         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
6676
6677 2011-10-13  Roland McGrath  <roland@hack.frob.com>
6678
6679         [BZ #13291]
6680         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
6681
6682 2011-10-13  Andreas Schwab  <schwab@redhat.com>
6683
6684         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
6685         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
6686         feraiseexcept.
6687
6688         * sysdeps/x86_64/memrchr.S: Check for zero size.
6689
6690         * string/stratcliff.c: Add memrchr tests.
6691
6692 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6693
6694         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
6695         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
6696         rawmemchr-sse2 rawmemchr-sse2-bsf.
6697         * sysdeps/i386/i686/multiarch/memchr.S: New file.
6698         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
6699         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
6700         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
6701         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
6702         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
6703         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
6704         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
6705         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
6706         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
6707         * string/memrchr.c (MEMRCHR): New macro.
6708
6709 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
6710
6711         Add integration with gcc's -ffinite-math-only and optimize wrapper
6712         functions in libm.
6713         * Versions.def: Define GLIBC_2.15 version for libm.
6714         * math/Makefile (headers): Add bits/math-finite.h.
6715         * math/bits/math-finite.h: New file.
6716         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
6717         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
6718         * math/e_acoshl.c: Add __*_finite alias.
6719         * math/e_acosl.c: Likewise.
6720         * math/e_asinl.c: Likewise.
6721         * math/e_atan2l.c: Likewise.
6722         * math/e_atanhl.c: Likewise.
6723         * math/e_coshl.c: Likewise.
6724         * math/e_exp10.c: Likewise.
6725         * math/e_exp10f.c: Likewise.
6726         * math/e_exp10l.c: Likewise.
6727         * math/e_exp2l.c: Likewise.
6728         * math/e_fmodl.c: Likewise.
6729         * math/e_gammal_r.c: Likewise.
6730         * math/e_hypotl.c: Likewise.
6731         * math/e_j0l.c: Likewise.
6732         * math/e_j1l.c: Likewise.
6733         * math/e_jnl.c: Likewise.
6734         * math/e_lgammal_r.c: Likewise.
6735         * math/e_log10l.c: Likewise.
6736         * math/e_log2l.c: Likewise.
6737         * math/e_logl.c: Likewise.
6738         * math/e_powl.c: Likewise.
6739         * math/e_sinhl.c: Likewise.
6740         * math/e_sqrtl.c: Likewise.
6741         * math/e_scalb.c: Completely rewritten and optimized.
6742         * math/e_scalbf.c: Likewise.
6743         * math/e_scalbl.c: Likewise.
6744         * math/w_acos.c: Likewise.
6745         * math/w_acosf.c: Likewise.
6746         * math/w_acosl.c: Likewise.
6747         * math/w_acosh.c: Likewise.
6748         * math/w_acoshf.c: Likewise.
6749         * math/w_acoshl.c: Likewise.
6750         * math/w_asin.c: Likewise.
6751         * math/w_asinf.c: Likewise.
6752         * math/w_asinl.c: Likewise.
6753         * math/w_atan2.c: Likewise.
6754         * math/w_atan2f.c: Likewise.
6755         * math/w_atan2l.c: Likewise.
6756         * math/w_atanh.c: Likewise.
6757         * math/w_atanhf.c: Likewise.
6758         * math/w_atanhl.c: Likewise.
6759         * math/w_exp10.c: Likewise.
6760         * math/w_exp10f.c: Likewise.
6761         * math/w_exp10l.c: Likewise.
6762         * math/w_fmod.c: Likewise.
6763         * math/w_fmodf.c: Likewise.
6764         * math/w_fmodl.c: Likewise.
6765         * math/w_j0.c: Likewise.
6766         * math/w_j0f.c: Likewise.
6767         * math/w_j0l.c: Likewise.
6768         * math/w_j1.c: Likewise.
6769         * math/w_j1f.c: Likewise.
6770         * math/w_j1l.c: Likewise.
6771         * math/w_jn.c: Likewise.
6772         * math/w_jnf.c: Likewise.
6773         * math/w_log.c: Likewise.
6774         * math/w_logf.c: Likewise.
6775         * math/w_logl.c: Likewise.
6776         * math/w_log10.c: Likewise.
6777         * math/w_log10f.c: Likewise.
6778         * math/w_log10l.c: Likewise.
6779         * math/w_log2.c: Likewise.
6780         * math/w_log2f.c: Likewise.
6781         * math/w_log2l.c: Likewise.
6782         * math/w_pow.c: Likewise.
6783         * math/w_powf.c: Likewise.
6784         * math/w_powl.c: Likewise.
6785         * math/w_remainder.c: Likewise.
6786         * math/w_remainderf.c: Likewise.
6787         * math/w_remainderl.c: Likewise.
6788         * math/w_scalb.c: Likewise.
6789         * math/w_scalbf.c: Likewise.
6790         * math/w_scalbl.c: Likewise.
6791         * math/w_sqrt.c: Likewise.
6792         * math/w_sqrtf.c: Likewise.
6793         * math/w_sqrtl.c: Likewise.
6794         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
6795         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
6796         used.
6797         * math/math_private.h: Declare __kernel_standard_f.
6798         * math/w_cosh.c: Remove cruft and optimize a bit.
6799         * math/w_coshf.c: Likewise.
6800         * math/w_coshl.c: Likewise.
6801         * math/w_exp2.c: Likewise.
6802         * math/w_exp2f.c: Likewise.
6803         * math/w_exp2l.c: Likewise.
6804         * math/w_hypot.c: Likewise.
6805         * math/w_hypotf.c: Likewise.
6806         * math/w_hypotl.c: Likewise.
6807         * math/w_lgamma.c: Likewise.
6808         * math/w_lgamma_r.c: Likewise.
6809         * math/w_lgammaf.c: Likewise.
6810         * math/w_lgammaf_r.c: Likewise.
6811         * math/w_lgammal.c: Likewise.
6812         * math/w_lgammal_r.c: Likewise.
6813         * math/w_sinh.c: Likewise.
6814         * math/w_sinhf.c: Likewise.
6815         * math/w_sinhl.c: Likewise.
6816         * math/w_tgamma.c: Likewise.
6817         * math/w_tgammaf.c: Likewise.
6818         * math/w_tgammal.c: Likewise.
6819         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6820         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6821         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
6822         Minor optimizations.  Pretty printing.  Remove cruft.
6823         * sysdeps/i386/fpu/e_acosf.S: Likewise.
6824         * sysdeps/i386/fpu/e_acosh.S: Likewise.
6825         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
6826         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
6827         * sysdeps/i386/fpu/e_acosl.c: Likewise.
6828         * sysdeps/i386/fpu/e_asin.S: Likewise.
6829         * sysdeps/i386/fpu/e_asinf.S: Likewise.
6830         * sysdeps/i386/fpu/e_atan2.S: Likewise.
6831         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
6832         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
6833         * sysdeps/i386/fpu/e_atanh.S: Likewise.
6834         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
6835         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
6836         * sysdeps/i386/fpu/e_exp10.S: Likewise.
6837         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
6838         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
6839         * sysdeps/i386/fpu/e_exp2.S: Likewise.
6840         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
6841         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
6842         * sysdeps/i386/fpu/e_fmod.S: Likewise.
6843         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
6844         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
6845         * sysdeps/i386/fpu/e_hypot.S: Likewise.
6846         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
6847         * sysdeps/i386/fpu/e_log.S: Likewise.
6848         * sysdeps/i386/fpu/e_log10.S: Likewise.
6849         * sysdeps/i386/fpu/e_log10f.S: Likewise.
6850         * sysdeps/i386/fpu/e_log10l.S: Likewise.
6851         * sysdeps/i386/fpu/e_log2.S: Likewise.
6852         * sysdeps/i386/fpu/e_log2f.S: Likewise.
6853         * sysdeps/i386/fpu/e_log2l.S: Likewise.
6854         * sysdeps/i386/fpu/e_logf.S: Likewise.
6855         * sysdeps/i386/fpu/e_logl.S: Likewise.
6856         * sysdeps/i386/fpu/e_pow.S: Likewise.
6857         * sysdeps/i386/fpu/e_powf.S: Likewise.
6858         * sysdeps/i386/fpu/e_powl.S: Likewise.
6859         * sysdeps/i386/fpu/e_remainder.S: Likewise.
6860         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
6861         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
6862         * sysdeps/i386/fpu/e_scalb.S: Likewise.
6863         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
6864         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
6865         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
6866         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
6867         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
6868         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
6869         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6870         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6871         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
6872         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
6873         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
6874         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
6875         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
6876         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6877         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
6878         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6879         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
6880         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6881         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
6882         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
6883         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6884         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6885         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
6886         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6887         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6888         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
6889         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
6890         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
6891         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
6892         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
6893         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
6894         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
6895         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
6896         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
6897         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
6898         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6899         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6900         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6901         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6902         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
6903         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
6904         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
6905         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
6906         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
6907         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
6908         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
6909         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
6910         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
6911         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
6912         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
6913         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
6914         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
6915         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
6916         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
6917         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
6918         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
6919         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
6920         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6921         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6922         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
6923         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
6924         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
6925         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
6926         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
6927         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
6928         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
6929         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
6930         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
6931         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
6932         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
6933         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
6934         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
6935         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
6936         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
6937         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
6938         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
6939         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
6940         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
6941         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
6942         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
6943         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
6944         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
6945         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
6946         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
6947         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
6948         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
6949         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
6950         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
6951         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
6952         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
6953         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
6954         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6955         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6956         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
6957         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
6958         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
6959         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
6960         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
6961         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6962         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6963         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
6964         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
6965         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
6966         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
6967         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
6968         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
6969         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
6970         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
6971         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
6972         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
6973         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
6974         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
6975         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
6976         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
6977         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
6978         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
6979         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
6980         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
6981         (__isnanf): Likewise.
6982         (__isinf_ns): Likewise.
6983         (__isinf_nsf): Likewise.
6984         (__finite): Likewise.
6985         (__finitef): Likewise.
6986         (__ieee754_sqrt): Define as macro.
6987         (__ieee754_sqrtf): Define as macro.
6988         (__ieee754_sqrtl): Define as macro.
6989         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
6990         inlined copy.
6991         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
6992         __FINITE_MATH_ONLY__ consistent.
6993         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
6994
6995 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
6996
6997         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
6998         of rawmemchr.
6999
7000         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
7001
7002 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
7003
7004         * po/ja.po: Update from translation team.
7005
7006 2011-10-08  Roland McGrath  <roland@hack.frob.com>
7007
7008         * locale/programs/locarchive.c (prepare_address_space): New function.
7009         (create_archive, enlarge_archive, open_archive): Use it.
7010
7011         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
7012         inside [SHARED], where it is used.
7013
7014         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
7015
7016         * nss/getent.c (netgroup_keys): Remove unused variable.
7017         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
7018
7019 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
7020
7021         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
7022         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
7023         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
7024         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
7025         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
7026         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
7027         * math/Makefile (libm-calls): Add s_isinf_ns.
7028         * math/divtc3.c: Use __isinf_nsl instead of isinf.
7029         * math/multc3.c: Likewise.
7030         * math/s_casin.c: Likewise.
7031         * math/s_casinf.c: Likewise.
7032         * math/s_casinl.c: Likewise.
7033         * math/s_ccos.c: Likewise.
7034         * math/s_ccosf.c: Likewise.
7035         * math/s_ccosl.c: Likewise.
7036         * math/s_ctan.c: Likewise.
7037         * math/s_ctanf.c: Likewise.
7038         * math/s_ctanh.c: Likewise.
7039         * math/s_ctanhf.c: Likewise.
7040         * math/s_ctanhl.c: Likewise.
7041         * math/s_ctanl.c: Likewise.
7042         * math/w_fmod.c: Likewise.
7043         * math/w_fmodf.c: Likewise.
7044         * math/w_fmodl.c: Likewise.
7045         * math/w_remainder.c: Likewise.
7046         * math/w_remainderf.c: Likewise.
7047         * math/w_remainderl.c: Likewise.
7048         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
7049         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
7050         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
7051         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
7052         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
7053         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
7054         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
7055         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
7056
7057         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
7058         of the number.
7059         * stdio-common/printf_fphex.c: Likewise.
7060         * stdio-common/printf_size.c: Likewise.
7061
7062         * math/e_exp10.c: Include math_private.h using <...> not "...".
7063         * math/e_exp10f.c: Likewise.
7064         * math/e_exp10l.c: Likewise.
7065         * math/e_exp2l.c: Likewise.
7066         * math/e_j0l.c: Likewise.
7067         * math/e_j1l.c: Likewise.
7068         * math/e_jnl.c: Likewise.
7069         * math/e_lgammal_r.c: Likewise.
7070         * math/e_rem_pio2l.c: Likewise.
7071         * math/e_scalb.c: Likewise.
7072         * math/e_scalbf.c: Likewise.
7073         * math/e_scalbl.c: Likewise.
7074         * math/k_cosl.c: Likewise.
7075         * math/k_sinl.c: Likewise.
7076         * math/k_tanl.c: Likewise.
7077         * math/s_cacoshf.c: Likewise.
7078         * math/s_catan.c: Likewise.
7079         * math/s_catanf.c: Likewise.
7080         * math/s_catanh.c: Likewise.
7081         * math/s_catanhf.c: Likewise.
7082         * math/s_catanhl.c: Likewise.
7083         * math/s_catanl.c: Likewise.
7084         * math/s_ccosh.c: Likewise.
7085         * math/s_ccoshf.c: Likewise.
7086         * math/s_ccoshl.c: Likewise.
7087         * math/s_cexp.c: Likewise.
7088         * math/s_cexpf.c: Likewise.
7089         * math/s_cexpl.c: Likewise.
7090         * math/s_clog.c: Likewise.
7091         * math/s_clog10.c: Likewise.
7092         * math/s_clog10f.c: Likewise.
7093         * math/s_clog10l.c: Likewise.
7094         * math/s_clogf.c: Likewise.
7095         * math/s_clogl.c: Likewise.
7096         * math/s_csin.c: Likewise.
7097         * math/s_csinf.c: Likewise.
7098         * math/s_csinh.c: Likewise.
7099         * math/s_csinhf.c: Likewise.
7100         * math/s_csinhl.c: Likewise.
7101         * math/s_csinl.c: Likewise.
7102         * math/s_csqrt.c: Likewise.
7103         * math/s_csqrtf.c: Likewise.
7104         * math/s_csqrtl.c: Likewise.
7105         * math/s_ctan.c: Likewise.
7106         * math/s_ctanf.c: Likewise.
7107         * math/s_ctanh.c: Likewise.
7108         * math/s_ctanhf.c: Likewise.
7109         * math/s_ctanhl.c: Likewise.
7110         * math/s_ctanl.c: Likewise.
7111         * math/s_ldexp.c: Likewise.
7112         * math/s_ldexpf.c: Likewise.
7113         * math/s_ldexpl.c: Likewise.
7114         * math/s_significand.c: Likewise.
7115         * math/s_significandf.c: Likewise.
7116         * math/s_significandl.c: Likewise.
7117         * math/w_acos.c: Likewise.
7118         * math/w_acosf.c: Likewise.
7119         * math/w_acosh.c: Likewise.
7120         * math/w_acoshf.c: Likewise.
7121         * math/w_acoshl.c: Likewise.
7122         * math/w_acosl.c: Likewise.
7123         * math/w_asin.c: Likewise.
7124         * math/w_asinf.c: Likewise.
7125         * math/w_asinl.c: Likewise.
7126         * math/w_atan2.c: Likewise.
7127         * math/w_atan2f.c: Likewise.
7128         * math/w_atan2l.c: Likewise.
7129         * math/w_atanh.c: Likewise.
7130         * math/w_atanhf.c: Likewise.
7131         * math/w_atanhl.c: Likewise.
7132         * math/w_cosh.c: Likewise.
7133         * math/w_coshf.c: Likewise.
7134         * math/w_coshl.c: Likewise.
7135         * math/w_dremf.c: Likewise.
7136         * math/w_exp10.c: Likewise.
7137         * math/w_exp10f.c: Likewise.
7138         * math/w_exp10l.c: Likewise.
7139         * math/w_exp2.c: Likewise.
7140         * math/w_exp2f.c: Likewise.
7141         * math/w_fmod.c: Likewise.
7142         * math/w_fmodf.c: Likewise.
7143         * math/w_fmodl.c: Likewise.
7144         * math/w_hypot.c: Likewise.
7145         * math/w_hypotf.c: Likewise.
7146         * math/w_hypotl.c: Likewise.
7147         * math/w_j0.c: Likewise.
7148         * math/w_j0f.c: Likewise.
7149         * math/w_j0l.c: Likewise.
7150         * math/w_j1.c: Likewise.
7151         * math/w_j1f.c: Likewise.
7152         * math/w_j1l.c: Likewise.
7153         * math/w_jn.c: Likewise.
7154         * math/w_jnf.c: Likewise.
7155         * math/w_jnl.c: Likewise.
7156         * math/w_lgamma.c: Likewise.
7157         * math/w_lgamma_r.c: Likewise.
7158         * math/w_lgammaf.c: Likewise.
7159         * math/w_lgammaf_r.c: Likewise.
7160         * math/w_lgammal.c: Likewise.
7161         * math/w_lgammal_r.c: Likewise.
7162         * math/w_log.c: Likewise.
7163         * math/w_log10.c: Likewise.
7164         * math/w_log10f.c: Likewise.
7165         * math/w_log10l.c: Likewise.
7166         * math/w_log2.c: Likewise.
7167         * math/w_log2f.c: Likewise.
7168         * math/w_log2l.c: Likewise.
7169         * math/w_logf.c: Likewise.
7170         * math/w_logl.c: Likewise.
7171         * math/w_pow.c: Likewise.
7172         * math/w_powf.c: Likewise.
7173         * math/w_powl.c: Likewise.
7174         * math/w_remainder.c: Likewise.
7175         * math/w_remainderf.c: Likewise.
7176         * math/w_remainderl.c: Likewise.
7177         * math/w_scalb.c: Likewise.
7178         * math/w_scalbf.c: Likewise.
7179         * math/w_scalbl.c: Likewise.
7180         * math/w_sinh.c: Likewise.
7181         * math/w_sinhf.c: Likewise.
7182         * math/w_sinhl.c: Likewise.
7183         * math/w_sqrt.c: Likewise.
7184         * math/w_sqrtf.c: Likewise.
7185         * math/w_sqrtl.c: Likewise.
7186         * math/w_tgamma.c: Likewise.
7187         * math/w_tgammaf.c: Likewise.
7188         * math/w_tgammal.c: Likewise.
7189
7190         * po/ja.po: Update from translation team.
7191
7192 2011-09-29  Andreas Jaeger  <aj@suse.de>
7193
7194         [BZ #13179]
7195         * sunrpc/netname.c (netname2host): Fix logic.
7196
7197         [BZ #6779]
7198         [BZ #6783]
7199         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
7200         correctly.
7201         * math/w_remainder.c (__remainder): Likewise.
7202         * math/w_remainderf.c (__remainderf): Likewise.
7203         * math/libm-test.inc (remainder_test): Add test cases.
7204
7205 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7206
7207         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
7208         sdiv_qrnnd.
7209
7210 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
7211
7212         * string/test-memcmp.c: Avoid unncessary #defines.
7213         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
7214
7215 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7216
7217         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
7218         Use new sse2 version for core i3 - i7 as it's faster
7219         than sse42 version.
7220         (bit_Prefer_PMINUB_for_stringop): New.
7221         * sysdeps/x86_64/rawmemchr.S: Update.
7222         Replace with faster SSE2 version.
7223         * sysdeps/x86_64/memrchr.S: New file.
7224         * sysdeps/x86_64/memchr.S: Update.
7225         Replace with faster SSE2 version.
7226
7227 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
7228
7229         * elf/dl-load.c (lose): Add cast to avoid warning.
7230
7231 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
7232
7233         * po/ca.po: Update from translation team.
7234
7235         * inet/getnetgrent_r.c: Hook up nscd.
7236         * nscd/Makefile (routines): Add nscd_netgroup.
7237         (nscd-modules): Add netgroupcache.
7238         (CFLAGS-netgroupcache.c): Define.
7239         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
7240         (cache_search): Add const to second parameter.
7241         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
7242         INNETGR.
7243         (dbs): Add netgrdb entry.
7244         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
7245         (verify_persistent_db): Handle netgrdb.
7246         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
7247         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
7248         GETFDNETGR.
7249         (netgroup_response_header): Define.
7250         (innetgroup_response_header): Define.
7251         (datahead): Add netgroup_response_header and innetgroup_response_header
7252         elements.
7253         * nscd/nscd.conf: Add entries for netgroup cache.
7254         * nscd/nscd.h (dbtype): Add netgrdb.
7255         (_PATH_NSCD_NETGROUP_DB): Define.
7256         (netgroup_iov_disabled): Declare.
7257         (xmalloc, xcalloc, xrealloc): Move declarations here.
7258         (cache_search): Adjust prototype.
7259         Add netgroup-related prototypes.
7260         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
7261         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
7262         (__nscd_innetgr): Declare.
7263         * nscd/selinux.c (perms): Use access_vector_t as element type and
7264         add netgroup-related initializers.
7265         * nscd/netgroupcache.c: New file.
7266         * nscd/nscd_netgroup.c: New file.
7267         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
7268         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
7269         For four parameters use innetgr.
7270         * nss/nss_files/files-init.c: Add definition and callback for netgr.
7271         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
7272         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
7273         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
7274
7275         * nscd/connections.c (register_traced_file): Don't register file
7276         for disabled databases.
7277
7278 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
7279
7280         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
7281
7282         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
7283         from tree and freeing node.
7284
7285 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
7286
7287         * nss/nsswitch.c (__nss_database_lookup): Handle
7288         nss_parse_service_list out of memory case.
7289
7290 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
7291
7292         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
7293         out of memory case.
7294
7295 2011-10-04  Andreas Schwab  <schwab@redhat.com>
7296
7297         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
7298         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
7299         pass it down.
7300         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
7301         elf_machine_rela, elf_machine_lazy_rel.
7302         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
7303         (ELF_DYNAMIC_DO_REL): Likewise.
7304         (ELF_DYNAMIC_DO_RELA): Likewise.
7305         (ELF_DYNAMIC_RELOCATE): Likewise.
7306         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
7307         to ELF_DYNAMIC_DO_REL.
7308         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
7309         (dl_main): In trace mode always set __RTLD_NOIFUNC.
7310         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
7311         elf_machine_rela.
7312         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
7313         skip_ifunc, don't call ifunc function if non-zero.
7314         (elf_machine_rela): Likewise.
7315         (elf_machine_lazy_rel): Likewise.
7316         (elf_machine_lazy_rela): Likewise.
7317         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
7318         (elf_machine_lazy_rel): Likewise.
7319         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
7320         Likewise.
7321         (elf_machine_lazy_rel): Likewise.
7322         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7323         Likewise.
7324         (elf_machine_lazy_rel): Likewise.
7325         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
7326         (elf_machine_lazy_rel): Likewise.
7327         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
7328         (elf_machine_lazy_rel): Likewise.
7329         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
7330         (elf_machine_lazy_rel): Likewise.
7331         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
7332         (elf_machine_lazy_rel): Likewise.
7333         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
7334         (elf_machine_lazy_rel): Likewise.
7335         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
7336         (elf_machine_lazy_rel): Likewise.
7337
7338 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
7339
7340         * nss/nss_files/files-init.c (_nss_files_init): Use static
7341         initialization for all the *_traced_file variables.
7342
7343 2011-09-28  Andreas Schwab  <schwab@redhat.com>
7344
7345         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7346
7347 2011-09-27  Roland McGrath  <roland@hack.frob.com>
7348
7349         [BZ #13226]
7350         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
7351
7352 2011-09-27  Andreas Schwab  <schwab@redhat.com>
7353
7354         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
7355         Reread the line before reparsing it.
7356
7357 2011-09-26  Andreas Schwab  <schwab@redhat.com>
7358
7359         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
7360
7361 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
7362             Maxim Kuvyrkov  <maxim@codesourcery.com>
7363             Joseph Myers  <joseph@codesourcery.com>
7364
7365         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
7366         if needed for __stack_chk_guard.
7367
7368 2011-09-19  Roland McGrath  <roland@hack.frob.com>
7369
7370         * sysdeps/posix/spawni.c (script_execute): Always define it.
7371         It will be optimized away if unused.
7372         (maybe_script_execute): New function.
7373         (__spawni): Call it.
7374
7375         * Makerules: Don't include tls.make.
7376         (config-tls): Always set to thread.
7377         * tls.make.c: File removed.
7378
7379 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
7380
7381         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
7382         * config.make.in (CPPFLAGS-config): New substituted variable.
7383
7384 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
7385
7386         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
7387
7388         [BZ #13192]
7389         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
7390         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
7391
7392 2011-09-15  Roland McGrath  <roland@hack.frob.com>
7393
7394         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
7395         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
7396         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
7397         (CALL_FAIL): Likewise.
7398         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
7399         (CALL_FAIL): Macro removed.
7400         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
7401
7402 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
7403
7404         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
7405         for __FINITE_MATH_ONLY__ == 1.
7406
7407 2011-09-15  Andreas Schwab  <schwab@redhat.com>
7408
7409         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
7410         __ieee754_sqrt instead of sqrt.
7411         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
7412         __ieee754_sqrtf instead of sqrtf.
7413         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
7414         __floorf instead of floorf.
7415         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
7416         __floorf, __truncf instead of floorf, truncf.
7417
7418 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
7419
7420         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
7421
7422         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
7423         __extern_always_inline.
7424         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
7425         32-bit.
7426
7427 2011-09-14  Andreas Schwab  <schwab@redhat.com>
7428
7429         * elf/rtld.c (dl_main): Also relocate in dependency order when
7430         doing symbol dependency testing.
7431
7432 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
7433
7434         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
7435         Always define `refsym'.
7436
7437 2011-09-13  Andreas Schwab  <schwab@redhat.com>
7438
7439         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
7440         (__FD_ELT): Renamed from __FDELT.
7441         * misc/bits/select2.h (__FD_ELT): Likewise.
7442         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
7443         __FD_MASK instead of __FDELT, __FDMASK.
7444         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7445         Likewise.
7446         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
7447         Likewise.
7448
7449         * elf/Makefile (gen-ldd): Fix pattern.
7450
7451         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
7452         (init_tls): Likewise.
7453
7454 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
7455
7456         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
7457
7458 2011-09-12  Andreas Schwab  <schwab@redhat.com>
7459
7460         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
7461         `struct cmsghdr *' instead of `void *'.
7462         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
7463         Likewise.
7464
7465 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
7466
7467         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
7468         if non-absolute.
7469         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
7470         ldd_rewrite_script.
7471
7472 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
7473
7474         * configure.in: Remove --with-tls option.
7475         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
7476         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
7477         out in case it is missing.
7478         * sysdeps/ia64/elf/configure.in: Likewise.
7479         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
7480         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
7481         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
7482         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
7483         * sysdeps/sh/elf/configure.in: Likewise.
7484         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
7485         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
7486         * sysdeps/x86_64/elf/configure.in: Likewise.
7487         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
7488         * sysdeps/mach/hurd/tls.h: Likewise.
7489
7490         [BZ #13067]
7491         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
7492
7493         [BZ #13090]
7494         * configure.in: Fix use of AC_INIT.
7495
7496         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
7497
7498 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
7499
7500         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
7501         __set_errno.
7502         * malloc/hooks.c: Likewise.
7503
7504         [BZ #11929]
7505         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
7506         variables statically.
7507         (narenas): Initialize.
7508         (list_lock): Initialize.
7509         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
7510         initializtion of main_arena and list_lock.  Small cleanups.
7511         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
7512         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
7513         Add initializers to main_arena and mp_.
7514         (malloc_state): Remove pagesize member.  Change all users to use
7515         GLRO(dl_pagesize).
7516
7517         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
7518         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
7519         is always initialized.
7520
7521         * malloc/malloc.c: Removed unused configurations and dead code.
7522         * malloc/arena.c: Likewise.
7523         * malloc/hooks.c: Likewise.
7524         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
7525
7526         * include/tls.h: Removed.  USE___THREAD must always be defined.
7527         * bits/libc-tsd.h: Don't handle !USE___THREAD.
7528         * elf/dl-libc.c: Likewise.
7529         * elf/dl-tsd.c: Likewise.
7530         * include/errno.h: Likewise.
7531         * include/netdb.h: Likewise.
7532         * include/resolv.h: Likewise.
7533         * inet/herrno-loc.c: Likewise.
7534         * inet/herrno.c: Likewise.
7535         * malloc/arena.c: Likewise.
7536         * malloc/hooks.c: Likewise.
7537         * malloc/malloc.c: Likewise.
7538         * resolv/res-state.c: Likewise.
7539         * resolv/res_libc.c: Likewise.
7540         * sysdeps/i386/dl-machine.h: Likewise.
7541         * sysdeps/ia64/dl-machine.h: Likewise.
7542         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
7543         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
7544         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
7545         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
7546         * sysdeps/sh/dl-machine.h: Likewise.
7547         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7548         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7549         * sysdeps/unix/i386/sysdep.S: Likewise.
7550         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
7551         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
7552         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
7553         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
7554         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
7555         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
7556         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
7557         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7558         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7559         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
7560         * sysdeps/unix/x86_64/sysdep.S: Likewise.
7561         * sysdeps/x86_64/dl-machine.h: Likewise.
7562         * tls.make.c: Likewise.
7563
7564         * configure.in: Remove --with-__thread option.  Make tests for
7565         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
7566         tls_model attribute fail if no support is available.  Remove
7567         USE_IN_LIBIO.
7568         * Makeconfig: Adjust for dropped configure option.  All features are
7569         now mandatory.
7570         * Makerules: Likewise.
7571         * Versions.def: Likewise.
7572         * argp/argp-fmtstream.c: Likewise.
7573         * argp/argp-fmtstream.h: Likewise.
7574         * argp/argp-help.c: Likewise.
7575         * assert/assert.c: Likewise.
7576         * config.h.in: Likewise.
7577         * config.make.in: Likewise.
7578         * configure: Likewise.
7579         * configure.in: Likewise.
7580         * csu/Versions: Likewise.
7581         * csu/init.c: Likewise.
7582         * elf/tst-audit2.c: Likewise.
7583         * elf/tst-tls10.c: Likewise.
7584         * elf/tst-tls10.h: Likewise.
7585         * elf/tst-tls11.c: Likewise.
7586         * elf/tst-tls12.c: Likewise.
7587         * elf/tst-tls14.c: Likewise.
7588         * elf/tst-tlsmod11.c: Likewise.
7589         * elf/tst-tlsmod12.c: Likewise.
7590         * elf/tst-tlsmod13.c: Likewise.
7591         * elf/tst-tlsmod13a.c: Likewise.
7592         * elf/tst-tlsmod14a.c: Likewise.
7593         * elf/tst-tlsmod15b.c: Likewise.
7594         * elf/tst-tlsmod16a.c: Likewise.
7595         * elf/tst-tlsmod16b.c: Likewise.
7596         * elf/tst-tlsmod7.c: Likewise.
7597         * elf/tst-tlsmod8.c: Likewise.
7598         * elf/tst-tlsmod9.c: Likewise.
7599         * gmon/gmon.c: Likewise.
7600         * grp/fgetgrent_r.c: Likewise.
7601         * grp/putgrent.c: Likewise.
7602         * hurd/fopenport.c: Likewise.
7603         * include/libc-symbols.h: Likewise.
7604         * include/tls.h: Likewise.
7605         * intl/gettextP.h: Likewise.
7606         * intl/loadinfo.h: Likewise.
7607         * locale/global-locale.c: Likewise.
7608         * locale/localeinfo.h: Likewise.
7609         * mach/devstream.c: Likewise.
7610         * malloc/arena.c: Likewise.
7611         * malloc/set-freeres.c: Likewise.
7612         * misc/err.c: Likewise.
7613         * misc/getttyent.c: Likewise.
7614         * misc/mntent_r.c: Likewise.
7615         * posix/getopt.c: Likewise.
7616         * posix/wordexp.c: Likewise.
7617         * pwd/fgetpwent_r.c: Likewise.
7618         * resolv/Versions: Likewise.
7619         * resolv/res_hconf.c: Likewise.
7620         * shadow/fgetspent_r.c: Likewise.
7621         * shadow/putspent.c: Likewise.
7622         * stdio-common/printf_fphex.c: Likewise.
7623         * stdio-common/tmpfile.c: Likewise.
7624         * stdlib/abort.c: Likewise.
7625         * stdlib/fmtmsg.c: Likewise.
7626         * sunrpc/auth_unix.c: Likewise.
7627         * sunrpc/clnt_perr.c: Likewise.
7628         * sunrpc/clnt_tcp.c: Likewise.
7629         * sunrpc/clnt_udp.c: Likewise.
7630         * sunrpc/clnt_unix.c: Likewise.
7631         * sunrpc/openchild.c: Likewise.
7632         * sunrpc/svc_simple.c: Likewise.
7633         * sunrpc/svc_tcp.c: Likewise.
7634         * sunrpc/svc_udp.c: Likewise.
7635         * sunrpc/svc_unix.c: Likewise.
7636         * sunrpc/xdr.c: Likewise.
7637         * sunrpc/xdr_array.c: Likewise.
7638         * sunrpc/xdr_rec.c: Likewise.
7639         * sunrpc/xdr_ref.c: Likewise.
7640         * sunrpc/xdr_stdio.c: Likewise.
7641
7642 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7643
7644         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7645
7646 2011-07-03  Andreas Jaeger  <aj@suse.de>
7647
7648         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
7649         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
7650         regenerate with gen-libm-tests.pl.
7651
7652 2010-05-12  Petr Baudis  <pasky@suse.cz>
7653
7654         [BZ #11589]
7655         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
7656         around j0() zero points by switching to j1().
7657         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
7658         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
7659         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7660         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7661
7662 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7663
7664         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
7665         instead of 0.
7666         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
7667         instead of 0.                              .
7668         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7669         Patch in part by Pavel Roskin <proski@gnu.org>.
7670
7671         [BZ #13138]
7672         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
7673         realloc.
7674         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
7675         Free memory block if necessary.
7676
7677         [BZ #12847]
7678         * libio/genops.c (INTDEF): For string streams the _lock pointer can
7679         be NULL.  Don't lock in this case.
7680
7681 2011-09-09  Roland McGrath  <roland@hack.frob.com>
7682
7683         * elf/elf.h (ELFOSABI_GNU): New macro.
7684         (ELFOSABI_LINUX): Define to that.
7685
7686 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
7687
7688         * string/strncat.c (strncat): Undef the symbol in case it has been
7689         defined in bits/string.h.
7690
7691 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
7692
7693         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
7694
7695         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
7696         link map.
7697
7698 2011-08-17  Andreas Jaeger  <aj@suse.de>
7699
7700         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
7701
7702 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
7703             Ian Lance Taylor  <iant@google.com>
7704
7705         * math/libm-test.inc (lround_test): New testcase.
7706         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
7707
7708 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
7709
7710         * Makefile: Remove support for automatic cvs check-ins.
7711         * Makerules: Likewise.
7712         * config.make.in: Likewise.
7713         * configure.in: Likewise.
7714         * intl/Makefile: Likewise.
7715         * locale/Makefile: Likewise.
7716         * po/Makefile: Likewise.
7717         * posix/Makefile: Likewise.
7718         * sysdeps/gnu/Makefile: Likewise.
7719         * sysdeps/mach/hurd/Makefile: Likewise.
7720         * sysdeps/sparc/sparc32/Makefile: Likewise.
7721
7722         [BZ #13118]
7723         * posix/Makefile (bug-regex32-ENV): Define.
7724         Patch by John Stanley <jpsinthemix@verizon.net>.
7725
7726         * misc/Makefile (headers): Add bits/select2.h.
7727         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
7728         * misc/bits/select2.h: New file.
7729         * include/bits/select2.h: New file.
7730         * debug/Makefile (routines): Add fdelt_chk.
7731         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
7732         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
7733         FD_ISSET.
7734         * debug/fdelt_chk.c: New file.
7735
7736         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
7737         * wcsmbs/test-wmemcmp.c: Likewise.
7738         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
7739         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
7740
7741 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7742
7743         * string/Makefile (strop-tests): Add memcmp.
7744         * string/test-wmemcmp.c: New file.
7745         * string/test-memcmp.c: Add wmemcmp support.
7746
7747 2011-09-08  Roland McGrath  <roland@hack.frob.com>
7748
7749         [BZ #13153]
7750         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
7751         2011-07-19 change.
7752
7753         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
7754         garbage value in a __mach_port_mod_refs call in the cases of the
7755         task-self and thread-self ports.
7756
7757 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
7758
7759         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
7760
7761 2011-09-08  Andreas Schwab  <schwab@redhat.com>
7762
7763         * elf/dl-load.c (lose): Check for non-null L.
7764
7765 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
7766
7767         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
7768
7769         * elf/dl-libc.c (dlerror_run): Pass back error code from
7770         dl_catch_error.
7771
7772         [BZ #13123]
7773         * elf/dl-load.c (lose): Free l_origin if it is valid.
7774
7775         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
7776         names.
7777         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
7778         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
7779         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
7780         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
7781         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
7782         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
7783
7784 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7785
7786         * sysdeps/powerpc/fpu/e_hypot.c: New file.
7787         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
7788         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
7789         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
7790         * sysdeps/powerpc/fpu/k_cosf.c: New file.
7791         * sysdeps/powerpc/fpu/k_sinf.c: New file.
7792         * sysdeps/powerpc/fpu/s_cosf.c: New file.
7793         * sysdeps/powerpc/fpu/s_sinf.c: New file.
7794         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
7795         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
7796
7797 2011-08-15  Alan Modra  <amodra@gmail.com>
7798
7799         [BZ #13092]
7800         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
7801         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
7802         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
7803         ppc_mcount to static-only-routines.
7804         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
7805         __mcount_internal.
7806         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
7807         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
7808
7809 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
7810
7811         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
7812         for finite and infinity parameters.
7813
7814 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
7815
7816         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
7817         and add nop instructions for throughput optimization.
7818         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
7819
7820 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
7821
7822         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
7823         aligned copy for power7 with vector-scalar instructions.
7824         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
7825
7826 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
7827
7828         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
7829         AVX check.
7830
7831 2011-09-07  Andreas Schwab  <schwab@redhat.com>
7832
7833         [BZ #13144]
7834         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
7835         last change.
7836
7837 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
7838
7839         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7840         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
7841         syscall wrapper around clock_gettime in __vdso_clock_gettime.
7842         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
7843         clock_gettime.
7844
7845 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
7846
7847         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
7848         Forgot to demangle the pointer.
7849
7850         * sysdeps/i386/sysdep.h: Define atom_text_section.
7851         * sysdeps/x86_64/sysdep.h: Likewise.
7852         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
7853         section with atom_text_section.
7854         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
7855         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
7856         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
7857         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
7858         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
7859
7860         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
7861         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
7862         already be defined.  Change to take two parameters and don't assign
7863         result to variable.  Adjust all users.
7864         Define INTERNAL_GETTIME if not already defined.
7865         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
7866         call.
7867         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
7868         HAVE_CLOCK_GETTIME_VSYSCALL.
7869         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
7870
7871         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
7872         gettimeofday vsyscall, just use time.
7873
7874 2011-09-06  Andreas Schwab  <schwab@redhat.com>
7875
7876         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
7877         <errno.h>.
7878
7879 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
7880
7881         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
7882         syscall on x86-64.
7883         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
7884         syscall.
7885         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
7886         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
7887         syscall if possible.
7888
7889 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7890
7891         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
7892         e_ident.  Don't pass to find_mapsXX.
7893         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
7894
7895 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7896
7897         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
7898         strchr-sse2-no-bsf strrchr-sse2-no-bsf
7899         * sysdeps/x86_64/multiarch/strchr.S: Update.
7900         Check bit_slow_BSF bit.
7901         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
7902         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
7903         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
7904
7905 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7906
7907         [BZ #13134]
7908         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
7909         before glibc 2.15.
7910         (tryshell): Define.
7911         (__spawni): Change last parameter to be flag.  Test
7912         SPAWN_XFLAGS_USE_PATH flag to use path or not.
7913         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
7914         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
7915         * posix/spawni.c: Likewise.
7916         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
7917         * posix/spawnp.c: Likewise.  Change normal version to use
7918         SPAWN_XFLAGS_USE_PATH.
7919         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
7920         SPAWN_XFLAGS_TRY_SHELL.
7921
7922         [BZ #13150]
7923         * posix/glob.h: Remove gcc 1.x support.
7924
7925         [BZ #13068]
7926         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
7927
7928 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
7929
7930         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
7931         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
7932         strrchr-sse2-bsf
7933         * sysdeps/i386/i686/multiarch/strchr.S: New file.
7934         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
7935         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
7936         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
7937         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
7938         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
7939
7940 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7941
7942         * sysdeps/x86_64/wcscmp.S: New file.
7943
7944         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
7945         wcscmp-c wcscmp-sse2
7946         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
7947         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
7948         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
7949         * wcsmbs/wcscmp.c: Allow renaming.
7950
7951 2011-09-05  David S. Miller  <davem@davemloft.net>
7952
7953         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
7954         stack slot, rather than the struct return pointer slot.
7955         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
7956         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
7957         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
7958         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
7959
7960 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
7961
7962         * po/ja.po: Update from translation team.
7963
7964         [BZ #13144]
7965         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
7966         kernel in 64-bit binaries.
7967
7968 2011-09-01  David S. Miller  <davem@davemloft.net>
7969
7970         * elf/elf.h (HWCAP_SPARC_*): Move to..
7971         * sysdeps/sparc/sysdep.h: this new file and add new values.
7972         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
7973         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
7974         _DL_HWCAP_COUNT to 24.
7975         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
7976         entries.
7977         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
7978         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
7979         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
7980         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
7981         instead of magic constants.
7982         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
7983
7984 2011-08-31  David S. Miller  <davem@davemloft.net>
7985
7986         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
7987         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
7988         Reimplement to do errno handling inline.
7989         (SYSCALL_ERROR_HANDLER): New macro.
7990         (__SYSCALL_STRING): Do not do errno handling in asm.
7991         (__CLONE_SYSCALL_STRING): Delete.
7992         (__INTERNAL_SYSCALL_STRING): Delete.
7993         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
7994         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
7995         (PSEUDO): Reimplement to do errno handling inline.
7996         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
7997         (SYSCALL_ERROR_HANDLER): New macro.
7998         (__SYSCALL_STRING): Do not do errno handling in asm.
7999         (__CLONE_SYSCALL_STRING): Delete.
8000         (__INTERNAL_SYSCALL_STRING): Delete.
8001         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
8002         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
8003         i386.
8004         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
8005         (inline_syscall*): Add 'err' argument.
8006         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
8007         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
8008         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
8009         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
8010
8011         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
8012         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
8013
8014 2011-08-30  Andreas Schwab  <schwab@redhat.com>
8015
8016         * elf/rtld.c (dl_main): Relocate objects in dependency order.
8017
8018 2011-08-29  Jiri Olsa <jolsa@redhat.com>
8019
8020         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
8021         directive.
8022
8023 2011-08-24  David S. Miller  <davem@davemloft.net>
8024
8025         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
8026
8027 2011-08-24  Andreas Schwab  <schwab@redhat.com>
8028
8029         * elf/Makefile: Add rules to build and run unload8 test.
8030         * elf/unload8.c: New file.
8031         * elf/unload8mod1.c: New file.
8032         * elf/unload8mod1x.c: New file.
8033         * elf/unload8mod2.c: New file.
8034         * elf/unload8mod3.c: New file.
8035
8036         * elf/dl-close.c (_dl_close_worker): Reset private search list if
8037         it wasn't used.
8038
8039 2011-08-23  David S. Miller  <davem@davemloft.net>
8040
8041         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
8042         subtract stack bias.
8043         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
8044         %sp not %fp in calculations.
8045         (_JMPBUF_UNWINDS_ADJ): Likewise.
8046
8047         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
8048         (aio_suspend): Call it to force an exception region around the
8049         AIO_MISC_WAIT() invocation.
8050
8051 2011-08-23  Andreas Schwab  <schwab@redhat.com>
8052
8053         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
8054         backslash.
8055
8056 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
8057
8058         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
8059         protection macro.
8060         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
8061         and <dl-machine.h>.
8062         (Elf64_FuncDesc): Remove.
8063
8064 2011-08-22  David S. Miller  <davem@davemloft.net>
8065
8066         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
8067         sigaltstack check, add missing cfi directives.
8068         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
8069         missing cfi directives, and sigaltstack handling.
8070
8071 2011-08-16  Andreas Schwab  <schwab@redhat.com>
8072
8073         [BZ #11724]
8074         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
8075         object is seen twice.
8076         * elf/dl-fini.c (_dl_sort_fini): Likewise.
8077
8078         * elf/Makefile (distribute): Add tst-initorder2.c.
8079         (tests): Add tst-initorder2.
8080         (modules-names): Add tst-initorder2a tst-initorder2b
8081         tst-initorder2c tst-initorder2d.  Add rules to build them.
8082         ($(objpfx)tst-initorder2.out): New rule.
8083         * elf/tst-initorder2.c: New file.
8084         * elf/tst-initorder2.exp: New file.
8085
8086 2011-08-22  Andreas Schwab  <schwab@redhat.com>
8087
8088         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
8089
8090         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
8091         dependencies back to end of function.
8092
8093         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
8094         $(elfobjdir)/ld.so.
8095
8096 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
8097
8098         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
8099         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
8100         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
8101         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
8102         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
8103         of __vdso_gettimeofday.
8104         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
8105         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
8106         attribute_hidden.
8107         (_libc_vdso_platform_setup): Remove initialization of
8108         __vdso_gettimeofday and __vdso_time.
8109
8110 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
8111
8112         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
8113         and fgetc_unlocked.
8114         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
8115         getc_unlocked.
8116
8117         * elf/dl-open.c (add_to_global): Report additions to the global scope
8118         for LD_DEBUG=scopes.
8119         (dl_open_worker): Also print scope of newly loaded dependencies.
8120         (_dl_show_scope): Indicate if there is no scope.
8121
8122         [BZ #13114]
8123         * stdio-common/Makefile (tests): Add bug24.
8124         * stdio-common/bug24.c: New file.
8125
8126 2011-08-19  Andreas Jaeger  <aj@suse.de>
8127
8128         [BZ #13114]
8129         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
8130         non-existant file when using close-on-exec mode.
8131
8132 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
8133
8134         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
8135         the very first instruction.
8136
8137         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
8138         the CFI state in the end.
8139         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
8140         inclusion of dl-trampoline.h.
8141         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
8142
8143 2011-08-19  Andreas Schwab  <schwab@redhat.com>
8144
8145         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
8146         expectations for long double.
8147
8148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
8149         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
8150
8151 2011-08-14  David S. Miller  <davem@davemloft.net>
8152
8153         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
8154         artificual limit depends upon the system page size.
8155
8156 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
8157
8158         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
8159         * resolv/Makefile: Define CFLAGS-libresolv.
8160
8161 2011-08-17  Andreas Schwab  <schwab@redhat.com>
8162
8163         * nss/makedb.c (compute_tables): Make variables used in nested
8164         function static.
8165
8166 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
8167
8168         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
8169         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
8170         if buffer was too small.
8171
8172         * elf/pldd.c (main): Attach to all threads in the process.
8173         Rewrite /proc handling to use *at functions.
8174
8175 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
8176
8177         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
8178         specifies first scope to show.
8179         (dl_open_worker): Update callers.  Move printing scope of new
8180         object to before the relocation.
8181         * elf/rtld.c (dl_main): Update _dl_show_scope call.
8182         * sysdeps/generic/ldsodefs.h: Update declaration.
8183
8184         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
8185         string for the scope number.
8186
8187 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
8188
8189         * nscd/servicescache.c (cache_addserv): Make sure written is always
8190         initialized.
8191
8192 2011-08-14  Roland McGrath  <roland@hack.frob.com>
8193
8194         * sysdeps/i386/i486/bits/atomic.h
8195         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
8196         statement expression, so as to suppress "set but not used" warning.
8197         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
8198
8199         * string/strncat.c (STRNCAT): Use prototype definition.
8200
8201         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
8202         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
8203         -Iprograms here.
8204         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
8205         (localedef-modules): Add localedef.
8206         (locale-modules): Add locale.
8207
8208         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
8209         * elf/rtld.c (dl_main): Invert order of assignment in last change,
8210         to avoid a warning.
8211
8212 2011-08-14  David S. Miller  <davem@davemloft.net>
8213
8214         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
8215         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
8216
8217 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
8218
8219         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
8220         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
8221         * elf/rtld.c (dl_main): Set l_name of vDSO.
8222         Call _dl_show_scope when DL_DEBUG_SCOPES.
8223         (process_dl_debug): Recognize scopes flag and also set it for all.
8224         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
8225         Declare _dl_show_scope.
8226
8227         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
8228         (do_dlopen): Pass caller_dlopen to dl_open.
8229         (__libc_dlopen_mode): Initialize caller_dlopen.
8230
8231         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
8232         of libc.  Make tolower call locale-independent.  Optimize a bit by
8233         using isdigit instead of isalnum.
8234         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
8235
8236 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
8237
8238         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
8239         was a dependency or dynamically loaded.
8240
8241 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
8242
8243         * intl/l10nflist.c: Allow architecture-specific pop function.
8244         * sysdeps/x86_64/l10nflist.c: New file.
8245
8246         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
8247         classification.
8248
8249 2011-08-10  Andreas Schwab  <schwab@redhat.com>
8250
8251         * include/dirent.h: Add libc_hidden_proto for scandirat and
8252         scandirat64.  Don't declare __scandirat64.
8253         * dirent/scandirat.c: Add libc_hidden_def.
8254         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
8255         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
8256
8257 2011-08-10  David S. Miller  <davem@davemloft.net>
8258
8259         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
8260         enum.
8261         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8262         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8263         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8264
8265 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
8266
8267         * Versions.def [libc]: Add GLIBC_2.15.
8268         * dirent/Makefile (routines): Add scandirat and scandirat64.
8269         * dirent/Versions [libc]: Export scandirat and scandirat64 for
8270         GLIBC_2.15.
8271         * dirent/dirent.h: Declare scandirat and scandirat64.
8272         * dirent/scandirat.c: New file.
8273         * dirent/scandirat64.c: New file.
8274         * sysdeps/wordsize-64/scandirat.c: New file.
8275         * sysdeps/wordsize-64/scandirat64.c: New file.
8276         * dirent/opendir.c: Define opendirat.
8277         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
8278         using scandirat.
8279         * dirent/scandir64.c: Adjust for scandir.c change.
8280         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
8281         __scandirat64, and __scandir_cancel_handler.
8282         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
8283         additional parameter and use openat instead of open (outside of ld.so).
8284         Add new __opendir as wrapper around __opendirat.
8285         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
8286         here without requiring old scandirat implementation.
8287
8288 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
8289
8290         * dirent/scandir.c (cancel_handler): Renamed to
8291         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
8292         defined.  Adjust users.
8293         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
8294         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
8295
8296 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
8297
8298         * string/test-string.h (IMPL): Use __STRING to expand name and then
8299         stringify it.
8300
8301         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
8302         of cleanups.
8303
8304 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8305
8306         * string/Makefile: Update.
8307         (strop-tests): Append strncat.
8308         * string/test-wcscmp.c: New file.
8309         New comprehensive test for wcscmp.
8310         * string/test-strcmp.c: Update.
8311         (WIDE): New define.
8312
8313 2011-07-22  Andreas Schwab  <schwab@redhat.com>
8314
8315         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
8316         line.
8317
8318 2011-07-26  Andreas Schwab  <schwab@redhat.com>
8319
8320         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
8321         encoding to ACE if AI_IDN.
8322
8323 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
8324
8325         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
8326         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
8327
8328 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8329
8330         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
8331         Fix overflow bug in strncat.
8332         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
8333
8334         * string/test-strncat.c: Update.
8335         Add new tests for checking overflow bugs.
8336
8337 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8338
8339         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8340         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
8341         * sysdeps/i386/i686/multiarch/strcat.S: New file.
8342         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
8343         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
8344         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
8345         * sysdeps/i386/i686/multiarch/strncat.S: New file.
8346         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
8347         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
8348
8349         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
8350         (USE_AS_STRCAT): Define.
8351         Add strcat and strncat support.
8352         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
8353
8354 2011-07-25  Andreas Schwab  <schwab@redhat.com>
8355
8356         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
8357         __n bigger than INT_MAX+1.
8358         (__strncmp_g): Likewise.
8359
8360 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
8361
8362         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
8363         * libio/stido.h: Likewise.
8364
8365         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
8366         (AF_NFC): Define.
8367         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
8368         (AF_NFC): Define.
8369
8370         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
8371         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
8372         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
8373         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
8374         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
8375
8376         [BZ #13021]
8377         * scripts/test-installation.pl: Don't expect libnss_test1 to be
8378         installed.
8379
8380         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
8381         typo.
8382         (_dl_x86_64_save_sse): Likewise.
8383
8384 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
8385
8386         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
8387         OSXSAVE.
8388         (_dl_x86_64_save_sse): Likewise.
8389
8390         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
8391
8392         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
8393
8394 2011-07-21  Andreas Schwab  <schwab@redhat.com>
8395
8396         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
8397         change.
8398         (_dl_x86_64_save_sse): Use correct AVX check.
8399
8400 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8401
8402         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
8403         bug in strncpy/strncat.
8404         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
8405
8406 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
8407
8408         * string/tester.c (test_strcat): Add tests for different alignments
8409         of source and destination.
8410         (test_strncat): Likewise.
8411
8412 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8413
8414         [BZ #12852]
8415         * posix/glob.c (glob): Check passed in values before using them in
8416         expressions to avoid some overflows.
8417         (glob_in_dir): Likewise.
8418
8419         [BZ #13007]
8420         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
8421         check for AVX enablement so that we don't crash with old kernels and
8422         new hardware.
8423         * elf/tst-audit4.c: Add same checks here.
8424         * elf/tst-audit6.c: Likewise.
8425
8426         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
8427
8428 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
8429
8430         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
8431
8432 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
8433
8434         * po/cs.po: Update from translation team.
8435         * po/bg.po: Likewise.
8436
8437 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
8438
8439         * misc/sys/cdefs.h: Add support for const attribute.
8440         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
8441         to gnu_dev_{major,minor,makedev} functions.
8442
8443 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
8444
8445         * intl/dcigettext.c (get_output_charset): Add missing bracket.
8446
8447 2011-07-20  Andreas Schwab  <schwab@redhat.com>
8448
8449         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
8450         strlen results.
8451
8452 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8453
8454         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
8455         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
8456         register in order to avoid conflicts with the soft frame pointer
8457         being held in r11 when necessary.
8458         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
8459         (INTERNAL_VSYSCALL_NCS): Likewise.
8460
8461 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
8462
8463         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
8464         * elf/dl-fini.c (_dl_fini): Adjust caller.
8465         * elf/dl-close.c (_dl_close_worker): Likewise.
8466         * sysdeps/generic/ldsodefs.h: Adjust declaration.
8467
8468 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8469
8470         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
8471         "aux_cache->nlibs < 0".
8472
8473         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
8474         in the reload-count case.
8475
8476 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
8477
8478         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8479         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
8480         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
8481         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
8482         * sysdeps/x86_64/multiarch/strcat.S: New file.
8483         * sysdeps/x86_64/multiarch/strncat.S: New file.
8484         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
8485         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
8486         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
8487         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
8488         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
8489         (USE_AS_STRCAT): Define.
8490         Add strcat and strncat support.
8491         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
8492         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
8493         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
8494         * string/strncat.c: Update.
8495         (USE_AS_STRNCAT): Define.
8496         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8497         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
8498         and i7.
8499         * sysdeps/x86_64/multiarch/init-arch.h
8500         (bit_Prefer_PMINUB_for_stringop): New.
8501         (index_Prefer_PMINUB_for_stringop): Likewise.
8502         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
8503         bit_Prefer_PMINUB_for_stringop.
8504
8505 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8506
8507         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
8508         buffer64.
8509         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
8510         of casting of buffer.
8511         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
8512         buffer32 and buffer64.
8513         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
8514         writes instead of casting of buffer.
8515         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
8516         buffer32.
8517         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
8518         casting of buffer.
8519
8520 2011-07-19  Andreas Schwab  <schwab@redhat.com>
8521
8522         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
8523
8524 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
8525
8526         * nscd/nscd.c (termination_handler): Don't do anything for a database
8527         if it has not yet been initialized.
8528
8529 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8530
8531         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8532
8533 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
8534
8535         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
8536
8537 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
8538
8539         * po/nl.po: Update from translation team.
8540         * po/sv.po: Likewise.
8541
8542 2011-07-16  Roland McGrath  <roland@hack.frob.com>
8543
8544         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
8545         now disallowed by GCC.
8546
8547         * configure.in (use-default-link): Default to yes if a test -shared
8548         link meets our qualifications.
8549         * configure: Regenerated.
8550
8551         * config.make.in (output-format): New variable.
8552         * configure.in: Check for ld --print-output-format support.
8553         * configure: Regenerated.
8554         * Makerules ($(common-objpfx)format.lds)
8555         [$(output-format) != unknown]: Just use $(output-format),
8556         instead of the linker-script munging.
8557
8558 2011-07-14  Roland McGrath  <roland@hack.frob.com>
8559
8560         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
8561         of $(common-objpfx)shlib.lds.
8562         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
8563
8564         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
8565         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
8566
8567         * configure.in (-z relro check): Adjust test code to add a large
8568         writable data section after it.
8569         * configure: Regenerated.
8570
8571 2011-07-11  Roland McGrath  <roland@hack.frob.com>
8572
8573         * configure.in (-z relro check): Fix test code to make the variable
8574         truly const.
8575         * configure: Regenerated.
8576
8577 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
8578
8579         * nscd/nscd.h (struct traced_file): Define.
8580         (struct database_dyn): Remove inotify_descr, reset_res, and filename
8581         elements.  Add traced_files.
8582         (inotify_fd): Declare.
8583         (register_traced_file): Declare.
8584         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
8585         (inotify_fd): Export.
8586         (resolv_conf_descr): Remove.
8587         (nscd_init): Move inotify descriptor creation to main.
8588         Don't register files for notification here.
8589         (register_traced_file): New function.
8590         (invalidate_cache): Don't use reset_res to determine whether to call
8591         res_init, go through the list of registered files.
8592         (main_loop_poll): The inotify descriptors are now stored in the
8593         structures for the traced files.
8594         (main_loop_epoll): Likewise
8595         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
8596         to __nss_disable_nscd.
8597         * nscd/cache.c (prune_cache): There is no single inotify descriptor
8598         for a database anymore.  Check the records for all the registered
8599         files instead.
8600         * nss/Makefile (libnss_files-routines): Add files-init.
8601         (libnss_db-routines): Add db-init.
8602         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
8603         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
8604         * nss/nss_db/db-init.c: New file.
8605         * nss/nss_files/files-init.c: New file.
8606         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
8607         __nss_lookup_function.
8608         (__nss_lookup_function): Call nss_load_library.
8609         (nss_load_all_libraries): New function.
8610         (__nss_disable_nscd): Take parameter with callback function for files
8611         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
8612         used for the cached services.
8613         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
8614         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
8615         options for features to all the files in nscd.
8616
8617         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
8618
8619 2011-07-10  Roland McGrath  <roland@hack.frob.com>
8620
8621         * csu/elf-init.c (__libc_csu_init): Comment typo.
8622
8623 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
8624
8625         * po/pl.po: Update from translation team.
8626         * po/ja.po: Likewise.
8627         * po/ru.po: Likewise.
8628         * po/ko.po: Likewise.
8629         * po/fr.po: Likewise.
8630
8631 2011-07-09  Roland McGrath  <roland@hack.frob.com>
8632
8633         * configure.in (.ctors/.dtors header and trailer check):
8634         Use an empirical test on a built program.
8635         * configure: Regenerated.
8636
8637         * configure.in (-z relro check): Use an empirical test on a built DSO.
8638         Detect, but do not require, on ia64.
8639         * configure: Regenerated.
8640
8641         * configure.in (READELF): Find it with AC_CHECK_TOOL.
8642         Update tests that use readelf to use $READELF instead.
8643         * configure: Regenerated.
8644
8645 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
8646
8647         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
8648         if the result is not used.
8649
8650 2011-07-05  Andreas Jaeger  <aj@suse.de>
8651
8652         [BZ#9696]
8653         * stdlib/tst-strtod.c: Add testcase.
8654
8655 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8656
8657         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
8658         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
8659         The latter has a higher limit.  Take additional parameter to pass to
8660         the new function.
8661         (__pathconf): Pass file to __statfs_link_max.
8662         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
8663         __statfs_link_max.
8664         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
8665         __statfs_link_max.
8666
8667         [BZ #12868]
8668         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
8669         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8670         Handle Lustre.
8671         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
8672         (__statfs_filesize_max): Likewise.
8673         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
8674
8675 2011-07-05  Andreas Jaeger  <aj@suse.de>
8676
8677         * resolv/res_comp.c (dn_skipname): Remove unused variable.
8678
8679 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
8680
8681         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
8682         `status' variable.
8683         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
8684         Likewise.
8685
8686 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
8687
8688         * Makefile (strop-tests): Add strncat.
8689         * string/test-strncat.c: New file.
8690
8691 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
8692
8693         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
8694
8695 2011-06-21  Andreas Jaeger  <aj@suse.de>
8696
8697         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
8698         Copy rule from iconvdata/Makefile.
8699
8700 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
8701
8702         [BZ #12922]
8703         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
8704         but no long options are defined, just return 'W'.
8705
8706 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
8707
8708         [BZ #9696]
8709         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
8710
8711 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
8712
8713         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
8714         netgroups to read.
8715         (innetgr): Likewise.
8716
8717 2011-07-05  Roland McGrath  <roland@hack.frob.com>
8718
8719         * config.make.in (install_root): Default to $(DESTDIR).
8720
8721 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
8722
8723         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
8724
8725 2011-07-02  Roland McGrath  <roland@hack.frob.com>
8726
8727         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
8728
8729         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
8730         containing directory rather than embedding absolute directory names.
8731
8732         * scripts/check-local-headers.sh: Rewritten using awk.
8733         Match by word, not by line.  Print error messages for matches.
8734         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
8735
8736         * Makerules [shlib-lds-flags empty]:
8737         ($(common-objpfx)libc_pic.opts): New target.
8738         ($(common-objpfx)libc_pic.os.clean): New target.
8739         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
8740
8741         * config.make.in (OBJCOPY): New variable.
8742         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
8743         * configure: Regenerated.
8744
8745         * config.make.in (use-default-link): New variable.
8746         * configure.in (use_default_link): Grok --with-default-link to set it.
8747         * configure: Regenerated.
8748         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
8749         (shlib-lds, shlib-lds-flags): Define to empty.
8750
8751         * Makerules (shlib-lds): New variable.
8752         (shlib-lds-flags): New variable.
8753         (build-shlib, build-moduile, build-module-asneeded): Use it.
8754         ($(common-objpfx)libc.so): Use $(shlib-lds).
8755         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
8756         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
8757
8758         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
8759         DT_FLAGS/DT_FLAGS_1 with zero flags.
8760
8761         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
8762         linker script munging.
8763
8764 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
8765
8766         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
8767         as 128-bit value.
8768         * crypt/sha512.c (sha512_process_block): Perform total addition using
8769         128-bit if possible.
8770         (__sha512_finish_ctx): Likewise.
8771         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
8772         as 64-bit value.
8773         * crypt/sha256.c (SWAP64): Define.
8774         (sha256_process_block): Perform total addition using 64-bit if
8775         possible.
8776         (__sha256_finish_ctx): Likewise.
8777
8778 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
8779
8780         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
8781         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8782         * nscd/hstcache.c (cache_addhst): Likewise.
8783         * nscd/grpcache.c (cache_addgr): Likewise.
8784         * nscd/aicache.c (addhstaiX): Likewise
8785         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
8786
8787 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
8788
8789         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
8790         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8791         * nscd/hstcache.c (cache_addhst): Likewise.
8792         * nscd/grpcache.c (cache_addgr): Likewise.
8793         * nscd/aicache.c (addhstaiX): Likewise
8794
8795 2011-07-01  Andreas Schwab  <schwab@redhat.com>
8796
8797         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
8798         domain only when needed.
8799
8800 2011-06-30  Andreas Schwab  <schwab@redhat.com>
8801
8802         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
8803         is always restored.
8804
8805 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
8806
8807         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
8808         are re-adding the entry.
8809         * nscd/servicescache.c (cache_addserv): Likewise.
8810
8811 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
8812
8813         * sysdeps/generic/dl-irel.h: fix protection against multiple
8814         inclusions.
8815         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
8816
8817 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
8818
8819         [BZ #12935]
8820         * malloc/memusage.sh: Fix quoting in message.
8821         * debug/xtrace.sh: Likewise.
8822
8823         * configure.in: Remove support for --experimental-malloc option, make
8824         it the default.
8825         * config.make.in: Likewise.
8826         * malloc/Makefile: Likewise.
8827
8828 2011-06-27  Andreas Schwab  <schwab@redhat.com>
8829
8830         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
8831         two-byte characters.
8832
8833 2011-06-27  Roland McGrath  <roland@hack.frob.com>
8834
8835         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
8836         AC_CACHE_CHECK invocation.
8837         * configure: Regenerated.
8838
8839         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
8840
8841 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
8842
8843         [BZ #12350]
8844         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
8845         bit from old_res_options.
8846
8847         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
8848
8849         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
8850         value type for setfct.
8851
8852 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
8853
8854         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
8855         __gettimeofday instead of gettimeofday.
8856
8857 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
8858
8859         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
8860
8861 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
8862
8863         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
8864
8865         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
8866         info.
8867
8868 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8869
8870         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
8871         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
8872         strcpy-sse2-unaligned strncpy-sse2-unaligned
8873         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
8874         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
8875         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
8876         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
8877         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
8878         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
8879         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
8880         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
8881         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
8882         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
8883         (STRCPY): Support SSE2 and SSSE3 versions.
8884
8885 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
8886
8887         [BZ #12874]
8888         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
8889         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
8890         kernels which artificially limit size of requests.
8891
8892 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
8893
8894         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
8895         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
8896         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
8897         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
8898         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
8899         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
8900         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
8901         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
8902         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
8903         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
8904         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
8905         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
8906         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
8907         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
8908         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
8909         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8910         Enable unaligned load optimization for Intel Core i3, i5 and i7
8911         processors.
8912         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
8913         Define.
8914         (index_Fast_Unaligned_Load): Define.
8915         (HAS_FAST_UNALIGNED_LOAD): Define.
8916
8917 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
8918
8919         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
8920
8921 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
8922
8923         [BZ #12907]
8924         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
8925         until it is clear that the information is realy needed.
8926         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
8927
8928 2011-06-22  Andreas Schwab  <schwab@redhat.com>
8929
8930         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
8931
8932 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
8933
8934         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
8935         /sys/devices/system/cpu/online if it is usable.
8936
8937         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
8938         reading the information from the /proc filesystem to once a second.
8939
8940 2011-06-21  Andreas Jaeger  <aj@suse.de>
8941
8942         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
8943         NULL after inclusion of kernel headers.
8944
8945 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
8946
8947         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
8948         calls to internal_setent.
8949
8950         [BZ #12885]
8951         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
8952         addresses using gethostbyname4_r ignore IPv4 addresses.
8953
8954         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
8955         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
8956
8957         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
8958
8959 2011-06-20  David S. Miller  <davem@davemloft.net>
8960
8961         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
8962         inclusions.
8963         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
8964
8965         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
8966         (elf_irel): Use it.
8967         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
8968         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
8969         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
8970         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
8971         * sysdeps/x86_64/dl-irel.h: Likewise.
8972
8973         * elf/dl-runtime.c: Use elf_ifunc_invoke.
8974         * elf/dl-sym.c: Likewise.
8975
8976 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
8977
8978         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
8979         need to dereference resplen2.
8980
8981 2011-06-14  Andreas Schwab  <schwab@redhat.com>
8982
8983         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
8984
8985 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
8986
8987         * Makeconfig: Define vardbdir and inst_vardbdir.
8988         * nss/Makefile: Add rules to install db-Makefile.
8989
8990         * nss/nss_db/db-XXX.c: Cleanup.
8991
8992         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
8993         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
8994         GLIBC_PRIVATE.
8995         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
8996         * nss/makedb.c: Implement -g option to specify that value strings
8997         are generated and should not be added to table iterated over for
8998         get*ent calls.
8999         * nss/nss_db/db-initgroups.c: New file.
9000
9001         * nss/getent.c: Add support for initgroups lookups through getgrouplist
9002         interface.
9003
9004         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
9005         (internal_getgrouplist): Adjust to name change.
9006         Update use_initgroups_entry if this is not the first call.
9007         * nss/databases.def: Add initgroups entry.
9008
9009         * nss/makedb.c (compute_tables): Check result of multiple hash table
9010         sizes to minimize maximum chain length.
9011
9012 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
9013
9014         * Versions.def: Add entry for libnss_db.
9015         * shlib-versions: Likewise.
9016         * nss/Makefile: Add rules to build libnss_db.
9017         * nss/Versions: Add libnss_db information.  Organize libnss_files
9018         entries better.
9019         * nss/db-Makefile: Add gshadow support.  Change rules for the new
9020         makedb progra.  Some minor improvements to generate smaller files.
9021         * nss/nss_db/nss_db.h: Move NSS database header data structures to
9022         here from...
9023         * nss/makedb.c: ...here.
9024         Improve database format to be smaller and require less memory at
9025         runtime.
9026         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
9027         db anymore.
9028         * nss/nss_db/db-netgrp.c: Likewise.
9029         * nss/nss_db/db-open.c: Likewise.
9030         * nss/nss_files/flies-XXX.x: Adjust comments.
9031         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
9032         * nss/nss_files/files-grp.c: Likewise.
9033         * nss/nss_files/files-hosts.c: Likewise.
9034         * nss/nss_files/files-network.c: Likewise.
9035         * nss/nss_files/files-proto.c: Likewise.
9036         * nss/nss_files/files-pwd.c: Likewise.
9037         * nss/nss_files/files-rpc.c: Likewise.
9038         * nss/nss_files/files-service.c: Likewise.
9039         * nss/nss_files/files-sgrp.c: Likewise.
9040         * nss/nss_files/files-spwd.c: Likewise.
9041         * nss/nss_db/db-alias.c: Removed.
9042         * nss/nss_db/dummy-db.h: Removed.
9043
9044 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
9045
9046         * nss/makedb.c: Rewritten to not use database library.
9047         * nss/Makefile: Update to build new makedb program.
9048
9049 2011-06-14  Andreas Jaeger  <aj@suse.de>
9050
9051         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
9052         memset declaration.
9053
9054 2011-06-10  Andreas Schwab  <schwab@redhat.com>
9055
9056         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
9057         tmpbuf.
9058
9059 2011-06-10  Roland McGrath  <roland@hack.frob.com>
9060
9061         * Makerules (shlib.lds): Fail if the linker script comes out empty.
9062         * elf/Makefile ($(objpfx)ld.so): Likewise.
9063
9064         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
9065         Don't list ld.so twice in dependencies.
9066
9067         * posix/bug-regex31.c: Include <stdlib.h>.
9068
9069         * nscd/hstcache.c (cache_addhst): Remove unused variable.
9070
9071         * nis/nss_compat/compat-spwd.c
9072         (getspent_next_nss_netgr): Remove unused variable.
9073         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
9074
9075         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
9076         nonmembers" output to use the right array.
9077
9078         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
9079
9080         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
9081
9082         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
9083         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
9084         * catgets/gencat.c (read_input_file): Likewise.
9085         * locale/programs/locarchive.c (enlarge_archive): Likewise.
9086
9087         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
9088         variable definition inside #if's controlling its use.
9089
9090         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
9091
9092         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
9093
9094         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
9095
9096         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
9097         unreachable code.
9098
9099         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
9100
9101         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
9102         * configure: Regenerated.
9103
9104         * Makerules: Revert last change.
9105         * elf/Makefile: Likewise.
9106
9107 2011-06-09  Roland McGrath  <roland@hack.frob.com>
9108
9109         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
9110         * elf/Makefile ($(objpfx)librtld.os): Likewise.
9111         (reloc-link): Likewise.
9112
9113 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
9114
9115         * elf/Makefile: Add rules to build pldd.
9116         * elf/pldd.c: New file.
9117         * elf/pldd-xx.c: New file.
9118
9119 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
9120
9121         * version.h: Update for 2.15 development version.
9122
9123 2011-06-07  David S. Miller  <davem@davemloft.net>
9124
9125         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
9126         ifuncs.
9127         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
9128         elf_machine_lazy_rel): Likewise.
9129         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
9130         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
9131         elf_machine_lazy_rel): Likewise.
9132         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
9133         dl_hwcap via passed in argument.
9134         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
9135         Likewise.
9136
9137 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9138
9139         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
9140
9141 2011-06-06  Roland McGrath  <roland@hack.frob.com>
9142
9143         [BZ #12849]
9144         * manual/fdl-1.1.texi: New file, verbatim from:
9145         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
9146         * manual/lgpl-2.1.texi: New file, verbatim from:
9147         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
9148         * manual/Makefile (licenses): New variable, list those new file names.
9149         (texis): Use it.
9150         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
9151
9152         * manual/fdl.texi: File removed.
9153         * manual/lesser.texi: File removed.
9154         * manual/libc.texinfo (Copying, Documentation License):
9155         Use new @include file names, put @appendix directive before @include.
9156
9157 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
9158
9159         [BZ #12841]
9160         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
9161         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
9162         (mq_open): Add __NTH.
9163
9164 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
9165
9166         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9167         Assume Intel Core i3/i5/i7 processor if AVX is available.
9168
9169 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
9170
9171         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9172         typo.
9173
9174 2011-05-31  Andreas Schwab  <schwab@redhat.com>
9175
9176         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
9177         memory.  Use alloca_account.  Fix memory leak when retrying.
9178
9179 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
9180
9181         * version.h (RELEASE): Bump for 2.14 release.
9182         * include/features.h (__GLIBC_MINOR__): Bump to 14.
9183
9184         * config.make.in (RANLIB): Remove entry.
9185
9186 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
9187
9188         * po/Makefile (po-sed-cmd): Add ksh to extensions.
9189         (libc.pot): Work around missing support for .ksh extension in xgettext.
9190
9191         [BZ #12684]
9192         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
9193         if both request failed.
9194         (send_dg): In case of server errors clear resplen or *resplen2.
9195
9196         [BZ #12454]
9197         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
9198         when there are multiple maps.
9199         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
9200         (_dl_fini): Remove test here.
9201
9202         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
9203
9204 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
9205
9206         [BZ #12350]
9207         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
9208         bit from old_res_options.
9209         (gaih_inet): Likewise.
9210
9211         [BZ #11099]
9212         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
9213         as signed.
9214
9215         * resolv/res_init.c (res_setoptions): Make the code more compact.
9216
9217         [BZ #11558]
9218         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
9219         set RES_USEVC.
9220
9221         [BZ #11634]
9222         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
9223
9224         * malloc/malloc.h: Mark malloc hook variables as deprecated.
9225
9226         [BZ #11781]
9227         * malloc/malloc.h: Declare malloc hook variables as volatile.
9228
9229         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
9230         in last patch.
9231
9232         [BZ #11799]
9233         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
9234         raise in the comment.
9235         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
9236         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
9237         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
9238
9239 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
9240
9241         [BZ #12811]
9242         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
9243         grow the buffers more if it already has to be sufficient.
9244         (build_wcs_upper_buffer): Likewise.
9245         * posix/regexec.c (check_matching): Likewise.
9246         (clean_state_log_if_needed): Likewise.
9247         (extend_buffers): Don't enlarge buffers beyond size of the input
9248         buffer.
9249         Patches mostly by Emil Wojak <emil@wojak.eu>.
9250         * posix/bug-regex32.c: New file.
9251         * posix/Makefile (tests): Add bug-regex32.
9252
9253         * locale/findlocale.c (_nl_find_locale): Return right away if
9254         _nl_explode_name failed.
9255         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
9256
9257         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
9258
9259         * debug/xtrace.sh: Unify messages.
9260         * malloc/memusage.sh: Likewise.
9261
9262         [BZ #12813]
9263         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
9264         time symbol from vDSO.  Substitute with vsyscall if not available.
9265         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
9266         __vdso_time.
9267
9268         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
9269         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
9270         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
9271         Add sendmmsg and internal_sendmmsg.
9272         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
9273         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
9274         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
9275
9276         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
9277         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
9278         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
9279
9280 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
9281
9282         [BZ #12813]
9283         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
9284         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
9285         available.
9286         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
9287         __vdso_getcpu.
9288
9289         [BZ #12814]
9290         * iconvdata/Makefile (tests): Add bug-iconv9.
9291         * iconvdata/bug-iconv9.c: New file.
9292
9293 2011-05-27  Andreas Schwab  <schwab@redhat.com>
9294
9295         [BZ #12814]
9296         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
9297
9298 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
9299
9300         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
9301         (struct user_regs_struct): Change intcs field back to cs.
9302
9303 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
9304
9305         * po/ja.po: Update from translation team.
9306
9307 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
9308
9309         [BZ #12795]
9310         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
9311         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
9312
9313 2011-05-20  Andreas Schwab  <schwab@redhat.com>
9314
9315         * stdlib/longlong.h: Update from GCC.
9316
9317 2011-05-23  Andreas Schwab  <schwab@redhat.com>
9318
9319         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
9320         parameter name.
9321         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
9322         Add parameter name.
9323         (__sysconf): Pass it down.
9324
9325 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
9326
9327         [BZ #12671]
9328         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
9329         some situations.
9330         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9331         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
9332         add in in __libc_use_alloca calls.  Adjust callers.
9333         (glob): Use malloc in some situations.
9334
9335         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
9336         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
9337         pltexit.
9338
9339 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
9340
9341         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
9342         and CLOCK_BOOTTIME_ALARM.
9343
9344         [BZ #12782]
9345         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
9346         is returned.
9347
9348         * string/_strerror.c (__strerror_r): Print negative errors as signed
9349         numbers.
9350
9351         [BZ #12777]
9352         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
9353         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
9354         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
9355
9356         * configure.in: Fix typo in redirection and correct removal of test
9357         files in two cases.
9358
9359         [BZ #12788]
9360         * locale/setlocale.c (new_composite_name): Fix test to check for
9361         identical name of all categories.
9362
9363         [BZ #12792]
9364         * libio/filedoalloc.c (local_isatty): New function.
9365         (_IO_file_doallocate): Use local_isatty.
9366         * stdio-common/perror.c (perror): In case a new stream is used
9367         forward the stream error.
9368         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
9369         error flag.
9370
9371 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
9372
9373         [BZ #11869]
9374         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
9375         alloca.
9376         * include/alloca.h (extend_alloca_account): Define.
9377
9378         [BZ #11857]
9379         * posix/regex.h: Fix comments with documentation of user-accessible
9380         fields after compilation and describe correct free'ing of pattern
9381         after re_compile_pattern.
9382         Patch by Reuben Thomas <rrt@sc3d.org>.
9383
9384 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
9385
9386         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
9387         and -mno-altivec to prevent the compiler from using Altivec and/or
9388         VSX instructions when the corresponding registers are not available.
9389
9390 2011-05-19  Andreas Schwab  <schwab@redhat.com>
9391
9392         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
9393
9394 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
9395
9396         * libio/freopen.c (freopen): Use __dup2, not dup2.
9397         * libio/freopen64.c (freopen64): Likewise.
9398
9399 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
9400
9401         [BZ #12775]
9402         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
9403         * math/Makefile (tests): Add test-powl.
9404         (CFLAGS-test-powl.c): Define.
9405         * math/test-powl.c: New file.
9406
9407 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
9408
9409         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
9410
9411 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
9412
9413         [BZ #11837]
9414         * iconvdata/gb18030.c: Update to GB18020-2005.
9415
9416 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
9417
9418         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
9419         RE_SYNTAX_POSIX_AWK): Update to match recent development.
9420         Patch by Aharon Robbins <arnold@skeeve.com>.
9421
9422         [BZ #11892]
9423         * stdlib/putenv.c (putenv): Don't always create copy of the variable
9424         on the stack.
9425
9426         [BZ #11895]
9427         * misc/pselect.c (__pselect): Handle timeout value errors hidden
9428         through underflows.
9429
9430         [BZ #12766]
9431         * misc/error.c (error_at_line): Ensure file_name and old_file_name
9432         point to strings before performing equality test for error_one_per_line
9433         mode.
9434
9435         [BZ #11697]
9436         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
9437
9438         [BZ #11820]
9439         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
9440         (struct user_fpregs_struct): Avoid __uint*_t types.
9441
9442         [BZ #6420]
9443         * malloc/mtrace.c (tr_where): Add additional parameter to point to
9444         symbol info.  Use it instead of calling _dl_addr locally.
9445         (lock_and_info): New function.
9446         (tr_freehook): Call lock_and_info and pass symbol info as additional
9447         parameter to tr_where.
9448         (tr_mallochook): Likewise.
9449         (tr_reallochook): Likewise.
9450         (tr_memalignhook): Likewise.
9451
9452         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
9453         used and couldn't be at all thread-safe.
9454
9455 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
9456
9457         * libio/freopen.c (freopen): Don't close old file descriptor
9458         before the new one is opened.  Instead dup the new file descriptor
9459         to the old one after the new stream is created.
9460         * libio/freopen64.c (freopen64): Likewise.
9461         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
9462         * libio/fileops.c (_IO_new_file_close_it): Handle new
9463         _IO_FLAGS2_NOCLOSE flag.
9464         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
9465         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
9466         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
9467         _IO_FLAGS2_NOCLOSE flag.
9468         * include/unistd.h: Add hidden_proto for dup3.
9469         Define __have_dup3.
9470         * io/dup3.c: Define hidden symbol.
9471         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
9472
9473         [BZ #7101]
9474         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
9475         when an incomplete long option is used.
9476         * posix/tst-getopt_long1.c: New file.
9477         * posix/Makefile (tests): Add tst-getopt_long1.
9478
9479         [BZ #10138]
9480         * scripts/config.guess: Update from autoconf-2.68.
9481         * scripts/config.sub: Likewise.
9482
9483         [BZ #10157]
9484         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
9485         tests into ...
9486         (has_cpuclock): ...this.  New function.
9487         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
9488         macro here based on has_cpuclock code.
9489
9490         [BZ #10149]
9491         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9492         First byte (not low byte) is now always NUL.
9493         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
9494
9495         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9496         Use non-cancelable interfaces.
9497
9498         [BZ #9809]
9499         * locale/iso-639.def: Add entry for Sorani.
9500
9501         [BZ #11901]
9502         * include/stdlib.h: Move include protection to the right place.
9503         Define abort_msg_s.  Declare __abort_msg with it.
9504         * stdlib/abort.c (__abort_msg): Adjust type.
9505         * assert/assert.c (__assert_fail_base): New function.  Majority
9506         of code from __assert_fail.  Allocate memory for __abort_msg with
9507         mmap.
9508         (__assert_fail): Now call __assert_fail_base.
9509         * assert/assert-perr.c: Remove bulk of implementation.  Use
9510         __assert_fail_base.
9511         * include/assert.hL Declare __assert_fail_base.
9512         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
9513         mmap.
9514         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
9515
9516 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
9517
9518         [BZ #11952]
9519         [BZ #12453]
9520         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
9521         until all modules are registered in the DTV.
9522         * elf/Makefile: Add rules to build and run tst-tls19.
9523         * elf/tst-tls19.c: New file.
9524         * elf/tst-tls19mod1.c: New file.
9525         * elf/tst-tls19mod2.c: New file.
9526         * elf/tst-tls19mod3.c: New file.
9527         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
9528
9529         [BZ #12083]
9530         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
9531         correctly.
9532
9533         [BZ #12601]
9534         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
9535         two-byte sequence errors.
9536         * iconvdata/Makefile (tests): Add bug-iconv8.
9537         * iconvdata/bug-iconv8.c: New file.
9538
9539         [BZ #12626]
9540         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
9541         buf2 definition.
9542
9543         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
9544
9545         [BZ #12432]
9546         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
9547         (dummy_getcfa): New function.
9548         (init): Get _Unwind_GetCFA address, use dummy if not found.
9549         (backtrace_helper): In recursion check, also check whether CFA changes.
9550         (__backtrace): Completely initialize arg.
9551
9552         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
9553         storing incomplete byte sequence in state object.  Avoid testing for
9554         guaranteed too small input if we know there is enough data available.
9555
9556 2011-05-11  Andreas Schwab  <schwab@redhat.com>
9557
9558         * Makeconfig (+link-pie): Indent.
9559         * Rules (binaries-pie): Define if $(have-fpie) and
9560         $(build-shared).
9561         (binaries-shared): Also filter out $(binaries-pie).
9562         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
9563         * nscd/Makefile (others-pie): Add nscd.
9564         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
9565         ($(objpfx)nscd): Remove command override.
9566         * login/Makefile (others-pie): Add pt_chown.
9567         ($(objpfx)pt_chown): Remove command override.
9568         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
9569         remove command overrides.
9570
9571 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
9572
9573         * libio/tst_putwc.c: Fix error messages.
9574
9575         [BZ #12724]
9576         * libio/fileops.c (_IO_new_file_close_it): Always flush when
9577         currently writing and seek to current position when not.
9578         * libio/Makefile (tests): Add bug-fclose1.
9579         * libio/bug-fclose1.c: New file.
9580
9581 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
9582
9583         [BZ #12511]
9584         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
9585         don't set DF_1_NODELETE here.
9586         (do_lookup_x): When entering new entry test for copy relocation
9587         and if necessary set DF_1_NODELETE flag.
9588         * elf/tst-unique4.cc: New file.
9589         * elf/tst-unique4.h: New file.
9590         * elf/tst-unique4lib.cc: New file.
9591         * elf/Makefile: Add rules to build and run tst-unique4.
9592         Patch by Piotr Bury <pbury@goahead.com>.
9593
9594 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
9595
9596         [BZ #12052]
9597         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
9598
9599         [BZ #12625]
9600         * misc/mntent_r.c (addmntent): Flush the stream after the output
9601
9602         [BZ #12393]
9603         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
9604         (is_trusted_path_normalize): Skip initial colon.  Append slash
9605         to empty buffer.  Duplicate is_trusted_path code but allow
9606         constructed patch to be prefix.
9607         (is_dst): Allow $ORIGIN followed by /.
9608         (_dl_dst_substitute): Correct clearing of check_for_trusted.
9609         Correct testing of result of is_trusted_path_normalize
9610         (decompose_rpath): Fix warning.
9611
9612 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
9613
9614         [BZ #11257]
9615         * grp/initgroups.c (internal_getgrouplist): When we found the service
9616         list through the initgroups entry in nsswitch.conf do not always
9617         continue on a successful lookup.  Don't always use the
9618         __nss_group_database value if it is set.
9619         * nss/nsswitch.conf (initgroups): Change action for successful db
9620         lookup to continue for compatibility.
9621
9622 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
9623
9624         [BZ #11532]
9625         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
9626         and CP774 modules.
9627         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
9628         and CP774 modules.
9629         * iconvdata/tst-tables.sh: Likewise.
9630         * iconvdata/cp770.c: New file.
9631         * iconvdata/cp771.c: New file.
9632         * iconvdata/cp772.c: New file.
9633         * iconvdata/cp773.c: New file.
9634         * iconvdata/cp774.c: New file.
9635         * iconvdata/testdata/CP770: New file.
9636         * iconvdata/testdata/CP770..UTF8: New file.
9637         * iconvdata/testdata/CP771: New file.
9638         * iconvdata/testdata/CP771..UTF8: New file.
9639         * iconvdata/testdata/CP772: New file.
9640         * iconvdata/testdata/CP772..UTF8: New file.
9641         * iconvdata/testdata/CP773: New file.
9642         * iconvdata/testdata/CP773..UTF8: New file.
9643         * iconvdata/testdata/CP774: New file.
9644         * iconvdata/testdata/CP774..UTF8: New file.
9645
9646         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
9647         END CHARMAP line.
9648         * iconvdata/gen-8bit-gap.sh: Likewise.
9649         * iconvdata/gen-8bit.sh: Likewise.
9650
9651         * locale/iso-639.def: Add ary entry.
9652
9653         [BZ #11258]
9654         * locale/C-translit.h.in: Add U20A1 transliteration.
9655
9656         [BZ #12178]
9657         * locale/iso-639.def: Add wae entry.
9658         Patch by Kevin Bortis <bortis@translate-wae.ch>.
9659
9660         [BZ #12545]
9661         * locale/programs/localedef.c (construct_output_path): Use ssize_t
9662         for n.
9663
9664         [BZ #12711]
9665         * locale/C-translit.h.in: Add entry for U20B9.
9666         Patch by pravin.d.s@gmail.com.
9667
9668 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
9669
9670         [BZ #12713]
9671         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
9672         ENAMETOOLONG use generic getcwd.
9673         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
9674         in rtld.  Use *stat64.
9675         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
9676         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
9677         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
9678         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
9679         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
9680         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
9681         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
9682         __fstatat64 macros.
9683         * include/dirent.h: Add libc_hidden_proto for rewinddir.
9684         * dirent/rewinddir.c: Add libc_hidden_def.
9685         * sysdeps/mach/hurd/rewinddir.c: Likewise.
9686         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
9687
9688         * include/dirent.h (__alloc_dir): Add flags parameter.
9689         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
9690         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
9691         __alloc_dir.
9692         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
9693         from fdopendir if O_CLOEXEC is already set.
9694
9695 2011-03-15  Alan Modra  <amodra@gmail.com>
9696
9697         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
9698         l_tls_firstbyte_offset non-zero.  Save padding offset in
9699         l_tls_firstbyte_offset for later use.
9700         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
9701         freeing static tls block.
9702
9703 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
9704
9705         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
9706         where #ifdef was intended.  The intent is to prevent ARG_MAX from
9707         being defined by the kernel headers.
9708
9709 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
9710
9711         [BZ #12734]
9712         * resolv/resolv.h: Define RES_NOTLDQUERY.
9713         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
9714         no-tld-query and set RES_NOTLDQUERY.
9715         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
9716         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
9717         modern BIND to search name as TLD unless forbidden.
9718
9719 2011-05-07  Petr Baudis  <pasky@suse.cz>
9720             Ulrich Drepper  <drepper@gmail.com>
9721
9722         [BZ #12393]
9723         * elf/dl-load.c (fillin_rpath): Move trusted path check...
9724         (is_trusted_path): ...to here.
9725         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
9726         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
9727         using is_trusted_path_normalize() in setuid scripts.
9728
9729 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
9730
9731         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
9732         __BEGIN/__END_DECLS.
9733
9734 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
9735
9736         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
9737         NSS_STATUS_NOTFOUND if no record was found.
9738
9739 2011-05-05  Andreas Schwab  <schwab@redhat.com>
9740
9741         * sunrpc/Makefile (headers): Add rpc/netdb.h.
9742         (headers-not-in-tirpc): Remove rpc/netdb.h
9743         * resolv/netdb.h: Revert last change.
9744
9745 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
9746
9747         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
9748         circular dependency between libgcc.a and libc.a.
9749
9750 2011-05-05  Andreas Schwab  <schwab@redhat.com>
9751
9752         * resolv/netdb.h: Don't include <rpc/netdb.h>.
9753         * nis/Makefile: Don't install rpcsvc/*.
9754         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
9755         instead of <rpc/types.h>.
9756         (MAXHOSTNAMELEN): Define.
9757
9758 2011-05-03  Andreas Schwab  <schwab@redhat.com>
9759
9760         * elf/ldconfig.c (add_dir): Don't crash on empty path.
9761
9762 2011-04-28  Maciej Babinski  <mbabinski@google.com>
9763
9764         [BZ #12714]
9765         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
9766         gethostbyname4_r when IPv6 results are possible.
9767
9768 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
9769
9770         [BZ #12723]
9771         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
9772         _PC_PIPE_BUF handling.
9773
9774 2011-04-30  Bruno Haible  <bruno@clisp.org>
9775
9776         [BZ #12717]
9777         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
9778         * resolv/netdb.h (getnameinfo): Change type of flags parameter
9779         to 'int'.
9780         * inet/getnameinfo.c (getnameinfo): Likewise.
9781
9782 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
9783
9784         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
9785         to groups setting in database lookup.
9786         * nss/nsswitch.conf: Add initgroups entry.
9787
9788 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
9789
9790         [BZ #12685]
9791         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
9792         mode string.
9793         Patch by Eric Blake <eblake@redhat.com>.
9794
9795 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
9796
9797         * sunrpc/Makefile (need-export-routines): Add svc_run.
9798         (routines): Remove svc_run.
9799         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
9800         * sunrpc/clnt_perr.c (clnt_perrno): Export.
9801         * sunrpc/svc_run.c (svc_run): Likewise.
9802         * sunrpc/svc_udp.c (svcudp_create): Likewise.
9803
9804 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
9805
9806         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
9807         problem in reallocation in last patch.
9808
9809 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
9810
9811         * sunrpc/Makefile: Move inclusion of Rules.
9812
9813 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
9814
9815         * nss/nss_files/files-initgroups.c: New file.
9816         * nss/Makefile (libnss_files-routines): Add files-initgroups.
9817         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
9818         _nss_files_initgroups_dyn.
9819
9820 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
9821
9822         * elf/elf.h (R_ARM_IRELATIVE): Define.
9823
9824 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
9825
9826         * po/ru.po: Update from translation team.
9827
9828 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
9829
9830         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
9831         dependencies.
9832
9833 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
9834
9835         [BZ #12653]
9836         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
9837         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
9838         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
9839         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
9840         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
9841
9842 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
9843
9844         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
9845         differing bytes.
9846         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
9847         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
9848         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
9849
9850 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
9851
9852         [BZ #12420]
9853         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
9854         storing it.
9855         * stdlib/bug-getcontext.c: New file.
9856         * stdlib/Makefile: Add rules to build and run bug-getcontext.
9857
9858 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9859
9860         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
9861         instructions into .machine "z9-109".
9862         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
9863         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
9864
9865 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9866
9867         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
9868         between environment variables and auxiliary vector.
9869
9870 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
9871
9872         * Makefile: Add rules to build linkobj/libc.so.
9873         * include/libc-symbols.h: Define libc_hidden_nolink.
9874         * include/rpc/auth.h: Mark functions which are to be hidden.
9875         * include/rpc/auth_des.h: Likewise.
9876         * include/rpc/auth_unix.h: Likewise.
9877         * include/rpc/clnt.h: Likewise.
9878         * include/rpc/des_crypt.h: Likewise.
9879         * include/rpc/key_prot.h: Likewise.
9880         * include/rpc/pmap_clnt.h: Likewise.
9881         * include/rpc/pmap_prot.h: Likewise.
9882         * include/rpc/pmap_rmt.h: Likewise.
9883         * include/rpc/rpc_msg.h: Likewise.
9884         * include/rpc/svc.h: Likewise.
9885         * include/rpc/svc_auth.h: Likewise.
9886         * include/rpc/xdr.h: Likewise.
9887         * nis/Makefile: Link all DSOs against linkobj/libc.so.
9888         * nss/Makefile: Likewise.
9889         * sunrpc/Makefile: Don't install headers.  Build library with normal
9890         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
9891         * sunrpc/auth_des.c: Hide exported symbols by default, export some
9892         for the compat linking library.  Remove use of INTDEF/INTUSE.
9893         * sunrpc/auth_none.c: Likewise.
9894         * sunrpc/auth_unix.c: Likewise.
9895         * sunrpc/authdes_prot.c: Likewise.
9896         * sunrpc/authuxprot.c: Likewise.
9897         * sunrpc/clnt_gen.c: Likewise.
9898         * sunrpc/clnt_perr.c: Likewise.
9899         * sunrpc/clnt_raw.c: Likewise.
9900         * sunrpc/clnt_simp.c: Likewise.
9901         * sunrpc/clnt_tcp.c: Likewise.
9902         * sunrpc/clnt_udp.c: Likewise.
9903         * sunrpc/clnt_unix.c: Likewise.
9904         * sunrpc/des_crypt.c: Likewise.
9905         * sunrpc/des_soft.c: Likewise.
9906         * sunrpc/get_myaddr.c: Likewise.
9907         * sunrpc/key_call.c: Likewise.
9908         * sunrpc/key_prot.c: Likewise.
9909         * sunrpc/netname.c: Likewise.
9910         * sunrpc/pm_getmaps.c: Likewise.
9911         * sunrpc/pm_getport.c: Likewise.
9912         * sunrpc/pmap_clnt.c: Likewise.
9913         * sunrpc/pmap_prot.c: Likewise.
9914         * sunrpc/pmap_prot2.c: Likewise.
9915         * sunrpc/pmap_rmt.c: Likewise.
9916         * sunrpc/publickey.c: Likewise.
9917         * sunrpc/rpc_cmsg.c: Likewise.
9918         * sunrpc/rpc_common.c: Likewise.
9919         * sunrpc/rpc_dtable.c: Likewise.
9920         * sunrpc/rpc_prot.c: Likewise.
9921         * sunrpc/rpc_thread.c: Likewise.
9922         * sunrpc/rtime.c: Likewise.
9923         * sunrpc/svc.c: Likewise.
9924         * sunrpc/svc_auth.c: Likewise.
9925         * sunrpc/svc_authux.c: Likewise.
9926         * sunrpc/svc_raw.c: Likewise.
9927         * sunrpc/svc_run.c: Likewise.
9928         * sunrpc/svc_simple.c: Likewise.
9929         * sunrpc/svc_tcp.c: Likewise.
9930         * sunrpc/svc_udp.c: Likewise.
9931         * sunrpc/svc_unix.c: Likewise.
9932         * sunrpc/svcauth_des.c: Likewise.
9933         * sunrpc/xcrypt.c: Likewise.
9934         * sunrpc/xdr.c: Likewise.
9935         * sunrpc/xdr_array.c: Likewise.
9936         * sunrpc/xdr_float.c: Likewise.
9937         * sunrpc/xdr_intXX_t.c: Likewise.
9938         * sunrpc/xdr_mem.c: Likewise.
9939         * sunrpc/xdr_rec.c: Likewise.
9940         * sunrpc/xdr_ref.c: Likewise.
9941         * sunrpc/xdr_sizeof.c: Likewise.
9942         * sunrpc/xdr_stdio.c: Likewise.
9943
9944 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
9945
9946         [BZ #12650]
9947         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
9948         * sysdeps/ia64/dl-tls.h: Likewise.
9949         * sysdeps/powerpc/dl-tls.h: Likewise.
9950         * sysdeps/s390/dl-tls.h: Likewise.
9951         * sysdeps/sh/dl-tls.h: Likewise.
9952         * sysdeps/sparc/dl-tls.h: Likewise.
9953         * sysdeps/x86_64/dl-tls.h: Likewise.
9954         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
9955
9956 2011-03-14  Andreas Schwab  <schwab@redhat.com>
9957
9958         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
9959         rpath element also skip the following colon.
9960         (expand_dynamic_string_token): Add is_path parameter and pass
9961         down to DL_DST_REQUIRED and _dl_dst_substitute.
9962         (decompose_rpath): Call expand_dynamic_string_token with
9963         non-zero is_path.  Ignore empty rpaths.
9964         (_dl_map_object_from_fd): Call expand_dynamic_string_token
9965         with zero is_path.
9966
9967 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
9968
9969         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
9970         Make cancelable.
9971
9972 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
9973
9974         [BZ #12655]
9975         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
9976         Patch by Filipe David Manana <fdmanana@apache.org>.
9977
9978 2011-04-07  Andreas Schwab  <schwab@redhat.com>
9979
9980         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
9981         Maintain aligned stack.
9982         (CHECK_RSP): Remove unused macro.
9983
9984 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
9985
9986         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
9987         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
9988
9989 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
9990
9991         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
9992
9993         * include/features.h: Mention __USE_XOPEN2K8 in comment.
9994
9995 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
9996
9997         [BZ #12518]
9998         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
9999         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
10000         * sysdeps/x86_64/memmove.c: New file.
10001         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
10002         (memcpy): Renamed to ...
10003         (__new_memcpy): This.
10004         (memcpy): Provide GLIBC_2_14 memcpy.
10005         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
10006         (memcpy): Provide GLIBC_2_2_5 memcpy.
10007
10008 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
10009
10010         [BZ #12631]
10011         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
10012
10013 2011-03-30  Andreas Schwab  <schwab@redhat.com>
10014
10015         * misc/syncfs.c: New file.
10016         * misc/Makefile (routines): Add syncfs.
10017         * posix/unistd.h: Declare syncfs.
10018         * sysdeps/unix/syscalls.list: Add syncfs.
10019
10020 2011-04-01  Andreas Schwab  <schwab@redhat.com>
10021
10022         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
10023         open_by_handle_at.
10024         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
10025         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10026         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10027         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10028         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10029         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
10030         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10031
10032 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
10033
10034         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
10035         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10036         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
10037         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10038         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10039         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10040         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10041
10042         * io/Makefile: Compile fallocate.c, fallocate64.c, and
10043         sync_file_range.c with -fexceptions.
10044         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
10045         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
10046         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
10047         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
10048         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
10049         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
10050         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
10051         sync_file_range as cancellation point
10052         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
10053         now a wrapper around __call_sync_file_range with cancellation handling.
10054         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
10055         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
10056         function name to __call_sync_file_range.
10057         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
10058         Add call_sync_file_range.
10059
10060 2011-04-01  Andreas Schwab  <schwab@redhat.com>
10061
10062         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10063         bits/timex.h.
10064
10065 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
10066
10067         * iconv/iconv.h: Fix typo in comment.
10068         * io/fcntl.h: Likewise.
10069         * libio/stdio.h: Likewise.
10070         * posix/spawn.h: Likewise.
10071         * posix/unistd.h: Likewise.
10072         * stdlib/stdlib.h: Likewise.
10073         * time/time.h: Likewise.
10074         * wcsmbs/wchar.h: Likewise.
10075
10076         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
10077         open_by_handle): Add.
10078         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
10079         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
10080         Augment a few comments.
10081         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
10082         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
10083         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
10084         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
10085         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
10086         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
10087         open_by_handle.
10088
10089         * io/fcntl.h (AT_EMPTY_PATH): Define.
10090
10091 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
10092
10093         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
10094         * sysdeps/unix/sysv/linux/bits/time.h: New file.
10095         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
10096         to...
10097         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
10098         * Versions.def: Add GLIBC_2.14.
10099         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
10100         Export.
10101
10102 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
10103
10104         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
10105         round counter.
10106         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
10107
10108 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
10109
10110         [BZ #12597]
10111         * string/test-strncmp.c (do_page_test): New function.
10112         (check2): Likewise.
10113         (test_main): Call check2.
10114         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
10115
10116 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
10117
10118         [BZ #12587]
10119         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
10120         Handle cache information in CPU leaf 4.
10121         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
10122
10123 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
10124
10125         [BZ #12583]
10126         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
10127         character representation.
10128         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
10129
10130 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
10131
10132         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
10133         END(__isnan) to END(__isnanf) to match function entry point/label
10134         EALIGN(__isnanf,...).
10135
10136 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
10137
10138         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
10139
10140 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
10141
10142         [BZ #12510]
10143         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
10144         copy from the symbol referenced in the relocation to initialize the
10145         used variable.
10146         Patch by Piotr Bury <pbury@goahead.com>.
10147         * elf/Makefile: Add rules to build and tst-unique3.
10148         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
10149         * elf/tst-unique3.cc: New file.
10150         * elf/tst-unique3.h: New file.
10151         * elf/tst-unique3lib.cc: New file.
10152         * elf/tst-unique3lib2.cc: New file.
10153
10154         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
10155
10156 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
10157
10158         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
10159         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
10160         to _start.
10161
10162 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
10163
10164         * elf/dl-load.c (_dl_map_object): If we are looking for the first
10165         to-be-loaded object along a path to loader is ld.so.
10166
10167 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
10168             Ulrich Drepper  <drepper@gmail.com>
10169
10170         * sysdeps/x86_64/memset.S: After aligning destination, code
10171         branches to different locations depending on the value of
10172         misalignment, when multiarch is enabled. Fix this.
10173
10174 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
10175
10176         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
10177         Set _x86_64_preferred_memory_instruction for AMD processsors.
10178         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10179         Set bit_Prefer_SSE_for_memop for AMD processors.
10180
10181 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
10182
10183         * libio/fmemopen.c (fmemopen): Optimize a bit.
10184
10185 2011-03-03  Andreas Schwab  <schwab@redhat.com>
10186
10187         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
10188
10189 2011-03-03  Roland McGrath  <roland@redhat.com>
10190
10191         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
10192
10193 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
10194
10195         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
10196         __bzero_ultra1 instead of __memset_ultra1.
10197
10198 2011-02-23  Andreas Schwab  <schwab@redhat.com>
10199             Ulrich Drepper  <drepper@gmail.com>
10200
10201         [BZ #12509]
10202         * include/link.h (struct link_map): Add l_orig_initfini.
10203         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
10204         returning unsuccessfully.
10205         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
10206         close of a file loaded at startup, restore the original l_initfini
10207         list.
10208         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
10209         list, store the pointer.
10210         * elf/Makefile ($(objpfx)noload-mem): New rule.
10211         (noload-ENV): Define.
10212         (tests): Add $(objpfx)noload-mem.
10213         * elf/noload.c: Include <memcheck.h>.
10214         (main): Call mtrace.  Close all opened handles.
10215
10216 2011-02-17  Andreas Schwab  <schwab@redhat.com>
10217
10218         [BZ #12454]
10219         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
10220         dependencies are missing.
10221
10222 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10223
10224         Fix __if_freereq crash: Unlike the generic version which uses free,
10225         Hurd needs munmap.
10226         * sysdeps/mach/hurd/ifreq.h: New file.
10227
10228 2011-01-27  Petr Baudis  <pasky@suse.cz>
10229             Ulrich Drepper  <drepper@gmail.com>
10230
10231         [BZ 12445]#
10232         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
10233         to extend_alloca().
10234         * stdio-common/bug23.c: New file.
10235         * stdio-common/Makefile (tests): Add bug23.
10236
10237 2010-09-28  Andreas Schwab  <schwab@redhat.com>
10238             Ulrich Drepper  <drepper@gmail.com>
10239
10240         [BZ #12489]
10241         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
10242         before performing relro protection.  At old place add assertion
10243         to make sure nothing changed.
10244
10245 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
10246             Glauber de Oliveira Costa  <glommer@gmail.com>
10247
10248         * elf/elf.h: Add new ARM TLS relocs.
10249
10250 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
10251
10252         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
10253         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
10254         cast from r3.
10255         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
10256         'tests' variable.
10257         * sysdeps/wordsize-64/tst-writev.c: New file.
10258
10259 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
10260
10261         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
10262         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
10263         insns in _dl_start to prevent a TOC reference before relocs are
10264         resolved.
10265
10266 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
10267
10268         [BZ #12469]
10269         * Makeconfig: Remove RANLIB definition.
10270         * Makerules: Don't use RANLIB.
10271         * aclocal.m4: Remove ranlib test.
10272         * configure.in: No need to check for ranlib.
10273         * elf/rtld-Rules: Don't use RANLIB.
10274
10275 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10276
10277         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
10278         protection macro.
10279         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
10280         inclusion protection macro.
10281
10282         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
10283         SIGRTMIN and SIGRTMAX and print information in that case only when
10284         SIGRTMIN is defined.
10285
10286 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
10287
10288         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
10289         arginfo fn returning -1.
10290
10291         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
10292         and thousands string is zero terminated.
10293
10294 2011-02-03  Andreas Schwab  <schwab@redhat.com>
10295
10296         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
10297         sysdeps/unix/sysv/linux/bits/socket.h.
10298
10299 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10300
10301         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
10302         (__CPU_COUNT): Remove old macros.
10303         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
10304         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
10305         (__CPU_ALLOC, __CPU_FREE): Add macros.
10306         (__sched_cpualloc, __sched_cpufree): Add declarations.
10307
10308 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
10309
10310         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
10311         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
10312         * nscd/aicache.c (addhstaiX): Return timeout of added value.
10313         (readdhstai): Return value of addhstaiX call.
10314         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
10315         (addgrbyX): Return value returned by cache_addgr.
10316         (readdgrbyname): Return value returned by addgrbyX.
10317         (readdgrbygid): Likewise.
10318         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
10319         (addpwbyX): Return value returned by cache_addpw.
10320         (readdpwbyname): Return value returned by addhstbyX.
10321         (readdpwbyuid): Likewise.
10322         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
10323         (addservbyX): Return value returned by cache_addserv.
10324         (readdservbyname): Return value returned by addservbyX:
10325         (readdservbyport): Likewise.
10326         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
10327         (addhstbyX): Return value returned by cache_addhst.
10328         (readdhstbyname): Return value returned by addhstbyX.
10329         (readdhstbyaddr): Likewise.
10330         (readdhstbynamev6): Likewise.
10331         (readdhstbyaddrv6): Likewise.
10332         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
10333         (readdinitgroups): Return value returned by addinitgroupsX.
10334         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
10335         (prune_cache): Keep track of timeout value of re-added entries.
10336         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
10337         * nscd/nscd.h: Adjust prototypes of readd* functions.
10338
10339 2011-02-04  Roland McGrath  <roland@redhat.com>
10340
10341         * nis/nis_server.c (nis_servstate): Use the right name for 0.
10342         (nis_stats): Likewise.
10343         * nis/nis_modify.c (nis_modify): Likewise.
10344         * nis/nis_remove.c (nis_remove): Likewise.
10345         * nis/nis_add.c (nis_add): Likewise.
10346
10347         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
10348
10349         * posix/fnmatch_loop.c: Add some consts.
10350
10351         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
10352
10353 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
10354
10355         [BZ #12460]
10356         * config.make.in (config-cflags-novzeroupper): Define.
10357         * configure.in: Substitute libc_cv_cc_novzeroupper.
10358         * elf/Makefile (AVX-CFLAGS): Define.
10359         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
10360         (CFLAGS-tst-auditmod4a.c): Likewise.
10361         (CFLAGS-tst-auditmod4b.c): Likewise.
10362         (CFLAGS-tst-auditmod6b.c): Likewise.
10363         (CFLAGS-tst-auditmod6c.c): Likewise.
10364         (CFLAGS-tst-auditmod7b.c): Likewise.
10365         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
10366
10367 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
10368
10369         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
10370         function to the callback.
10371         Patch partly by Jiri Olsa <jolsa@redhat.com>.
10372
10373 2011-02-02  Andreas Schwab  <schwab@redhat.com>
10374
10375         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
10376         of errno.
10377
10378 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
10379
10380         [BZ #11724]
10381         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
10382         of constructors.
10383         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
10384         of destructors.
10385         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
10386
10387         [BZ #11724]
10388         * elf/Makefile: Add rules to build and run new test.
10389         * elf/tst-initorder.c: New file.
10390         * elf/tst-initorder.exp: New file.
10391         * elf/tst-initordera1.c: New file.
10392         * elf/tst-initordera2.c: New file.
10393         * elf/tst-initordera3.c: New file.
10394         * elf/tst-initordera4.c: New file.
10395         * elf/tst-initorderb1.c: New file.
10396         * elf/tst-initorderb2.c: New file.
10397         * elf/tst-order-a1.c: New file.
10398         * elf/tst-order-a2.c: New file.
10399         * elf/tst-order-a3.c: New file.
10400         * elf/tst-order-a4.c: New file.
10401         * elf/tst-order-b1.c: New file.
10402         * elf/tst-order-b2.c: New file.
10403         * elf/tst-order-main.c: New file.
10404         New test case by George Gensure <werkt0@gmail.com>.
10405
10406 2010-10-01  Andreas Schwab  <schwab@redhat.com>
10407
10408         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
10409         decoding ACE if AI_CANONIDN.
10410
10411 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
10412
10413         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
10414
10415 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
10416
10417         * version.h (RELEASE): Bump for 2.13 release.
10418         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
10419
10420         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
10421
10422         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
10423         MADV_NOHUGEPAGE.
10424         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
10425         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
10426         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
10427         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
10428         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
10429         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
10430
10431         * posix/getconf.c: Update copyright year.
10432         * catgets/gencat.c: Likewise.
10433         * csu/version.c: Likewise.
10434         * debug/catchsegv.sh: Likewise.
10435         * debug/xtrace.sh: Likewise.
10436         * elf/ldconfig.c: Likewise.
10437         * elf/ldd.bash.in: Likewise.
10438         * elf/sprof.c (print_version): Likewise.
10439         * iconv/iconv_prog.c: Likewise.
10440         * iconv/iconvconfig.c: Likewise.
10441         * locale/programs/locale.c: Likewise.
10442         * locale/programs/localedef.c: Likewise.
10443         * malloc/memusage.sh: Likewise.
10444         * malloc/mtrace.pl: Likewise.
10445         * nscd/nscd.c (print_version): Likewise.
10446         * nss/getent.c: Likewise.
10447
10448         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
10449         PF_CAIF, and PF_ALG.
10450         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10451
10452 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
10453
10454         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
10455         (modules-names): Use them.
10456         (ifunc-test-modules, ifunc-pie-tests): Define.
10457         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
10458         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
10459         (test-extras): Likewise.
10460         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
10461         $(compile-command.c).
10462         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
10463         (all-built-dso): Define.
10464         (check-textrel.out, check-execstack.out): Depend on it.
10465
10466         * configure.in: Don't override --enable-multi-arch.
10467
10468 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
10469
10470         [BZ #6812]
10471         * nscd/hstcache.c (tryagain): Define.
10472         (cache_addhst): Return tryagain not notfound for temporary errors.
10473         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
10474         failed.
10475
10476 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
10477
10478         [BZ #10563]
10479         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
10480         to make the syscall.
10481         * sysdeps/unix/sysv/linux/setgroups.c: New file.
10482
10483         [BZ #12378]
10484         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
10485         and fall back to matching as normal character if the string ends before
10486         the matching ']' is found.  This is what POSIX requires.
10487         * posix/testfnm.c: Adjust test result.
10488         * posix/globtest.sh: Adjust test result.  Add new test.
10489         * posix/tst-fnmatch.input: Likewise.
10490         * posix/tst-fnmatch2.c: Add new test.
10491
10492 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
10493
10494         * elf/Makefile (check-execstack): Revert last change.  Depend on
10495         check-execstack.h.
10496         (check-execstack.h): New target.
10497         (generated): Add check-execstack.h.
10498         * elf/check-execstack.c: Include "check-execstack.h".
10499         (main): Revert last change.
10500         (handle_file): Return zero if GNU_STACK is absent and
10501         DEFAULT_STACK_PERMS doesn't include PF_X.
10502
10503 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
10504
10505         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
10506         in child fails because the descriptor is already closed.
10507         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
10508         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
10509         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
10510
10511         [BZ #12397]
10512         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
10513         syscall.
10514
10515         [BZ #10484]
10516         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
10517         temporary buffer used to handle multi lookups locally.
10518         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
10519
10520 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10521
10522         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
10523         loader is ld.so.
10524
10525 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
10526
10527         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
10528         alignment for SSE2.
10529
10530 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
10531
10532         [BZ #12394]
10533         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
10534         characters.  When rounding increased number of integer digits recompute
10535         number of groups.
10536         * stdio-common/tst-grouping.c: New file.
10537         * stdio-common/Makefile: Add rules to build and run tst-grouping.
10538
10539 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
10540
10541         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
10542         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
10543
10544         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
10545         void.
10546         * bits/select.h: Likewise.
10547
10548 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
10549
10550         * po/ja.po: Update from translation team.
10551
10552 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
10553
10554         [BZ #11155]
10555         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
10556         implementation just like for lxstat, fxstatat, et al.
10557
10558 2010-12-27  Jim Meyering  <meyering@redhat.com>
10559
10560         [BZ #12348]
10561         * posix/regexec.c (build_trtable): Return failure indication upon
10562         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
10563
10564 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
10565
10566         [BZ #12201]
10567         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
10568         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
10569         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
10570         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
10571
10572         [BZ #12207]
10573         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
10574
10575         [BZ #12204]
10576         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
10577         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
10578
10579 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
10580
10581         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
10582         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
10583         script has SORT_BY_INIT_PRIORITY.
10584         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
10585         NO_CTORS_DTORS_SECTIONS is defined.
10586         * elf/soinit.c: Likewise.
10587         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
10588         NO_CTORS_DTORS_SECTIONS is defined.
10589         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
10590         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
10591         * sysdeps/sh/init-first.c: Likewise.
10592         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
10593
10594 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
10595
10596         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
10597         always use the slow path.
10598
10599 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
10600
10601         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
10602         similar rule which adds the sysdep directories to the header search in
10603         order to pick up the correct platform stackinfo.h.
10604         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
10605         perform test if it is, otherwise return successfully without testing.
10606         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
10607         DEFAULT_STACK_PERMS define in stackinfo.h.
10608         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
10609         defined in stackinfo.h.
10610         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
10611         DEFAULT_STACK_PERMS defined in stackinfo.h.
10612         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
10613         * sysdeps/ia64/stackinfo.h: Likewise.
10614         * sysdeps/s390/stackinfo.h: Likewise.
10615         * sysdeps/sh/stackinfo.h: Likewise.
10616         * sysdeps/sparc/stackinfo.h: Likewise.
10617         * sysdeps/x86_64/stackinfo.h: Likewise.
10618         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
10619         PF_X for powerpc64.  Retain PF_X for powerpc32.
10620
10621 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
10622
10623         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
10624         accurately.
10625         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
10626         GETDENTS_64BIT_ALIGNED.
10627
10628 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
10629
10630         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
10631
10632 2010-12-10  Andreas Schwab  <schwab@redhat.com>
10633
10634         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
10635         _GNU_SOURCE.
10636
10637         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
10638         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
10639         Remove __restrict.
10640         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
10641         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
10642
10643 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
10644
10645         [BZ #11655]
10646         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
10647         are initialized.
10648
10649 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
10650
10651         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
10652
10653 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
10654
10655         * po/it.po: Update from translation team.
10656
10657 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
10658
10659         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
10660         unused codes.
10661
10662 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
10663
10664         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
10665
10666 2010-11-24  Andreas Schwab  <schwab@redhat.com>
10667
10668         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
10669         specially.
10670         (gaih_getanswer_slice): Likewise.
10671
10672 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
10673
10674         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
10675
10676 2010-05-31  Petr Baudis  <pasky@suse.cz>
10677
10678         [BZ #11149]
10679         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
10680         silently even in the chroot mode.
10681
10682 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
10683
10684         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
10685         last patch a bit.  Pretty printing
10686
10687 2010-05-31  Petr Baudis <pasky@suse.cz>
10688
10689         [BZ #10085]
10690         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
10691         initialization of skip_initgroups_dyn.
10692
10693 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
10694
10695         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
10696         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
10697
10698 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
10699
10700         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
10701
10702 2010-11-11  Andreas Schwab  <schwab@redhat.com>
10703
10704         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
10705         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
10706         (tst-fnmatch-ENV): Set MALLOC_TRACE.
10707         ($(objpfx)tst-fnmatch-mem): New rule.
10708         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
10709         * posix/tst-fnmatch.c (main): Call mtrace.
10710
10711 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
10712
10713         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10714         Support Intel processor model 6 and model 0x2c.
10715
10716 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
10717
10718         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
10719           signed comparison.
10720
10721 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
10722
10723         [BZ #12205]
10724         * string/test-strncasecmp.c (check_result): New function.
10725         (do_one_test): Use it.
10726         (check1): New function.
10727         (test_main): Use it.
10728         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
10729         Support strcasecmp and strncasecmp.
10730
10731 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
10732
10733         [BZ #12194]
10734         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
10735         * sysdeps/x86_64/bits/byteswap.h: Likewise.
10736
10737 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
10738
10739         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
10740         IFUNC support.
10741         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10742         memset-x86-64.
10743         * sysdeps/x86_64/multiarch/bzero.S: New file.
10744         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
10745         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
10746         * sysdeps/x86_64/multiarch/memset.S: New file.
10747         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
10748         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10749         Set bit_Prefer_SSE_for_memop for Intel processors.
10750         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
10751         Define.
10752         (index_Prefer_SSE_for_memop): Define.
10753         (HAS_PREFER_SSE_FOR_MEMOP): Define.
10754
10755 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
10756
10757         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
10758         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
10759
10760 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
10761
10762         [BZ #12191]
10763         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
10764         (__x86_64_raw_data_cache_size_half): Likewise.
10765         (__x86_64_raw_shared_cache_size): Likewise.
10766         (__x86_64_raw_shared_cache_size_half): Likewise.
10767
10768         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
10769         (__x86_64_raw_data_cache_size_half): Likewise.
10770         (__x86_64_raw_shared_cache_size): Likewise.
10771         (__x86_64_raw_shared_cache_size_half): Likewise.
10772         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
10773         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
10774         and __x86_64_raw_shared_cache_size_half.  Round
10775         __x86_64_data_cache_size_half, __x86_64_data_cache_size
10776         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
10777         to multiple of 256 bytes.
10778
10779 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
10780
10781         [BZ #12167]
10782         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
10783         of inacessible symlinks.  Verify result of symlink before returning it.
10784         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
10785         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
10786
10787 2010-10-28  Erich Ritz  <erichritz@gmail.com>
10788
10789         * math/math.h (isinf): Fix typo in comment.
10790
10791 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
10792
10793         * po/da.po: Update from translation team.
10794
10795 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
10796
10797         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
10798         is added to the list.
10799
10800 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10801             Ulrich Drepper  <drepper@gmail.com>
10802
10803         * elf/dl-object.c (_dl_new_object): Don't append the new object to
10804         the global list here.  Move code to...
10805         (_dl_add_to_namespace_list): ...here.  New function.
10806         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
10807         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
10808         * elf/dl-load.c (lose): Don't remove the element from the list.
10809         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
10810         (_dl_map_object): Likewise.
10811
10812 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
10813
10814         [BZ #12159]
10815         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
10816         into all bytes of SSE register.
10817         Patch by Richard Li <richardpku@gmail.com>.
10818
10819 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
10820
10821         [BZ #12140]
10822         * malloc/malloc.c (_int_free): Fill correct number of bytes when
10823         perturbing.
10824
10825 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
10826
10827         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
10828         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
10829         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
10830         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
10831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
10832         submachine.
10833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
10834
10835 2010-10-22  Andreas Schwab  <schwab@redhat.com>
10836
10837         * include/dlfcn.h (__RTLD_SECURE): Define.
10838         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
10839         mode & __RTLD_SECURE instead.
10840         (open_path): Rename preloaded parameter to secure.
10841         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
10842         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
10843         * elf/dl-deps.c (openaux): Likewise.
10844         * elf/rtld.c (struct map_args): Remove is_preloaded.
10845         (map_doit): Don't use it.
10846         (dl_main): Likewise.
10847         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
10848         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
10849
10850 2010-09-09  Andreas Schwab  <schwab@redhat.com>
10851
10852         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
10853         (sysd-rules-targets): Remove duplicates.
10854         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
10855         rtld-%.$o dependency.
10856
10857 2010-10-18  Andreas Schwab  <schwab@redhat.com>
10858
10859         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
10860         _dl_map_object do it.
10861
10862 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
10863
10864         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
10865         fast fma builtins, define the macros in the C99 standard.
10866         (FP_FAST_FMAF): Likewise.
10867         (FP_FAST_FMAL): Likewise.
10868         * sysdeps/x86_64/bits/mathdef.h: Likewise.
10869
10870         * bits/mathdef.h: Update copyright year.
10871         * sysdeps/powerpc/bits/mathdef.h: Likewise.
10872
10873 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
10874
10875         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
10876         builtins, define the macros in the C99 standard.
10877         (FP_FAST_FMAF): Likewise.
10878         (FP_FAST_FMAL): Likewise.
10879         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
10880         multiply/add.
10881         (FP_FAST_FMAF): Likewise.
10882
10883 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
10884
10885         [BZ #3268]
10886         * math/libm-test.inc (fma_test): Some new testcases.
10887         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
10888         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
10889         y and infinite z.  Do multiplication by C already in long double.
10890         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
10891         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
10892         y and infinite z.  Do bitwise or of inexact bit into u.d.
10893         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
10894         * sysdeps/i386/fpu/s_fmaf.S: Removed.
10895         * sysdeps/i386/fpu/s_fma.S: Removed.
10896         * sysdeps/i386/fpu/s_fmal.S: Removed.
10897
10898 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
10899
10900         [BZ #3268]
10901         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
10902         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
10903         computation is not scheduled after fetestexcept.  Fix value
10904         of minimum denormal long double.
10905
10906 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
10907
10908         [BZ #3268]
10909         * math/libm-test.inc (fma_test): Add some more tests.
10910         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
10911         correctly.
10912
10913 2010-10-15  Andreas Schwab  <schwab@redhat.com>
10914
10915         * scripts/data/localplt-s390-linux-gnu.data: New file.
10916         * scripts/data/localplt-s390x-linux-gnu.data: New file.
10917
10918 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
10919
10920         [BZ #3268]
10921         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
10922         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
10923         instead of dbl-64.
10924         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
10925         inlines.
10926         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
10927         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
10928         if one of x and y is very large and the other is subnormal.
10929         * sysdeps/s390/fpu/s_fmaf.c: New file.
10930         * sysdeps/s390/fpu/s_fma.c: New file.
10931         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
10932         * sysdeps/powerpc/fpu/s_fma.S: New file.
10933         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
10934         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
10935         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
10936
10937 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
10938
10939         [BZ #3268]
10940         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
10941         fma tests.
10942         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
10943         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
10944         * sysdeps/i386/i686/multiarch/s_fma.c: Include
10945         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
10946         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
10947         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
10948         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
10949
10950 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
10951
10952         [BZ #12078]
10953         * posix/regcomp.c (parse_branch): One more memory leak plugged.
10954         * posix/bug-regex31.input: Add test case.
10955
10956 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
10957
10958         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
10959         * posix/bug-regex31.input: New file.
10960
10961         [BZ #12078]
10962         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
10963         (parse_sub_exp): Fix last change, use postorder.
10964
10965         * posix/bug-regex31.c: New file.
10966         * posix/Makefile: Add rules to build and run bug-regex31.
10967
10968         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
10969
10970         [BZ #12078]
10971         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
10972
10973         [BZ #12108]
10974         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
10975         to have entries in sys_siglist.
10976
10977         [BZ #12093]
10978         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
10979         be NULL.
10980
10981 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
10982
10983         [BZ #3268]
10984         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
10985         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
10986         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
10987         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
10988         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
10989         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
10990         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
10991         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
10992         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
10993         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
10994         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
10995         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
10996         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
10997         * math/ftestexcept.c (fetestexcept): Likewise.
10998         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
10999         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
11000         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
11001         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
11002         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
11003         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
11004         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
11005
11006 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
11007
11008         [BZ #12107]
11009         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
11010         newline.
11011
11012 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
11013
11014         * string/bug-strstr1.c: New file.
11015         * string/Makefile: Add rules to build and run bug-strstr1.
11016
11017 2010-10-05  Eric Blake  <eblake@redhat.com>
11018
11019         [BZ #12092]
11020         * string/str-two-way.h (two_way_long_needle): Always clear memory
11021         when skipping input due to the shift table.
11022
11023 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
11024
11025         [BZ #12005]
11026         * malloc/mcheck.c: Handle large requests.
11027
11028         [BZ #12077]
11029         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
11030         for strncmp and strncasecmp.
11031         * string/stratcliff.c: Add tests for strcmp and strncmp.
11032         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
11033
11034 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
11035
11036         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
11037         __set_fpscr.
11038
11039 2010-09-30  Andreas Jaeger  <aj@suse.de>
11040
11041         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
11042         (CGROUP_SUPER_MAGIC): Define.
11043         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11044         Handle btrfs and cgroup file systems.
11045         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
11046         Likewise.
11047
11048 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
11049
11050         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
11051         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
11052
11053 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11054
11055         [BZ #12067]
11056         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
11057         trying to locate the ELF header.
11058
11059 2010-09-27  Andreas Schwab  <schwab@redhat.com>
11060
11061         [BZ #11611]
11062         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
11063         Mask out sign-bit copies when constructing f_fsid.
11064
11065 2010-09-24  Petr Baudis <pasky@suse.cz>
11066
11067         * debug/stack_chk_fail_local.c: Add missing licence exception.
11068         * debug/warning-nop.c: Likewise.
11069
11070 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
11071
11072         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
11073         implementing getdents64 using getdents syscall, set d_type if
11074         __ASSUME_GETDENTS32_D_TYPE.
11075
11076 2010-09-16  Andreas Schwab  <schwab@redhat.com>
11077
11078         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
11079         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
11080
11081 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
11082
11083         [BZ #12037]
11084         * posix/unistd.h: Undo change of feature selection for ftruncate from
11085         2010-01-11.
11086
11087 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
11088
11089         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
11090         detection.
11091
11092 2010-09-20  Andreas Schwab  <schwab@redhat.com>
11093
11094         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
11095         fanotify_mark.
11096         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
11097
11098 2010-09-14  Andreas Schwab  <schwab@redhat.com>
11099
11100         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
11101         variables after CHECK_SP call.
11102         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
11103
11104 2010-09-13  Andreas Schwab  <schwab@redhat.com>
11105             Ulrich Drepper  <drepper@redhat.com>
11106
11107         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
11108         re-relocationg ld.so.
11109         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
11110         _dl_init_paths call.
11111         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
11112         here anymore.
11113
11114 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
11115
11116         * resolv/res_init.c (__res_vinit): Count the default server we added.
11117
11118 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
11119             Ulrich Drepper  <drepper@redhat.com>
11120
11121         [BZ #11968]
11122         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
11123         (____longjmp_chk): Use %ebx for saving value across system call.
11124         Add unwind info.
11125
11126 2010-09-06  Andreas Schwab  <schwab@redhat.com>
11127
11128         * manual/Makefile: Don't mix pattern rules with normal rules.
11129
11130 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
11131
11132         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
11133         operation.
11134         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
11135         * libio/iofopncook.c (_IO_cookie_init): Likewise.
11136         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
11137         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
11138         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
11139         Likewise.
11140
11141 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
11142
11143         [BZ #11979]
11144         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
11145         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
11146
11147 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
11148
11149         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
11150         * sysdeps/x86_64/addmul_1.S: Likewise.
11151         * sysdeps/x86_64/lshift.S: Likewise.
11152         * sysdeps/x86_64/mul_1.S: Likewise.
11153         * sysdeps/x86_64/rshift.S: Likewise.
11154         * sysdeps/x86_64/sub_n.S: Likewise.
11155         * sysdeps/x86_64/submul_1.S: Likewise.
11156
11157 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11158
11159         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
11160         Define __sched_param instead of SCHED_* and sched_param when
11161         <bits/sched.h> is included with __need_schedparam defined.
11162         * bits/sched.h [__need_schedparam]
11163         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
11164         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
11165         (__defined_schedparam): Define to 1.
11166         (__sched_param): New structure, identical to sched_param.
11167         (__need_schedparam): Undefine.
11168
11169 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
11170
11171         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
11172         (epoll_create1): Declare.
11173
11174         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
11175
11176 2010-08-31  Andreas Schwab  <schwab@redhat.com>
11177
11178         [BZ #7066]
11179         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
11180         shifting retval into place.
11181
11182 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
11183
11184         * nis/rpcsvc/nis.h: Update copyright notice.
11185         * nis/rpcsvc/nis.x: Likewise.
11186         * nis/rpcsvc/nis_callback.h: Likewise.
11187         * nis/rpcsvc/nis_callback.x: Likewise.
11188         * nis/rpcsvc/nis_object.x: Likewise.
11189         * nis/rpcsvc/nis_tags.h: Likewise.
11190         * nis/rpcsvc/yp.h: Likewise.
11191         * nis/rpcsvc/yp.x: Likewise.
11192         * nis/rpcsvc/ypupd.h: Likewise.
11193         * nis/yp_xdr.c: Likewise.
11194         * nis/ypupdate_xdr.c: Likewise.
11195
11196         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
11197         mainly the body of pmap_getport.  Add parameters to specify timeouts.
11198         (pmap_getport): Use __libc_rpc_getport.
11199         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
11200         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
11201         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
11202
11203 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
11204
11205         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
11206         fanotify_mark.
11207
11208 2010-08-27  Roland McGrath  <roland@redhat.com>
11209
11210         * sysdeps/i386/i686/multiarch/Makefile
11211         (CFLAGS-varshift.c): New variable.
11212
11213 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
11214
11215         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
11216         * sysdeps/i386/i686/multiarch/varshift.c: New file.
11217
11218         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
11219
11220         * sysdeps/x86_64/strlen.S: Minimal code improvement.
11221
11222 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
11223
11224         * sysdeps/x86_64/strlen.S: Unroll the loop.
11225         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11226         strlen-sse2 strlen-sse2-bsf.
11227         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
11228         __strlen_no_bsf if bit_Slow_BSF is set.
11229         (__strlen_sse42): Removed.
11230         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
11231         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
11232
11233 2010-08-25  Roland McGrath  <roland@redhat.com>
11234
11235         * sysdeps/x86_64/multiarch/varshift.S: File removed.
11236         * sysdeps/x86_64/multiarch/varshift.c: New file.
11237         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
11238         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
11239         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
11240         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
11241
11242 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
11243
11244         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11245         strlen-sse2 strlen-sse2-bsf.
11246         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
11247         __strlen_sse2_bsf if bit_Slow_BSF is unset.
11248         (__strlen_sse2): Removed.
11249         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
11250         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
11251         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
11252         bit_Slow_BSF for Atom.
11253         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
11254         (index_Slow_BSF): Define.
11255         (HAS_SLOW_BSF): Define.
11256
11257 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
11258
11259         [BZ #10851]
11260         * resolv/res_init.c (__res_vinit): When no server address at all
11261         is given default to loopback.
11262
11263 2010-08-24  Roland McGrath  <roland@redhat.com>
11264
11265         * configure.in: Remove config-name.h generation.
11266         * configure: Regenerated.
11267         * config-name.in: File removed.
11268         * scripts/config-uname.sh: New file.
11269         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
11270         ($(objdir)config-name.h): New target.
11271
11272         * sunrpc/rpc_parse.h: Avoid nested comment.
11273
11274 2010-08-24  Richard Henderson  <rth@redhat.com>
11275             Ulrich Drepper  <drepper@redhat.com>
11276             H.J. Lu  <hongjiu.lu@intel.com>
11277
11278         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
11279         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
11280         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
11281         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
11282         _mm_alignr_epi8 with _mm_loadu_si128.
11283         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
11284         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
11285         (__m128i_shift_right): Removed.
11286         * sysdeps/i386/i686/multiarch/varshift.h: New file.
11287         * sysdeps/i386/i686/multiarch/varshift.S: New file.
11288         * sysdeps/x86_64/multiarch/varshift.h: New file.
11289         * sysdeps/x86_64/multiarch/varshift.S: New file.
11290
11291 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
11292
11293         * configure.in: Move assembler checks to before sysdep dir checking.
11294
11295 2010-08-20  Petr Baudis  <pasky@suse.cz>
11296
11297         * LICENSES: Sync the sunrpc license.
11298
11299 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
11300
11301         * sunrpc/auth_des.c: Update copyright notice once again.
11302         * sunrpc/auth_none.c: Likewise.
11303         * sunrpc/auth_unix.c: Likewise.
11304         * sunrpc/authdes_prot.c: Likewise.
11305         * sunrpc/authuxprot.c: Likewise.
11306         * sunrpc/bindrsvprt.c: Likewise.
11307         * sunrpc/clnt_gen.c: Likewise.
11308         * sunrpc/clnt_perr.c: Likewise.
11309         * sunrpc/clnt_raw.c: Likewise.
11310         * sunrpc/clnt_simp.c: Likewise.
11311         * sunrpc/clnt_tcp.c: Likewise.
11312         * sunrpc/clnt_udp.c: Likewise.
11313         * sunrpc/clnt_unix.c: Likewise.
11314         * sunrpc/des_crypt.c: Likewise.
11315         * sunrpc/des_soft.c: Likewise.
11316         * sunrpc/get_myaddr.c: Likewise.
11317         * sunrpc/getrpcport.c: Likewise.
11318         * sunrpc/key_call.c: Likewise.
11319         * sunrpc/key_prot.c: Likewise.
11320         * sunrpc/openchild.c: Likewise.
11321         * sunrpc/pm_getmaps.c: Likewise.
11322         * sunrpc/pm_getport.c: Likewise.
11323         * sunrpc/pmap_clnt.c: Likewise.
11324         * sunrpc/pmap_prot.c: Likewise.
11325         * sunrpc/pmap_prot2.c: Likewise.
11326         * sunrpc/pmap_rmt.c: Likewise.
11327         * sunrpc/rpc/auth.h: Likewise.
11328         * sunrpc/rpc/auth_unix.h: Likewise.
11329         * sunrpc/rpc/clnt.h: Likewise.
11330         * sunrpc/rpc/des_crypt.h: Likewise.
11331         * sunrpc/rpc/key_prot.h: Likewise.
11332         * sunrpc/rpc/netdb.h: Likewise.
11333         * sunrpc/rpc/pmap_clnt.h: Likewise.
11334         * sunrpc/rpc/pmap_prot.h: Likewise.
11335         * sunrpc/rpc/pmap_rmt.h: Likewise.
11336         * sunrpc/rpc/rpc.h: Likewise.
11337         * sunrpc/rpc/rpc_des.h: Likewise.
11338         * sunrpc/rpc/rpc_msg.h: Likewise.
11339         * sunrpc/rpc/svc.h: Likewise.
11340         * sunrpc/rpc/svc_auth.h: Likewise.
11341         * sunrpc/rpc/types.h: Likewise.
11342         * sunrpc/rpc/xdr.h: Likewise.
11343         * sunrpc/rpc_clntout.c: Likewise.
11344         * sunrpc/rpc_cmsg.c: Likewise.
11345         * sunrpc/rpc_common.c: Likewise.
11346         * sunrpc/rpc_cout.c: Likewise.
11347         * sunrpc/rpc_dtable.c: Likewise.
11348         * sunrpc/rpc_hout.c: Likewise.
11349         * sunrpc/rpc_main.c: Likewise.
11350         * sunrpc/rpc_parse.c: Likewise.
11351         * sunrpc/rpc_parse.h: Likewise.
11352         * sunrpc/rpc_prot.c: Likewise.
11353         * sunrpc/rpc_sample.c: Likewise.
11354         * sunrpc/rpc_scan.c: Likewise.
11355         * sunrpc/rpc_scan.h: Likewise.
11356         * sunrpc/rpc_svcout.c: Likewise.
11357         * sunrpc/rpc_tblout.c: Likewise.
11358         * sunrpc/rpc_util.c: Likewise.
11359         * sunrpc/rpc_util.h: Likewise.
11360         * sunrpc/rpcinfo.c: Likewise.
11361         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
11362         * sunrpc/rpcsvc/key_prot.x: Likewise.
11363         * sunrpc/rpcsvc/klm_prot.x: Likewise.
11364         * sunrpc/rpcsvc/mount.x: Likewise.
11365         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
11366         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
11367         * sunrpc/rpcsvc/rex.x: Likewise.
11368         * sunrpc/rpcsvc/rstat.x: Likewise.
11369         * sunrpc/rpcsvc/rusers.x: Likewise.
11370         * sunrpc/rpcsvc/sm_inter.x: Likewise.
11371         * sunrpc/rpcsvc/spray.x: Likewise.
11372         * sunrpc/rpcsvc/yppasswd.x: Likewise.
11373         * sunrpc/rtime.c: Likewise.
11374         * sunrpc/svc.c: Likewise.
11375         * sunrpc/svc_auth.c: Likewise.
11376         * sunrpc/svc_authux.c: Likewise.
11377         * sunrpc/svc_raw.c: Likewise.
11378         * sunrpc/svc_run.c: Likewise.
11379         * sunrpc/svc_simple.c: Likewise.
11380         * sunrpc/svc_tcp.c: Likewise.
11381         * sunrpc/svc_udp.c: Likewise.
11382         * sunrpc/svc_unix.c: Likewise.
11383         * sunrpc/svcauth_des.c: Likewise.
11384         * sunrpc/xcrypt.c: Likewise.
11385         * sunrpc/xdr.c: Likewise.
11386         * sunrpc/xdr_array.c: Likewise.
11387         * sunrpc/xdr_float.c: Likewise.
11388         * sunrpc/xdr_mem.c: Likewise.
11389         * sunrpc/xdr_rec.c: Likewise.
11390         * sunrpc/xdr_ref.c: Likewise.
11391         * sunrpc/xdr_sizeof.c: Likewise.
11392         * sunrpc/xdr_stdio.c: Likewise.
11393
11394         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
11395         handling.
11396
11397 2010-08-19  Andreas Schwab  <schwab@redhat.com>
11398
11399         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
11400
11401 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
11402
11403         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
11404         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
11405         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
11406         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
11407         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
11408         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
11409         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
11410         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
11411         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
11412         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
11413         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
11414         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
11415         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
11416         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
11417
11418 2010-07-26  Anton Blanchard  <anton@samba.org>
11419
11420         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
11421         * malloc/arena.c (heap_trim): Likewise.
11422
11423 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
11424
11425         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
11426         here.  Not...
11427         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
11428         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
11429
11430 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
11431
11432         * sysdeps/i386/elf/Makefile: New file.
11433
11434 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11435
11436         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
11437         from fanotify_init.
11438         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
11439         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11440
11441 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
11442
11443         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
11444         of strncasecmp_l.
11445         * sysdeps/multiarch/strcmp.S: Likewise.
11446
11447 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
11448
11449         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11450         strncase_l-nonascii.
11451         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11452         Add strncase_l-ssse3.
11453         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
11454         * sysdeps/x86_64/strcmp.S: Likewise.
11455         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
11456         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
11457         * sysdeps/x86_64/strncase.S: New file.
11458         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
11459         * sysdeps/x86_64/strncase_l.S: New file.
11460         * string/Makefile (strop-tests): Add strncasecmp.
11461         * string/test-strncasecmp.c: New file.
11462
11463         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
11464         warning.
11465
11466         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
11467         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
11468
11469 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
11470
11471         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
11472
11473 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
11474
11475         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
11476         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
11477         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
11478
11479 2010-05-01  Alan Modra  <amodra@gmail.com>
11480
11481         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
11482         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
11483         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
11484         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
11485         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
11486         tidying.  Don't tail-call __sigjmp_save for static lib.
11487         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
11488         save location.
11489         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
11490         (CALL_MCOUNT): Add eh info, and nop after bl.
11491         (TAIL_CALL_SYSCALL_ERROR): New macro.
11492         (PSEUDO_RET): Use it.
11493         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
11494         Correct save location of integer regs and cr.
11495         (_dl_profile_resolve): Correct cr save location.  Delete nops
11496         after bl when SHARED.  Reduce cfi size a little by better
11497         placement of cfi directives.
11498         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
11499         make a stack frame.  Instead use parm save area as a temp.
11500         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
11501         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
11502         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
11503         Don't make a stack frame for parent, use parm save area.
11504         Increase child stack frame to 112 bytes.  Don't save unused reg,
11505         and adjust reg usage.  Set up cfi on error recovery and
11506         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
11507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
11508         (__makecontext): Add dummy nop after jump to exit.
11509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
11510         Use correct parm save area and cr save, reduce stack frame.
11511         Correct cfi for possible PSEUDO_RET frame setup.
11512         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
11513         Branch to local label emitted by PSEUDO_RET rather than
11514         __syscall_error.
11515
11516 2010-08-12  Andreas Schwab  <schwab@redhat.com>
11517
11518         [BZ #11904]
11519         * locale/programs/locale.c (print_assignment): New function.
11520         (show_locale_vars): Use it.
11521
11522 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
11523
11524         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
11525         field.
11526         (struct statfs64): Likewise.
11527         (_STATFS_F_FLAGS): Define.
11528         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
11529         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
11530         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
11531         (ST_VALID): Define locally.
11532         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
11533         __statvfs_getflags, use the provided value.
11534         * sysdeps/unix/sysv/linux/kernel-features.h: Define
11535         __ASSUME_STATFS_F_FLAGS.
11536
11537         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
11538
11539         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
11540         Add sys/fanotify.h.
11541         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
11542         fanotify_mask for GLIBC_2.13.
11543         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
11544         fanotify_init and fanotify_mark.
11545         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
11546         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
11547
11548         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
11549         Add prlimit.
11550         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
11551         prlimit64 for GLIBC_2.13.
11552         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
11553         prlimit64.
11554         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
11555         syscall.
11556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
11557         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
11558         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
11559         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
11560         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
11561         add prlimit alias.
11562         * sysdeps/unix/sysv/linux/prlimit.c: New file.
11563
11564         [BZ #11903]
11565         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
11566         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
11567
11568         * nss/Makefile: Add rules to build and run tst-nss-test1.
11569         * shlib-versions: Add entry for libnss_test1.
11570         * nss/nss_test1.c: New file.
11571         * nss/tst-nss-test1.c: New file.
11572
11573         * nss/nsswitch.c (__nss_database_custom): Define new variable.
11574         (__nss_configure_lookup): Set appropriate entry in
11575         __nss_configure_lookup to true.
11576         * nss/nsswitch.h: Define enum with indeces of databases in
11577         databases and __nss_database_custom arrays.  Declare
11578         __nss_database_custom.
11579         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
11580         to avoid using nscd when custom rules are installed.
11581         * nss/getXXbyYY_r.c: Likewise.
11582         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
11583
11584         * nss/nss_files/files-parse.c: Whitespace fixes.
11585
11586 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
11587
11588         [BZ #11883]
11589         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
11590         * posix/fnmatch_loop.c: Likewise.
11591
11592 2010-07-17  Andi Kleen  <ak@linux.intel.com>
11593
11594         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
11595         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
11596         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
11597         * Versions.def [GLIBC_2.13]: Add.
11598
11599 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
11600
11601         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11602         Also fail if tpwd after pwuid call is NULL.
11603
11604 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11605
11606         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
11607         when converting to ms.
11608
11609 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11610
11611         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
11612         EOPNOTSUPP errors with ENOTTY.
11613         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
11614         EOPNOTSUPP errors with ENOTTY.
11615
11616 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
11617
11618         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
11619         Add strcasecmp_l-ssse3.
11620         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
11621         strcasecmp.
11622         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
11623         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
11624         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
11625
11626 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
11627
11628         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
11629
11630         * string/Makefile (strop-tests): Add strcasecmp.
11631         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
11632         strcasecmp_l-nonascii.
11633         (gen-as-const-headers): Add locale-defines.sym.
11634         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
11635         * sysdeps/x86_64/strcasecmp.S: New file.
11636         * sysdeps/x86_64/strcasecmp_l.S: New file.
11637         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
11638         * sysdeps/x86_64/locale-defines.sym: New file.
11639         * string/test-strcasecmp.c: New file.
11640
11641         * string/test-strcasestr.c: Test both ends of the range of characters.
11642         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
11643
11644 2010-07-29  Roland McGrath  <roland@redhat.com>
11645
11646         [BZ #11856]
11647         * manual/locale.texi (Yes-or-No Questions): Fix example code.
11648
11649 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
11650
11651         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
11652         for ld.so.
11653
11654 2010-07-27  Andreas Schwab  <schwab@redhat.com>
11655
11656         * manual/memory.texi (Malloc Tunable Parameters): Document
11657         M_PERTURB.
11658
11659 2010-07-26  Roland McGrath  <roland@redhat.com>
11660
11661         [BZ #11840]
11662         * configure.in (-fgnu89-inline check): Set and substitute
11663         gnu89_inline, not libc_cv_gnu89_inline.
11664         * configure: Regenerated.
11665         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
11666
11667 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
11668
11669         * string/test-strnlen.c: New file.
11670         * string/Makefile (strop-tests): Add strnlen.
11671         * string/tester.c (test_strnlen): Add a few more test cases.
11672         * string/tst-strlen.c: Better error reporting.
11673
11674         * sysdeps/x86_64/strnlen.S: New file.
11675
11676 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
11677
11678         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
11679         lower-latency instructions.
11680
11681 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
11682
11683         * string/test-strcasestr.c: New file.
11684         * string/test-strstr.c: New file.
11685         * string/Makefile (strop-tests): Add strstr and strcasestr.
11686         * string/str-two-way.h: Don't undefine MAX.
11687         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
11688
11689 2010-07-21  Andreas Schwab  <schwab@redhat.com>
11690
11691         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11692         strcasestr-nonascii.
11693         (CFLAGS-strcasestr-nonascii.c): Define.
11694         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
11695         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
11696         Remove unused attribute.
11697
11698 2010-07-20  Roland McGrath  <roland@redhat.com>
11699
11700         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
11701         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
11702         ld.so.cache was broken.  With it, there is no way to disable dsocaps
11703         like LD_HWCAP_MASK can disable hwcaps.
11704
11705 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
11706
11707         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
11708
11709 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
11710
11711         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
11712         call in strcasestr.
11713         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
11714         __strcasestr_sse42_nonascii.
11715         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
11716         strcasestr-nonascii.c.
11717         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
11718
11719 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
11720
11721         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
11722         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
11723         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
11724         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
11725
11726 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
11727
11728         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
11729         fcntl.
11730
11731 2010-07-06  Andreas Schwab  <schwab@redhat.com>
11732
11733         [BZ #11577]
11734         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
11735         dl_signal_cerror.
11736
11737 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
11738
11739         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
11740         _PC_PIPE_BUF using F_GETPIPE_SZ.
11741
11742 2010-07-05  Roland McGrath  <roland@redhat.com>
11743
11744         * manual/arith.texi (Rounding Functions): Fix rint description
11745         implicit in round description.
11746
11747 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
11748
11749         * elf/Makefile: Fix linking for a few tests to make recent linker
11750         happy.
11751
11752 2010-06-30  Andreas Schwab  <schwab@redhat.com>
11753
11754         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
11755         $(common-objpfx)libc_nonshared.a.
11756
11757 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
11758
11759         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
11760         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
11761         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
11762         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
11763         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
11764         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
11765         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
11766         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
11767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
11768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
11769         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
11770         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
11771         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
11772         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
11773         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
11774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
11775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
11776         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
11777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
11778         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
11779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
11780         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
11781         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
11782         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
11783         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
11784         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
11785         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
11786         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
11787         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
11788         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
11789         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
11790         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
11791         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
11792         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
11793         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
11794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
11795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
11796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
11797         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
11798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
11799         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
11800         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
11801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
11802         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
11803         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
11804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
11805         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
11806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
11807
11808 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
11809
11810         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
11811         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
11812         * string/memmove.c (memmove): Renamed to ...
11813         (MEMMOVE): ...this.  Default to memmove.
11814         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
11815         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
11816         (END_CHK): Define.
11817         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11818         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
11819         mempcpy-ssse3-back memmove-ssse3-back.
11820         * sysdeps/x86_64/multiarch/bcopy.S: New file .
11821         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
11822         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
11823         * sysdeps/x86_64/multiarch/memcpy.S: New file.
11824         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
11825         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
11826         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
11827         * sysdeps/x86_64/multiarch/memmove.c: New file.
11828         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
11829         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
11830         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
11831         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
11832         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
11833         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
11834         Define.
11835         (index_Fast_Copy_Backward): Define.
11836         (HAS_ARCH_FEATURE): Define.
11837         (HAS_FAST_REP_STRING): Define.
11838         (HAS_FAST_COPY_BACKWARD): Define.
11839
11840 2010-06-21  Andreas Schwab  <schwab@redhat.com>
11841
11842         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
11843         Restore proper fallback handling.
11844
11845 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
11846
11847         [BZ #11701]
11848         * posix/group_member.c (__group_member): Correct checking loop.
11849
11850         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
11851         OOM in getpwuid_r correctly.  Return error number when the caller
11852         should return, otherwise -1.
11853         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
11854         call returning > 0 value.
11855         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
11856
11857 2010-06-07  Andreas Schwab  <schwab@redhat.com>
11858
11859         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
11860         libc_nonshared.a from targets in modules-names.
11861
11862 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
11863
11864         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
11865         requires it.
11866
11867 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
11868
11869         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
11870         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
11871         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
11872         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
11873
11874 2010-06-02  Andreas Schwab  <schwab@redhat.com>
11875
11876         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
11877
11878 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
11879
11880         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
11881         and F_GETPIPE_SZ.
11882         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
11883         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
11884         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11885         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11886         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
11887         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
11888
11889 2010-06-14  Roland McGrath  <roland@redhat.com>
11890
11891         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
11892
11893 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
11894
11895         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
11896         __REDIRECT followed by __THROW.
11897         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
11898         * posix/getopt.h (getopt): Likewise.
11899
11900 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
11901
11902         * hurd/lookup-at.c (__file_name_lookup_at): Accept
11903         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
11904         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
11905         in AT_FLAGS.
11906         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
11907         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
11908
11909 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
11910
11911         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
11912
11913 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
11914
11915         [BZ #11640]
11916         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11917         Properly check family and model.
11918
11919 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
11920
11921         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
11922
11923 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
11924
11925         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
11926
11927 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
11928
11929         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
11930         symbol reference.
11931
11932 2010-05-19  Andreas Schwab  <schwab@redhat.com>
11933
11934         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
11935         symbol reference.
11936
11937 2010-05-21  Andreas Schwab  <schwab@redhat.com>
11938
11939         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
11940         and internal_recvmmsg.
11941         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
11942         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
11943         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
11944         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
11945
11946         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
11947         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
11948         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
11949
11950 2010-05-20  Andreas Schwab  <schwab@redhat.com>
11951
11952         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
11953
11954 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
11955
11956         POWER7 optimizations.
11957         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
11958         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
11959
11960 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
11961
11962         * version.h: Update for 2.13 development version.
11963
11964 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
11965
11966         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
11967         exceptions.  Return 0.
11968
11969 2010-05-07  Roland McGrath  <roland@redhat.com>
11970
11971         * elf/ldconfig.c (main): Add a const.
11972
11973 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
11974
11975         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
11976         (args_options): Add no-idn option.
11977         (ahosts_keys_int): Add idn_flags to ai_flags.
11978         (parse_option): Handle 'i' option to clear idn_flags.
11979
11980         * malloc/malloc.c (_int_free): Possible race in the most recently
11981         added check.  Only act on the data if no current modification
11982         happened.
11983
11984 See ChangeLog.17 for earlier changes.